Training–Inference Consistent Segmented Execution for Long-Context LLMs
Abstract
Lay Summary
Large language models are now used to work with long documents, conversations, and reports. But the longer the input becomes, the more memory and computation the model needs, which can make long-context systems costly and hard to deploy. Many current efficiency methods change how a model reads long text only when the model is being used. During training, however, the model may have learned under different conditions. This mismatch can make its behavior less reliable on long inputs. We address this problem by training and using the model in the same piece-by-piece manner: the model reads a long input in segments, carries recent information forward, and looks back at older information only when needed. In our experiments, this approach keeps strong long-context performance while using less memory and achieving a better balance between speed and memory use. This could make long-context AI systems more practical for tasks such as document understanding, long conversations, and long-form summarization.