Algorithm Watch

xai-org/x-algorithm

Back to list
bc8e5f0f07b3
High Impact5 min readAugust 31, 2026

Open-Sourcing X's Recommendation Algorithm: Phoenix RecSys Engine & Visibility Filtering Breakdown

xAI has open-sourced the latest codebase for the X recommendation algorithm. This release details the Rust-based 'Phoenix' RecSys engine, the Home Mixer pipeline, and the comprehensive visibility filtering rules governing content moderation.

Impact Score
10/10

Simple Explanation

The latest algorithm powering X's 'For You' timeline has been open-sourced. A high-performance Rust engine named 'Phoenix' scores and ranks candidate posts while an explicit 'Visibility Filtering' engine removes policy-violating, NSFW, or muted content. This release offers complete transparency into how posts are selected, ranked, or dropped from user feeds.

Key Points

  • 1Modernized Rust-based recommendation pipeline integrating Home Mixer with the Phoenix RecSys engine
  • 2High-throughput machine learning scoring leveraging Protobuf schemas and embedding lookup tables
  • 3Deterministic visibility filtering covering NSFW age-gating, interstitials, social graph blocks, and label drops

Technical Details

This commit reorganizes the recommendation architecture into Rust, integrating Home Mixer with xAI's 'Phoenix' serving engine via Protobuf definitions (`recsys.proto`). The Phoenix engine leverages embedding tables (`emb_table.rs`) and specialized proto parsers for high-throughput candidate scoring. Concurrently, the `visibility-filtering` crate codifies deterministic moderation gates including NSFW age-gating, interstitials, social graph checks (blocks/mutes), nullcasts, and user/tweet-level label drop rules.

Affected Users

All X users, content creators, digital marketers, and engineers analyzing recommendation systems

Before & After

Previously opaque or legacy recommendation and moderation logic is now fully transparent and open-sourced in modern Rust, detailing Phoenix integration and exact filtering triggers.

Action Items

  • Adhere strictly to platform guidelines and NSFW policies to avoid deterministic label-drop penalties
  • Focus on high-quality content that optimizes embedding relevance and genuine engagement under the Phoenix scoring model
  • Review the visibility-filtering crate to understand specific conditions that trigger interstitial warnings or feed drops

Monetization Tips

  • Ensure proper content categorization to prevent automated visibility drops and preserve monetization reach
  • Create high-engagement multimedia content that scores favorably within Phoenix embedding spaces to maximize organic impressions

FAQ

Q. What is the Phoenix RecSys engine?

Phoenix is xAI's high-performance recommendation serving system that scores and ranks candidate tweets using embeddings and Protobuf-driven pipelines.

Q. Why might a tweet be dropped by visibility filtering?

Tweets are excluded if they trigger safety rules such as NSFW age-gating, social graph blocks/mutes, or trust-and-safety labels (e.g., spam or policy violations).

Changed Files

  • + README.md
  • + home-mixer/models/candidate.rs
  • + home-mixer/params/param.rs
  • + home-mixer/scorers/phoenix_scorer.rs
  • + home-mixer/util/phoenix_request.rs
  • + phoenix/crates/serving/xai-recsys-engine/src/copy_port_client.rs
  • + phoenix/crates/serving/xai-recsys-engine/src/emb_table.rs
  • + phoenix/crates/serving/xai-recsys-engine/src/proto_parser.rs
  • + phoenix/crates/serving/xai-recsys-proto/proto/recsys.proto
  • + phoenix/python/common/xai-proto/proto/recsys.proto
  • + visibility-filtering/rules/context.rs
  • + visibility-filtering/rules/fixtures.rs
  • + visibility-filtering/rules/golden_corpus.rs
  • + visibility-filtering/rules/mod.rs
  • + visibility-filtering/rules/nsfw_age_gating.rs
  • + visibility-filtering/rules/nsfw_interstitial.rs
  • + visibility-filtering/rules/nullcast_rule.rs
  • + visibility-filtering/rules/registry.rs
  • + visibility-filtering/rules/socialgraph_rules.rs
  • + visibility-filtering/rules/tes_rules.rs
  • + visibility-filtering/rules/tweet_flag_rules.rs
  • + visibility-filtering/rules/tweet_label_drops.rs
  • + visibility-filtering/rules/user_label_drops.rs
  • + visibility-filtering/rules/user_rules.rs
View Commit on GitHub