paper-with-me

홈 › Papers

FocusLLM: Precise Understanding of Long Context by Dynamic Condensing

2024-08-21 · Zhenyu Li, Yike Zhang, Tengyu Pan, Yutao Sun, Zhichao Duan, Junjie Fang, Rong Han, Zixuan Wang, Jianyong Wang

Empowering LLMs with the ability to precisely understand long contexts is crucial for many downstream applications. However, handling long contexts with conventional transformer architecture requires substantial training and inference resources. Existing context condensing methods cannot accurately understand the full context, as there is a considerable amount of information loss in the condensing process. To address these issues, we present FocusLLM, a framework designed to extend the fixed context length of any decoder-only LLM, allowing the model to focus on relevant information from very long sequences. FocusLLM first divides long text input into chunks based on the model's original context length. It then employs the dynamic condensing process to distill crucial information from each chunk. Ultimately, through the novel parallel decoding mechanism, FocusLLM can integrate the extracted information into its local context. FocusLLM stands out for great training efficiency and versatility: trained with an 8K input length and with much less training cost than previous methods, FocusLLM exhibits superior performance across downstream tasks and maintains strong language modeling ability when handling extensive long texts, even up to 400K tokens. Our code is available at https://github.com/leezythu/FocusLLM.

📄 PDF Abstract BibTeX arXiv:2408.11745

Code (1)

leezythu/focusllm 공식 구현 pytorch

Tasks

8kDecoderLanguage ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

Analyzing Temporal Complex Events with Large Language Models? A Benchmark towards Temporal, Long Context Understanding

2024-06-04 · Zhihan Zhang, Yixin Cao, Chenchen Ye, Yunshan Ma 외

The digital landscape is rapidly evolving with an ever-increasing volume of online news, emphasizing the need for swift and precise analysis of complex events. We refer to the complex events composed of many news article…

ArticlesLong-Context UnderstandingRAGReading Comprehension+2

Softmax Linear Attention: Reclaiming Global Competition

2026-02-02 · Mingwei Xu, Xuan Lin, Xinnan Guo, Wanqing Xu 외 arxiv

While linear attention reduces the quadratic complexity of standard Transformers to linear time, it often lags behind in expressivity due to the removal of softmax normalization. This omission eliminates \emph{global com…

Long-Context Understanding

How Transformers Get Rich: Approximation and Dynamics Analysis

2024-10-15 · Mingze Wang, Ruoxi Yu, Weinan E, Lei Wu

Transformers have demonstrated exceptional in-context learning capabilities, yet the theoretical understanding of the underlying mechanisms remains limited. A recent work (Elhage et al., 2021) identified a ``rich'' in-co…

In-Context Learning

CacheFlow: Compressive Streaming Memory for Efficient Long-Form Video Understanding

2025-11-17 · Shrenik Patel, Daivik Patel arxiv

Long-form video question answering (VQA) overwhelms current vision-language models (VLMs) because attention and key-value (KV) caches grow with runtime, forcing either expensive inference or near-sighted sliding windows.…

Video Question Answering

LooGLE: Can Long-Context Language Models Understand Long Contexts?

2023-11-08 · Jiaqi Li, Mengmeng Wang, Zilong Zheng, Muhan Zhang

Large language models (LLMs), despite their impressive performance in various language tasks, are typically limited to processing texts within context-window size. This limitation has spurred significant research efforts…

In-Context LearningLong-Context UnderstandingQuestion Answering