paper-with-me

Papers

Hierarchical Context Merging: Better Long Context Understanding for Pre-trained LLMs

2024-04-16 · Woomin Song, Seunghyuk Oh, Sangwoo Mo, Jaehyung Kim, Sukmin Yun, Jung-Woo Ha, Jinwoo Shin

Large language models (LLMs) have shown remarkable performance in various natural language processing tasks. However, a primary constraint they face is the context limit, i.e., the maximum number of tokens they can process. Previous works have explored architectural changes and modifications in positional encoding to relax the constraint, but they often require expensive training or do not address the computational demands of self-attention. In this paper, we present Hierarchical cOntext MERging (HOMER), a new training-free scheme designed to overcome the limitations. HOMER uses a divide-and-conquer algorithm, dividing long inputs into manageable chunks. Each chunk is then processed collectively, employing a hierarchical strategy that merges adjacent chunks at progressive transformer layers. A token reduction technique precedes each merging, ensuring memory usage efficiency. We also propose an optimized computational order reducing the memory requirement to logarithmically scale with respect to input length, making it especially favorable for environments with tight memory restrictions. Our experiments demonstrate the proposed method's superior performance and memory efficiency, enabling the broader use of LLMs in contexts requiring extended context. Code is available at https://github.com/alinlab/HOMER.

📄 PDF Abstract BibTeX arXiv:2404.10308

Code (1)

alinlab/homer 공식 구현 pytorch

Tasks

Long-Context UnderstandingToken Reduction

Similar Papers 제목 키워드 기반

Neural Video Compression with Diverse Contexts

2023-02-28 · CVPR 2023 1 · Jiahao Li, Bin Li, Yan Lu

For any video codecs, the coding efficiency highly relies on whether the current signal to be encoded can find the relevant contexts from the previous reconstructed signals. Traditional codec has verified more contexts b…

DiversityOptical Flow EstimationVideo Compression

Learned Image Compression with Hierarchical Progressive Context Modeling

2025-07-25 · Yuqi Li, Haotian Zhang, Li Li, Dong Liu arxiv

Context modeling is essential in learned image compression for accurately estimating the distribution of latents. While recent advanced methods have expanded context modeling capacity, they still struggle to efficiently …

Image Compression

GRKV: Global Regression for Training-Free KV Cache Compression in Long-Context LLMs

2026-05-29 · Junjie Peng, You Wu, Haoyi Wu, Jialong Han 외 arxiv

Large language models (LLMs) with extended context lengths rely on the key-value (KV) cache to support attention over prior tokens. However, maintaining the KV cache incurs substantial memory overhead, motivating KV-cach…

Temporal Pyramid Network for Pedestrian Trajectory Prediction with Multi-Supervision

2020-12-03 · Rongqin Liang, Yuanman Li, Xia Li, Yi Tang 외

Predicting human motion behavior in a crowd is important for many applications, ranging from the natural navigation of autonomous vehicles to intelligent security systems of video surveillance. All the previous works mod…

Autonomous VehiclesPedestrian Trajectory PredictionTrajectory Prediction

Hierarchical Sparse Attention Done Right: Toward Infinite Context Modeling

2026-07-03 · Xiang Hu, Xinyu Wei, Hao Gu, Minshen Zhang 외 hf

Scaling modern large language models (LLMs) to long contexts is limited by the quadratic computation cost, and poor length extrapolation of dense attention. Chunk-wise sparse attention offers a promising alternative, but…