ViTCAE: ViT-based Class-conditioned Autoencoder

Vahid Jebraeeli, Hamid Krim, Derya Cansever

Abstract

Vision Transformer (ViT) based autoencoders often underutilize the global Class token and employ static attention mechanisms, limiting both generative control and optimization efficiency. This paper introduces ViTCAE, a framework that addresses these issues by re-purposing the Class token into a generative linchpin. In our architecture, the encoder maps the Class token to a global latent variable that dictates the prior distribution for local, patch-level latent variables, establishing a robust dependency where global semantics directly inform the synthesis of local details. Drawing inspiration from opinion dynamics, we treat each attention head as a dynamical system of interacting tokens seeking consensus. This perspective motivates a convergence-aware temperature scheduler that adaptively anneals each head's influence function based on its distributional stability. This process enables a principled head-freezing mechanism, guided by theoretically-grounded diagnostics like an attention evolution distance and a consensus/cluster functional. This technique prunes converged heads during training to significantly improve computational efficiency without sacrificing fidelity. By unifying a generative Class token with an adaptive attention mechanism rooted in multi-agent consensus theory, ViTCAE offers a more efficient and controllable approach to transformer-based generation.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
TinyImageNet · Tiny ImageNetViTCAE, TAAcc.92.87%Temperature Adjustment control-strategy comparison; evaluation split not stated.
Source quote
L289: Tiny ImageNet │ TA (Ours) │ 4 │ 196 │ 92.87
TinyImageNet · Tiny ImageNetBaseline (without control)Acc.85.33%Temperature Adjustment control-strategy comparison; evaluation split not stated.
Source quote
L290: Tiny ImageNet │ Baseline │ 12 │ 196 │ 85.33 [0.3em]
CIFAR-10ViTCAE, TAAcc.82.33%Temperature Adjustment control-strategy comparison; evaluation split not stated.
Source quote
L292: CIFAR-10 │ TA (Ours) │ 0 │ 60 │ 82.33
CIFAR-10Baseline (without control)Acc.79.01%Temperature Adjustment control-strategy comparison; evaluation split not stated.
Source quote
L293: CIFAR-10 │ Baseline │ 4 │ 60 │ 79.01 [0.3em]
CelebA FaceViTCAE, TAAcc.89.67%Temperature Adjustment control-strategy comparison; evaluation split not stated.
Source quote
L295: CelebA Face │ TA (Ours) │ 3 │ 138 │ 89.67
CelebA FaceBaseline (without control)Acc.81.91%Temperature Adjustment control-strategy comparison; evaluation split not stated.
Source quote
L296: CelebA Face │ Baseline │ 8 │ 138 │ 81.91
BibTeX
@misc{jebraeeli2025vitcae,
  author = {Vahid Jebraeeli and Hamid Krim and Derya Cansever},
  title = {{ViTCAE: ViT-based Class-conditioned Autoencoder}},
  year = {2025},
  eprint = {2509.16554},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.16554},
}
Figure