mlsanityData to 7 Oct 2026

Memorizing Documents with Guidance in Large Language Models

arXiv 2406.15996 ↗First posted 23 Jun 2024cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Training data plays a pivotal role in AI models. Large language models (LLMs) are trained with massive amounts of documents, and their parameters hold document-related contents. Recently, several studies identified content-specific locations in LLMs by examining the parameters. Instead of the post hoc interpretation, we propose another approach. We propose document-wise memory architecture to track document memories in training. The proposed architecture maps document representations to memory entries, which softly mask memories in the forward process of LLMs. Additionally, we propose document guidance loss, which increases the likelihood of text with document memories and reduces the likelihood of the text with the memories of other documents. Experimental results on Wikitext-103-v1 with Pythia-1B show that the proposed methods provide different memory entries for documents and high recall of document-related content in generation with trained document-wise memories.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 26 of its 40 references that are in the map. First posted on arXiv 23 Jun 2024.

Builds on

26 of 40 references.

References · 26

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  5. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
  6. 2022Classifier-Free Diffusion Guidancecited by 5,717
  7. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
  8. 2016Pointer Sentinel Mixture Modelscited by 2,992
  9. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  10. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  11. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  12. 2022Mass-Editing Memory in a Transformercited by 976
14 more
  1. 2022Toy Models of Superpositioncited by 928
  2. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  3. 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 787
  4. 2023DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvaturecited by 705
  5. 2021Knowledge Neurons in Pretrained Transformerscited by 590
  6. 2019Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly Detectioncited by 560
  7. 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
  8. 2023Explainable Artificial Intelligence (XAI) 2.0: A Manifesto of Open Challenges and Interdisciplinary Research Directionscited by 123
  9. 2021SelfDoc: Self-Supervised Document Representation Learningcited by 117
  10. 2023Regulating ChatGPT and other Large Generative AI Modelscited by 102
  11. 2022Finding Skill Neurons in Pre-trained Transformer-based Language Modelscited by 65
  12. 2023Mixture-of-Domain-Adapters: Decoupling and Injecting Domain Knowledge to Pre-trained Language Models Memoriescited by 34
  13. 2023Why do Nearest Neighbor Language Models Work?cited by 29
  14. 2023Memory-Augmented Theory of Mind Networkcited by 6

Built on by

Not cited yet.