Research map / Large language models / Language, safety and interpretability
Predicting Numerals in Text Using Nearest Neighbor Language Models
Taku Sakamoto, Akiko Aizawa
The University of Tokyo · National Institute of Informatics
Read the paperPlace an idea next to itCheck your own paper ↗
10measured effects
6improved
2no clear effect
2hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add kNN search to base LM (kNN-LM) | pre-trained BERT-base · Numeracy-600K | top-1 accuracy (0% error): 12.6% -> 32.7% | Improved |
| add kNN search to base LM (kNN-LM) | fine-tuned BERT-base · Numeracy-600K | top-1 accuracy (0% error): 37.4% -> 39.4% | Improved |
| add kNN search to base LM (kNN-LM) | fine-tuned BERT-base · ACLsent | top-1 accuracy (0% error): 30.1% -> 31.4% | Improved |
| fine-tune the base LM on MNP before kNN search | BERT-base kNN-LM · Numeracy-600K | top-1 accuracy (0% error): 32.7% -> 39.4% | Improved |
| kNN-LM mixing vs kNN search alone | fine-tuned BERT-base · Numeracy-600K | top-1 accuracy (0% error): 40.0% (kNN) vs 39.4% (kNN+LM) | No clear effect |
| use only the [MASK] embedding for kNN context instead of surrounding words (ablation) | kNN search · Numeracy-600K | top-1 accuracy (0% error): 33.7% -> 40.0% | Improved |
| use subsequent-only context instead of before-and-after context (ablation) | kNN search · Numeracy-600K | top-1 accuracy (0% error): 38.1% vs 38.5% (n=1) | No clear effect |
| use kNN search instead of base LM for OOV numerals | fine-tuned BERT-base · Numeracy-600K OOV numerals | top-k accuracy | Improved |
| use a datastore from a different domain (ablation) | kNN search · Numeracy-600K | top-1 accuracy (0% error): 40.0% -> 7.9% (ACLsent datastore) | Hurt |
| use a datastore from a different domain (ablation) | kNN search · ACLsent | top-1 accuracy (0% error): 27.8% -> 5.9% (Numeracy-600K datastore) | Hurt |
Open problems in text generation and evaluation metrics
Do language, text and evaluation results hold beyond one language, one corpus and one LLM judge?
- Results come from one language, one pair or a few mostly high-resource languages. · 14 papers state it
- Data come from one corpus, genre or platform, so other settings are untested. · 14 papers state it
- LLM judges and LLM labels are used without human checks. · 8 papers state it
Closest papers by meaning
- An Empirical Investigation of Contextualized Number Prediction (EMNLP 2020 · similarity 0.88)
- Laying Anchors: Semantically Priming Numerals in Language Modeling (NAACL 2024 · similarity 0.87)
- Why do Nearest Neighbor Language Models Work? (ICML 2023 · similarity 0.87)
- Learning Numeral Embedding (EMNLP 2020 · similarity 0.87)
- Regress, Don't Guess: A Regression-like Loss on Number Tokens for Language Models (ICML 2025 · similarity 0.86)
- Number Cookbook: Number Understanding of Language Models and How to Improve It (ICLR 2025 · similarity 0.84)
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.