atlas

Research map / Large language models / Language, safety and interpretability

Chunk-Distilled Language Modeling

ICLR 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CD-LM, a training-free decoding method that interleaves LM token generation with retrieval of multi-token chunks from a trie datastore keyed by LM hidden states, improving perplexity, efficiency, and knowledge injection.

Problem

Token-by-token LLM generation is inefficient, and adapting pretrained LMs to new domains or knowledge normally requires costly retraining or RAG that adds overhead without efficiency gains.

Approach

Store high-probability multi-token chunks with their preceding contexts in entry-token tries, retrieve chunks by cosine similarity of the LM's own hidden states, and accept them stochastically via a piecewise-linear mapping so that multiple tokens are emitted in one decoding step; a dynamic program gives exact sequence probabilities for perplexity.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Inject retrieved chunks from a domain-specific teacherGPT-2 137M with KCD-LM · WikiText-103, Medical, Federal Register law, and Dockerfile code test setsperplexity: WikiText: 34.83 -> 22.90; Medical: 51.68 -> 24.95; Law: 11.41 -> 8.24; Code: 106.44 -> 50.77Helped
Inject retrieved chunks from a domain-specific teacherGPT-2 137M with KCD-LM · WikiText, Medical, Law, and Code test generationMAUVE: WikiText: 0.016 -> 0.032; Medical: 0.006 -> 0.011; Law: 0.015 -> 0.040; Code: 0.024 -> 0.053Helped
Use KCD-LM instead of kNN-LMGPT-2 137M · WikiText-103, Medical, Federal Register law, and Dockerfile code test setsperplexity: WikiText: 32.19 -> 22.90; Medical: 39.66 -> 24.95; Law: 11.10 -> 8.24; Code: 89.88 -> 50.77Helped
Retrieve self-memory chunks during decodingGPT-2-XL, LLaMA-2, and Mistral with SCD-LM · MT-Bench-80token time saved (TTS, %): GPT-2-XL: 13.74 -> 19.59; LLaMA-2: 2.44 -> 14.89; Mistral: -1.23 -> 11.75Helped
Retrieve self-memory chunks during decodingGPT-2-XL, LLaMA-2, and Mistral with SCD-LM · MT-Bench-80forward passes saved (FPS, %): GPT-2-XL: 23.77 -> 43.33; LLaMA-2: 6.75 -> 32.32; Mistral: 5.86 -> 24.52Helped
Use a question-specific unique datastore instead of a shared datastoreSCD-LM · MT-Bench-10token time saved (TTS, %): GPT-2-XL: 9.28 -> 13.31; LLaMA-2: 8.42 -> 15.94; Mistral: 8.22 -> 16.39Helped
Inject expert-curated Wikipedia hyperlink chunksGPT-2-XL, LLaMA-2, and Mistral with ECD-LM · Alan Turing QAunique entities: GPT-2-XL: 102 -> 145; LLaMA-2: 130 -> 153; Mistral: 143 -> 160Helped
Retrieve private information from a PII datastoreGPT-2-XL / 1.5B with ECD-LM · PII questionsaccuracy (%): 0.0 -> 75.7Helped
Retrieve private information from a PII datastore rather than append it in the promptLLaMA-2 / 6.7B · PII questionsaccuracy (%): 75.5 -> 77.5Helped
Raise the retrieval similarity threshold η (ablation)SCD-LM · MT-Bench-80 generationsimilarity to base LM generationsHelped
Lower the retrieval similarity threshold η (ablation)SCD-LM · Mistral response to the Mars promptchunk useMixed
Use a unique datastore rather than a shared datastore (ablation)SCD-LM on MT-Bench-10 · MT-Bench-10forward passes saved (FPS, %): GPT-2-XL: 31.13 -> 40.72; LLaMA-2: 24.67 -> 26.01; Mistral: 17.43 -> 50.03Mixed

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-103 GitHub Code (Dockerfile subset) Medical Instruction Dataset Pile-of-Law (Federal Register) MT-Bench

Benchmarks: WikiText-103 GitHub Code (Dockerfile) Medical Instructions Pile-of-Law MT-Bench-80 MT-Bench-10 Alan Turing QA

Metrics: perplexity MAUVE token time saved forward passes saved ROUGE-L BLEURT pairwise win rate entity count PII accuracy fluency Likert

Baselines: kNN-LM RETOMATON REST GPT-2 fine-tuned on domain data

Builds on: kNN-LM REST speculative decoding RETOMATON

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy