Skip to main content

A Matter of Time: Revealing the Structure of Time in Vision-Language Models

PyPI Python License arXiv Paper Dataset Demo

Teaser

Official implementation of "A Matter of Time: Revealing the Structure of Time in Vision-Language Models", published at ACM Multimedia 2025 (MM '25).

We investigate the temporal awareness of VLMs, assessing their ability to position visual content in time. We introduce TIME10k, a benchmark of over 10,000 images with temporal ground truth, and evaluate 37 VLMs. We reveal that temporal information is structured along a low-dimensional, non-linear manifold in the VLM embedding space. We propose methods to derive an explicit "timeline" representation using UMAP and Bezier curve approximation, achieving competitive to superior accuracy while being computationally efficient.

Performance

Try it now: A live demo is available on Hugging Face Spaces.


Quick Start

Install

pip install timeline-vlm

For CLIP models, also install:

pip install git+https://github.com/openai/CLIP.git

Predict the year of any image in 3 lines:

from timeline_vlm import TimelinePredictor

predictor = TimelinePredictor('clip-vit-b32').fit_from_precomputed('encodings')
print(predictor.predict('photo.jpg'))  # -> 1972

Or from the command line:

timeline-vlm predict photo.jpg
timeline-vlm predict photo.jpg --model "CLIP ViT-L/14" --method time_probing

List available models:

from timeline_vlm import list_models
print(list_models())  # 37 supported VLMs

# or from CLI
timeline-vlm list-models

No GPU required — precomputed embeddings for CLIP and EVA-CLIP are included.


Installation

pip install timeline-vlm

From source (for development or paper reproduction)

git clone https://github.com/tekayanidham/timeline-vlm.git
cd timeline-vlm
pip install -e .

Optional dependencies

# CLIP models (not on PyPI, must be installed separately)
pip install git+https://github.com/openai/CLIP.git

# OpenCLIP models
pip install timeline-vlm[openclip]

# All optional dependencies (excluding CLIP)
pip install timeline-vlm[all]

# For all 37 models (including EVA-CLIP, ImageBind and ViT-Lens)
bash install_models.sh

Python API

from timeline_vlm import TimelinePredictor

# Initialize and fit
predictor = TimelinePredictor(
    model='clip-vit-b32',          # Any of the 37 supported models
    method='bezier',               # 'time_probing', 'umap', or 'bezier'
    reduce_dim=None,               # KPCA dimensions (None = original space, 13 = optimal)
    bezier_method='interpolation', # 'interpolation' or 'nearest_neighbor'
)
predictor.fit_from_precomputed('encodings')

# Single prediction
year = predictor.predict('photo.jpg')

# Batch prediction
years = predictor.predict_batch(['img1.jpg', 'img2.jpg', 'img3.jpg'])

# Detailed prediction
details = predictor.predict_with_details('photo.jpg')

# Evaluate on your own data
results = predictor.evaluate(image_embeddings, ground_truth_years)
print(f"MAE: {results['mae']:.2f}, TAI: {results['tai']:.3f}")

See docs/library.md for the full API reference.


CLI

# Predict
timeline-vlm predict photo.jpg
timeline-vlm predict photos/ --output json --save results.json

# List models
timeline-vlm list-models
timeline-vlm list-models --verbose

# Visualize (1D, 2D, or 3D)
timeline-vlm visualize timeline --model clip-vit-b32 --dim 3 --save timeline.png
timeline-vlm visualize prediction --image photo.jpg --dim 2 --save pred.png

Reproducing Paper Results

python scripts/reproduce_results.py --table 5                        # Single table
python scripts/reproduce_results.py --table 4 5                      # Multiple tables
python scripts/reproduce_results.py --figure 6                       # Figure 6
python scripts/reproduce_results.py --all                            # Everything
python scripts/run_experiments.py --config configs/full_evaluation.yaml  # Full benchmark
Flag What it reproduces
--table 1 Time probing MAE & TAI for 37 VLMs (P7)
--table 2 Prompt sensitivity P1-P9
--table 3 Class-wise temporal awareness
--table 4 Chronological ordering quality (KPCA vs UMAP)
--table 5 Method comparison: Time Probing vs UMAP vs 4 Bezier variants
--figure 6 MAE per KPCA dimension (optimal S=13)

See docs/reproducing_results.md for the full step-by-step guide.


Methods

Three temporal inference approaches, each described in detail in docs/methods.md:

Method Paper CLIP MAE Description
Time Probing Sec. 3.1 9.24 Dot-product similarity baseline
UMAP Timeline Sec. 3.3.1 13.01 1D manifold projection
Bezier(R^S, Int) Sec. 3.3.2 8.80 Bezier curve in KPCA subspace (best)

Supported Models (37 VLMs)

Family Count Backend
CLIP 9 openai/CLIP
EVA-CLIP 8 eva_clip (BAAI)
OpenCLIP 10 open_clip
SigLIP 3 open_clip
Others (CoCa, MobileCLIP, ViTamin, CLIPA, ImageBind, ViT-Lens) 7 various

See docs/models.md for the full list with model keys and installation instructions.


Documentation


Citation

@inproceedings{10.1145/3746027.3758163,
  author = {Tekaya, Nidham and Waldner, Manuela and Zeppelzauer, Matthias},
  title = {A Matter of Time: Revealing the Structure of Time in Vision-Language Models},
  year = {2025},
  isbn = {9798400720352},
  publisher = {Association for Computing Machinery},
  address = {New York, NY, USA},
  url = {https://doi.org/10.1145/3746027.3758163},
  doi = {10.1145/3746027.3758163},
  booktitle = {Proceedings of the 33rd ACM International Conference on Multimedia},
  pages = {12371--12380},
  numpages = {10},
  keywords = {benchmark dataset, multimodal representations, time estimation, time modeling, time reasoning, vision-language models},
  location = {Dublin, Ireland},
  series = {MM '25}
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for timeline-vlm 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for timeline-vlm 1.0.6
File Size Uploaded Provenance Actions
timeline_vlm-1.0.6.tar.gz 40.9 kB With provenance Details for timeline_vlm-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for timeline-vlm 1.0.6
File Interpreter ABI Platform Actions
timeline_vlm-1.0.6-py3-none-any.whl Python 3 none any Details for timeline_vlm-1.0.6-py3-none-any.whl

Total release size: 87.0 kB

Release files / timeline_vlm-1.0.6.tar.gz

Download URL timeline_vlm-1.0.6.tar.gz
Size 40.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6f9132e89d3dc0fb0e1ad50d8afbdaa78fe2e5af73ee62102f1d0b72f2c4d614
BLAKE2b-256 checksum
How to use checksums
87116bfdfd69f2c3d2ac13a0de417ddae71e5120610e71f56dc13f9f69eb6021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.

Transparency log

Release files / timeline_vlm-1.0.6-py3-none-any.whl

Download URL timeline_vlm-1.0.6-py3-none-any.whl
Size 46.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe287b81e31eeee01795237c8ad43238741029580e0f72dc7210bb1c4ecc7c8b
BLAKE2b-256 checksum
How to use checksums
57622bcd13cc0647da4881cf33b6a5e0945da418fedf68b5dadcd9f94db32f03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.

Transparency log

Security for timeline-vlm 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for timeline_vlm-1.0.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page