xai-org/x-algorithm: Algorithm powering the For You feed on X
Summary
xai-org uses a transformer model called Phoenix to rank the For You feed by predicting probabilities for multiple user actions and combining them with specific weights.
Weights scale predicted probabilities.
Weights multiply the predicted probability of an action, such as a Like or Report, rather than scaling raw engagement counts. This prevents a single high-weight action from mathematically canceling out many low-weight actions.
Ranking and visibility are decoupled.
The Phoenix model determines post order, while the visibility-filtering service uses separate rules and labels to decide if a post is shown, hidden behind an interstitial, or dropped.
Ranking decides the order. Visibility filtering decides whether a post can be shown at all.
Diversity adjustments modify scores.
The algorithm applies three post-ranking adjustments: an author diversity decay, an out-of-network discount for non-followed accounts, and a boost for new authors with low impressions.
each post after an author's first is multiplied by a decaying factor
Candidate isolation ensures consistency.
During transformer inference, candidates cannot attend to one another, only to the viewer context. This mechanism makes scores consistent and cacheable across different batches.
candidates cannot attend to each other—only to the viewer context.
Transparency is limited by gaming risks.
While most code is public, xai-org withholds specific Grox LLM prompts and certain botmaker rules to prevent users from attempting to game the distribution system.
people could use it to try to game the system.
Highlights
The weights are a multiple on your own predicted probability of Liking, Reporting, etc, which is substantially driven by your own behavior.
Ranking decides the order. Visibility filtering decides whether a post can be shown at all. Different services, different inputs, different rules.
Read the original ↗Save to Sponge
Summarized with Sponge. Quotes are the author’s own words.