cs.AIOct 15, 2026

CIM-Embed: Learning Instruction-Conditioned Multimodal Embeddings for Clustering

Authors: Yinghua Xu, Pengyang Xie, Yanxiang Zhou, Chuanzhi Tong, Xiao Xiao, Chaoqun Feng, Xiaoqing Wang

Organizations: College of Control Science and Engineering, Zhejiang University · Alibaba International Digital Commerce

Abstract

Multimodal objects can require different partitions under different instructions, as when products in an e-commerce catalog are grouped by color, material, or both. Retrieval-oriented embeddings may not recover these partitions, while generative clustering often relies on intermediate descriptions or iterative decisions. This paper presents CIM-Embed, a framework for learning instruction-conditioned multimodal embeddings for clustering. Supervised contrastive learning uses same-group positives and negatives from other groups, optionally including other tasks; heterogeneous structured batches accommodate tasks with different group counts. At inference, the model maps each object's image, text, and instruction directly to an embedding; HDBSCAN then forms a partition without the ground-truth cluster count. We construct ProductMIC from product metadata in Amazon Reviews 2023, comprising training data and an evaluation benchmark for instruction-conditioned clustering. The benchmark contains 5,373 products and 449 single-attribute and compositional grouping tasks spanning 50 leaf categories excluded from our training. With full-dimensional embeddings and HDBSCAN, direct within-task SupCon training achieves a mean per-task V-measure of 95.01, compared with 53.06 for WeMM 9B, the strongest general-purpose embedding baseline evaluated. Frozen product-trained encoders also improve out-of-domain conditional grouping, while controlled transfer experiments distinguish partition transfer from instruction response. We will release the code and dataset upon acceptance.

Figures & tables

Appendix figures & tables28 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Cluster-R1: Large Reasoning Models Are Instruction-following Clustering Agents

    Mar 6, 2026Peijun Qing, Puneet Mathur, Nedim Lipka +5ClusteringUnsupervised Clustering

  2. Controlling Embedding Spaces with Text-Conditioned Transformations

    Jul 24, 2026Joseph Fioresi, Fabian Caba Heilbron, Pankaj Nathani +2Representation DisentanglementMultimodal Embedding

  3. Universal Guideline-Driven Image Clustering via a Hybrid LLM Agent

    Jun 23, 2026Wenliang Zhong, Rob Barton, Lucas Goncalves +7ClusteringUnsupervised Clustering