Language models are increasingly fine-tuned on user behavior logs: the sequences of products a person viewed or bought, used to train the model to recommend and explain the next item. These logs are noisy. In the Amazon Review 2023 data, roughly 30% of "ground-truth" purchases cannot be logically explained by the user's prior history (More Than What Was Chosen). We propose that training on these unexplained targets causes a specific, so far unmeasured kind of forgetting. To fit a purchase that the history does not support, the model has to learn to build a bridge between the target and whatever happens to be in its context. That habit should carry over to other tasks. The prediction is that after this training the fine-tuned model is worse at ignoring irrelevant text in any prompt, for example distractor passages in retrieval-augmented question answering. Standard forgetting checks such as grade-school math (GSM8K) and code generation (HumanEval) give the model clean inputs, so they would not detect this.
The proposal has two parts. The first is a controlled study that tests this mechanism. It varies the fraction of unexplainable targets in a fine-tuning stream while holding the data size fixed, and it measures how quickly accuracy falls as distractors are added to unrelated tasks. The second is a cheap fix that follows from the mechanism. Each training example is scored by how much the user's history helps a frozen copy of the base model predict the target, and examples whose history provides no support are down-weighted. This replaces the expensive LLM-as-a-judge coherence scoring used by prior work with one extra forward pass per example.
Core Claim
Behavioral noise in training targets and contextual noise in prompts are the same failure seen from two sides. The model learns to connect outputs to context that does not justify them. We claim three things. First, continual fine-tuning on behavior streams raises a model's sensitivity to contextual distractors, and the size of the increase tracks the share of incoherent targets, even when GSM8K and HumanEval stay flat. Second, a judge-free "history gain" score identifies those targets about as well as LLM-judge coherence scores do. Third, gating updates by this score reduces the rise in distractor sensitivity more than shielding the model's weights does, at a smaller cost to recommendation accuracy.
The history gain of a training example is the improvement in log-likelihood that the history provides under the frozen base model $\theta_0$:
$$g(x) = \log p_{\theta_0}(y \mid h, u) - \log p_{\theta_0}(y \mid u),$$
Here $y$ is the text of the target item, $h$ is the user's interaction history, and $u$ is the instruction with the user's history removed. Each example's training loss is multiplied by $w(x) = \sigma((g(x) - \tau)/T)$. The threshold $\tau$ and temperature $T$ are tuned on a held-out split, and $\sigma$ is the logistic function. The idea is borrowed from the distraction-aware reader in Improving Zero-shot Reader by Reducing Distractions from Irrelevant Documents. That work penalizes answers drawn from documents with a low query likelihood $P(\text{query}\mid\text{document})$, and it improved Exact Match by 64% on average over naive zero-shot readers. We apply the same "does the context actually support this?" test to training targets instead of answers.
Positioning
Several papers motivate this proposal. More Than What Was Chosen measures the 30% incoherence and introduces C-APO, a variant of preference optimization that down-weights a click when an unchosen item is more coherent with the history than the clicked one. That paper trains on static snapshots and never asks what the training does to the model's other abilities; we study exactly that. It also needs an LLM judge for every candidate, a cost the paper itself names as a limitation. We test whether a single likelihood ratio from the base model can replace the judge.
Other work studies context noise without studying forgetting. Ext2Gen trains an extract-then-generate model on question-answering prompts mixed with up to 25 irrelevant chunks. PRCA compresses retrieved passages for a frozen model. Neither measures how fine-tuning on other data changes a model's distractor sensitivity, and we reuse their noisy-chunk setups as our probe.
A third group of methods prevents forgetting by protecting weights, and these are our main competitors. NMKE updates only narrowly active neurons, RECT keeps only the largest relative weight changes, and Tag-LLM freezes the base model and learns input tags. All three were validated on clean updates: factual edits or structured scientific inputs. Our hypothesis implies that when the targets themselves are incoherent, protecting weights limits how much the model changes but not what it learns. A model trained under a sparse mask can still learn to fabricate connections. We test that directly.
STEAM offers a different response, which is to repair the input history by deleting misclicks and inserting missed items. Its corruption is synthetic and it works on item IDs rather than text. We borrow its noise-injection protocol as an evaluation probe.
Research Program
The base model is gemma-3-4b-it, trained with the released two-stage pipeline (supervised fine-tuning, then C-APO) in cpark88/c-apo. That repository also provides LLM-judge coherence scores for the Amazon rationale data. These scores let us build training streams with a controlled share of incoherent targets, 0%, 15%, 30% and 50%, at a fixed total size. The continual setting presents the Amazon domains one after another (Fashion, Grocery, Scientific, Health), with Beauty and CDs & Vinyl held out for zero-shot transfer.
After each domain we measure three things. Recommendation quality is measured by hit rate and NDCG at 5 and 10 on held-out next items. General ability is measured by GSM8K and HumanEval. Distractor sensitivity is measured by what we call the distraction slope: the fall in Exact Match per added irrelevant passage on Natural Questions and TriviaQA, with 0 to 100 retrieved passages as in the zero-shot reader study, and on HotpotQA, with up to 25 mixed chunks as in Ext2Gen. A second, in-domain probe injects random items into test histories following STEAM, and it measures how much the model's recommendations and explanations shift.
To check whether history gain detects incoherence, we compute its AUROC against the judge coherence labels, and against synthetic misclicks where the true labels are known. AUROC (area under the ROC curve) measures how well a score separates two classes, where 0.5 is chance and 1.0 is perfect.
Baselines
The naive reference point is supervised fine-tuning on the raw logs, trained with LoRA (low-rank adapter matrices added to a frozen model) and with full fine-tuning. Every method receives the same data stream, the same number of tokens, the same optimizer budget and an equal hyperparameter sweep of 12 configurations, selected on a validation split that mixes recommendation and distraction metrics. Beside it sits the frozen base model with a prompt telling it to ignore irrelevant history items. This is the zero-forgetting reference that every trained method must beat on recommendation.
The strongest existing method for behavioral noise is C-APO run through its official code. The file reports results for it only as a 1.65× relative click-through gain in a live A/B test and 84.33% "Persuasive" explanation ratings. We found no reported offline hit-rate result on Lacuna for C-APO on Amazon Review 2023, so we reproduce it ourselves. Our method beats it if it matches C-APO's hit rate within one standard error over three seeds and has a lower distraction slope, without using the judge.
The strongest weight-protection baselines are RECT, which keeps the top 40% of relative changes (the setting its paper reports as preserving general abilities while retaining over 94% of editing performance), and NMKE-style neuron masking. NMKE kept a 94% edit success rate after 2,000 sequential edits where AlphaEdit fell to 32%, but that was on clean factual edits. Each is also run combined with our gating.
The ablations that isolate the key ingredient down-weight the same fraction of examples by three other rules: at random, by the fine-tuned model's own loss (the "drop high-loss examples" rule used in noisy-label learning), and by the judge's coherence score as an oracle. If history gain does no better than random or loss-based selection, the mechanism we claim does not hold.
Why not just…?
Why not just use C-APO's judge scores to filter the stream? That is a legitimate alternative, and we include it as an oracle. If judge filtering reduces the distraction slope as much as our gating, the mechanistic finding still holds and our method's contribution narrows to cost. The cost saving is real: one extra forward pass per example instead of LLM calls over every candidate. We will report both outcomes plainly.
Why not just drop high-loss examples? Loss mixes up targets that are hard but coherent with targets that are incoherent. A rare item that the history explains well can still have high loss. History gain conditions on whether the context helps, which is the property our mechanism concerns. The loss-filtering ablation at a matched drop rate settles the question. If it ties with history gain, we will say the simpler rule suffices.
Why not just protect the weights with LoRA, RECT or NMKE? These methods limit how much the weights change. Our hypothesis says the damage comes from what the update teaches. In the AlphaEdit results reported in the NMKE paper, updates confined to a small, localized set of parameters still drove GSM8K and HumanEval to nearly 0% after 1,500 edits, so restricting the size or location of an update alone does not guarantee preservation. The comparison of RECT alone, gating alone and the two combined shows whether weight protection already removes the rise in distraction slope. If it does, our central claim fails.
Why not just add general-domain replay? Replaying clean data could restore distractor robustness. We include a replay arm with a matched share of question-answering data that contains no distractors, and the question becomes whether replay closes the slope gap at the same token budget.
Why not just denoise histories at the input, as STEAM does? Repairing the history does not fix a target that is itself unexplained. STEAM corrects the sequence, not the label. We test history repair as an additional arm.
Decisive Checks
The study turns on a dose-response test. At a fixed data size, the distraction slope after raw fine-tuning should grow with the incoherent fraction from 0% to 50%, while GSM8K and HumanEval change little. If the slope stays flat, the proposal's premise fails and we report that as a negative result.
Second, history gain should reach an AUROC well above chance against both judge labels and synthetic misclicks. Third, gated training should cut the slope increase by more than RECT does at matched recommendation accuracy. A useful external reference here is that Ext2Gen's explicit training on noisy chunks moved Llama3.1-8b's average QA score from 0.473 to 0.557. A behavioral fine-tune that erases a gap of that size would be practically important.
Finally, gating may down-weight purchases that are genuinely exploratory. We will report hit rate separately on targets with low history gain, so that this cost is visible rather than averaged away.
References
- More Than What Was Chosen: LLM-based Explainable Recommendation Beyond Noisy User Preferences
- Improving Zero-shot Reader by Reducing Distractions from Irrelevant Documents in Open-Domain Question Answering
- Aligning Extraction and Generation for Robust Retrieval-Augmented Generation
- PRCA: Fitting Black-Box Large Language Models for Retrieval Question Answering via Pluggable Reward-Driven Contextual Adapter
- Edit Less, Achieve More: Dynamic Sparse Neuron Masking for Lifelong Knowledge Editing in LLMs
- Model Editing Harms General Abilities of Large Language Models: Regularization to the Rescue
- Tag-LLM: Repurposing General-Purpose LLMs for Specialized Domains
- A Self-Correcting Sequential Recommender