Reproduce “HeadEdit: Calibrating Language Model Behavior Through the Frozen Unembedding Matrix” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Zirui He, Haiyan Zhao, Jingyu Hu, Yinghao Wu, Chenxi Yuan, Yingcong Li, Yandong Bai, Mengnan Du

HeadEdit tests whether correcting a model’s final hidden-state-to-token readout can reduce behavioral errors across tool use, over-refusal, and factual sycophancy. It learns a compact subspace from paired desirable and undesirable completions, then uses prompt-dependent coordinates to adjust vocabulary scores through the frozen unembedding, without changing model weights. Across nine model–task settings, it improves accuracy; tool gains also reduce necessary-tool retention.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.