SAND: Smooth imputation of sparse and noisy functional data with Transformer networks

Ju-Sheng Hong, Junwen Yao, Jonas Mueller, Jane-Ling Wang
2/3/2026

Abstract

Although the transformer architecture has come to dominate other models for text and image data, its application to irregularly-spaced longitudinal data has been limited. We introduce a variant of the transformer that enables it to more smoothly impute such functional data. We augment the vanilla transformer with a simple module we call SAND ( s elf-a tte n tion on d erivatives), which naturally encourages smoothness by modeling the sub-derivative of the imputed curve. On the theoretical front, we prove the number of hidden nodes required by a network with SAND to achieve an ϵ prediction error bound for functional imputation. Extensive experiments over various types of functional data demonstrate that transformers with SAND produce better imputations than both their standard counterparts as well as transformers augmented with alternative approaches to encode the inductive bias of smoothness. SAND also outperforms standard statistical methods for functional imputation like kernel smoothing and PACE.

DOISemantic Scholar

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!

Cite this paper

@article{hong2026sand,
  title  = {SAND: Smooth imputation of sparse and noisy functional data with Transformer networks},
  author = {Ju-Sheng Hong and Junwen Yao and Jonas Mueller and Jane-Ling Wang},
  year   = {2026},
  doi    = {10.52202/079017-4259},
  url    = {https://doi.org/10.52202/079017-4259},
  journal = {NEURIPS 2024 2024}
}

Discussion