IBOV 177,866 ▲ 2.97% IPSA 11,057 ▲ 0.28% IPC MEX 66,496 ▲ 0.59% MERVAL 3,280,224 ▲ 2.43% COLCAP 2,307.67 ▲ 0.65% BVL PERÚ 56,194.27 ▲ 1.29% USD/BRL5.11▼ 0.04% USD/MXN17.51▲ 0.25% USD/CLP923.90▼ 0.41% USD/COP3,246▲ 0.20% USD/PEN3.39▼ 0.05% USD/ARS1,487▼ 0.03% USD/UYU40.22▲ 1.37% USD/PYG6,055▲ 1.45% USD/BOB10.14▲ 4.01% USD/DOP58.48▼ 0.03% USD/CRC448.82▲ 1.41% USD/GTQ7.63▲ 2.31% USD/HNL26.72▲ 0.09% USD/NIO 36.62 — 0.00% USD/VES719.54▼ 0.13% USD/PAB1.00— 0.00% USD/BZD2.00— 0.00% USD/JMD158.09▲ 0.40% USD/TTD6.75▲ 1.44% EUR/BRL5.82▼ 0.79% BRENT 78.39 ▲ 3.13% WTI 73.68 ▲ 3.18% IRON ORE 161.91 — — COPPER 6.25 ▲ 0.30% GOLD 4,077 ▼ 0.66% SILVER 59.05 ▼ 1.27% SOY 1,191 ▲ 0.93% CORN 461.00 ▲ 7.77% WHEAT 640.25 ▲ 4.74% COFFEE 318.60 ▼ 10.74% SUGAR 14.86 ▼ 1.72% ORANGE JUICE 143.25 ▼ 4.44% COTTON 80.87 ▲ 6.18% COCOA 6,100 ▼ 3.31% BEEF 235.20 ▼ 0.02% CATTLE 354.60 ▼ 0.44% LITHIUM 72.32 ▼ 0.69% PETR4 39.65 ▲ 1.12% VALE3 74.18 ▲ 1.41% ITUB4 44.30 ▲ 4.02% BBDC4 18.86 ▲ 4.78% ABEV3 15.82 ▲ 0.64% BBAS3 20.58 ▲ 2.90% B3SA3 15.42 ▲ 4.26% WEGE3 46.51 ▲ 1.68% PRIO3 55.45 ▼ 0.29% SUZB3 41.55 ▲ 1.27% RENT3 41.10 ▲ 4.31% AZZA3 19.10 ▲ 3.47% CSAN3 4.07 ▲ 5.44% RAIZ4 0.35 ▼ 5.41% PCAR3 2.73 ▼ 1.09% GMAT3 3.97 ▲ 1.02% PSSA3 54.97 ▲ 3.04% CVCB3 1.25 — 0.00% POSI3 3.97 ▲ 3.12% SLCE3 14.02 ▲ 1.67% NATU3 8.68 ▲ 2.60% BRKM5 6.63 ▲ 4.25% RANI3 8.01 ▲ 1.91% CSNA3 5.18 ▲ 7.92% CMIN3 5.23 ▲ 8.28% USIM5 8.45 ▲ 1.20% GGBR4 23.01 ▲ 2.36% ENEV3 27.55 ▲ 5.15% CPFE3 47.87 ▲ 3.41% CMIG4 11.38 ▲ 2.71% EQTL3 40.91 ▲ 3.54% LREN3 14.62 ▲ 3.32% VIVT3 35.75 ▲ 3.62% RAIL3 14.36 ▲ 4.44% KLABIN 17.54 ▲ 0.80% RAIA DROGASIL 18.77 ▲ 3.53% RDOR3 36.02 ▲ 2.48% HAPV3 10.60 ▲ 5.26% FLRY3 16.42 ▲ 4.25% SMTO3 16.37 ▲ 1.99% UGPA3 30.71 ▲ 2.03% VBBR3 33.00 ▲ 2.80% BBSE3 40.35 ▲ 2.72% BPAC11 58.73 ▲ 5.48% CURY3 34.21 ▲ 4.62% AERI3 2.09 ▲ 1.46% VIVARA 23.53 ▲ 4.21% COMPASS 25.50 ▲ 3.32% VAMOS 3.06 ▲ 3.38% SANB11 27.62 ▲ 5.22% ASAI3 8.87 ▲ 4.85% SBSP3 31.11 ▲ 3.70% WALMEX 49.31 ▲ 0.59% GMEXICO 198.62 ▲ 1.68% FEMSA 223.20 ▲ 0.37% CEMEX 21.82 ▲ 0.51% GFNORTE 186.51 ▲ 0.63% BIMBO 56.06 ▲ 0.23% TELEVISA 9.74 ▲ 2.63% AMX 22.70 ▲ 0.27% GAP 412.01 ▼ 0.41% ASUR 285.12 ▲ 0.53% OMA 235.73 ▼ 0.95% KOF 182.08 ▲ 0.65% GRUMA 282.99 ▲ 0.14% KIMBER 38.13 ▼ 0.81% SQM-B 67,750 ▼ 1.95% COPEC 6,139 ▲ 1.98% BSANTANDER 79.00 ▲ 1.94% FALABELLA 5,905 ▲ 0.92% ENELAM 85.40 ▲ 1.47% CENCOSUD 2,045 ▼ 0.55% CMPC 1,109 ▲ 1.32% BANCO CHILE 188.88 ▲ 1.01% LATAM AIR 26.26 ▼ 0.53% YPF 74,450 ▼ 1.75% GGAL 8,350 ▲ 5.96% PAMPA 5,185 ▼ 0.38% TXAR 671.00 ▲ 0.98% ALUAR 978.00 ▲ 0.98% TGS 9,610 ▲ 3.22% CEPU 2,405 ▲ 3.89% MIRGOR 17,375 ▲ 1.02% COME 45.90 ▲ 1.06% LOMA NEGRA 3,583 ▲ 2.43% BYMA 314.00 ▲ 1.37% TELECOM ARG 4,248 ▲ 3.09% ECOPETROL 15.59 ▲ 1.27% BANCOLOMBIA 82.95 ▲ 2.50% GRUPO AVAL 5.08 ▲ 1.20% CREDICORP 400.81 ▲ 2.27% SOUTHERN COPPER 175.83 ▲ 0.80% BUENAVENTURA 30.00 ▲ 1.52% MERCADOLIBRE 1,852 ▲ 2.46% NUBANK 13.76 ▲ 0.66% XP 16.92 ▲ 3.11% PAGSEGURO 9.25 ▲ 2.78% STONE 11.21 ▲ 2.28% GLOBANT 29.96 ▼ 4.25% TECNOGLASS 43.90 ▲ 1.76% GAP AIRPORT 235.64 ▲ 0.50% ASUR 285.12 ▲ 0.53% OMA AIRPORT 108.09 ▼ 0.22% AMX ADR 26.04 ▲ 0.77% FEMSA ADR 127.70 ▲ 0.55% CEMEX ADR 12.48 ▲ 0.89% PETROBRAS ADR 17.32 ▲ 1.70% VALE ADR 14.46 ▲ 1.69% ITAU ADR 8.62 ▲ 4.11% SANTANDER BR 5.39 ▲ 4.86% AMBEV ADR 3.07 ▲ 0.99% CSN 1.01 ▲ 5.79% GERDAU 4.50 ▲ 2.04% LATAM ADR 56.45 ▼ 1.03% BTC 63,787 ▼ 0.02% ETH 1,803 ▲ 0.86% SOL 76.75 ▼ 0.10% XRP 1.09 ▼ 1.06% BNB 573.48 ▼ 0.25% ADA 0.16 ▼ 2.51% DOGE 0.07 ▼ 0.82% AVAX 6.40 ▼ 2.33% LINK 7.98 ▲ 0.75% DOT 0.85 ▼ 1.07% LTC 44.06 ▼ 1.42% BCH 240.20 ▼ 1.72% TRX 0.33 ▲ 0.40% XLM 0.19 ▼ 0.21% HBAR 0.07 ▼ 1.59% NEAR 1.89 ▲ 1.00% ATOM 1.56 ▼ 1.18% AAVE 97.21 ▼ 1.04% SELIC 14.25% EMBRAER 84.60 ▲ 0.88% EMBRAER ADR 66.01 ▲ 0.72% JBS 11.91 ▲ 1.53% JBS BDR 60.78 ▲ 1.22% MBRF3 15.55 ▲ 0.91% MBRFY 2.97 ▼ 1.00% INTER 5.82 ▲ 1.93% IBOV 177,866 ▲ 2.97% IPSA 11,057 ▲ 0.28% IPC MEX 66,496 ▲ 0.59% MERVAL 3,280,224 ▲ 2.43% COLCAP 2,307.67 ▲ 0.65% BVL PERÚ 56,194.27 ▲ 1.29% USD/BRL 5.11 ▼ 0.04% USD/MXN 17.51 ▲ 0.25% USD/CLP 923.90 ▼ 0.41% USD/COP 3,246 ▲ 0.20% USD/PEN 3.39 ▼ 0.05% USD/ARS 1,487 ▼ 0.03% USD/UYU 40.22 ▲ 1.37% USD/PYG 6,055 ▲ 1.45% USD/BOB 10.14 ▲ 4.01% USD/DOP 58.48 ▼ 0.03% USD/CRC 448.82 ▲ 1.41% USD/GTQ 7.63 ▲ 2.31% USD/HNL 26.72 ▲ 0.09% USD/NIO 36.62 — 0.00% USD/VES 719.54 ▼ 0.13% USD/PAB 1.00 — 0.00% USD/BZD 2.00 — 0.00% USD/JMD 158.09 ▲ 0.40% USD/TTD 6.75 ▲ 1.44% EUR/BRL 5.82 ▼ 0.79% BRENT 78.39 ▲ 3.13% WTI 73.68 ▲ 3.18% IRON ORE 161.91 — — COPPER 6.25 ▲ 0.30% GOLD 4,077 ▼ 0.66% SILVER 59.05 ▼ 1.27% SOY 1,191 ▲ 0.93% CORN 461.00 ▲ 7.77% WHEAT 640.25 ▲ 4.74% COFFEE 318.60 ▼ 10.74% SUGAR 14.86 ▼ 1.72% ORANGE JUICE 143.25 ▼ 4.44% COTTON 80.87 ▲ 6.18% COCOA 6,100 ▼ 3.31% BEEF 235.20 ▼ 0.02% CATTLE 354.60 ▼ 0.44% LITHIUM 72.32 ▼ 0.69% PETR4 39.65 ▲ 1.12% VALE3 74.18 ▲ 1.41% ITUB4 44.30 ▲ 4.02% BBDC4 18.86 ▲ 4.78% ABEV3 15.82 ▲ 0.64% BBAS3 20.58 ▲ 2.90% B3SA3 15.42 ▲ 4.26% WEGE3 46.51 ▲ 1.68% PRIO3 55.45 ▼ 0.29% SUZB3 41.55 ▲ 1.27% RENT3 41.10 ▲ 4.31% AZZA3 19.10 ▲ 3.47% CSAN3 4.07 ▲ 5.44% RAIZ4 0.35 ▼ 5.41% PCAR3 2.73 ▼ 1.09% GMAT3 3.97 ▲ 1.02% PSSA3 54.97 ▲ 3.04% CVCB3 1.25 — 0.00% POSI3 3.97 ▲ 3.12% SLCE3 14.02 ▲ 1.67% NATU3 8.68 ▲ 2.60% BRKM5 6.63 ▲ 4.25% RANI3 8.01 ▲ 1.91% CSNA3 5.18 ▲ 7.92% CMIN3 5.23 ▲ 8.28% USIM5 8.45 ▲ 1.20% GGBR4 23.01 ▲ 2.36% ENEV3 27.55 ▲ 5.15% CPFE3 47.87 ▲ 3.41% CMIG4 11.38 ▲ 2.71% EQTL3 40.91 ▲ 3.54% LREN3 14.62 ▲ 3.32% VIVT3 35.75 ▲ 3.62% RAIL3 14.36 ▲ 4.44% KLABIN 17.54 ▲ 0.80% RAIA DROGASIL 18.77 ▲ 3.53% RDOR3 36.02 ▲ 2.48% HAPV3 10.60 ▲ 5.26% FLRY3 16.42 ▲ 4.25% SMTO3 16.37 ▲ 1.99% UGPA3 30.71 ▲ 2.03% VBBR3 33.00 ▲ 2.80% BBSE3 40.35 ▲ 2.72% BPAC11 58.73 ▲ 5.48% CURY3 34.21 ▲ 4.62% AERI3 2.09 ▲ 1.46% VIVARA 23.53 ▲ 4.21% COMPASS 25.50 ▲ 3.32% VAMOS 3.06 ▲ 3.38% SANB11 27.62 ▲ 5.22% ASAI3 8.87 ▲ 4.85% SBSP3 31.11 ▲ 3.70% WALMEX 49.31 ▲ 0.59% GMEXICO 198.62 ▲ 1.68% FEMSA 223.20 ▲ 0.37% CEMEX 21.82 ▲ 0.51% GFNORTE 186.51 ▲ 0.63% BIMBO 56.06 ▲ 0.23% TELEVISA 9.74 ▲ 2.63% AMX 22.70 ▲ 0.27% GAP 412.01 ▼ 0.41% ASUR 285.12 ▲ 0.53% OMA 235.73 ▼ 0.95% KOF 182.08 ▲ 0.65% GRUMA 282.99 ▲ 0.14% KIMBER 38.13 ▼ 0.81% SQM-B 67,750 ▼ 1.95% COPEC 6,139 ▲ 1.98% BSANTANDER 79.00 ▲ 1.94% FALABELLA 5,905 ▲ 0.92% ENELAM 85.40 ▲ 1.47% CENCOSUD 2,045 ▼ 0.55% CMPC 1,109 ▲ 1.32% BANCO CHILE 188.88 ▲ 1.01% LATAM AIR 26.26 ▼ 0.53% YPF 74,450 ▼ 1.75% GGAL 8,350 ▲ 5.96% PAMPA 5,185 ▼ 0.38% TXAR 671.00 ▲ 0.98% ALUAR 978.00 ▲ 0.98% TGS 9,610 ▲ 3.22% CEPU 2,405 ▲ 3.89% MIRGOR 17,375 ▲ 1.02% COME 45.90 ▲ 1.06% LOMA NEGRA 3,583 ▲ 2.43% BYMA 314.00 ▲ 1.37% TELECOM ARG 4,248 ▲ 3.09% ECOPETROL 15.59 ▲ 1.27% BANCOLOMBIA 82.95 ▲ 2.50% GRUPO AVAL 5.08 ▲ 1.20% CREDICORP 400.81 ▲ 2.27% SOUTHERN COPPER 175.83 ▲ 0.80% BUENAVENTURA 30.00 ▲ 1.52% MERCADOLIBRE 1,852 ▲ 2.46% NUBANK 13.76 ▲ 0.66% XP 16.92 ▲ 3.11% PAGSEGURO 9.25 ▲ 2.78% STONE 11.21 ▲ 2.28% GLOBANT 29.96 ▼ 4.25% TECNOGLASS 43.90 ▲ 1.76% GAP AIRPORT 235.64 ▲ 0.50% ASUR 285.12 ▲ 0.53% OMA AIRPORT 108.09 ▼ 0.22% AMX ADR 26.04 ▲ 0.77% FEMSA ADR 127.70 ▲ 0.55% CEMEX ADR 12.48 ▲ 0.89% PETROBRAS ADR 17.32 ▲ 1.70% VALE ADR 14.46 ▲ 1.69% ITAU ADR 8.62 ▲ 4.11% SANTANDER BR 5.39 ▲ 4.86% AMBEV ADR 3.07 ▲ 0.99% CSN 1.01 ▲ 5.79% GERDAU 4.50 ▲ 2.04% LATAM ADR 56.45 ▼ 1.03% BTC 63,787 ▼ 0.02% ETH 1,803 ▲ 0.86% SOL 76.75 ▼ 0.10% XRP 1.09 ▼ 1.06% BNB 573.48 ▼ 0.25% ADA 0.16 ▼ 2.51% DOGE 0.07 ▼ 0.82% AVAX 6.40 ▼ 2.33% LINK 7.98 ▲ 0.75% DOT 0.85 ▼ 1.07% LTC 44.06 ▼ 1.42% BCH 240.20 ▼ 1.72% TRX 0.33 ▲ 0.40% XLM 0.19 ▼ 0.21% HBAR 0.07 ▼ 1.59% NEAR 1.89 ▲ 1.00% ATOM 1.56 ▼ 1.18% AAVE 97.21 ▼ 1.04% SELIC 14.25% EMBRAER 84.60 ▲ 0.88% EMBRAER ADR 66.01 ▲ 0.72% JBS 11.91 ▲ 1.53% JBS BDR 60.78 ▲ 1.22% MBRF3 15.55 ▲ 0.91% MBRFY 2.97 ▼ 1.00% INTER 5.82 ▲ 1.93%
since 2009
Sunday, July 12, 2026

Historic step: Elon Musk made Twitter’s recommendation algorithm public

By · April 3, 2023 · 4 min read

Daily Brief

The morning intel from across Latin America. Free.

By subscribing you agree to our privacy policy. We never share your email.

Twitter CEO Elon Musk made history this Friday in favor of transparency.

In April, Twitter released some of its source code for public inspection, including its controversial algorithm to recommend tweets on users’ timelines.

One-stop reference
Company Intelligence
Every listed company in Latin America — financials, ownership and structure for 1,450+ companies across 26 exchanges, in one place.
Browse the directory →

On GitHub, Twitter posted two repositories containing much of the company’s code that make many parts of the social network work, including the mechanism Twitter uses to control which tweets users see in the “For You” timeline.

Musk completely changed the source code within weeks of taking control of Twitter (Photo internet reproduction)
RT
Ask Rio Times
17 years of Latin America reporting, on demand.
Open the full Ask Rio Times →

In the past, this algorithm was heavily criticized by social network users because it suppressed right-wing tweets and trends and promoted left-wing ones.

This was pure speculation until Elon Musk bought the company and confirmed, through the #TwitterFiles, that this was the case.

According to the CEO of Tesla and SpaceX, he completely changed the source code within weeks of taking control of Twitter.

Now, he will make it public to prove that he did it in a historic step towards transparency.

In a Twitter Spaces session this Friday, Musk clarified:

“Our initial release of the so-called algorithm will be pretty embarrassing, and people will find a lot of bugs, but we will fix them very quickly.”

“Even if you disagree with something, at least you’ll know why it’s there and that you’re not being secretly manipulated… ”

“The analog, here, that we’re aiming for is the great example of Linux as an open source operating system…”

“One can, in theory, discover many exploits for Linux.”

“In reality, what happens is that the community identifies and fixes those exploits,” he explained.

He clarified that these publications do not include the code that drives Twitter’s ad recommendations.

This information must be kept confidential due to contractual issues with clients who buy advertising on social networks.

In addition, while showing how the algorithm operates to create the recommendation page, for the time being, Twitter did not publish the data used to train the algorithm, as it could compromise users’ personal information.

“We excluded any code that would compromise user safety and privacy or the ability to protect our platform from bad actors, including undermining our efforts to combat child sexual exploitation and manipulation,” he said.

“We’re going to be looking for suggestions, not just about bugs, but also about how the algorithm should work,” Musk said at the Spaces session.

“It’s going to be an evolving process.”

“I wouldn’t expect it to be a continuous upward movement … but we’re very open to what might improve the user experience,” he concluded.

A diagram showing how Twitter’s recommendation pipeline works (Photo internet reproduction)

At first glance, the algorithm is quite complex but not necessarily surprising from a technical standpoint.

It is composed of multiple models, including one that detects “Not Safe For Work,” violent or abusive content, then determines the likelihood that a Twitter user will interact with another user based on that tweet and calculates the “reputation” that post will have to appear or not appear among the recommendations one reads on their home page.

The “For You” page is populated by tweets from people you follow, but also by tweets they have liked, retweeted, or even tweets from people who are followed by people you follow. This mass of publications is sorted by this “reputation”.

It was always known that tweets were ranked based on some score, but now we know what it is based on.

The algorithm inspects the content of the tweet and looks for keywords such as “death”, “kill”, “pornography”, and “suicide”, among others.

It also has a sophisticated code that allows it to “read in context” and interpret if the tweet is abusive against another person.

There are no findings of keywords related to extremist issues or vaccines, or Covid-19, something that Elon Musk eliminated because it was previously impossible to post a tweet on these topics without it disappearing from the face of Twitter.

But if there are “tags” that are used to identify a tweet as coming from a “Democrat”, a “Republican”, or an “important” (“power”) user.

There is even a tag indicating whether a tweet came from Elon Musk.

The tycoon mentioned in the space that they are looking for a replacement for this algorithm part.

“I don’t like putting tags on people’s tweets; we’re looking at how not to do that anymore,” he mentioned.

Several neural networks are responsible for ranking tweets and recommending accounts to follow. At the same time, a filtering component hides tweets to, by Twitter’s explanation, “support legal compliance, improve product quality, increase user trust, protect revenue through visible and hard filtered product treatments and coarse-grained top-down ranking.”

As can be seen from the algorithm, Twitter attempts to extract the “best” 1,500 tweets out of the millions that rank to appear on the “For You” page.

In addition, this timeline consists of 50% of tweets from people you follow and 50% from people you don’t follow, emphasizing news, with no preference of which medium; only verified or blue accounts are prioritized.

The classification is achieved with a neural network of almost 48 million parameters continuously trained on tweets’ interactions to optimize positive engagement.

For example, likes, retweets, and replies, but also the time it takes to read a tweet, if, after seeing that tweet, you go to see the user, the time that passes between liking two tweets from the same user, or even the amount of time you spend viewing their images and videos.

With information from La Derecha Diario

Read More from The Rio Times

The Rio Times · Power Map
See who really holds power in Latin America
Click to open the Power Map

Rotate for Best Experience

This report is optimized for landscape viewing. Rotate your phone for the full experience.