paper-with-me

홈 › Papers

Pre-training Large Memory Language Models with Internal and External Knowledge

2025-05-21 · Linxi Zhao, Sofian Zalouk, Christian K. Belardi, Justin Lovelace, Jin Peng Zhou, Kilian Q. Weinberger, Yoav Artzi, Jennifer J. Sun

Neural language models are black-boxes -- both linguistic patterns and factual knowledge are distributed across billions of opaque parameters. This entangled encoding makes it difficult to reliably inspect, verify, or update specific facts. We propose a new class of language models, Large Memory Language Models (LMLM) with a pre-training recipe that stores factual knowledge in both internal weights and an external database. Our approach strategically masks externally retrieved factual values from the training loss, thereby teaching the model to perform targeted lookups rather than relying on memorization in model weights. Our experiments demonstrate that LMLMs achieve competitive performance compared to significantly larger, knowledge-dense LLMs on standard benchmarks, while offering the advantages of explicit, editable, and verifiable knowledge bases. This work represents a fundamental shift in how language models interact with and manage factual knowledge.

📄 PDF Abstract BibTeX arXiv:2505.15962

Code (1)

kilian-group/lmlm 공식 구현 pytorch

Tasks

Memorization

Similar Papers 제목 키워드 기반

Dual-Layer Agentic Memory with Fast Write Routing and Slow Consolidation

2026-08-23 · Wenzhi Li, Dong Nie, Rui Lan, Tongtong Lyu 외 arxiv

Large language model (LLM) agents operate in dynamic environments where knowledge continuously evolves. Existing memory systems typically treat external memory as a monotonically growing repository, inevitably leading to…

Cutting Off the Head Ends the Conflict: A Mechanism for Interpreting and Mitigating Knowledge Conflicts in Language Models

2024-02-28 · Zhuoran Jin, Pengfei Cao, Hongbang Yuan, Yubo Chen 외

Recently, retrieval augmentation and tool augmentation have demonstrated a remarkable capability to expand the internal memory boundaries of language models (LMs) by providing external context. However, internal memory a…

Unlocking the Working Memory of Large Language Models for Latent Reasoning

2026-05-28 · Lukas Aichberger, Sepp Hochreiter arxiv

To improve the reasoning capabilities of large language models, test-time compute is typically scaled by generating intermediate tokens before the final answer. However, this couples reasoning to autoregressive generatio…

PIP-KAG: Mitigating Knowledge Conflicts in Knowledge-Augmented Generation via Parametric Pruning

2025-02-21 · Pengcheng Huang, Zhenghao Liu, Yukun Yan, Xiaoyuan Yi 외

Knowledge-Augmented Generation (KAG) has shown great promise in updating the internal memory of Large Language Models (LLMs) by integrating external knowledge. However, KAG inevitably faces knowledge conflicts when the i…

Hallucination

Cognitive Architectures for Language Agents

2023-09-05 · Theodore R. Sumers, Shunyu Yao, Karthik Narasimhan, Thomas L. Griffiths

Recent efforts have augmented large language models (LLMs) with external resources (e.g., the Internet) or internal control flows (e.g., prompt chaining) for tasks requiring grounding or reasoning, leading to a new class…

Decision Making