Reproduce “TF-Engram: A Train-Free Engram with SSD-Backed Memory for Large Language Models” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yutang Ma, Kecheng Huang, Xikun Jiang, Zili Shao

TF-Engram introduces a train-free, SSD-backed external memory system for large language models that constructs phrase-specific semantic memory offline and integrates it during inference via a hierarchical storage and predictive prefetching mechanism. The system enhances LLM performance on knowledge-intensive tasks, reduces GPU memory footprint by 87% for large memory tables, and recovers up to 96% of throughput despite external memory latency.

Key insights

  • Effective decoupling of static knowledge from LLM parameters is possible through a train-free, phrase-specific external memory system that maintains high semantic fidelity.
  • A hierarchical memory architecture spanning GPU, DRAM, and SSD can scale knowledge capacity significantly while keeping GPU memory footprint manageable.
  • External memory access latency during sequential autoregressive decoding can be largely mitigated by using an early-exit prediction mechanism to proactively prefetch required memory entries.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.