Research map / Large language models / Language, safety and interpretability
FastMem: Fast Memorization of Prompt Improves Context Awareness of Large Language Models
Junyi Zhu, Shuochen Liu, Yu Yu, Bo Tang, Yibo Yan, Zhiyu Li, Feiyu Xiong, Tong Xu, Matthew B. Blaschko
National University of Singapore · University of Science and Technology of China · KU Leuven
Read the paperPlace an idea next to itCheck your own paper ↗
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.
On benchmark leaderboards
- HotpotQA leaderboard accuracy 69.3 · rank 28 of 71 papers
- NQ leaderboard accuracy 86.3 · rank 3 of 24 papers
This paper tried a common change: Larger batch size
increase batch size from 1 to 16 · NQ-SWAP and MemoTrap · accuracy Mixed
What 848 accepted papers report for this change
- 490 improved
- 116 no clear effect
- 57 mixed
- 185 hurt
- Predicting the Emergence of Induction Heads in Language Model Pretraining ICML 2026 · increase batch size (fixed context 1024) · Natural data (CC100) · induction head emergence point (updates): rho=-1.0, p<0.001Improved
- When RL Meets Adaptive Speculative Training: A Unified Training-Serving System ICML 2026 · Increase batch size from 1 to 32 · MiniMax M2.1 FP8 · speedup: 1.57x -> 1.25xHurt
- Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking ICML 2026 · increase per-device batch size to 10 using freed memory · Llama 3-8B, 128K · throughput (TPS): 2464.10 (Ulysses) -> 2526.77 (UPipe)Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add FastMem (memorize prompt before inference) | Llama 3-8B-Instruct · NQ-SWAP | accuracy: 59.1% -> 71.6% | Improved |
| add FastMem | Llama 3-8B-Instruct · HotpotQA | accuracy: 67.1% -> 69.3% | Improved |
| add FastMem with format instructions in memorization | Qwen 1.5-4B-Chat · NQ-SWAP | output format failure rate: 34.9% -> 25.5% | Improved |
| add two-shot ICL | Llama 3-8B-Instruct · NQ and HotpotQA | accuracy: NQ 0.845 -> 0.834; HotpotQA 0.671 -> 0.616 | Hurt |
| add CAD decoding | Llama 3-8B-Instruct · NQ and HotpotQA | accuracy: NQ 0.845 -> 0.799; HotpotQA 0.671 -> 0.642 | Hurt |
| add FastMem | Qwen 1.5-7B-Chat · NQ and HotpotQA | accuracy: NQ 0.829 -> 0.826; HotpotQA 0.602 -> 0.594 | Hurt |
| add FastMem | Llama 3-70B-Instruct · NQ-SWAP | accuracy: 0.630 -> 0.746 | Improved |
| add FastMem | Llama 3-8B-Instruct · XSUM | FactKB: 0.635 -> 0.710 | Improved |
| add CAD decoding | Llama 3-8B-Instruct · CNN-DM | FactKB: 0.986 -> 0.955 | Hurt |
| tune more last blocks instead of only the last FFN (ablation) | FastMem Llama 3-8B-Instruct · NQ-SWAP/MemoTrap etc. | accuracy | Hurt |
| increase memorization epochs beyond 10 (ablation) | FastMem Llama 3-8B-Instruct · accuracy vs perplexity | accuracy | No clear effect |
| increase batch size from 1 to 16 (ablation) | FastMem Llama 3-8B-Instruct · NQ-SWAP and MemoTrap | accuracy | Mixed |
Closest papers by meaning
- Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Pass (ICLR 2025 · similarity 0.89)
- Mitigating Memorization in Language Models (ICLR 2025 · similarity 0.89)
- Supervised Knowledge Makes Large Language Models Better In-context Learners (ICLR 2024 · similarity 0.89)
- Doc-to-LoRA: Learning to Instantly Internalize Contexts (ICML 2026 · similarity 0.88)
- Leveraging Attention to Effectively Compress Prompts for Long-Context LLMs (AAAI 2025 · similarity 0.88)
- MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attention (NeurIPS 2024 · similarity 0.88)
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.
