LaME: Learning to Think in Latent Space for Multimodal Embedding via Information Bottleneck
Paper • 2606.13061 • Published
How to use leafyseay/LaME-2B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="leafyseay/LaME-2B") # Load model directly
from transformers import LaMEMultimodal
model = LaMEMultimodal.from_pretrained("leafyseay/LaME-2B", dtype="auto")LaME (Learning to Think in Latent Space for Multimodal Embedding) model based on Qwen2-VL-2B-Instruct.
LaME augments Qwen-VL with learnable [REASON] tokens and a latent decoder supervision, jointly optimizing generation and embedding through an information bottleneck. It produces both discriminative and generative multimodal embeddings for text, images, videos, and visual documents.
Without bells and whistles, LaME achieves state-of-the-art multimodal retrieval performance on MMEB-v2 (image / video / visual-document / full aggregate) and MRMR.
[REASON] tokensSee the LaME repository for inference and evaluation examples.
from transformers import AutoModel, AutoProcessor
model = AutoModel.from_pretrained("leafyseay/LaME-2B", trust_remote_code=True, torch_dtype="bfloat16").cuda()
processor = AutoProcessor.from_pretrained("leafyseay/LaME-2B", trust_remote_code=True)
@article{wu2026lame,
title = {LaME: Learning to Think in Latent Space for Multimodal Embedding via Information Bottleneck},
author = {Wu, Peixi and Yang, Biao and Ma, Feipeng and Chai, Bosong and Lin, Bo and Yuan, Wei and Yang, Fan and Gao, Tingting and Li, Hebei and Sun, Xiaoyan},
journal = {arXiv preprint arXiv:2606.13061},
year = {2026}
}