This paper explores a fundamental but often overlooked question in food computing: What does it actually mean for two foods to be "similar"? While most research focuses on identifying a dish (e.g., "this is a biryani"), real-world applications like recommendation and ingredient substitution require understanding the relationships between dishes.
The authors use the rich, diverse landscape of Indian cuisine to demonstrate that food similarity is not a fixed property, but rather a "representation-dependent" one that shifts based on the AI model and the data modality (images vs. recipes) being used.
TL;DR
Food similarity is not an inherent truth but an emergent property of how a model represents data. By analyzing Indian cuisine, the authors show that visual AI models often group unrelated foods together based on surface features, and that visual similarity correlates surprisingly poorly with recipe-based similarity.
What Problem Does This Paper Address?
Most food AI benchmarks evaluate "identity preservation"—can a model correctly label an image of a samosa? However, tasks like finding a healthy substitute or suggesting a similar meal depend on a nuanced understanding of similarity.
The challenge is that similarity is multi-dimensional. Two dishes might be similar because they:
- Look alike (Visual similarity)
- Share ingredients (Compositional similarity)
- Are prepared similarly (Procedural similarity)
- Serve the same cultural role (Functional similarity)
In Indian cuisine, these dimensions often diverge. For example, a Modak (a sweet dumpling) and a Momo (a savory dumpling) look nearly identical but belong to entirely different culinary families. Conversely, Idli and Dosa are culinary siblings made from the same fermented batter but look nothing alike. This paper investigates how different state-of-the-art visual models navigate these tensions.
Methods
The researchers conducted a large-scale comparative study using seven different pretrained visual representations, including:
- CNNs: ResNet-152, EfficientNet-V2, ConvNeXt.
- Transformers: ViT-B/16.
- Self-Supervised Models: DINOv2, DINOv3.
- Vision-Language Models: CLIP.
They evaluated these models at three levels:
- Image-to-Image: How well does a model find other images of the same dish?
- Image-to-Dish: What are the "neighboring" dishes for a specific query image?
- Dish-to-Dish: After averaging all images of a dish into a single "concept" vector, how do these concepts relate to one another and to recipe-based embeddings?
To probe the "logic" of these models, they defined three contrast cases:
- Case A (Cross-family similarity): Unrelated dishes that look alike.
- Case B (Within-family dissimilarity): Related dishes that look different.
- Case C (Within-family similarity): Related dishes that look alike.
Datasets
The study uses an expanded version of the Khana dataset. The authors augmented the original collection (80 classes, 130k images) to include over 300 dish classes and 200,000+ images. Crucially, they added a "culinary family" layer, grouping dishes into 45 families based on shared lineage or preparation traditions (e.g., the "fermented batter" family or the "stuffed pastry" family).
Key Insights and Ideas
- Similarity is not "Ground Truth": There is no single "correct" similarity ranking. Different architectures (e.g., CLIP vs. DINO) produce different neighborhoods for the same query. As seen in Figure 1, a query for biryani yields different neighbors across models, ranging from other rice dishes to visually similar but culinary distinct items.
- Visual Features vs. Culinary Logic: Models frequently fall into the "Case A" trap, where high visual proximity crosses culinary boundaries. Up to 76% of a model's top neighbors might belong to different culinary families.
- The "Aggregation Effect": While individual images are "noisy" and vary wildly across models, aggregating images into a single dish-level representation reveals a more stable, common visual structure that is shared across different AI architectures.
- The Visual-Recipe Gap: Visual similarity is a poor proxy for recipe similarity. The correlation between the two is weak (Spearman $\rho$ between 0.22 and 0.32), meaning that just because two dishes look alike doesn't mean they are cooked with similar ingredients or techniques.
Key Results
- Model Performance: DINOv3 and CLIP showed the highest precision in same-dish retrieval, but even they struggled to align with culinary family structures.
- Neighborhood Overlap: The overlap between the top-10 neighbors of different models was surprisingly low (ranging from 28% to 51%), proving that representation choice fundamentally changes what a system considers "similar."
- Recipe Divergence: In specific tests, dishes like Milk Cake and Sukhdi had a very high visual similarity (0.917) but very low recipe similarity (0.349), highlighting the danger of relying solely on pixels for food understanding.
Limitations and Future Work
The authors acknowledge that their "culinary family" assignments involve human judgment and may not capture every nuance of food history. Furthermore, the recipe analysis used only one "canonical" recipe per dish, ignoring the massive regional variation inherent in Indian cooking.
Future work aims to move toward controllable similarity, where a user could explicitly ask for a substitute that is "similar in texture but different in ingredients," rather than relying on a single, opaque embedding space.
Summary updated