TL;DR
The Multimodal Probabilistic Composer (MPC) introduces a flexible framework for image retrieval using an arbitrary number of multimodal queries (images and/or text). By modeling embeddings as probabilistic distributions rather than single points, the model effectively captures semantic ambiguity and generalizes to complex, multi-concept queries far better than existing deterministic methods.
What Problem Does This Paper Address?
Standard image retrieval systems typically handle a single query—either an image or a text string. More advanced "compositional" systems might allow for two inputs (e.g., an image plus a text-based modification like "change the color to red"). However, real-world search needs are often more complex.
Imagine wanting to find an image that contains a "cat," a "dog," and a "sports ball" simultaneously. Current models struggle to combine an arbitrary number of semantic concepts from different modalities. The authors identify two main hurdles:
- Flexibility: Most models are hard-coded for a fixed number of inputs (usually two).
- Ambiguity: A text query like "dog" is inherently ambiguous because dogs come in many breeds and poses. Deterministic "point" embeddings fail to capture this uncertainty.
Methods
The core innovation is the Multimodal Probabilistic Composer (MPC). Instead of mapping queries to a single vector, MPC maps them to probabilistic embeddings—specifically, multivariate Gaussians with a mean ($\mu$) and a diagonal variance ($\sigma^2$).
Key components include:
- Probabilistic Composition Rule: To combine $k$ queries, the model calculates the product of their Gaussian probability density functions (PDFs). This results in a new composite Gaussian. Because this is a mathematical rule rather than a learned fusion layer, the model can handle any number of inputs at test time, even if it was only trained on two.
- Probabilistic Similarity Metric: The authors developed a new similarity function based on Monte-Carlo sampling to compare the composite query distribution with target image distributions in the database.
- Uncertainty Modeling: The variance ($\sigma^2$) acts as a measure of ambiguity. A vague query has high variance, while a specific one has low variance.
Datasets
The authors established a new benchmark based on the MS-COCO dataset. They used cropped images of single objects and category labels as queries to retrieve full images containing the composite set of those objects. They also evaluated their model on the Fashion200k dataset to demonstrate its effectiveness in attribute-based image retrieval.
Key Insights and Ideas
- Ambiguity is Information: By modeling queries as distributions, the model doesn't just learn what a concept is, but also how varied it can be. This is particularly useful for "polysemantic" words. For example, a "clock" query is broad, but when composed with a "bus" query, the intersection of their distributions naturally points toward a "clock tower."
- Inductive Bias Over Learned Fusion: Using the product of Gaussians as a composition rule provides a strong inductive bias. This allows the model to generalize to "unseen" combinations of concepts and a higher number of queries (e.g., training on 2 queries but testing on 4) much better than standard MLPs or attention mechanisms.
- Feasibility Detection: The uncertainty score of the composite embedding can predict if a combination is "feasible." The model assigns higher uncertainty to nonsensical combinations (like "broccoli" + "piano") that rarely appear together in the real world.
Key Results
MPC significantly outperforms state-of-the-art (SOTA) methods across various settings:
- Multimodal Retrieval: On seen compositions with two queries, MPC achieved a Recall@5 of 37.76%, compared to 24.59% for the best competitor (MRN).
- Text-Only Queries: The gap was even larger here, with MPC reaching 59.32% R@5 vs. TIRG's 34.79%.
- Scaling to More Queries: As the number of query inputs increased from 2 to 4, the performance of non-probabilistic models like MRN and TIRG crashed to near 0%. In contrast, MPC maintained robust performance, demonstrating its superior generalization.
Limitations and Future Work
While MPC is a major step forward, the authors note several areas for improvement:
- Complex Language: The current model focuses on short text snippets and labels. Future iterations need to handle complex, free-form natural language sentences.
- Robustness: While MPC scales better than others, performance still declines as more concepts are added. Further research is needed to maintain high precision for very complex queries.
- Ethical Considerations: Like all retrieval models, it is susceptible to algorithmic biases present in training data (like MS-COCO), which must be addressed before real-world deployment.
Summary updated