SlimPer Scales Recommendation Histories Without Quadratic Attention

A compact knowledge-base backbone queries full user histories at each layer, improving offline ranking metrics while cutting per-example FLOPs by 8×–25×.

Editorial Desk·July 28, 2026·5 min readstrong

Underlying Paper

SlimPer: Make Personalization Model Slim and Smart

Transformer-style architectures are increasingly adopted for industrial recommendation systems, yet they inherit a design premise misaligned with the task: generative models rely on per-token autoregressive prediction, which justifies maintaining large intermediate tensors that scale with sequence length. In contrast, recommendation systems produce a single set of relevance scores for each pair without token-level supervision. Leveraging this observation, we propose SlimPer, which reformulates personalized ranking as iterative refinement of a compact, unified knowledge base. At each layer, the model selectively queries raw multi-modal user-side tokens, computes explicit relevance matching scores, and refines the knowledge base, all in O(N) per-layer cost with a fixed-size intermediate representation. As a result, model depth is decoupled from user history length, enabling deeper relevance understanding without proportional growth in compute or memory; request-only optimization further trims memory by sharing a single copy of user-side tokens across all candidate items. SlimPer unifies sparse, dense, and sequence features within a single backbone and provides inherent interpretability through its attention mechanism. Deployed on Instagram Reels and Feed, SlimPer yields measurable improvements in user engagement while streamlining the overall system and enabling effective modeling of 10k+ fine-grained user history events.

arXiv:2607.12281Submitted: Jul 15, 2026v1

Industrial recommenders increasingly borrow transformer-style sequence modeling, but their objective is different from language modeling: a ranking model scores a user-item pair rather than predicting every token. SlimPer starts from that mismatch. Instead of carrying an NN-length hidden state through every layer, the paper represents the current user-item hypothesis as a fixed-size knowledge base and repeatedly queries raw user-side evidence from it.

The result is a recommendation architecture built around long user histories without making depth proportional to history length. The authors report deployment on Instagram Reels and Feed, with offline gains across engagement tasks and full-traffic launches in production.

Core Contribution

SlimPer’s main move is to separate evidence from state. User-side tokens remain available at every layer, but the intermediate representation is a compact K×dK \times d knowledge base rather than a full sequence tensor. That lets the model stack refinement layers while keeping memory tied to KK, not to the number of historical events.

Figure 1 summarizes the three design choices: a slim fixed-size knowledge base, complete access to user-side tokens at each layer, and request-only optimization that shares user features across candidate items.

Figure 1. High-level overview of SlimPer. Three design principles: (1) Slim --- fixed-size knowledge base (K d), cost decoupled from input length N; (2) Complete Access --- user-side tokens queried at every layer; (3) ROO-Aware --- user-side tokens computed once and shared across all candidates in a request.

This is not simply a smaller transformer. The paper argues that recommendation needs selective, discriminative relevance matching, not token-level generation. SlimPer therefore spends capacity on user-item matching rather than on preserving pairwise user-token interactions that may not affect the final ranking score.

Technical Approach

Each SlimPer layer follows a select-match-refine loop. The current knowledge base generates queries; all user-side sparse and sequence tokens provide keys and values; the model selects relevant evidence by modality-aware attention. It then computes explicit dot-product relevance scores against learned templates, and uses those scores plus dense features to update the knowledge base for the next layer.

Figure 2 shows the multi-layer form of this loop: a compact knowledge base is refined layer by layer while repeatedly accessing the full user history.

Figure 2. Architecture of the multi-layer SlimPer model. Each layer performs iterative refinement of a compact knowledge base (K=16--64 slots) by querying the full set of user-side tokens (N=O(10^3)--O(10^4) in production), decoupling the memory and compute cost of stacking layers from input sequence length.

The tokenization module brings sparse, dense, and sequential signals into one backbone. Sparse features are embedding-pooled, events are encoded from content, action type, temporal information, and context, and dense features are projected through an MLP. In production terms, the paper describes N=O(103)N=O(10^3) to O(104)O(10^4) user-side tokens, K=64K=64 knowledge-base slots, and 5 to 7 SlimPer refinement layers for the main Feed and Reels settings.

The architecture also incorporates request-only optimization. Because a ranking request usually scores many candidate items for the same user, SlimPer computes user-side tokens once per request batch and shares them across candidates. That is a practical systems detail, but it matters: the paper attributes part of the memory reduction to avoiding duplicate user-side representations per item.

Results and Analysis

The offline evaluation compares SlimPer with Instagram’s existing late-fusion baseline, described as HSTU for variable-length user history plus Wukong for fixed-size sparse and dense features. Normalized Entropy is the main offline metric; lower is better, and the authors state that an improvement of about 0.03% is empirically meaningful.

On Reels, SlimPer with 2k events improves NE by -0.51% for reshare and gives an 11.0% QPS gain with 9.32% lower memory. With 5k events, the model improves NE further, including -0.80% reshare and -0.62% save, but incurs a 10.0% QPS regression and 4.59% higher memory. Feed shows the same trade-off: 1k events improves like NE by -0.54% with 12.5% higher QPS and 18.12% lower memory, while 4k events reaches -1.05% save NE with a 16.07% QPS regression and 2.04% higher memory.

The scaling result is the clearest evidence for the design. At sequence length 2,048, the paper estimates about 24 GFLOPs for the baseline HSTU encoder versus about 3 GFLOPs for SlimPer, an 8× reduction. At 4,096 tokens, the estimate is 74 versus 5 GFLOPs, or 16×. At 6,144 tokens, it is 150 versus 6 GFLOPs, or 25×. Figure 4 plots the quality-efficiency curve and shows SlimPer gaining more NE as history length grows while avoiding the steeper throughput cost of the baseline.

Figure 4. Quality--efficiency scaling as user-history sequence length grows (2k--6k). Each curve traces one model (SlimPer vs.\ the baseline) across sequence lengths; the x-axis is training QPS regression and the y-axis is NE win, both relative to the baseline (\%). SlimPer sustains larger NE wins at smaller QPS regressions, and its advantage widens as sequence length increases.

Ablations support the mechanism but also define its operating range. Reducing the knowledge base from K=64K=64 to K=4K=4 worsens NE by +1.2% while improving QPS by 23.2%; intermediate values recover much of the quality. Layer depth has a softer optimum: 7 layers is the reported baseline, 3 and 5 layers are worse by +0.32% and +0.14% NE, and 9 layers slightly improves NE by -0.12% but costs 7.16% QPS and 4.92% memory.

Limitations

The strongest caveat is comparability. The authors evaluate against a mature internal baseline rather than recent unified architectures such as OneTrans, HHFT, or RankMixer, because those systems were not directly comparable in Meta’s production stack. The experiments also use internal Instagram training and evaluation data, so exact reproduction outside Meta is not possible. The paper gives architectural details and ablations, but the central deployment evidence remains tied to one company’s recommender infrastructure.

Evidence Box

strong

Key Claims

  • Fixed-size knowledge base decouples model depth from user-history length
  • Full user-side token access preserves fine-grained behavioral evidence at every layer
  • Request-only optimization reduces redundant user-feature computation across candidates
  • Attention weights provide event-level attribution for recommendation decisions

Key Results

  • Reels 2k events: -0.51% reshare NE with +11.0% QPS and -9.32% memory versus baseline
  • Feed 4k events: -1.05% save NE with -16.07% QPS and +2.04% memory versus baseline
  • Estimated FLOPs at 2,048 tokens: ~3 GFLOPs for SlimPer versus ~24 for baseline HSTU, about 8× lower
  • Estimated FLOPs at 6,144 tokens: ~6 GFLOPs for SlimPer versus ~150 for baseline HSTU, about 25× lower

Limitations & Caveats

  • Direct comparison limited to Meta’s mature HSTU plus Wukong production baseline
  • No reproducible public benchmark because experiments use internal Instagram data
  • Longer-history variants trade quality gains for QPS regressions and small memory increases
  • Ablations show quality degrades when the knowledge base is reduced too aggressively

Related Articles

Readers are encouraged to consult the original arXiv paper for complete details. SOTA Papers does not make claims beyond what is supported by the authors' reported evidence.