Memorizing Documents with Guidance in Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Park, Bumjin, Choi, Jaesik
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929396857700352
author Park, Bumjin
Choi, Jaesik
author_facet Park, Bumjin
Choi, Jaesik
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2406_15996
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Memorizing Documents with Guidance in Large Language Models
Park, Bumjin
Choi, Jaesik
Computation and Language
Artificial Intelligence
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.
title Memorizing Documents with Guidance in Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2406.15996