AI Paper Atlas

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

EMNLP 2024Large language models › Language, safety and interpretabilityapproach: In-context learning analysis14 citations (OpenAlex)

National University of Singapore · University of Science and Technology of China · KU Leuven

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
5improved
1no clear effect
6hurt
1mixed

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

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

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 changedWhereMeasuredEffect
add FastMem (memorize prompt before inference)Llama 3-8B-Instruct · NQ-SWAPaccuracy: 59.1% -> 71.6%Improved
add FastMemLlama 3-8B-Instruct · HotpotQAaccuracy: 67.1% -> 69.3%Improved
add FastMem with format instructions in memorizationQwen 1.5-4B-Chat · NQ-SWAPoutput format failure rate: 34.9% -> 25.5%Improved
add two-shot ICLLlama 3-8B-Instruct · NQ and HotpotQAaccuracy: NQ 0.845 -> 0.834; HotpotQA 0.671 -> 0.616Hurt
add CAD decodingLlama 3-8B-Instruct · NQ and HotpotQAaccuracy: NQ 0.845 -> 0.799; HotpotQA 0.671 -> 0.642Hurt
add FastMemQwen 1.5-7B-Chat · NQ and HotpotQAaccuracy: NQ 0.829 -> 0.826; HotpotQA 0.602 -> 0.594Hurt
add FastMemLlama 3-70B-Instruct · NQ-SWAPaccuracy: 0.630 -> 0.746Improved
add FastMemLlama 3-8B-Instruct · XSUMFactKB: 0.635 -> 0.710Improved
add CAD decodingLlama 3-8B-Instruct · CNN-DMFactKB: 0.986 -> 0.955Hurt
tune more last blocks instead of only the last FFN (ablation)FastMem Llama 3-8B-Instruct · NQ-SWAP/MemoTrap etc.accuracyHurt
increase memorization epochs beyond 10 (ablation)FastMem Llama 3-8B-Instruct · accuracy vs perplexityaccuracyNo clear effect
increase batch size from 1 to 16 (ablation)FastMem Llama 3-8B-Instruct · NQ-SWAP and MemoTrapaccuracyMixed

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