search
HomeTechnology peripheralsAIMusk open sourced Twitter recommendation algorithm, GitHub reached 10,000 stars in seconds, and promised to evolve every 24-48 hours

Musk’s “open source commitment” finally came true.

Just now, Musk officially announced:

Most (Twitter’s) recommendation algorithms will be open source today, and the rest will follow.

Musk open sourced Twitter recommendation algorithm, GitHub reached 10,000 stars in seconds, and promised to evolve every 24-48 hours

#And Musk immediately showed the address of the source code of the Twitter recommendation algorithm on GitHub.

In just a few hours, tens of thousands of Stars were obtained:

Musk open sourced Twitter recommendation algorithm, GitHub reached 10,000 stars in seconds, and promised to evolve every 24-48 hours

In addition, Musk also said:

Push The recommendation algorithm based on user suggestions will be updated every 24 to 48 hours.

Musk open sourced Twitter recommendation algorithm, GitHub reached 10,000 stars in seconds, and promised to evolve every 24-48 hours

#At this point, the true face of this big algorithm that claims to make recommendations from 500 million tweets every day has finally been revealed.

What does Twitter’s recommendation algorithm look like?

According to reports, Twitter’s recommendation system is based on a set of core models and functions that can extract potential information from tweets, users and interaction data.

The role of these models is to answer important questions in the Twitter network, such as, "What is the probability that you will interact with another user in the future?" or, "What communities are there on Twitter and the trending tweets in them are What?"

If you can answer these questions accurately, you can let Twitter provide more relevant recommendations.

Twitter’s recommendation system consists of three parts:

  • Get the best tweets from different recommendation sources. This process is called candidate sources.
  • Use a machine learning model to rank each tweet.
  • Apply heuristics and filters, such as filtering tweets from blocked users, NSFW content, and seen tweets.

The service responsible for building and delivering the "For You" timeline is called "Home Mixer".

"Home Mixer" is built on top of "Product Mixer", a custom Scala framework that helps build dynamic flows of content.

This service serves as the software backbone, connecting different candidate sources, scoring functions, heuristics and filters.

Musk open sourced Twitter recommendation algorithm, GitHub reached 10,000 stars in seconds, and promised to evolve every 24-48 hours

Candidate Sources

Twitter uses multiple candidate sources to retrieve recent and relevant tweets for users.

For each request, Twitter attempts to extract the best 1,500 tweets from a pool of hundreds of millions of tweets from these sources.

Find candidates from people you follow (internal network) and people you don’t follow (external network).

Today, the "Recommended for You" timeline is made up of an average of 50% internal network tweets and 50% external network tweets (although this can vary by user).

In-Network Source

In-Network Source is the largest candidate source and aims to provide the most relevant and latest tweets to the users who follow it.

It uses a logistic regression model to efficiently rank tweets from people you follow, based on their relevance. The top ranked tweets are then sent to the next stage.

The most important component of ranking internal network tweets is the Real Graph.

Real Graph is a model used to predict the likelihood of interaction between two users. The higher the Real Graph score between the user and the tweet author, the more of their tweets will be included.

Internal network sources have recently become the subject of research by Twitter. Twitter recently stopped using the Fanout service, a 12-year-old service it used to serve internal network tweets from each user's tweet cache.

Out-of-Network Sources

Finding relevant tweets outside a user’s network is a tricky problem.

Because if you don’t follow the author, how do you know if a tweet is relevant to you?

To this end, Twitter has taken two approaches to solve this problem.

One is the Social Graph.

This method is to estimate what you will find relevant by analyzing the activities of people you follow or have similar interests.

Mainly traverse the participating graph and follow the steps below to answer the following questions:

  • What messages have the people I follow recently posted on Twitter?
  • Who likes similar tweets like me and what else have they liked recently?

The team generated candidate tweets based on the answers to these questions and used a logit model to rank the resulting tweets.

This type of graph traversal is essential for external network recommendations; the team developed GraphJet, a graph processing engine that maintains a real-time interaction graph between users and tweets, to perform these traversals.

While this heuristic for searching Twitter engagement and attention networks has proven useful, the embedded spatial approach has become a greater source of tweets from external networks.

The second one is Embedding Spaces.

The embedded spatial approach aims to answer a more general question about content similarity - what tweets and users share my interests?

Embeddings work by generating digital representations of user interests and tweet content. The similarity between any two users, tweets or user-tweet pairs in this embedding space can then be calculated.

This similarity can be used as a surrogate for correlation as long as accurate embedding is generated.

One of Twitter’s most useful embedding spaces is SimClusters.

SimClusters uses a custom matrix factorization algorithm to discover communities anchored by a group of influential users (145,000 communities, updated every three weeks).

Users and tweets are represented in community spaces and can belong to multiple communities. Communities range in size from a few thousand users in a personal friend group to hundreds of millions in news or pop culture:

Musk open sourced Twitter recommendation algorithm, GitHub reached 10,000 stars in seconds, and promised to evolve every 24-48 hours

More with For related details, please click on the link at the end of the article~

One More Thing

Twitter’s algorithm is open source, and quick netizens...have begun to summarize how to become a big V based on the algorithm :

The ratio of the number of people you follow to the number of people following you is very important. Subscribing to TwitterBlue plays a certain role...

Musk open sourced Twitter recommendation algorithm, GitHub reached 10,000 stars in seconds, and promised to evolve every 24-48 hours

Reference link:
[1]​​​https://www.php.cn/link/ce2b9a26bddc32cba5af69372ee14c00​
[2]​​​https://www.php.cn /link/e55bc0255c752d1cb05da10c0f1f5026​​​
[3]​​​https://www.php.cn/link/10fe8dc69a0964edc16fed1a1bd55716​​​
[4]​​​https://www.php.cn/link/51f4efbfb3e18f4ea053c4d3d282c4e2​

The above is the detailed content of Musk open sourced Twitter recommendation algorithm, GitHub reached 10,000 stars in seconds, and promised to evolve every 24-48 hours. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
Most Used 10 Power BI Charts - Analytics VidhyaMost Used 10 Power BI Charts - Analytics VidhyaApr 16, 2025 pm 12:05 PM

Harnessing the Power of Data Visualization with Microsoft Power BI Charts In today's data-driven world, effectively communicating complex information to non-technical audiences is crucial. Data visualization bridges this gap, transforming raw data i

Expert Systems in AIExpert Systems in AIApr 16, 2025 pm 12:00 PM

Expert Systems: A Deep Dive into AI's Decision-Making Power Imagine having access to expert advice on anything, from medical diagnoses to financial planning. That's the power of expert systems in artificial intelligence. These systems mimic the pro

Three Of The Best Vibe Coders Break Down This AI Revolution In CodeThree Of The Best Vibe Coders Break Down This AI Revolution In CodeApr 16, 2025 am 11:58 AM

First of all, it’s apparent that this is happening quickly. Various companies are talking about the proportions of their code that are currently written by AI, and these are increasing at a rapid clip. There’s a lot of job displacement already around

Runway AI's Gen-4: How Can AI Montage Go Beyond AbsurdityRunway AI's Gen-4: How Can AI Montage Go Beyond AbsurdityApr 16, 2025 am 11:45 AM

The film industry, alongside all creative sectors, from digital marketing to social media, stands at a technological crossroad. As artificial intelligence begins to reshape every aspect of visual storytelling and change the landscape of entertainment

How to Enroll for 5 Days ISRO AI Free Courses? - Analytics VidhyaHow to Enroll for 5 Days ISRO AI Free Courses? - Analytics VidhyaApr 16, 2025 am 11:43 AM

ISRO's Free AI/ML Online Course: A Gateway to Geospatial Technology Innovation The Indian Space Research Organisation (ISRO), through its Indian Institute of Remote Sensing (IIRS), is offering a fantastic opportunity for students and professionals to

Local Search Algorithms in AILocal Search Algorithms in AIApr 16, 2025 am 11:40 AM

Local Search Algorithms: A Comprehensive Guide Planning a large-scale event requires efficient workload distribution. When traditional approaches fail, local search algorithms offer a powerful solution. This article explores hill climbing and simul

OpenAI Shifts Focus With GPT-4.1, Prioritizes Coding And Cost EfficiencyOpenAI Shifts Focus With GPT-4.1, Prioritizes Coding And Cost EfficiencyApr 16, 2025 am 11:37 AM

The release includes three distinct models, GPT-4.1, GPT-4.1 mini and GPT-4.1 nano, signaling a move toward task-specific optimizations within the large language model landscape. These models are not immediately replacing user-facing interfaces like

The Prompt: ChatGPT Generates Fake PassportsThe Prompt: ChatGPT Generates Fake PassportsApr 16, 2025 am 11:35 AM

Chip giant Nvidia said on Monday it will start manufacturing AI supercomputers— machines that can process copious amounts of data and run complex algorithms— entirely within the U.S. for the first time. The announcement comes after President Trump si

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.