From Points to Functions: Infinite-dimensional Representations in Diffusion Models

Sarthak Mittal, Guillaume Lajoie, Stefan Bauer, Arash Mehrjou

TL;DR

Instead of compressing an image into a single static latent vector, diffusion-based representation models can map inputs to continuous, infinite-dimensional trajectories over time. This paper demonstrates that different semantic features live at different points along this trajectory, and that aggregating multi-step information using attention or recurrence strictly outperforms evaluating any single "optimal" time step.

What Problem Does This Paper Address?

Standard representation learning models (like VAEs, standard autoencoders, or contrastive frameworks) map an input sample $x_0$ to a single static vector $z \in \mathbb{R}^d$. Recent work on diffusion-based representation learning (e.g., Abstreiter et al., 2021) introduced time-conditioned encoders that learn representations along the diffusion trajectory as noise is added. However, prior work focused on finding a single "best" intermediate time step $t^*$ to use for downstream tasks.

Because the diffusion process gradually washes out fine-grained information while preserving coarse structures, the authors ask: Does a single time step ever capture everything, or is information distributed across the trajectory in a way that downstream models can exploit?

Methods

The authors build on the score-based diffusion framework with a time-dependent encoder $E_\phi(x_0, t)$ conditioned on time $t \in [0, 1]$, using both probabilistic (VDRL) and deterministic (DRL) encoders.

  • Trajectory-based Representations: Instead of extracting a representation at a fixed $t$, an input is mapped to an entire trajectory function $t \mapsto E_\phi(x_0, t)$.
  • Sequential Aggregation: Trajectories are discretized uniformly into $k+1$ evaluation points across $[0, 1]$ (defined as granularity $k$). Downstream classifiers use sequence models—specifically Recurrent Neural Networks (GRUs) and multi-head Transformers—to aggregate features across the trajectory.
  • Analytical Probing:
  • Mutual Information Neural Estimation (MINE): Used to compute normalized mutual information between representations at different time steps.
  • Attention Score Profiles: A single-layer Transformer is trained on downstream tasks; its attention distribution over time points reveals which parts of the trajectory contain features critical to that specific task.

Datasets

The authors evaluate their approach on both standard vision benchmarks and controlled multi-task datasets:

  • CIFAR-10, CIFAR-100, and Mini-ImageNet: Standard image classification benchmarks evaluated at latent dimensions $d=64$ and $d=128$.
  • Synthetic Dataset: A synthetic multi-task benchmark where each scene has an object; downstream tasks include predicting background color, foreground color, object location, and object shape.
  • Colored-MNIST: Multi-task setup requiring classification of digit identity (0–9), foreground color, and background color.
  • CelebA: Real-world multi-attribute face dataset evaluated across 40 binary facial attribute prediction tasks.

Key Insights and Ideas

  • Trajectories beat single points: Downstream sequence models (RNNs, Transformers) consistently outperform standard Multi-Layer Perceptrons (MLPs) trained on the best single time point. No single step captures all useful downstream information.
  • Semantic separation over time: Representations far apart along the trajectory exhibit low mutual information. Attention profiles show that different tasks query different stages of the diffusion process:
  • Global, low-frequency features (e.g., background color) remain uniformly distributed across time.
  • Fine-grained, structural features (e.g., object shape, digit identity, object location) concentrate heavily in the middle-to-late parts of the trajectory.
  • Trading temporal depth for spatial bottlenecking: In severely constrained latent spaces (e.g., where $E_\phi$ outputs only a 2D vector), increasing temporal granularity $k$ yields dramatic and monotonic performance gains. An infinite-dimensional trajectory compensates for a tiny bottleneck per point.

Key Results

  • Benchmark Classification: On CIFAR-10, CIFAR-100, and Mini-ImageNet, trajectory-based Transformers consistently outperform the peak performance of single-point MLPs across both 64-d and 128-d latent spaces (e.g., for 64-d on CIFAR-10: Transformer reaches ~76% accuracy vs. the peak MLP accuracy of ~72%).
  • Granularity Effects: Increasing granularity improves performance up to a saturation point for standard latent sizes (around $k=10$ to $k=25$). For extreme bottlenecks (2D latent space on Synthetic and Colored-MNIST), increasing granularity from $k=2$ to $k=50$ leads to massive downstream gains (e.g., digit identity on Colored-MNIST jumps from below 40% to nearly 60%).
  • Feature Divergence: Jensen-Shannon Divergence (JSD) heatmaps between task attention distributions confirm that distinct semantic features rely on distinct temporal profiles.

Limitations and Future Work

  • Uniform Discretization: The trajectory is currently sampled at uniform, heuristic intervals. The authors note that an automated, adaptive discretization mechanism—where the model learns to allocate sampling density dynamically based on the task—would be far more computationally efficient.
  • Representation-Only Scope: The encoder is trained via a score-matching objective, but the resulting model is evaluated solely as a representation learner, not as a standalone generative model.

Summary updated

BibTeX
@inproceedings{mittal2023from,
  author = {Sarthak Mittal and Guillaume Lajoie and Stefan Bauer and Arash Mehrjou},
  title = {{From Points to Functions: Infinite-dimensional Representations in Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=0DwzMsUNIr},
}
Figure