BudgetMem: Learning Selective Memory Policies for Cost-Efficient Long-Context Processing in Language Models
Chandra Vamsi Krishna Alla, Harish Naidu Gaddam, Manohar Kommi

TL;DR
BudgetMem introduces a selective memory system for large language models that efficiently manages long contexts by learning what information to remember, significantly reducing memory usage while maintaining high performance.
Contribution
It presents a novel memory-augmented architecture with learned gating and salience scoring for cost-effective long-context processing in language models.
Findings
Achieves only 1% F1 score degradation with 72.4% memory savings.
Performance benefits increase with longer documents.
Effective on Llama-3.2-3B-Instruct with extensive long document datasets.
Abstract
Large Language Models (LLMs) face significant computational and memory constraints when processing long contexts, despite growing demand for applications requiring reasoning over extensive documents, multi-session dialogues, and book length texts. While recent advances have extended context windows to 100K-1M tokens, such approaches incur prohibitive costs for resource constrained deployments. We propose BudgetMem, a novel memory augmented architecture that learns what to remember rather than remembering everything. Our system combines selective memory policies with feature based salience scoring (entity density, TF-IDF, discourse markers, position bias) to decide which information merits storage under strict budget constraints. Unlike existing retrieval augmented generation (RAG) systems that store all chunks, BudgetMem employs learned gating mechanisms coupled with BM25 sparse…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Multimodal Machine Learning Applications · Natural Language Processing Techniques
