Meta's FLAT for Multimodal Understanding and Generation (7 minute read)

TLDR AI Papers

Summary

FLAT introduces a shared sequence of continuous tokens for images and text, enabling flexible-length representations for multimodal tasks like generation and retrieval, with strong performance on benchmarks.

Meta AI introduced FLAT, a method that converts images and text into the same flexible-length sequence of continuous tokens for retrieval and generation. Nested dropout arranges information from coarse to fine, letting models trade computation for visual detail by varying the number of tokens used.
Original Article
View Cached Full Text

Cached at: 09/17/26, 02:32 PM

# FLAT — Flexible-Length Aligned Transmodal Tokens Source: [https://guangyusun.com/flat-website/](https://guangyusun.com/flat-website/) ![FLAT represents image and text with one shared flexible-length sequence.](https://guangyusun.com/flat-website/assets/fig_teaser.png)**One representation, multiple capabilities\.**FLAT maps images and text into a shared sequence of continuous tokens\. Any prefix can serve as a retrieval embedding or condition bidirectional generation\. ## Summary Modern multimodal systems usually maintain separate representations for understanding and generation\.**FLAT**instead resamples either images or text into the same one\-dimensional sequence of continuous tokens, jointly trained for cross\-modal alignment, image synthesis, and captioning\. Nested dropout organizes information from coarse to fine\. At inference time, selecting a prefix of length*K*provides a direct compute–detail trade\-off: the first token already captures global semantics, while longer prefixes recover composition and fine\-grained attributes\. **83\.1**GenEval **138\.6**COCO CIDEr **86\.8 / 75\.8**COCO I2T / T2I R@5 **98\.3 / 93\.6**Flickr I2T / T2I R@5 **81\.8**ImageNet linear probe Architecture ## A shared, ordered token space A single VLM encoder produces up to 256 continuous 64\-dimensional register tokens for either modality\. ![FLAT architecture with a shared encoder, register tokens, and three training objectives.](https://guangyusun.com/flat-website/assets/fig_method.png) The shared encoder resamples images and captions into aligned register tokens\. Contrastive alignment and bidirectional generation jointly shape the latent space; nested dropout trains every prefix to remain useful\. Interactive static demo ## One prefix, two decoded views Move the slider to vary the number of active FLAT tokens, then compare how the same ordered representation supports generation, captioning, interpolation, and arithmetic\. Active prefix lengthK = 1 · 64 dimensions Loading precomputed outputs… Loading precomputed outputs… Generation ## Coarse\-to\-fine decoding from any prefix Increasing*K*adds compositional detail without switching representations or models\. ![Text-to-image synthesis at K equals 1, 4, 16, 64, and 256.](https://guangyusun.com/flat-website/assets/fig_geneval.png) **Text\-to\-image synthesis\.**Short prefixes establish the principal concept; longer prefixes resolve counting, spatial relations, and attributes\. The task\-adapted model reaches**83\.1 GenEval**\.### Image captioning The same visual sequence conditions an autoregressive language decoder\. Caption quality rises smoothly fromK=1toK=256, reaching 40\.5 BLEU\-4 and 138\.6 CIDEr on COCO\. ![Image captioning examples across flexible prefix lengths.](https://guangyusun.com/flat-website/assets/fig_captioning.png) Additional registers refine the description while preserving the main visual semantics captured by the earliest token\. ### Complex text\-to\-image examples ![Complex text-to-image examples generated by FLAT.](https://guangyusun.com/flat-website/assets/fig_t2i_complex.png) Qualitative generations cover detailed scenes, stylized compositions, portraits, and unusual concepts beyond the diagnostic GenEval prompts\. Retrieval ## One token is already competitive Retrieval remains nearly unchanged across a 256× range in representation width\. ![COCO retrieval recall across active dimensions compared with adaptive-width baselines.](https://guangyusun.com/flat-website/assets/fig_retrieval_curve.png) COCO R@5 versus active dimensionality\. Each FLAT token contributes 64 dimensions\.Dataset / KI→T R@1I→T R@5T→I R@1T→I R@5COCO / 163\.0086\.4447\.7675\.59COCO / 256**63\.54****86\.82****47\.98****75\.83**Flickr / 190\.5098\.1076\.9493\.52Flickr / 4**91\.20****98\.30****77\.40**93\.58 Across all reported recall metrics, moving from**K=1**to**K=256**changes COCO performance by less than one point\. ![Image-to-text retrieval examples.](https://guangyusun.com/flat-website/assets/fig_retrieval_i2t.png) **Image\-to\-text retrieval\.**Green text marks the matched caption and its retrieved rank\.![Text-to-image retrieval examples.](https://guangyusun.com/flat-website/assets/fig_retrieval_t2i.png) **Text\-to\-image retrieval\.**Retrieved neighbors remain semantically close even when the target is not ranked first\. Representation analysis ## Aligned geometry with semantic structure FLAT's continuous tokens are simultaneously cross\-modal, discriminative, and decodable\. ![PCA distributions for matched image and text representations.](https://guangyusun.com/flat-website/assets/fig_modality_gap.png) **Closing the modality gap\.**A single FLAT token halves CLIP's image–text centroid distance; the full sequence reduces it to roughly one quarter\.![Unsupervised clustering of a single FLAT token.](https://guangyusun.com/flat-website/assets/fig_cluster.png) **Unsupervised structure\.***k*\-means over the frozen 64\-DK=1token recovers visually coherent ImageNet categories\.### Linear probing A linear classifier on frozen FLAT features reaches**73\.3%**ImageNet\-1K top\-1 with one 64\-D token,**81\.2%**with 16 tokens, and**81\.8%**with 64 tokens\. KDimensionsTop\-116473\.3425677\.0161,02481\.2644,096**81\.8**25616,384**81\.8** ### Continuous latent operations Because image and text occupy a shared decodable space, simple vector operations produce interpretable semantic transitions\. ![Continuous cross-modal interpolation between image and text concepts.](https://guangyusun.com/flat-website/assets/fig_interpolation.png) **Interpolation\.**Image and text decoders follow corresponding intermediate concepts along the same latent trajectory\.![Token arithmetic combining a lighthouse and a full moon.](https://guangyusun.com/flat-website/assets/fig_arithmetic.png) **Semantic arithmetic\.**Token\-wise composition adds the semantics of a full moon to a lighthouse scene; larger prefixes preserve increasingly detailed structure\. Beyond paired image–English training ## Zero\-shot transfer The shared VLM encoder exposes capabilities that were not explicitly supervised by the training mixture\. ### Multilingual and symbolic inputs ![Multilingual and emoji prompts decoded by FLAT.](https://guangyusun.com/flat-website/assets/fig_multilingual.png) Semantically equivalent English, Chinese, and Spanish prompts produce consistent images\. Emoji concepts can also be routed through the shared latent space\. ### Multi\-frame video semantics Four sampled frames can be jointly encoded into one register sequence\. The decoded result fuses concepts distributed across the clip rather than selecting a single keyframe\. ![Zero-shot captions produced from multiple frames of a video clip.](https://guangyusun.com/flat-website/assets/fig_video.png) **Video\-to\-text\.**The caption decoder summarizes objects, scenes, and actions across sampled frames\.![Images decoded from joint multi-frame video representations.](https://guangyusun.com/flat-website/assets/fig_video_decode.png) **Video\-to\-image\.**The generated image combines persistent objects and scene context across multiple frames\. ### Composed image retrieval ![Zero-shot composed image retrieval on CIRR.](https://guangyusun.com/flat-website/assets/fig_cirr.png) Reference\-image and text\-edit embeddings are composed directly in latent space\. AtK=1, FLAT reaches 44\.0 Hit@1 and 75\.2 Hit@5\.### Generalizing to unseen lengths ![Generation at trained and unseen prefix lengths.](https://guangyusun.com/flat-website/assets/fig_arbitrary_k.png) Although training samples power\-of\-four prefix lengths, the ordered representation decodes smoothly at unseen values of*K*\. ## BibTeX ``` @misc{sun2026flat, title = {FLAT: Resampling Image and Text into 1D Flexible-Length Aligned Transmodal Tokens for Retrieval and Generation}, author = {Sun, Guangyu and Mishra, Shlok Kumar and Bao, Wentao and Yang, Robert Zhenheng and Wang, Xiao and Wang, Xiyuan and Ma, Yujunrong and Yuan, Chen and Fan, Max Xiangjun and Xiao, Jun and Cheng, Jianpeng}, year = {2026}, eprint = {2609.16591}, archivePrefix = {arXiv}, primaryClass = {cs.CV}, url = {https://arxiv.org/abs/2609.16591} } ```

Similar Articles

@rohanpaul_ai: The Meta/Oxford study finds, a multimodal model may need surprisingly little image-generation data if language and visu…

X AI KOLs Following

A Meta/Oxford study finds that multimodal models need surprisingly little image-generation data if language and visual understanding are trained together, suggesting an optimal 70/25/5 split of language, image understanding, and image generation tokens. It also warns that delaying vision training causes 'vision laziness' where models ignore images.