InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformation

In-context learning (ICL) is critical for large language models (LLMs), but its effectiveness is constrained by finite context windows, particularly in ultra-long contexts.To overcome this, we introduce InfiniteICL, a framework that parallels context and parameters in LLMs with short-and long-term memory in human cognitive systems, focusing on transforming temporary context knowledge into permanent parameter updates.This approach significantly reduces memory usage, maintains robust performance across varying input lengths, and theoretically enables infinite context integration through the principles of context knowledge elicitation, selection, and consolidation.Evaluations demonstrate that our method reduces context length by 90% while achieving 103% average performance of full-context prompting across fact recall, grounded reasoning, and skill acquisition tasks.When conducting sequential multi-turn transformations on complex, realworld contexts (with length up to 2M tokens), our approach surpasses full-context prompting while using only 0.4% of the original contexts.These findings highlight InfiniteICL's potential to enhance the scalability and efficiency of LLMs by breaking the limitations of conventional context window sizes.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.595
Primary Topic
Video Analysis and Summarization
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformation

Wai Lam, Deng Cai, Bowen Cao
Video Analysis and Summarization
article

InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformation

Wai Lam, Deng Cai, Bowen Cao
article en

Abstract

In-context learning (ICL) is critical for large language models (LLMs), but its effectiveness is constrained by finite context windows, particularly in ultra-long contexts.To overcome this, we introduce InfiniteICL, a framework that parallels context and parameters in LLMs with short-and long-term memory in human cognitive systems, focusing on transforming temporary context knowledge into permanent parameter updates.This approach significantly reduces memory usage, maintains robust performance across varying input lengths, and theoretically enables infinite context integration through the principles of context knowledge elicitation, selection, and consolidation.Evaluations demonstrate that our method reduces context length by 90% while achieving 103% average performance of full-context prompting across fact recall, grounded reasoning, and skill acquisition tasks.When conducting sequential multi-turn transformations on complex, realworld contexts (with length up to 2M tokens), our approach surpasses full-context prompting while using only 0.4% of the original contexts.These findings highlight InfiniteICL's potential to enhance the scalability and efficiency of LLMs by breaking the limitations of conventional context window sizes.

Chinese University of Hong Kong (HK)
Reduced inequalities
Openalex Percentile: Top 83%
Video Analysis and Summarization
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.