English

Kalman Bayesian Transformer

Machine Learning 2025-09-16 v1 Artificial Intelligence

Abstract

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.

Keywords

Cite

@article{arxiv.2509.10695,
  title  = {Kalman Bayesian Transformer},
  author = {Haoming Jing and Oren Wright and José M. F. Moura and Yorie Nakahira},
  journal= {arXiv preprint arXiv:2509.10695},
  year   = {2025}
}

Comments

Accepted to the 64th IEEE Conference on Decision and Control (CDC 2025)

R2 v1 2026-07-01T05:34:22.269Z