Handover of In-Context Learning State Across Session Boundaries

2026-08-14Artificial Intelligence

Artificial Intelligence
AI summary

The authors study how tasks involving large language models can continue smoothly when switching sessions, like after hitting input limits or restarting. They focus on what information must be passed on to keep the task consistent, introducing the idea of transferring a task-related learning state. Their work mathematically breaks down what needs to be remembered and how much memory is required, offering a way to store essential details efficiently. They use statistics and regression methods to analyze and guide this process, helping decide what must be kept for future task continuation.

session handoverlarge language modelsin-context learningpredictive equivalencememory constraintGaussian linear regressionnonparametric regressiontask continuationstatistical sufficiencybit requirement
Authors
Masahiro Kato, Taka Kato
Abstract
This study investigates the methodological and theoretical properties of session handover in applications that use large language models. A task may continue in a new session when the context reaches the model's input limit, when the application restarts, or when another agent is asked to finish the task. The application must then decide which information from the earlier session to pass on. We formulate handover as the transfer of a task-relative in-context learning (ICL) state and distinguish exact recovery of earlier material from preservation of the target distribution. Under an exogeneity condition, predictive equivalence characterizes the coarsest deterministic sufficient handover and gives a fixed-length bit requirement. The analysis isolates the effects of the memory constraint, the writer, and the continuation procedure, and quantifies the cost of writing before the realized downstream query is known. We propose a three-part record that stores decisions and constraints exactly, uses task-justified statistics for repeated evidence, and retains original observations whose effect is not preserved by those statistics. Gaussian linear regression gives an exact finite-dimensional handover and finite-bit perturbation bounds, while nonparametric regression gives upper and lower bounds that relate memory to squared prediction error. These results provide a theory and method for deciding what a handover must retain and how its memory requirement depends on the continuation task.