atlas

Research map / Architectures and efficiency / Attention and transformers

Memory-Augmenting Decoder-Only Language Models through Encoders (Student Abstract)

AAAI 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Augments a frozen decoder-only LLaMA with a small trained memory encoder whose output is prepended to the decoder input, to give LMs conversation/knowledge memory at low cost.

Problem

Decoder-only language models are stateless and cannot retain conversation history or external knowledge, and the brute-force fix of enlarging the context window scales quadratically with Transformer cost.

Approach

Build a small memory encoder by mirroring LLaMA's decoder blocks with the causal mask removed, train it while the LLaMA decoder stays frozen, and inject the encoded memory by prepending it to the decoder input rather than via cross-attention.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a memory encoder instead of omitting memoryLLaMA decoder · Validation setcross-entropy loss: 19.97 -> 7.73Helped
Encode memory with a memory encoder instead of prepending plain memoryLLaMA decoder · Validation setcross-entropy loss: 21.37 -> 7.73Helped

Surprising findings

Limitations

Experimental setup

Datasets: Curiosity DREAM SGD Wizard of Wikipedia

Benchmarks: Curiosity DREAM SGD Wizard of Wikipedia

Metrics: cross-entropy loss

Baselines: No inclusion of memory Prepending plain memory to input

Builds on: LLaMA Adapters Transformer

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