Reproduce “COMI: Coarse-to-fine Context Compression via Marginal Information Gain” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Jiwei Tang, Shilei Liu, Zhicheng Zhang, Yujin Yuan, Libin Zheng, Wenbo Su, Bo Zheng
Researchers from Tsinghua University and Alibaba's Future Living Lab developed COMI, an adaptive context compression framework for Large Language Models that jointly optimizes for semantic relevance and diversity. COMI utilizes a Marginal Information Gain metric and a coarse-to-fine compression strategy, achieving over 2x speedup and significantly higher F1/EM scores across various QA and summarization tasks, even surpassing native long-context LLMs on challenging inputs.
Key insights
- Jointly optimizing for semantic relevance and diversity (by minimizing redundancy) is critical for effective context compression, especially under high compression rates.
- Marginal Information Gain (MIG) provides a robust metric for quantifying a unit's value by explicitly penalizing redundancy while rewarding query relevance, improving information preservation.
- An adaptive, hierarchical coarse-to-fine compression strategy allows for intelligent allocation of compression resources across different levels of context granularity, maximizing information retention.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.