Hugging Face Trending Papers

Beyond Compressing Everything: Contrastive Memory Learning for Selective Context Compression

The paper introduces CoMem, a query‑guided selective context compression framework that learns memory representations conditioned on both the document and the query. CoMem employs Contrastive Compressor Learning and a same‑context hard negative mining strategy to retain query‑specific evidence while preserving overall context, and it enables bidirectional attention among memory slots to overcome causal masking limitations. Experiments show that CoMem consistently outperforms existing context compression methods on question answering and RULER‑NIAH benchmarks across various compression ratios.

arXiv AI
Nov 14

Beyond Compressing Everything: Contrastive Memory Learning for Selective Context Compression

The paper introduces CoMem, a query‑guided selective context compression framework that learns memory representations conditioned on both the document and the query. CoMem employs Contrastive Compressor Learning and a same‑context hard negative mining strategy to retain only query‑relevant evidence, while enabling bidirectional attention among memory slots to overcome causal masking. Experiments show that CoMem outperforms existing context compression methods on question answering and RULER‑NIAH benchmarks across various compression ratios.

By Sikui Zhang, Haowei Liu, Ziyun Gan, Chunfeng Yuan, Guangze Gao, Nian Liu, Boyu Cai, Bo Li, Xiaolei Lv, Jun Gao, Bing Li, Weiming Hu
arXiv Machine Learning
Sep 11

REVA: Reusable Evidence View Aggregation for Context-Efficient RAG Serving

The paper introduces REVA, a method for compressing retrieval-augmented generation (RAG) prompts by aggregating historical query–document–model interactions into reusable evidence views. REVA mines attention traces from the target generator, maps token-level attention to readable words, aggregates importance across repeated document accesses, and produces budget‑specific plain‑text views that maintain document order and the standard RAG interface. Experiments on four benchmarks with modern LLMs show that REVA improves generation quality by 1.0–5.8 points over existing compressors while reducing compression overhead by 5.3 to 15.6 times and adding less than 40 ms of latency.

By Tuan Nguyen, Qiran Hu, Banruo Liu, Khoa D. Doan, Kok-Seng Wong, Fan Lai
arXiv AI
Sep 30

CoEM: Empowering Long-Context Reasoning with Commit-on-Evidence Memory

CoEM introduces a Commit-on-Evidence Memory system that learns when to compress source evidence into compact memory facts while preserving potentially useful excerpts verbatim in a pending set. The system uses a learned policy to decide whether to promote, retain, or discard each pending excerpt as new context arrives, and a frozen verifier ensures only supported facts are committed. Reinforcement learning trains this policy with step-level evidence rewards and final answer rewards, leading to consistent improvements in long-context reasoning, achieving 10.4–11.4 F1 points over the strongest baseline on 6,400-document inputs.

By Jingguang Li, Yebo Wu, Zuyi Guo, Kailang Ma, Xianjie Dai, Han Zheng, Benwang Chen, Li Li, Can Rong, Heye Huang
arXiv Machine Learning
Nov 6

QRAE: Query-Relevant Attention Entropy for Context Compression in DeepSearch Agents

The paper introduces Query-Relevant Attention Entropy (QRAE), an online method for compressing context in DeepSearch LLM agents. QRAE uses sparse evidence-assessment heads to evaluate retrieved chunks, scoring them with a paired prefill approach that suppresses shared attention and measures entropy. High-scoring chunks are kept in a persistent whitelist for reasoning, while uncertain ones are cached for later reevaluation, eliminating the need for extra generative compression or attention modifications. Experiments on DeepSearch benchmarks show QRAE improves task success by 2.35 percentage points and cuts latency and token usage by 30% and 45% on average, with benefits extending to a 100‑B‑parameter model.

By Yingjie Tan, Haiquan Qiu, Quanming Yao, Manyi Zhong, Xianzhi Yu, Yaqing Wang
arXiv Computation and Language
Sep 18

JustMem: Just-Enough Memory Access for Long-Term Conversations

JustMem is a new memory system for long‑term conversational AI that stores conversation history as compact atomic memories and adapts its access strategy to each query. It introduces two dimensions of memory access—discovery breadth and reading fidelity—implemented through LOOKUP for local evidence, COMPOSE for distributed evidence, and REPLAY for fidelity‑sensitive evidence. Experiments on LoCoMo and LongMemEval‑S show that JustMem outperforms competing memory systems in accuracy and recall while using fewer generative‑model tokens for memory construction and inference.

By Guanhua Chen, Yanting Wang, Wenjing Zhi, Lei Sha
arXiv Computation and Language
Nov 9

Adamas: Hadamard Sparse Attention for Efficient Long-Context Inference

Adamas is a token‑level sparse attention mechanism that uses the Hadamard transform, bucketization, and 2‑bit compression to create compact representations, followed by lightweight distance‑based top‑k selection for efficient long‑context inference. It achieves near‑lossless performance on Llama‑3.1‑8B‑Instruct and delivers up to 6.5× speedup in self‑attention and 1.7× in end‑to‑end decoding at a 32K context length. Adamas also matches full attention performance on challenging long‑form reasoning benchmarks such as AIME 2024 and 2025.

By Siyuan Yan, Guo-Qing Jiang, Yuchen Zhang, Xiaoxing Ma, Ran Zhu, Chun Cao, Jingwei Xu
Hugging Face Trending Papers
Jul 2

ReContext: Recursive Evidence Replay as LLM Harness for Long-Context Reasoning

Understanding and reasoning over long contexts has become a key requirement for deploying large language models (LLMs) in realistic applications. Although recent LLMs support increasingly long context windows, they often fail to use relevant evidence that is already present in the input, revealing a gap between context access and effective context utilization.