FLAT: Resampling Image and Text into 1D Flexible-Length Aligned Transmodal Tokens for Retrieval and Generation

Guangyu Sun, Shlok Kumar Mishra, Wentao Bao, Robert Zhenheng Yang, Xiao Wang, Xiyuan Wang, Yujunrong Ma, Chen Yuan and 3 others

Meta AI

Published September 15, 2026 · on the feed September 16, 2026 · ▲ 16 · arXiv 2609.16591

Vision & multimodalRetrieval, memory & searchLLM training & RL No code arXiv ↗Hugging Face ↗

The abstract

Traditional multimodal representation learning and generation are two stages: a contrastive or self-supervised visual encoder is trained first, followed by a separate downstream generative model. This setup bottlenecks generative performance behind frozen embeddings. To bridge this gap, we revisit joint multimodal representation learning and generation to produce linearly interpolatable embeddings that are directly consumable by generative decoders. We present FLAT (Flexible-Length Aligned Transmodal representations), a representation pre-training framework that jointly optimizes a shared multimodal encoder alongside downstream text-to-image (T2I) and image-to-text (I2T) decoders. By combining contrastive alignment with bidirectional cross-modal generative objectives, FLAT ensures its representations function as both discriminative semantic descriptors and generative conditions. Architecturally, FLAT maps visual and textual inputs into a unified continuous 1D sequence space, applying nested dropout over prefix-K tokens to enable dynamic output lengths. A single pre-training stage allows FLAT to perform cross-modal retrieval and generation across variable prefix K, achieving a T2I GenEval score of 71.1. Task-specific fine-tuning aligns model performance with state-of-the-art baselines: 83.1 GenEval on T2I generation; 40.5 BLEU-4 and 138.6 CIDEr on MS-COCO image captioning; and Recall@5 scores of 86.8 (I2T) / 75.8 (T2I) on MS-COCO alongside 98.3 (I2T) / 93.6 (T2I) on Flickr30K. Finally, qualitative evaluations demonstrate that FLAT representations natively support linear interpolation, latent space arithmetic, and zero-shot composed retrieval.

The Brief

2:43

A short podcast summary of the paper. Written and voiced by AI.

Transcript

FLAT. Resampling Image and Text into 1D Flexible-Length Aligned Transmodal Tokens for Retrieval and Generation. By Guangyu Sun and ten others, from Meta AI. Published on the fifteenth of September. No code repository is linked to it.

Traditional multimodal representation learning and generation happen in two stages. A contrastive or self-supervised visual encoder is trained first, and a separate downstream generative model is built on top of it. That arrangement bottlenecks generative performance behind frozen embeddings. The encoder was trained to describe, and the generator has to make do with whatever it was given.

FLAT, for Flexible-Length Aligned Transmodal representations, revisits joint training of the two. It is a representation pre-training framework in which a shared multimodal encoder is optimized together with downstream decoders for text-to-image, or T2I, and image-to-text, or I2T. Contrastive alignment is combined with bidirectional cross-modal generative objectives, so the representations have to work both as discriminative semantic descriptors and as conditions for generation. The target is embeddings that interpolate linearly, and that generative decoders can consume directly.

Architecturally, visual and textual inputs are both mapped into one continuous one-dimensional sequence space. Nested dropout is applied over the first K tokens, which enables dynamic output lengths: a representation can be cut to a shorter prefix and still be usable. After a single pre-training stage, FLAT performs cross-modal retrieval and generation across a variable prefix K. One model, trained once, can therefore be asked for a short representation or a long one, and the same representation can be used either to search or to generate.

From pre-training alone, FLAT scores seventy-one point one on GenEval for text-to-image. Task-specific fine-tuning brings it in line with state-of-the-art baselines. On GenEval, that is eighty-three point one. On MS-COCO image captioning, it is forty point five BLEU-4 and one hundred and thirty-eight point six CIDEr.

For retrieval on MS-COCO, Recall at five is eighty-six point eight from image to text, and seventy-five point eight from text to image. On Flickr30K, the same measure is ninety-eight point three from image to text, and ninety-three point six in the other direction. Qualitative evaluations show the representations natively support linear interpolation, latent space arithmetic, and zero-shot composed retrieval.

The bet is that one representation can serve both search and synthesis, as long as generation is part of how it is learned rather than something bolted on afterwards. The variable-length prefix adds a dial on top, trading the length of a representation against how much it holds.

Paper Quest · 7 chapters · about 39 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

Describing and generating usually live apart. That is the wall here.

You build systems that search images by text and generate images from text. Usually an encoder is trained first, to describe images, and then frozen.

The road ahead

  1. 1 · The problem ~6 min When an encoder is trained only to describe images and then frozen, any generator built on it has to work around embeddings never meant to guide it.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~8 min Train the encoder together with both generators and a matching loss, on one shared token sequence that can be cut to several prefix lengths.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Encode both modalities into one 1D sequence, keep a random prefix, train three losses on it together, then fine-tune per task.
  6. 6 · The experiment ~6 min You’ll guess: After pre-training alone, before any task-specific fine-tuning, what GenEval score did FLAT reach for text-to-image generation?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.