- Sources read: 3
- Canon files updated: 2
- Radar entries: 1
Other changes reviewed today:
- Meta published a structure that retrieves and selects from long ad engagement history for each request instead of feeding in all of it, and said it has been deployed in major ads ranking models since 2025.
- Shopee reported 2.58–4.66% order gains in A/B tests across six regions with an autoregressive re-ranking that injects business rules as masks.
1Action predictions for engagement-bait posts are dropped by default — X
Source xai-org/x-algorithm@e7afa63 — xAI, 2026-12-04, code. In this repository's numbering it is Gen4+74 (Gen4+N is the number these notes assigned, in order, to commits after the 2026-08-13 Gen4 release).
Background The final score of X For You is the sum of per-action probabilities predicted by the ranking model Phoenix (X's production ranking Transformer), each multiplied by a weight. So engagement-bait posts such as "please reply" or "share and get ○○" can get inflated scores because their reply and share probabilities come out high. The 2026-11-21 commit introduced, switched off, a switch in VMRanker (the service that computes the weighted sum and reorders the slate with DPP) that drops the corresponding predictions for such posts, and the 2026-12-02 commit first turned on the side that sends the labels to VMRanker. This commit turns the dropping-side switch on by default as well, and adds one NSFW filter and one video carousel condition.
What we learnedA. Posts with an engagement-bait label lose that action's score contribution
The default of the switch that removes engagement-bait heads in VMRanker changed from false to true verified —
vm-ranker/params.rs:339-344- The switch is named
ExcludeIneligibleEngagementHeads. VMRankerSendEngagementIneligibleon the home-mixer side (the service that receives For You requests, gathers candidates, and scores them), which sends the label, has already been true since the 2026-12-02 commit.
- The switch is named
The predictions removed per label are reply for a reply label, three kinds of share for a share label, and click and post-click dwell time for a click label verified —
vm-ranker/scoring/value_model.rs:216-240if payload.reply_ineligible { scores.reply_score = None; } if payload.share_ineligible { scores.share_score = None; scores.share_via_dm_score = None; scores.share_via_copy_link_score = None; } if payload.click_ineligible { scores.click_score = None; scores.click_dwell_time = None; }- The labels come from the safety labels
PROMOTES_REPLIES,PROMOTES_SHARES, andPROMOTES_CLICKS.
- The labels come from the safety labels
Public code alone cannot confirm whether this default is also on in production inferred. The basis is that, unlike the home-mixer parameter file, the vm-ranker parameter file has no note that it is copied daily from the production config.
What we learnedB. A filter that removes OON soft NSFW posts for viewers who do not consume NSFW was introduced, switched off
- When enabled, For You removes OON (accounts the viewer does not follow) posts carrying a soft NSFW (non-explicit sexual content) label unless the viewer is classified as an NSFW consumer verified —
home-mixer/filters/non_nsfw_consumer_soft_nsfw_filter.rs- A viewer is targeted unless the consumption level is
SOME_CONSUMERorHEAVY_CONSUMER, and a viewer with no label is also targeted (lines 15-21). - In-network posts and posts without a soft NSFW label are kept (lines 33-35). It does not apply to topic requests.
- A viewer is targeted unless the consumption level is
- The default of the switch
EnableNonNsfwConsumerSoftNsfwFilteris false verified —home-mixer/params/param.rs:1102-1107- The viewer level is read by a new client from the user-understanding dataset
user_history_labelswith a 60ms limit. If the client cannot be built, every viewer is treated as having no label, so when the filter is on it applies to everyone. - The existing new-user soft NSFW filter is still off by default, and the new filter runs right after it (
phoenix_candidate_pipeline.rs:473-474).
- The viewer level is read by a new client from the user-understanding dataset
What we learnedC. A step that re-judges quoted posts during home hydration now always runs
- VF (visibility-filtering, a safety filter service that decides whether a post is shown to a viewer) now unconditionally runs the step that separately re-judges the quoted post at the home hydration level verified —
visibility-filtering/post_evaluator.rs:33-38- Previously the environment variable
VF_QUOTE_PASSselected Off, Shadow, or Serve, and Off was the default when it was unset. - There are eight re-judging rules, such as when the quoted author is suspended, deactivated, or a protected account, or has blocked the quoting author.
- Previously the environment variable
- Whether this step was already on as Serve in production is unknown inferred. The basis is that the value of the environment variable is not in the public repository.
What we learnedOther changes
- The video carousel removes posts with two or more attached media from its candidates. It lets a post pass when media-count information is missing verified —
home-mixer/util/video_carousel.rs:296-301 - A gambling-ads regulation rule was also added to the home hydration level. The code default of the rule switch is still false verified —
visibility-filtering/rules/levels.rs - A path that carries a sample of the following list in Phoenix ranker requests was added; the default sample size is 0, so it is off verified —
home-mixer/params/param.rs:994-999 - One shadow traffic (sending the same request to an experimental model without using it in the actual response) ratio rose from 0 to 0.3. It does not affect user responses verified — line 117 of the same file.
- The routing cleanup of the user action aggregation client, the idempotence setting of the Thunder (in-network post store) Kafka producer, and the Phoenix teacher embedding export option (off by default) are changes with no policy change verified — commit diff
- abuse-enforcement-service excludes gray-badge and government accounts from enforcement targets, and grox samples article media at 10 per post. These are not feed ranking policy changes verified — same diff.
Canon update services/x.md In the Phoenix section under ## Ranking, changed the engagement-bait head exclusion bullet from "off by default" to "on by default since the 2026-12-04 commit" and moved the reference commit up to e7afa63. Removed the sentence "the weighted sum is unchanged" from the label-sending bullet and moved it to that section's change log line. Added an NSFW non-consumer filter bullet and a quote re-judging bullet to the filters section, a multi-media exclusion bullet to the carousel item in the feed surface section, and one row each to the source sha table and the change log summary table. Grepped topics/ and radar.md for the key terms of the earlier claim, but found no same claim.
Why it matters ⚠ Claim changed: As of the public code, X For You now removes the inflated engagement predictions of engagement-bait labeled posts from the score. x.md said, as of the 2026-12-02 commit, that "the switch on the removing side is off, so the weighted sum is unchanged", but this commit turned both switches on. However, the vm-ranker default is not a mirror of the production config, so production application is left as an inference.
2Ads ranking retrieves and selects from long history — Meta
Source Meta Long Memory Search Modeling: How Meta Is Scaling Extended History Context for Ads Recommendation Modeling — Engineering at Meta, 2026-12-04, blog post. Written by six Meta authors.
Background Ads ranking models use a user's past engagement history as input, and the longer the history fed in, the more storage, serving, and compute costs grow, from linear to quadratic. So the usual approach is LastN, which keeps only the most recent N events or N days and discards the relevant history before that. Training continuously on recent data alone also causes forgetting of older patterns. This blog post describes a structure that turns long history into a retrieval problem, like RAG (appending retrieved documents to the model input), and its deployment effects.
What we learnedA. The history becomes the corpus and the ad request becomes the query
- It treats the engagement history as a document corpus and one ad request as a query, and selects only past signals that are relevant and do not overlap with each other verified — Long Memory Search blog
- The query carries recency, user cohort, ad category, and topics of interest.
- The index unit is an engagement summary of one data source over a fixed period, and consecutive days are bundled into weeks to reduce storage.
- Selection uses MMR (a diversification technique that weighs relevance together with redundancy against already selected items), and relevance is measured against both the user's current interests and the ad being scored.
- Indexing and retrieval preparation are done asynchronously before the request arrives, and quantized representations are looked up by nearest neighbors in a vector index verified — same post.
What we learnedB. The same retrieval result is used both as an inference feature and as retraining data
- At inference, the retrieved past embeddings are used as an additional ranker feature; in training, old training examples are loaded and trained on again in a second training stage verified — same post.
- The blog says the retrieval result could also be used as input to "user sequence models and GEM". It does not disclose whether it actually entered GEM (Meta's ads recommendation foundation model).
- It says the approach has been deployed in major ads ranking models since 2025 and produced +1% CTR and +1.2% conversion rate for Facebook Feed and Reels ads verified — same post.
- It says compute efficiency is 5–10× that of extending the history linearly, and that NE (normalized entropy, a prediction loss where lower is better) of the CTR and CVR models is also better.
- It does not disclose the A/B design and duration, sequence length, or latency figures.
"Meta Long Memory Search Modeling has been deployed into production for major ads ranking models since 2025. In production, selective long-horizon learning delivered a 1% click-through rate lift for ads on Facebook Feed and Reels." — Meta Long Memory Search Modeling (blog), 2026-12-04
Canon update topics/sequence-transformer-ranking.md Added a 2026-12 row to the lineage B table and wrote a new Long Memory Search section after the GEM 2026 generation section. Changed the sentence "there are three answers to ultra-long history" in the DV365 section to four, and updated the Meta (ads) bullet under Who uses this and the sources.
Why it matters One more way of handling long history on the Meta ads side is now confirmed: it neither lengthens nor compresses the history but selects from it for each request. HSTU feeds it in at full length, DV365 compresses it in advance, and LLaTTE separates it out into an upstream model, whereas this approach selects by retrieval. Organic feeds are not discussed, so it was not folded into the Facebook and Instagram organic ranking canon.
3Re-ranking with business rules as masks — Shopee
Source Efficient Business-Controllable Autoregressive Re-ranking for Industrial Recommendation — Shopee, 2026-12-02 v1, paper.
Background In re-ranking (the stage that reorders the final impression order of candidates chosen by ranking scores), business rules such as "no consecutive items from the same seller" are often applied as post-processing outside the model. Then the order the model chose is broken by the rules, and the serving path becomes more complex. This paper puts the rules into the re-ranking model as masks in an autoregressive approach (choosing each next slot after seeing the results already chosen for the earlier slots).
What we learnedA. Rules are handled as masks inside one serving graph
- It keeps per-candidate scores in every round and injects business rules as attention masks, feasibility masks, and input coefficients verified — arXiv 2612.04447
- The Off-Diagonal Transformer removes the candidate-side KV projection and the attention to itself, reducing the cost per round.
- It reports graph execution latency under 7.5ms on an L40S.
- It ran A/B tests in six regions, one week per region at 3% of traffic, and deployed to product detail page recommendation in all regions verified — same paper.
- It also says it was fully deployed to Indonesia Daily Discover (a feed-style surface).
"Online A/B tests across six regions show Order gains of 2.58%-4.66% and GMV gains of 2.38%-5.80%." — arXiv 2612.04447 (paper abstract), 2026-12-02
Canon update radar.md Added an entry under new this month.
Why it matters This is a deployment case of a platform moving re-ranking rules into the model. It has no direct relation to the tracked services, so it goes in the radar.
Radar
What to check next
- Whether the vm-ranker engagement-bait head exclusion is also on in production — the vm-ranker parameters have no production mirror note, so inferred remains.
- The Phoenix teacher embedding export and the ads action enum in the same X commit — they are on the serving infrastructure side, so I did not read them in detail this time.
- Whether Meta Long Memory Search actually entered GEM's input — the blog only said it is possible.