TiViT: Time Series Representations Lie Hidden in Pretrained Vision Transformers

Simon Roschmann, Quentin Bouniot, Vasilii Feofanov, Ievgen Redko, Zeynep AkataOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

TiViT (Time Vision Transformer) demonstrates that frozen Vision Transformers (ViTs) pretrained on billions of images are surprisingly powerful feature extractors for time series data. By converting time series into 2D grayscale images and extracting representations from intermediate layers, TiViT achieves state-of-the-art performance in classification and anomaly detection, outperforming models specifically trained on millions of time series samples.

What Problem Does This Paper Address?

Building "Foundation Models" for time series (TSFMs) is notoriously difficult compared to natural language or computer vision. The primary bottleneck is data scarcity: while we have billions of images and trillions of words available publicly, high-quality, diverse time series datasets are often siloed in private industrial or medical databases.

Existing research has tried to bridge this gap by either training TSFMs on limited data or "reprogramming" Large Language Models. However, these methods often require expensive fine-tuning or struggle with specific tasks like classification. The authors of TiViT ask a provocative question: Can we skip time-series-specific pretraining entirely and just use the "visual intuition" already baked into large-scale Vision Transformers?

Methods

The TiViT framework follows a simple but effective pipeline:

  1. Time-Series-to-Image Transformation: A univariate time series is normalized and segmented into patches. These patches are stacked to form a 2D matrix, which is then rendered as a grayscale image.
  2. 2D Patching Heuristic: To minimize distortion during resizing, the authors use a heuristic where the patch size $P = \sqrt{T}$ (where $T$ is the series length), creating a roughly square image.
  3. Frozen Feature Extraction: The image is fed into a frozen pretrained ViT (such as OpenCLIP, SigLIP 2, or DINOv3). Crucially, the model parameters are never updated.
  4. Intermediate Layer Selection: Instead of using the final output layer (which is highly specialized for image semantics), TiViT extracts features from intermediate layers (typically between 40% and 70% of the model's depth).
  5. Linear Probing: A simple linear classifier (logistic regression) is trained on these extracted embeddings to perform the final task.

Datasets

The authors conducted an extensive evaluation across several established benchmarks:

  • UCR Archive: 128 univariate datasets for classification.
  • UEA Archive: 27 multivariate datasets for classification.
  • UCR Anomaly Archive: 248 datasets for anomaly detection.
  • Long-term Forecasting: 8 standard multivariate datasets (e.g., Weather, Electricity) for preliminary generative testing.

Key Insights and Ideas

  • The "Hidden" Representations: The paper’s title refers to the discovery that the most useful features for time series aren't at the end of the ViT. Final layers are too focused on "objects" (like dogs or cars). Intermediate layers have a higher intrinsic dimension, meaning they preserve more complex, raw structural information that maps well to time series patterns.
  • The 2D Advantage: Why turn a 1D signal into a 2D image? The authors provide a theoretical proof showing that 2D patching increases the number of "label-relevant tokens." By spreading the signal across a 2D grid, the Transformer's attention mechanism can more easily "see" and leverage discriminative patterns that might be compressed or overlooked in a 1D sequence.
  • Cross-Domain Synergy: TiViT representations are highly complementary to those of TSFMs (like Mantis) trained on actual time series. When you concatenate the features from both, performance jumps significantly, suggesting that vision models and time-series models "see" different but equally important aspects of the data.

Key Results

  • Classification SOTA: On the 128 UCR datasets, TiViT (using an OpenCLIP ViT-H backbone) achieved 81.6% accuracy, significantly outperforming Mantis (80.1%), a model pretrained on 2 million time series.
  • Better Together: Fusing TiViT with Mantis pushed the accuracy to 83.1%, setting a new benchmark for the field.
  • Anomaly Detection: TiViT achieved an adjusted F1 score of 0.746, a massive leap over the previous foundation model leader, MOMENT (0.628).
  • Zero-Shot Capability: Even without seeing a single training label, TiViT achieved 71.9% zero-shot accuracy on the UCR benchmark using a simple nearest-neighbor approach.

Limitations and Future Work

  • Generative Tasks: While TiViT excels at discriminative tasks (classification, anomaly detection), it is less naturally suited for generative tasks like forecasting. Preliminary results are promising, but specialized forecasting models still hold an edge.
  • Inference Overhead: Using a massive ViT-H (hundreds of millions of parameters) to classify a small time series is computationally heavy. The authors suggest that knowledge distillation—transferring the "wisdom" of the big ViT into a smaller, time-series-specific architecture—is a vital next step.
  • Fine-tuning: This study focused strictly on linear probing (frozen backbones). Exploring how minimal fine-tuning (e.g., using LoRA) affects these cross-domain representations remains an open question.

Summary updated

Abstract

Time series classification is a fundamental task in healthcare and industry, yet the development of time series foundation models (TSFMs) remains limited by the scarcity of publicly available time series datasets. In this work, we propose **Ti**me **Vi**sion **T**ransformer (**TiViT**), a framework that converts time series into images to leverage the representational power of frozen Vision Transformers (ViTs) pretrained on large-scale image datasets. TiViT achieves state-of-the-art performance on time series classification and anomaly detection benchmarks by utilizing the hidden representations of large OpenCLIP models. We explore the structure of TiViT representations and find that intermediate layers with high intrinsic dimension are the most effective for time series classification. Furthermore, we assess the alignment between TiViT and TSFM representation spaces and identify a strong complementarity, with additional performance gains achieved by combining their features. Finally, we provide theoretical and qualitative insights about the benefits of 2D patching for time series modeling with ViTs. Our findings reveal a new direction for reusing vision representations in a non-visual domain.
BibTeX
@misc{roschmann2026tivit,
  author = {Simon Roschmann and Quentin Bouniot and Vasilii Feofanov and Ievgen Redko and Zeynep Akata},
  title = {{TiViT: Time Series Representations Lie Hidden in Pretrained Vision Transformers}},
  year = {2026},
  url = {https://openreview.net/forum?id=2xEvtVALpg},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure