Skip to content

Twins: Learn to Predict Unified Representations with Focal Loss

Jul 2026 · arXiv.org · Vol abs/2607.22531 · 0 citations · 88 references
Computer Science

TL;DR

Twin, a unified continuous token space formed by channel-wise concatenating ViT and VAE features on the same token grid, so the sequence length is unchanged and attention cost does not increase is proposed, which performs competitively on multimodal understanding benchmarks and improves reconstruction fidelity.

Abstract

Unified multimodal models seek a shared visual token space that supports both multimodal understanding and image generation. Discrete methods unify the interface via a shared codebook, whereas continuous pipelines often rely on two disparate representations -- semantic features (e.g., ViT) for understanding and low-level latents (e.g., VAE) for synthesis -- resulting in mismatched latent spaces. We propose Twins, a unified continuous token space formed by channel-wise concatenating ViT and VAE features on the same token grid, so the sequence length is unchanged and attention cost does not increase. However, jointly modeling Twins in a Diffusion Transformer exposes a severe optimization imbalance: the model fits the ViT component well but struggles to match the VAE latent distribution. We trace this imbalance to three sources of heterogeneity: frequency bias, intrinsic dimensionality, and condition-aligned vs condition-independent uncertainty. To address it, we adapt a focal regression objective for flow matching that upweights large-error VAE dimensions, better balancing optimization across the ViT and VAE components. On ImageNet, this yields up to 10.57 gFID gain over naive MSE loss without classifier-free guidance. Twins also performs competitively on multimodal understanding benchmarks and improves reconstruction fidelity, narrowing the gap between understanding- and generation-oriented representations.

View source

Similar papers

Preprint Aug 2026

Adaptive Hierarchical Representation Alliance for Multimodal Learning

Adaptive Hierarchical Representation Alliance (AHRA), a hierarchical shared--private expert framework, is proposed, which consistently improves over strong baselines and remains robust under noisy and missing-modality settings.

Chun-Lei Meng, Peng-Bin Feng, Jacqueline J. Pang et al. · 2 citations
Jul 2026

Do Unified Multimodal Models Think in One Space? A Lens Through Cross-Branch Steering

It is shown that steering vectors learned from the understanding branch can transfer to generation, enabling controllable image synthesis and improved semantic faithfulness, and establish cross-branch steering as a practical tool for probing multimodal representations.

Yu Wang, Sharon Li · 0 citations
Preprint Aug 2026

Where Does Generative Difficulty Reside? An Empirical Study of Target Representations

This work studies raw pixels, SD-VAE latents and DINOv2 as well as MAE representation-autoencoder features within a unified masked autoregressive rectified-flow model and shows that compression, reconstruction fidelity, token dimensionality, and visible semantic clustering do not individually predict generative behavio...

Marcel Plocher, B. Schölkopf, Andreas Geiger et al. · 0 citations
Preprint Aug 2026

SPAE: Spectrally Guided Autoencoder for Pretrained Visual Latents

SPAE employs a compact bottleneck to distill stable semantic information while suppressing high-frequency components, thereby improving the alignment between DiT-generated latents and encoder latents, and achieves a favorable balance among visual understanding, generation quality, and reconstruction fidelity.

Yi-Bin Huang, Ji-Xiang Hong, Zongzhao Li et al. · 0 citations
Preprint Aug 2026

UniJEPA: A Unified Joint-Embedding Predictive Architecture for Task-Agnostic Visual World Modeling

UniJEPA is presented, a unified JEPA that jointly learns photometric prediction (image-level transformations) and temporal prediction (video-level next-state dynamics) in one shared latent space and shows that the same latent space supports controllable abstraction.

Lan-Ji An, Da-Wei Liu, Jin Li et al. · 1 citation

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.