Abstract
Retaining activations during online inference eliminates a second forward pass for updating a language model adapter, reducing end-to-end time by about one-third at the cost of higher GPU memory.
Online learning can eliminate a second forward pass when a language model trains on a response it has just served. In a matched comparison on NVIDIA A10G GPUs, this reduced end-to-end processing time by 33.2% for 16-token responses and 32.5% for 64-token responses. We measured the resources required to serve six recorded SQuAD interactions and update a Qwen2.5-1.5B adapter. The offline trainer read the raw interaction text, repeated the sequential forward computation, checkpointed the update and returned the adapter. The online inference server retained activations through decoding and applied the same update in memory. Across six 64-token responses, retention added 2.24 seconds of serving work and eliminated 34.07 seconds of replay, with bit-identical adapter updates. The principal tradeoff was GPU memory during inference: peak allocation on the serving host increased from 3.04 to 16.06 GiB.
Get this paper in your agent:
hf papers read 2611.41091 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper