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.
翻译:暂无翻译