atlas

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

Interpretable Next-token Prediction via the Generalized Induction Head

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 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 the Generalized Induction-Head Model (GIM), an interpretable retrieval module that combines exact n-gram matching with fuzzy matching via a distilled neural similarity model, improving Infini-gram for language modeling and fMRI response prediction.

Problem

Interpretable next-token predictors such as Infini-gram lag far behind black-box LLMs, largely because exact n-gram matching cannot adapt to novel contexts or minor input variations like typos and rephrasings.

Approach

Generalize the induction head into an interpretable in-context retrieval module that scores sequence similarity by a small distilled Fuzzy Matching Model (trained to match LLaMA-2-7B next-token distributions) and predicts via a similarity-weighted count over tokens following matches, integrated with Infini-gram.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add GIM to Infini-gram using BabyLM-dev as referenceInfini-gram · BabyLM-test (GPT-2 tokenizer)accuracy (%): 37.6 -> 42.2 (+4.6)Helped
Add GIM to Infini-gram using OpenWebText as referenceInfini-gram · BabyLM-test (GPT-2 tokenizer)accuracy (%): 16.7 -> 41.8 (+25.1)Helped
Add GIM to Infini-gram using Pile-train as referenceInfini-gram · FineWeb (LLaMA-2 tokenizer)accuracy (%): 39.3 -> 38.0 (-1.3)Hurt
Use fuzzy rather than exact matchingGIM · BabyLM-test (LLaMA-2 tokenizer)accuracy (%): 37.0 -> 42.7Helped
Add reverse KLD loss to CE training (ablation)Fuzzy Matching Model · BabyLM-test (LLaMA-2 tokenizer)accuracy (%): 42.7 -> 43.2Helped
Replace reverse KLD loss with forward KLD loss (ablation)Fuzzy Matching Model · BabyLM-test (LLaMA-2 tokenizer)accuracy (%): 43.2 -> 42.8Hurt
Add CE loss to reverse KLD training (ablation)Fuzzy Matching Model · BabyLM-test (LLaMA-2 tokenizer)accuracy (%): 41.9 -> 43.2Helped
Replace sinusoidal positional encoding with relative positional encoding (ablation)Fuzzy Matching Model · BabyLM-test (LLaMA-2 tokenizer)accuracy (%): 37.0 -> 43.2Helped
Train the fuzzy model on Pile-of-law instead of OpenWebText (ablation)Fuzzy Matching Model · BabyLM-test (LLaMA-2 tokenizer)accuracy (%): 43.2 -> 41.8Hurt
Remove GIM (fuzzy) (ablation)Infini-gram with GIM, BabyLM-dev reference · BabyLM-test (LLaMA-2 tokenizer)accuracy (%): 43.1 -> 42.2Hurt
Remove GIM (fuzzy) (ablation)Infini-gram with GIM, OpenWebText reference · BabyLM-test (LLaMA-2 tokenizer)accuracy (%): 43.2 -> 38.3Hurt
Remove GIM (exact) (ablation)Infini-gram with GIM, OpenWebText reference · BabyLM-test (LLaMA-2 tokenizer)accuracy (%): 43.2 -> 43.1No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: BabyLM OpenWebText Pile-train Pile-val FineWeb Pile-of-law fMRI podcast dataset (Huth lab, UTS03)

Benchmarks: BabyLM-test FineWeb Pile-val fMRI voxel correlation on UTS03

Metrics: next-token accuracy voxel-wise correlation speculative decoding speed-up acceptance rate

Baselines: Infini-gram GPT-2 LLaMA-2-7B Eng1000 LLaMA2-70B

Builds on: Infini-gram induction heads kNN-LM Eng1000

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