United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.
Get full access to United States of Banan at konradb.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Infinite ICL addresses a fundamental limitation in large language models.
SPEAKER_00Finite context windows. While in context learning, ICL, is essential for customizing LLMs, it's constrained by the quadratic scaling of attention mechanisms and KV cache memory requirements. As context windows grow, computational costs increase dramatically while performance gains diminish. Our approach reframes this problem by treating contexts as short-term memory and parameters as long-term memory, allowing models to convert context information into parameter updates,
similar to how humans consolidate daily experiences into long-term memories.
SPEAKER_00Figure 1 illustrates the core idea behind infinite ICL. The top row represents short-term memory, context windows, C1, C2, C3, etc., while the bottom row shows long-term memory, model parameters, T0, T1, T2, etc. The transformation process, T1, T2, T3, converts context knowledge into parameter updates, refreshing the context window each time. This allows the model to process infinite contexts sequentially.
The approach draws inspiration from human memory consolidation during sleep,
SPEAKER_00where daily experiences are integrated into long-term memory. Recent research supports this approach, showing that in-context learning can be interpreted as implicit metagradient updates. Section 3 establishes the neurocognitive foundation of infinite ICL by examining parallels between human memory systems and LLM architectures. Like human short-term memory, LLM contexts exhibit temporal decay, performance degradation with sequence length, and capacity constraints. Similarly, model parameters serve as long-term knowledge repositories.
The transformation process mirrors hippocampal cortical memory consolidation, where transient memories gradually integrate into neocortical networks through
SPEAKER_00sleep-like replay mechanisms. This approach delivers three key advantages. reduce GPU memory usage by converting context into compact parameter updates, maintain performance across varying input lengths, and theoretical support for infinite context integration. Section 4 details the three-phase framework of InfiniteICL. First, context knowledge elicitation uses structured prompting to extract diverse, skill-specific knowledge from the context, generating query response pairs that explore different facets
of the input.
SPEAKER_00Second, path selection identifies high-value knowledge by measuring perplexity discrepancy between teacher and student models. Finally, memory consolidation integrates this knowledge into parameters through knowledge distillation. The paper explores three alignment approaches for this final phase. Hidden state proximity, logit-level distribution matching, and sequence-level imitation, each with different trade-offs between knowledge retention and generalization. Table 1 presents comprehensive results across diverse task types.
Infinite ICL achieves 103% average performance relative to full context prompting
SPEAKER_00while using only 10% of the original context. Performance varies by task. 84% for factory call, NQ, 117% for grounded reasoning, counterfact Mquake, and 98% for 300-shot in-context learning, TRX, NLU. Notably, the method consistently outperforms state-of-the-art context compression approaches like LLM and Lingua 2, 10.4%, and SnapKV, 7.3%. Additional experiments reveal that forward KL divergence
provides the most balanced
SPEAKER_00alignment approach, and performance remains stable even at extreme context reduction ratios where baseline methods collapse to random performance. Infinite ICL successfully addresses the context window limitations of large language models by transforming temporary context knowledge into permanent parameter updates. The approach achieves remarkable results, maintaining 103% of full context performance while using only 10% of the original context. In sequential multi-turn transformations on complex real-world
contexts up to 2 million tokens. Our method surpasses full context prompting while using merely 0.4% of the original contexts.
SPEAKER_00Unlike baseline methods that degrade with increasing context length, Infinite ICL maintains stable performance across varying input sizes and complexities, suggesting its potential for enhancing LLM applications in research, lifelong learning, and other domains requiring extended context understanding.
Paper: https://arxiv.org/abs/2504.11159 United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber. Get full access to United States...
Paper: https://arxiv.org/abs/2604.16748 United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber. Get full access to United States...
Paper: https://arxiv.org/html/2604.01845v1 United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber. Get full access to United...
Paper: https://arxiv.org/abs/2604.13253 United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber. Get full access to United States...
Paper: https://arxiv.org/abs/2604.05257 United States of Banan is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber. Get full access to United States...