CoRe: Jointly Learning Contextual Representations for Understanding and Generation

Hangke Sui, Chang Li, Yuyan Li, Mohammad Haris Baig, Daniel UlbrichtarXiv 2026

TL;DR

Conventional wisdom in multimodal AI holds that understanding (which favors abstract semantics) and generation (which requires fine-grained detail) pull representations in opposite directions, requiring separate encoders or frozen pre-trained latents. CoRe proves they actually complement each other: by training one shared contextual representation per modality from scratch, understanding organizes the space semantically while generation forces it to retain rich detail. Without relying on any pretrained LLMs or VAEs, CoRe matches contrastive baselines in recognition while generating sharper images and more accurate captions.

What Problem Does This Paper Address?

Richard Feynman famously wrote, "What I cannot create, I do not understand." Yet in modern machine learning, creation and understanding live in separate worlds. Representations for understanding (like CLIP or DINOv2) are trained to group concepts semantically, often discarding pixel-level details. Meanwhile, generative models (like Latent Diffusion) typically operate inside a pre-trained, frozen space built purely for reconstruction (like a VAE) and rely on separate decoders.

Because people assume abstract semantics and fine details compete, unified multimodal systems usually bolt together separate, massive pretrained encoders and codebooks. The authors ask a foundational question: Can a single contextual representation—learned completely from scratch—simultaneously read an observation for understanding and serve as the continuous latent space for generating it?

Comparison of CoRe's joint representation learning against traditional frozen reconstruction or understanding pipelines.

Methods

CoRe (Contextual Representations) is a symmetric 383M-parameter architecture trained entirely from scratch—meaning no pretrained text encoder, LLM, or VAE is used at inference.

Modality-specific Transformers map an image or text sequence into contextual patch or token representations ($Z_v$ and $Z_t$), along with attention-pooled global summaries ($g_v$ and $g_t$). Every representation wears three hats simultaneously:

  1. Understanding: Pooled summaries are aligned across modalities using a contrastive SigLIP loss.
  2. Conditioning: One modality’s representation conditions the generation of the other via cross-attention and adaptive normalization.
  3. Generation Space: Both images and text are generated via continuous Gaussian diffusion/flow trajectories directly inside $Z_v$ and $Z_t$.
CoRe architecture showing how image and text encoders feed a shared contextual representation used for alignment, conditioning, and denoising.

What’s novel here? First, text is generated via continuous diffusion in the exact contextual token space used for semantic understanding—capturing word meaning in context rather than diffusing over static vocabulary lookup embeddings. Second, because $Z$ is a moving target during joint training, predicting latents alone would cause representation collapse. CoRe solves this by anchoring the denoiser directly to fixed observables: at every noise step, two lightweight heads predict both the clean representation (for the next sampling step, with gradients detached on the target) and actual RGB pixels or token logits (allowing generative gradients to shape the encoder).

Datasets

No new benchmarks are introduced; the authors keep data strictly controlled to isolate representation learning from scale:

  • Training: Trained from scratch on CC12M paired with public LLaVA-NeXT recaptions and original alt-text (CC12M-R). Fine-tuned variants use a public 120K synthetic image-text mixture.
  • Evaluation: Understanding is tested on ImageNet-1k, COCO Karpathy-5K (retrieval), SugarCrepe, ADE20K (segmentation), NYU Depth v2, VQAv2, SICK-R, and Flickr30k. Generation is evaluated on COCO, TrueMatch, DetailCaps, DOCCI, CompreCap (captioning), plus GenEval, DPG-Bench, and COCO-30K / CC12M-50K FID (image synthesis).

Key Insights and Ideas

  • Organization vs. Retention: Controls reveal why joint training works. Removing contrastive alignment yields crisp image reconstructions (26.91 dB PSNR) but terrible prompt following (.193 GenEval)—the space retains detail, but isn't semantically organized. Conversely, freezing a contrastive-only space organizes concepts well, but loses detail (19.26 dB PSNR). Joint training gives you both.
  • The "Competition" Illusion is a Readout Problem: On ADE20K segmentation, a simple linear probe on CoRe’s representation scores lower than a contrastive-only baseline (24.7 vs. 30.2 mIoU), making it look like generation hurt spatial understanding. However, swapping in a 2-block attentive probe reverses the gap, putting CoRe ahead (42.4 vs. 41.2 mIoU). Generation didn't destroy spatial info; it packed more local geometry into patches (outperforming baselines on monocular depth across all probes) in a nonlinearly arranged way.
  • Training-Free Probing, Ranking, and Steering: Because generation happens directly inside the understanding space, off-the-shelf probes trained only on real images work natively on noisy intermediate generation steps. A frozen segmentation probe can steer image layouts mid-generation via gradients, and the model can rank its own outputs without an external CLIP judge.

Key Results

At equal data and architecture, CoRe matches understanding baselines while substantially boosting bidirectional generation:

  • Understanding: Reaches 50.63% ImageNet zero-shot accuracy (50.90% with Gram/iBOT regularizers), beating the contrastive-only control (49.51%). When read by a frozen Qwen2.5-1.5B LLM, CoRe beats both the contrastive baseline and 142M-image DINOv2-B on VQAv2 (65.6 vs. 64.9 and 64.6).
  • Image-to-Text: Boosts zero-shot COCO SPICE by +34% over the frozen contrastive baseline (13.53 vs. 10.06) and cuts object hallucinations (CHAIR_i) from 16.5% to 11.2%. On TrueMatch visual discrimination, this 383M model beats LLaVA-NeXT-34B.
  • Text-to-Image: Reaches 10.10 FID on COCO-30K—rivalling ~5.5B parameter generators (like DREAM-L at 10.0) that rely on frozen T5-XXL and SD-VAE. Fine-tuning pushes GenEval from .448 to .806.
Text-to-image samples generated by fine-tuned CoRe, self-ranked using the model's own image-text alignment score.
  • Few-Step Speedups: Because both modalities use continuous flows, shortcut distillation compresses image generation to 9 NFE (173 ms on an H100) while retaining .797 GenEval, and captioning to 79 ms (17 ms at 1 jump)—faster than autoregressive BLIP-base (107 ms) or CoCa (352 ms).

Limitations and Future Work

Because the authors deliberately avoided pretrained LLMs and trained exclusively on CC12M captions to keep the experiment pure, CoRe's text encoder has limited exposure to complex language—making hard counting and intricate spatial prompts challenging compared to systems inheriting massive T5 or Llama encoders. However, because CoRe models language in its own continuous space, scaling up model size and mixing in massive text-only corpora are natural, fully compatible next steps.

Summary updated

Abstract

We introduce CoRe, in which understanding and generation jointly shape one contextual representation for images and one for text, trained from scratch. Each representation is read for understanding, conditions the other modality, and is the space in which that modality is generated by a continuous flow from Gaussian noise. With 383M parameters trained on CC12M and no pretrained language model, text encoder, or VAE at inference, CoRe matches a same-data contrastive-only baseline in global understanding and reaches COCO-30K FID 10.10, comparable to much larger generators built on pretrained components. In controlled comparisons at equal data and architecture, CoRe generates better in both directions (text to image and image to text) than a representation shaped by understanding alone and then frozen, and follows prompts better than generating in a space that understanding does not shape. In the other direction, with an attentive segmentation probe, on monocular depth, and when read by a frozen language model, CoRe surpasses the contrastive-only baseline: generation adds information that stronger readouts reach. Because generation runs inside the understanding representation, frozen real-image probes read and steer intermediate states and the model ranks its own samples without extra training. Because both modalities use continuous flows, both also distill to a few steps. Our controls indicate why one representation suffices: understanding organizes the representation semantically, while generation makes it retain more information.
BibTeX
@misc{sui2026core,
  author = {Hangke Sui and Chang Li and Yuyan Li and Mohammad Haris Baig and Daniel Ulbricht},
  title = {{CoRe: Jointly Learning Contextual Representations for Understanding and Generation}},
  year = {2026},
  eprint = {2611.31397},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31397},
}
Figure