X Recommendation Algorithm: Social media content recommendation system
Open source implementation of X's recommendation algorithm for timeline and notification ranking.
Learn more about X Recommendation Algorithm
X Recommendation Algorithm is a distributed system of services and machine learning models that generates personalized content feeds for X's platform. The architecture combines multiple candidate sources including search indexes, graph-based traversals, and user interaction data, which are then processed through light and heavy ranking models. The system uses various ML frameworks including neural networks for ranking, graph embeddings (SimClusters, TwHIN), and real-time streaming processors for user actions. It serves the For You Timeline and Recommended Notifications by coordinating data processing, model inference, and content filtering across multiple microservices.
Multi-Source Candidates
Combines in-network search results, graph-based traversals using GraphJet, and follow recommendations to generate diverse candidate pools. Uses both real-time user interaction graphs and batch-processed social signals.
Layered Ranking
Implements a two-stage ranking system with light rankers for initial filtering and heavy neural network rankers for final scoring. Supports both timeline ranking and push notification relevance scoring.
Graph-Based Features
Leverages multiple graph representations including SimClusters for community detection, TwHIN for dense embeddings, and real-time interaction graphs. Provides graph features for user-user and user-content relationships.
See how people are using X Recommendation Algorithm
Top in AI & ML
Related Repositories
Discover similar tools and frameworks used by developers
TTS
PyTorch toolkit for deep learning text-to-speech synthesis.
Crush
LLM-powered coding agent with LSP and MCP integration.
Kimi-K2
Trillion-parameter MoE model with Muon-optimized training.
YOLOX
PyTorch anchor-free object detector with scalable model variants.
Unsloth
Memory-efficient Python library for accelerated LLM training.