Reproduce “Monotonic Representation of Numeric Properties in Language Models” 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
Benjamin Heinzerling, Kentaro Inui
This research investigates how language models (LMs) internally represent numeric properties such as birthyear or population. It demonstrates that LMs encode these properties in compact, monotonic linear subspaces within their activation space, enabling precise, causal manipulation of the model's numeric output through targeted interventions.
Key insights
- Language models consistently develop compact, low-dimensional (2-6 components for 95% R-squared) monotonic representations of numeric properties, indicating an internal understanding of quantitative order.
- Larger models (Llama 2 13B vs. 7B) exhibit improved disentanglement of numeric property representations, where targeted interventions have stronger effects than incidental side effects on other properties.
- The emergence of these structured numeric representations appears to be a consistent outcome of the general pretraining process across different language models (Llama 2, Falcon, Mistral).
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.