Skip to main content
Back

Microsoft's TAP-PER Personalizes LLMs for Millions With 130x Less Storage

TAP-PER replaces per-user LoRA adapters and RAG prompts with compact learned prefix embeddings, cutting per-user storage 130x while beating every baseline on the LaMP benchmark

Pro

Paper, Full Access
  • TAP-PER replaces per-user LoRA adapters and RAG prompts with compact learned prefix embeddings for LLM personalization.
  • Achieves 130x fewer per-user parameters than OPPU and ~half the total footprint of PER-PCS at 1,000-user scale.
  • Beats all baselines on all 6 LaMP benchmark tasks including classification, rating, and text generation.
  • Uses temporal attention borrowed from recommendation systems to weight recent user interactions more heavily -- a key differentiator from prior work.
  • Supports online adaptation by updating only the ~32K-parameter user prefix, no backbone retraining needed.
  • No code released yet; experiments use Llama-3.1-8B and Qwen3-4B backbones on publicly available data.

Personalizing a large language model for millions of users is a harder engineering problem than it looks. The two dominant approaches both hit a wall at scale: prompt-based methods that stuff user history into the context window are brittle and privacy-leaky, while adapter-based methods that train a separate LoRA module per user balloon in storage as your user base grows. A new paper from researchers at Microsoft, Hong Kong Polytechnic University, and Zhejiang University proposes a third path -- and it borrows the playbook from recommendation systems rather than from NLP.

TAP-PER (Temporal Attentive Prefix for PERsonalization) encodes each user's preferences as a tiny learned embedding -- a "prefix" prepended to the model's input -- rather than as retrieved text or a dedicated adapter. The result is a system that outperforms all prior baselines on the LaMP personalization benchmark while using 130x fewer per-user parameters than the leading adapter-based method.

Why the old approaches break at scale

The LLM personalization landscape splits cleanly into two camps, and both have real problems in production.

  • Retrieval-Augmented Generation (RAG) / Profile-Augmented Generation (PAG): Fetch relevant user history and paste it into the prompt. Simple, but performance swings wildly depending on retrieval quality, the optimal number of retrieved items varies task-by-task, and you're literally putting raw user data in the model's input -- a privacy concern.
  • Per-user PEFT adapters (e.g., OPPU): Train a dedicated LoRA for each user. Works well, but OPPU stores ~4.2M parameters per user. At 1,000 users that's already a significant overhead; at 10M users it's untenable. Methods like PER-PCS reduce this via collaborative decomposition, but still rely on RAG or PAG on top, coupling two personalization mechanisms.

Most methods also treat user histories as static context and overlook preference evolution, even though recent interactions are often more indicative of current intent. That's the third failure mode TAP-PER is designed to fix.

TAP-PER architecture overview showing three challenges on the left and the dual-prefix solution on the right

The core idea: borrow from recommender systems

Recommendation systems have spent years solving a very similar problem: how do you model a user's evolving preferences efficiently? The key insight from that literature is that user preferences operate on two timescales simultaneously -- there are stable long-term interests and short-term context-dependent intents. TAP-PER ports this decomposition directly into LLM personalization.

The framework has two stages. First, a shared backbone (Llama-3.1-8B in experiments) is fine-tuned with LoRA on pooled data from all users to learn the task. Then, in Stage 2, that backbone is frozen and two lightweight prefix components are learned on top of it:

  • User-State Prefix (P_u): A small learnable embedding per user, stored in a lookup table. It captures stable, long-term preferences -- think of it as a compressed user profile encoded in continuous space rather than natural language. Each user's entry is only ~32K scalar values.
  • Query-Conditioned Record Prefix (P_q): Generated on-the-fly by attending over the user's full interaction history using a DIN-style attention mechanism (originally from click-through-rate prediction in ads). Crucially, this attention is weighted by two learned temporal decay factors: how many days ago an interaction happened, and how far back it sits in the sequence order. Recent, relevant interactions get upweighted automatically.

The two prefixes are summed and prepended to the query. A shared "bridge LoRA" -- a small adapter trained jointly with the prefixes -- helps the frozen backbone actually condition on these prefix signals deeply, rather than just attending to them superficially. Ablations show removing the bridge causes the largest single performance drop of any component.

Detailed architecture diagram showing the dual-track prefix system with user-state and query-aware prefix components feeding into the frozen backbone

What the numbers show

Experiments on six LaMP tasks show that TAP-PER consistently outperforms prompt-based and model-based baselines across classification, rating, and generation settings. The LaMP benchmark covers a diverse set of real personalization scenarios:

  • LaMP-1: Predicting which paper a researcher will cite (binary classification)
  • LaMP-2N/2M: News categorization and movie tag prediction (multi-class classification)
  • LaMP-3: Product rating prediction (regression)
  • LaMP-4/5: Personalized news headline and scholarly title generation (text generation)

The gains are especially clear on tasks requiring stronger personalization: compared with the best OPPU variant, TAP-PER improves accuracy by 7.2 points on LaMP-2M and ROUGE-1 by 2.8 points on LaMP-5. The results also expose a practical problem with prompt-based approaches: the optimal RAG configuration (how many items to retrieve, whether to add a profile summary) varies substantially across tasks, making them hard to deploy reliably without per-task tuning.

The real win: storage that doesn't explode

The efficiency story is where TAP-PER really separates itself. OPPU maintains a dedicated LoRA adapter for each user (~4.2M parameters), whereas TAP-PER stores only a 32K user-state prefix per user, yielding a 130x reduction in per-user storage.

TAP-PER's remaining footprint is shared across all users: a bridge LoRA (~4.2M) plus the DIN-style attention and projection MLPs (~201M), totaling ~205M shared parameters. With 1,000 users, TAP-PER uses only 5.7% of OPPU's total parameters and about 53% of PER-PCS's. The total parameter count scales almost flat as users grow -- only the tiny per-user embedding table grows linearly, not a full LoRA per user.

Storage and training time scaling comparison between OPPU, PER-PCS, and TAP-PER as user count increases

Temporal signals actually matter

One of the more interesting ablation results concerns the temporal decay. The model learns two scalar coefficients: one penalizing interactions that are far back in calendar time, and one penalizing interactions that are far back in sequence order. Removing both biases causes the largest drop on LaMP-2M, while disabling either one gives intermediate results, indicating that both temporal recency and sequence order contribute to personalization.

A qualitative case study illustrates why: without temporal biases, the model fails to upweight a recent, relevant movie interaction and predicts the wrong tag. The full model, by contrast, attends heavily to recent query-relevant records and gets it right. This is exactly the behavior you'd want in a real recommendation or writing assistant -- your preferences from last week matter more than those from three years ago.

Online adaptation without retraining

A deployed personalization system needs to absorb new user feedback continuously. Because each user's state is just a small prefix embedding, TAP-PER can update it online by running gradient steps on only those ~32K parameters, leaving the shared backbone and bridge LoRA untouched.

Online-Full nearly matches Full-Retrain at the final step, with less than ~1 point difference on both tasks, showing that incremental updates can recover most of the benefit of full retraining without replaying past data. For users with dense interaction histories, updating only the user-state prefix is sufficient. Sparse histories may benefit from also updating the shared query-prefix network, but neither requires touching the backbone.

Limitations to know about

The paper is transparent about where TAP-PER falls short:

  • Very long or noisy histories: The full-history attention works well in experiments, but the authors note it hasn't been tested in regimes with extremely long or noisy user histories where attention quality might degrade.
  • Backbone scale: All experiments use Llama-3.1-8B and Qwen3-4B. Whether the gains hold at 70B+ scale is unknown.
  • Privacy nuance: While user histories aren't pasted into prompts, the per-user prefix embeddings still encode behavioral patterns from private data and need to be treated as sensitive artifacts with proper access controls.
  • Filter-bubble risk: The temporal decay that makes TAP-PER work well also up-weights recent behavior by design, which could narrow the range of content a user sees over time.

No code or model weights have been released alongside the paper. The experiments use publicly available datasets (LaMP benchmark under MIT license), Llama-3.1-8B (Llama 3.1 Community License), and Qwen3-4B (Apache 2.0), so the approach is fully reproducible from the paper's hyperparameter tables. The work is from Microsoft researchers, which suggests potential productization paths, though nothing has been announced.