All models

HF PatchTSMixer

An all-MLP mixer over time-series patches for lightweight multivariate forecasting.

Time series · 86 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 (46 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.5K
Operations
86
Framework
PyTorch
Recurrent
No
Published
2023
License
Apache-2.0
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
m1294
Graph hash
38d32d6b0e0caedea3b0c2b8e7fd68cf13b460648e474ad3e15156d9e836cfb8
Skeleton hash
c27b950d1c461fa0ad305a4d76e18604ec4f2d357f0b088353b13d260a7a0f5a
Architecture hash
647d890a2d3576f007b2e7f5a561f511da52ebe06d73858b99eca958b53327ff
Diagram SHA-256
9e15f8b07c5574ad85ad832db32cb2613a2a2373aee7e475d5fcf4c371a89fe4
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

How this diagram was made

transformers.AutoModel.from_config()

What it is

PatchTSMixer is a lightweight time-series model based on the MLP-Mixer architecture. The Hugging Face implementation mixes across patches, channels and hidden features for multivariate time-series modeling. It was proposed in the paper TSMixer: Lightweight MLP-Mixer Model for Multivariate Time Series Forecasting. The underlying TSMixer is composed exclusively of multi-layer perceptron modules for patched time series and draws its inspiration from MLP-Mixer models in computer vision.

The paper attaches online reconciliation heads to the MLP-Mixer backbone to model time-series properties such as hierarchy and channel-correlations. A simple gated attention mechanism in the backbone prioritizes important features. The paper reports that TSMixer beats state-of-the-art MLP and Transformer models in forecasting by 8-60%, and Patch-Transformer models by 1-2% with a 2-3X reduction in memory and runtime. The model can be pretrained and then used for forecasting, classification and regression.

Key idea. PatchTSMixer brings the MLP-Mixer design to patched multivariate time series, and its lightweight additions let simple MLP structures outperform complex Transformer models with minimal computing usage.

  • patchtsmixer
  • tsmixer
  • patch tsmixer
  • mlp-mixer time series
  • multivariate forecasting
  • time series forecasting
  • transformers

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