Kalman Bayesian Transformer

Haoming Jing, Oren Wright, José M. F. Moura, Yorie Nakahira
9/12/2025
cs.LGcs.AI

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jing2025kalman,
  title  = {Kalman Bayesian Transformer},
  author = {Haoming Jing and Oren Wright and José M. F. Moura and Yorie Nakahira},
  year   = {2025},
  eprint = {2509.10695},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.10695v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.10695.svg)](https://codeofpaper.com/paper/2509.10695)

Discussion