Manuscript Offprint

arXiv:2609.39657

Diffusable Latents from Structure-Agnostic Distillation

Adrien Ramanana Rahary, Nicolas Dufour, Patrick Pérez, David Picard

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Distilling pretrained foundation models into an autoencoder bottleneck improves latent diffusability, enabling diffusion models to converge faster and reach higher sample quality. Standard distillation aligns the latent at each position to a colocated teacher feature, tying the latent layout to the teacher's. We show this constraint is unnecessary: aligning a single pooled image-level descriptor to the teacher's performs as well as or slightly better than dense position-wise distillation. We compare first-order and relational pooled objectives across latent shapes and teacher modalities. First-order matching extends naturally to 1D token-sequence latents and across modalities, where distilling a text encoder into an image autoencoder still improves diffusability; a relational objective based only on each image's nearest neighbours improves it as well. Code and blog post are available at github.com/AdrienRR/structure-agnostic-distillation and kyutai.org/blog/2026-09-28-structure-agnostic-distillation.

1 Introduction

Latent diffusion trains a diffusion prior in an autoencoder's latent [Rombach et al., 2022, Peebles and Xie, 2023], and sample quality depends on how diffusable that latent is [Skorokhodov et al., 2025]. Prior work makes the latent more diffusable by distilling a frozen pretrained vision encoder into the autoencoder bottleneck, matching each latent position to its co-located patch feature [Peng et al., 2022, Hu et al., 2023, Russell et al., 2025, Yao and Wang, 2025, Bi et al., 2026]. A more extreme line replaces the trained encoder with a frozen representation model and diffuses in its output space [Zheng et al., 2025, Tong et al., 2026, Singh et al., 2026, Hu et al., 2026, Guo et al., 2026]. Both approaches place the latent and the teacher on a shared patch grid. But such a grid can be unavailable: compact 1D token latents, a short list of tokens with no spatial layout [Yu et al., 2024, Bachmann et al., 2025], drop it on the student side for efficiency, and a teacher from another modality, such as a text encoder, never had one to share. Position-wise distillation then reaches these settings only through an artificial correspondence, as SoftVQ-VAE [Chen et al., 2025] does by replicating latent tokens and learning a projector to a pretrained grid. We ask whether distillation can improve diffusability without any token-level correspondence between the latent and the teacher.

We study structure-agnostic distillation: we pool each image's latent tokens into one image-level descriptor and define the distillation objective on these descriptors alone, leaving the latent's internal layout free (Figure 1). Because pooling reduces each image to a single vector, the objective is independent of the latent's token count and layout, so student and teacher may take any shape. We compare a family of pooled objectives: a first-order match that aligns each descriptor directly to its teacher descriptor, and relational objectives [Park et al., 2019, Passalis and Tefas, 2018, Tung and Mori, 2019, Tian et al., 2020] that instead match the matrix of between-image similarities, via

NeurIPS 2026 Workshop on Principles of Generative Modeling.

Structure-agnostic distillation (ours)

Figure

Figure 1: Pointwise vs. structure-agnostic distillation of a foundation encoder into the autoencoder latent. A batch of B images is encoded by the frozen teacher and the trainable encoder. Pointwise (left) matches each latent token to its co-located teacher token, requiring a shared token grid and a channel projector. Pool-Align (middle) matches one pooled descriptor per image, requiring only a projector, not a grid. Relational (right) matches the B×BB \times B between-image similarity kernel, requiring neither. The structure-agnostic variants thus apply to any latent and teacher shape.

centered kernel alignment (CKA, Kornblith et al. 2019) or a softmaxed-similarity KL divergence (Soft-KL); both are detailed in Section 2.

To our knowledge, this is the first study to show that aligning pooled representations can replace position-wise alignment while improving diffusability. Varying only the distillation loss at fixed architecture and budget, first-order pooled matching performs as well as or slightly better than position-wise alignment where the latter applies, and structure-agnostic distillation extends to shapes that position-wise alignment reaches only through an artificial correspondence, handling a 1D token-sequence latent and letting a text encoder improve the diffusability of an image latent. Representation distillation can transfer useful semantic geometry into a generative latent without inheriting the teacher's structural organization.

References (42)