---
title: "Mitigating memorization in LLMs"
description: "LLMs evaluated on historical prediction benchmarks can score well by recalling memorized outcomes from pretraining rather than reasoning, so an intern project measured and tried to mitigate this using a cricket match-preview dataset, comparing accuracy before and after the model's knowledge cutoff."
url: "https://swe.quest/articles/mitigating-memorization-in-llms-72b97a002db22906"
canonical: "https://blog.janestreet.com/mitigating-memorization-in-llms/"
source: "Jane Street Tech Blog"
published: "2026-09-30"
difficulty: "hard"
kind: "Research"
reading_minutes: 6
tags: ["llms","evals","model-training","ai-safety"]
---

# Mitigating memorization in LLMs

A post on [Jane Street Tech Blog](https://swe.quest/sources/jane-street.md), published 2026-09-30, 6 min read, Research. Original: [https://blog.janestreet.com/mitigating-memorization-in-llms/](https://blog.janestreet.com/mitigating-memorization-in-llms/)

## Summary

LLMs evaluated on historical prediction benchmarks can score well by recalling memorized outcomes from pretraining rather than reasoning, so an intern project measured and tried to mitigate this using a cricket match-preview dataset, comparing accuracy before and after the model's knowledge cutoff. Divergence decoding, which steers a large model's logits using two small auxiliary models trained on different date cutoffs, reduced pre-cutoff performance without hurting post-cutoff accuracy, while distilling that behavior back into weights failed, likely due to a poor data mix. Rewriting previews as podcast transcripts improved post-cutoff results more than pre-cutoff, and Natural Language Autoencoders revealed structure such as task vectors from fine-tuning and decisions forming in middle layers, though they gave no usable memorization signal.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [AI safety](https://swe.quest/tags/ai-safety.md) (AI & ML)

## Prerequisites

- LLM pretraining and knowledge cutoffs ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- logit-level decoding
- model distillation
- autoencoders and activations

## Keywords

divergence decoding, Natural Language Autoencoder, distillation, CommonCrawl, Jane Street

## Related posts

- [Accelerate RL rollouts by up to 50% with distribution-aware speculative decoding](https://swe.quest/articles/accelerate-rl-rollouts-by-up-to-50-with-distribution-aware-speculative-decoding-1fa2a300c01f2135.md): Together AI · 2026-04-24 · Hard · 5 min read · Inference & serving, Model training, LLMs, Performance engineering, Data structures
  Distribution-aware speculative decoding (DAS) speeds up the rollout phase of LLM RL post-training, which can consume ~70% of training time due to long-tail straggler generations, while keeping outputs identical to standard decoding.
- [Faster Text Generation with Self-Speculative Decoding](https://swe.quest/articles/faster-text-generation-with-self-speculative-decoding-0171e077befc3347.md): Hugging Face · 2024-11-20 · Hard · 13 min read · Inference & serving, LLMs, Performance engineering
  Self-speculative decoding from the LayerSkip paper drafts tokens by exiting early from a model's own intermediate layers and verifies them with the remaining layers.
- [Aligning LLM-as-a-Judge with Human Preferences](https://swe.quest/articles/aligning-llm-as-a-judge-with-human-preferences-ffa838b947416549.md): LangChain · 2026-08-26 · Easy · 6 min read · Evaluation, LLMs
  LangSmith evaluators now store human corrections to LLM-as-a-Judge scores as few-shot examples, optionally with explanations, and inject them into the judge prompt on later runs so the evaluator aligns with team preferences without manual prompt engineering.
- [The sleep framework: A new way for LLMs to retain knowledge in continual learning](https://swe.quest/articles/the-sleep-framework-a-new-way-for-llms-to-retain-knowledge-in-continual-learning-b15c6213801b74cb.md): Google Research · 2026-10-27 · Hard · 7 min read · Model training, LLMs, Machine learning
  A sleep phase for continual learning alternates LLM operation between an active (wake) phase that stores information in fast short-term memory and an offline sleep phase that consolidates it into long-term parameters.
- [A failed experiment: Infini-Attention, and why we should keep trying?](https://swe.quest/articles/a-failed-experiment-infini-attention-and-why-we-should-keep-trying-49bb19744a04d6da.md): Hugging Face · 2024-08-14 · Hard · 16 min read · LLMs, Model training, Evaluation
  A Hugging Face reproduction of Google's Infini-attention found that retrieval quality degrades as memory is compressed more times.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
