Reproduce “FLAT: Resampling Image and Text into 1D Flexible-Length Aligned Transmodal Tokens for Retrieval and Generation” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Guangyu Sun, Shlok Kumar Mishra, Wentao Bao, Robert Zhenheng Yang, Xiao Wang, Xiyuan Wang, Yujunrong Ma, Chen Yuan and 3 more
FLAT learns shared continuous one-dimensional tokens for images and text that serve both as retrieval representations and as conditioning signals for captioning and image generation. With prefix lengths from 1 to 256 tokens, the model reaches 0.83 on GenEval after fine-tuning, 138.6 CIDEr for COCO captioning, and up to 86.8/75.8 Recall@5 for image-to-text/text-to-image retrieval on MS-COCO.
Key insights
- A single token captures much of the global semantics needed for retrieval and broad image generation, while longer prefixes improve object counts, spatial relations, attributes, and lexical precision.
- Joint contrastive and generative training produces a relatively compact image-text geometry: FLAT reports a smaller image-text centroid gap than CLIP and SigLIP2 and supports qualitative interpolation and latent arithmetic.
- The objectives are complementary but task-specific: removing contrastive, captioning, or image-generation loss primarily damages retrieval, captioning, or synthesis respectively; direct truncation is more stable than null-padding unused tokens.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.