用贝叶斯方法实现低延迟下的高效持续学习。
Kalman Bayesian Transformer
- 将微调视为后验推断,结合卡尔曼滤波与贝叶斯神经网络。
- 在分布漂移下仍保持稳定,仅用少量数据即可完成适应。
- 适合对延迟敏感、需量化不确定性的在线学习场景。
当新数据以序列方式到达时,顺序微调变压器模型非常有用,尤其是在数据分布发生漂移的情况下。与批量学习不同,顺序学习要求在数据量有限时仍能稳定训练,需在新信息与预训练模型中已有知识之间取得平衡。这一挑战在延迟敏感环境中更加严峻,学习过程还需量化并基于不确定性进行调节。针对这些难题,我们提出一种新方法,将顺序微调建模为贝叶斯框架中的后验推断问题。该方法融合了随机变量的闭式矩传播、卡尔曼贝叶斯神经网络以及软最大函数矩的泰勒近似。通过显式将预训练模型作为先验,并根据量化不确定性自适应地平衡其与新信息的关系,我们的方法实现了鲁棒且数据高效的顺序学习。通过数值模拟验证了该方法在决策转换器面对分布漂移和有限内存资源时的序列适应能力。
原文摘要 · Abstract (English)
Sequential fine-tuning of transformers is useful when new data arrive sequentially, especially with shifting distributions. Unlike batch learning, sequential learning demands that training be stabilized despite a small amount of data by balancing new information and previously learned knowledge in the pre-trained models. This challenge is further complicated when training is to be completed in latency-critical environments and learning must additionally quantify and be mediated by uncertainty. Motivated by these challenges, we propose a novel method that frames sequential fine-tuning as a posterior inference problem within a Bayesian framework. Our approach integrates closed-form moment propagation of random variables, Kalman Bayesian Neural Networks, and Taylor approximations of the moments of softmax functions. By explicitly accounting for pre-trained models as priors and adaptively balancing them against new information based on quantified uncertainty, our method achieves robust and data-efficient sequential learning. The effectiveness of our method is demonstrated through numerical simulations involving sequential adaptation of a decision transformer to tasks characterized by distribution shifts and limited memory resources.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。