NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Personalizing Toward the Stereotype: Measuring and Correcting Inferred-Identity Bias in On-Device Language Model Personalization

When a language model personalizes its output by reading a user's past activity, such as earlier reviews, emails, or movie ratings, it has two ways to use that history. It can learn what this particular person tends to do. Or it can work out what kind of person this seems to be and fall back on what it believes "people like that" do. The second route is a channel for bias amplification, meaning that a model turns mild statistical skews about demographic groups into strong, systematic tendencies. The user's history becomes evidence about their gender, nationality, or age, and the model's stereotypes about that group then drive its output. This proposal measures how much personalized output reflects the inferred group rather than the individual. It then tests a correction that works only on the user's device, because only the device holds the private history needed to tell the person apart from the stereotype.

This matters now because personalization is moving onto client devices for privacy reasons. In those designs the server sends general models or candidates and the device filters or conditions them using private local history (TiVo, Privacy protection in personalized search). That same privacy means no central auditor can see what personalization does to an individual user. The one place with both the signal and the authority to check it is the client. The proposal therefore treats the client as the site of both the measurement and the fix.

Core Claim

Retrieval-augmented personalization is the approach benchmarked by LaMP: the system pulls the $k$ most relevant items from a user's history into the prompt. We claim this approach contains an implicit demographic-inference step. Using the directional language of Directional Bias Amplification, history content first suggests an identity (task context to attribute, $T \to A$), and that inferred identity then shifts predictions (attribute to task, $A \to T$). The result is output that overshoots the user's own revealed preferences in the direction of the model's group stereotype.

The new contribution has three parts. The first is a per-user amplification measure that needs no ground-truth demographics. The second is a controlled counterfactual protocol on LaMP that separates the two directions. The third is a client-side correction, individual anchoring, which pulls the personalized prediction distribution toward the distribution implied by the user's own local history. It can be thought of as a per-user, private version of the base-rate threshold calibration that Wang and Russakovsky showed collapses measured amplification in centralized classifiers.

We define the stereotype direction from the model itself. Let $q(y \mid g)$ be the non-personalized model's distribution over output labels $y$ when the prompt states only that the user belongs to group $g$. The stereotype direction for a group pair is then $s_{g,g'} = q(\cdot \mid g) - q(\cdot \mid g')$.

For user $u$, let $m_u$ be the model's average predicted label distribution across that user's test queries with personalization on. Let $h_u$ be the empirical label distribution in the user's own history. Let $\hat g_u$ be the group the model infers when asked to guess from that history. We then define individual excess amplification as

$$\mathrm{IEA}_u = \langle\, m_u - h_u,\; s_{\hat g_u, \bar g} \,\rangle ,$$

where $\bar g$ is the contrasting group. A positive value means personalization pushed the user's predictions past their own history and toward the stereotype of the group the model thinks they belong to.

The $A \to T$ component is measured separately by counterfactual cue injection:

$$\mathrm{AT}_u = \langle\, m_u^{(g)} - m_u^{(g')},\; s_{g,g'} \,\rangle ,$$

where $m_u^{(g)}$ is the prediction distribution after inserting task-irrelevant identity cues for group $g$ into the profile entries. The labels and content of those entries stay fixed.

Research Program

The program has three stages. In the first, we build a counterfactual personalization testbed on the LaMP classification tasks that have discrete outputs and natural stereotype axes: Movie Tagging (15 categories) and Product Rating (1–5 stars). For each test user we create paired profiles. Each pair inserts first-person identity references for one group or its contrast (gendered self-reference, a name, a stated nationality or age) into a fixed fraction of history entries, leaving the labels and the task-relevant text unchanged. A neutral control inserts length-matched identity-free sentences. This isolates $A \to T$. For $T \to A$ we use the uninjected profiles. We ask the model to guess the user's demographic, then test whether $\mathrm{IEA}_u$ follows the guess across users. We also check whether ablating the history items that drive the guess, found by leave-one-out on the guess probability, reduces the overshoot.

In the second stage we extend the measurement to the generative LaMP tasks: News Headline, Email Subject, and Tweet Paraphrasing. Here we measure gendered and status-laden wording in the outputs, using the masked-language-model probing approach of Ding. That work found ChatGPT standardizes and exaggerates gendered terms in recruitment text. We compare it against the same measure computed on the user's own history.

In the third stage we build and evaluate individual anchoring on device. For classification, the client rescales the model's label probabilities so that, averaged over recent queries, the personalized marginal moves toward a shrinkage estimate that mixes $h_u$ with the global marginal. The mixing weight depends on how many history items the user has, so users with sparse histories are not overfit. For generation, the same idea becomes a logit penalty on the stereotype-direction vocabulary. The penalty is scaled by how far the output's attribute score exceeds that of the user's own history. Everything runs on the client with small open models, and we report latency on commodity edge hardware. RAPT showed that client-side text processing for language model personalization is feasible on a Raspberry Pi 4.

The scope is deliberately limited to retrieval-based personalization. Local adapter fine-tuning and closed feedback loops raise related risks. The Iterated Learning analysis predicts collapse toward the prior's peak (Bias Amplification in Language Model Evolution). The ridge-regression theory predicts that disparity peaks when parameter count equals sample count (An Effective Theory of Bias Amplification). We list both as follow-ups rather than folding them in.

Baselines

The naive reference point is the non-personalized model, which runs the same queries with no history in the prompt. It sets the floor for both accuracy and amplification. LaMP reports that personalization moves Movie Tagging accuracy from about 47% to over 64% with Fusion-in-Decoder and Email Subject ROUGE-1 from 0.379 to 0.587. Any correction that gives back most of that gain has failed, whatever it does to bias.

The main reference system is unmodified LaMP-style personalization, using BM25 or Contriever retrieval with in-prompt augmentation, the strongest personalization method in the file. All arms share the same model, the same $k$, the same retriever, and the same user splits under both user-based and time-based separation. Our claim is that this system shows positive mean $\mathrm{IEA}$ and $\mathrm{AT}$. No reported result was found on Lacuna for any bias or fairness metric on LaMP, so this stage is a first measurement rather than a comparison against a published number.

The strongest competing debiasing method is global base-rate calibration in the style of Wang and Russakovsky. Prediction thresholds or priors are adjusted on the server to match population label statistics, and every user gets the same adjustment. In their setting this reduced measured bias amplification from 0.040 to 0.001. That is a strong prior that calibration alone may be enough, so it receives the same tuning budget as our method: the same validation users and the same grid over the calibration strength. To beat it, individual anchoring must reach lower mean $\mathrm{AT}$ and $\mathrm{IEA}$ at equal or better personalized accuracy. It must also show a smaller spread of $\mathrm{IEA}$ across users, which is the quantity global calibration cannot target.

A third baseline is local cue stripping. A client-side redactor removes names, pronouns, and explicit identity statements from history before retrieval. This is the textual analogue of attribute removal in GANSan, which sanitizes tabular records locally until a discriminator can no longer infer the sensitive attribute (a balanced error rate of about 0.48 at about 0.94 fidelity on Adult Census Income).

The key ablation removes the per-user part of our method. It anchors to the global marginal with the same mechanism. This tells us whether any gain comes from the private history signal itself or only from calibration in general.

Why not just…?

Why not just calibrate to global base rates, as Wang and Russakovsky did? This is the real threat, and the experiment is built to settle it. Global calibration corrects the average user. The harm we study, however, is that two users with identical revealed preferences receive different predictions because of inferred identity. A correction that is identical for both users does not remove a difference between them. If global calibration nonetheless drives $\mathrm{AT}_u$ to near zero, the per-user contribution is unnecessary and we will report that. Wang and Russakovsky also caution that dataset base rates are themselves not a neutral reference when the data embody societal bias. Anchoring to the individual's own record sidesteps that problem.

Why not just strip demographic cues from the local history? The same paper reports that masking people in images lowered $A \to T$ bias but raised $T \to A$ bias, because the model leaned harder on context. GANSan likewise notes that non-sensitive features carry indirect correlations a downstream model can exploit. We expect cue stripping to reduce $\mathrm{AT}$ on the injected profiles while leaving $\mathrm{IEA}$ on natural profiles mostly intact, since inference from content survives redaction. The stage-one $T \to A$ analysis tests exactly this. If stripping does close both gaps, it is the simpler answer and we will say so.

Why not just use a safety-aligned model or adjust decoding? FairBelief finds hurtful completions among the top-ranked predictions, for example a HONEST score of 0.257 ± 0.038 for Vicuna 7b. This suggests temperature or top-$p$ changes will not remove stereotype-driven shifts. Uncovering Stereotypes in LLMs shows that refusal falls as task complexity rises (ChatGPT's choice refusal percentage drops from 32.8% to 29.4%). Personalization is a high-context, secondary-decision setting, where they argue guardrails are weakest. We include one instruction-tuned, safety-aligned model and a decoding sweep to check this directly.

Why not just evaluate personalized models on StereoSet or CrowS-Pairs? Those benchmarks score fixed sentence pairs with no user context. They tell us whether a model holds stereotypes (StereoSet reports GPT2-large at a stereotype score of 60.1), not whether personalization routes a specific user's history through them. We report them only as a model-level covariate.

Proposed Experiments

The first decisive check is whether the phenomenon exists. Mean $\mathrm{AT}_u$ under cue injection on Movie Tagging and Product Rating should differ from zero, with a 95% user-level bootstrap interval that excludes the neutral-insertion control. If it does not, the proposal becomes a well-powered negative result. That would still be useful to the privacy-personalization literature, which has never measured this quantity.

The second check is whether the effect grows with personalization strength. We sweep $k$, since LaMP shows that more history helps accuracy. The prediction is that $\mathrm{IEA}$ rises with $k$ until the user's own signal dominates, which would show the amplification lives in the retrieval channel. We also test across model sizes, following StereoSet's reported 0.87 rank correlation between language modeling ability and stereotype score, to see whether stronger personalizers amplify more.

The third check is the head-to-head comparison. For each arm we plot personalized accuracy (or ROUGE-1 on generative tasks) against mean and 90th-percentile $\mathrm{IEA}$ across users. Individual anchoring succeeds if it dominates global calibration and cue stripping on this frontier. It must also keep at least most of LaMP's personalization gain over the non-personalized floor, and its added cost must fit on-device latency budgets. A user-level analysis completes the picture. We split users by whether their history is stereotype-consistent or counter-stereotypical, and we expect the largest benefit for counter-stereotypical users. Those are the people for whom inferred-identity personalization most clearly replaces the person with the group.