All models

ImputeFormer

Low-rank-constrained Transformer that imputes missing values in spatiotemporal sensor data.

Time series · 296 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (25 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
1.3M
Operations
296
Framework
PyTorch
Recurrent
No
Published
KDD 2024
Cited by
113 (as of 28 October 2026)
Authors
Tong Nie, Guoyang Qin, Wei Ma and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17549
Graph hash
7fa0ff2f30d6c4c1ce64d7b7a7ccf222077c54ca6c793c39b4e9ca74cbf562a3
Skeleton hash
57aa4f9e46997fbeefc175c159bb6402ca3fd4e82b6860214c5e46adff0cdd08
Architecture hash
996c19bd8c96e1736ca41c85be2ffb739e7c6e33adb5785bf1064f788bf68041
Diagram SHA-256
5189174e42cf8c8e058448b9994ec1036a95106c1224136b6a5f9028ec6668ed
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

ImputeFormer fills in missing values in spatiotemporal data with a Transformer that is constrained to be low-rank, through a projected attention on the temporal dimension and an embedded attention on the spatial dimension. The paper sets it between two existing kinds of imputation methods: low-rank models, which assume general structural priors but have limited capacity, and deep learning models, which are expressive but lack prior knowledge of spatiotemporal structure. The authors aim for a balance between strong inductive bias and high model expressivity.

The input embedding layer projects the sparse observations to hidden states and adds both fixed and learnable embeddings. Temporal and spatial interaction layers then alternate, and an MLP readout outputs the final imputation. The projected attention imposes a low-rank constraint and models interactions between time points in linear complexity. In the spatial direction the authors design an embedded attention as an alternative to spatial attention. Its weights between series are estimated by correlating pairs of node embeddings. Unlike graph neural networks, ImputeFormer does not require a predefined graph.

A Fourier sparsity loss regularizes the spectrum of the solution during training. The paper evaluates the model on heterogeneous datasets, including traffic flow, solar energy, smart meters and air quality.

Key idea. ImputeFormer imposes low-rankness on a Transformer through projected attention on the temporal dimension and embedded attention on the spatial dimension for spatiotemporal data imputation.

  • ImputeFormer
  • Imputation Transformers
  • spatiotemporal imputation
  • missing data imputation
  • time series imputation
  • low-rank Transformer
  • traffic data imputation
  • projected attention
  • embedded attention

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{nie2024imputeformerlowranknessinducedtransformers,
      title={ImputeFormer: Low Rankness-Induced Transformers for Generalizable Spatiotemporal Imputation}, 
      author={Tong Nie and Guoyang Qin and Wei Ma and Yuewen Mei and Jian Sun},
      year={2024},
      eprint={2312.01728},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      doi={https://doi.org/10.1145/3637528.3671751},
      url={https://arxiv.org/abs/2312.01728}, 
}