mlsanityData to 14 Oct 2026

FastMem: Fast Memorization of Prompt Improves Context Awareness of Large Language Models

arXiv 2406.16069 ↗First posted 23 Jun 2024cs.CL cs.AIcited by 7

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) excel in generating coherent text, but they often struggle with context awareness, leading to inaccuracies in tasks requiring faithful adherence to provided information. We introduce FastMem, a novel method designed to enhance instruction fine-tuned LLMs' context awareness through fast memorization of the prompt. FastMem maximizes the likelihood of the prompt before inference by updating only the last Feed-Forward Network (FFN) module. This targeted approach ensures efficient optimization without overfitting, significantly improving the model's ability to comprehend and accurately follow the context. Our experiments demonstrate substantial gains in reading comprehension, text summarization and adherence to output structures. For instance, FastMem improves the accuracy of Llama 3-8B-Inst on the NQ-SWAP dataset from 59.1% to 71.6%, and reduces the output structure failure rate of Qwen 1.5-4B-Chat from 34.9% to 25.5%. Extensive experimental results highlight FastMem's potential to offer a robust solution to enhance the reliability and accuracy of LLMs in various applications. Our code is available at: https://github.com/IAAR-Shanghai/FastMem

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 32 of its 46 references that are in the map. First posted on arXiv 23 Jun 2024.

Builds on

32 of 46 references.

References · 32

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  6. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  7. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  8. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  9. 2023Qwen Technical Reportcited by 3,344
  10. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  11. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
  12. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
20 more
  1. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
  2. 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 812
  3. 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 699
  4. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
  5. 2021Editing Factual Knowledge in Language Modelscited by 553
  6. 2022Self-critiquing models for assisting human evaluatorscited by 380
  7. 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 356
  8. 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 327
  9. 2023Evaluating Verifiability in Generative Search Enginescited by 303
  10. 2021Understanding Factuality in Abstractive Summarization with FRANK: A Benchmark for Factuality Metricscited by 287
  11. 2023Inverse Scaling: When Bigger Isn't Bettercited by 207
  12. 2018WikiHow: A Large Scale Text Summarization Datasetcited by 204
  13. 2023Transformer-Patcher: One Mistake worth One Neuroncited by 197
  14. 2021Annotating and Modeling Fine-grained Factuality in Summarizationcited by 131
  15. 2021CLIFF: Contrastive Learning for Improving Faithfulness and Factuality in Abstractive Summarizationcited by 120
  16. 2020Factual Error Correction for Abstractive Summarization Modelscited by 108
  17. 2023Alleviating Hallucinations of Large Language Models through Induced Hallucinationscited by 79
  18. 2021MT3: Meta Test-Time Training for Self-Supervised Test-Time Adaptioncited by 65
  19. 2023FactKB: Generalizable Factuality Evaluation using Language Models Enhanced with Factual Knowledgecited by 55
  20. 2022FactPEGASUS: Factuality-Aware Pre-training and Fine-tuning for Abstractive Summarizationcited by 49

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 3; 2026: 2.

7 papers.