Food Similarity Is Representation-Dependent: Indian Cuisine Retrieval Test
Food similarity is not a fixed property of a food collection; it is a relational structure induced by representation, modality and abstraction level, and recognition accuracy cannot substitute for relational evaluation.
On this page
7 pretrained vision models can agree on a dish label yet disagree on which dishes look alike, and that gap is the subject of a new benchmark on Indian cuisine. The usual advice is simple: pick the model with the best recognition accuracy, then reuse its embeddings — the numeric vectors a model assigns to images — for retrieval. A product team with 200,000+ food photos and a 'find similar dishes' feature is often told exactly that. This paper asks a narrower and more useful question: when the dataset, dish labels, culinary-family annotations and retrieval procedure are held fixed, what neighborhoods does each visual representation induce? The answer is that similarity is not a fixed property of the food collection; it depends on representation, modality and abstraction level [1].
Accurate Labels Do Not Mean Useful Neighbors
Recognition evaluation asks whether an image gets the right dish label; retrieval asks who the nearest neighbors are. Those are different questions. A model can preserve identity, meaning same-dish images cluster, while producing a neighborhood that mixes unrelated dishes that happen to share color, texture or plating. The paper calls the numeric vector a representation: a model turns each image into a list of numbers, and similarity is computed over those numbers. It fixes the image collection, dish labels, culinary-family annotations, similarity function and retrieval procedure, then swaps only the representation [1]. Figure 1 shows a biryani query with different nearest neighbors across the 7 models. That is the core diagnostic: if the neighbors move when only the encoder changes, the similarity structure is representation-dependent, not intrinsic.
Why Indian Cuisine Is a Hard Test
Indian cuisine is a hard test because appearance and culinary identity diverge. A samosa can vary in filling, preparation, form, presentation and regional expression while remaining recognizably related; different dishes can look alike while belonging to different culinary traditions. The authors met this while building FKG.in, a knowledge graph for Indian food, and the appendix Table 4 lists samosa variants [1]. The dataset starts from Khana, which has 130,000+ images across 80+ dishes, and adds 70,000+ web images spanning 330+ Indian food categories. After reconciliation and cleaning, the benchmark has 200,000+ images, more than 300 dish classes and 45 culinary families. A culinary family is an intermediate grouping broader than a dish but narrower than food, defined by shared form, preparation tradition, regional lineage or history. Family membership does not imply visual similarity.
Seven Visual Models Under One Retrieval Protocol
The comparison covers 7 pretrained visual representations: ResNet-152, EfficientNet-V2-S, ConvNeXt-Small, ViT-B/16, DINOv2, DINOv3 and CLIP ViT-B/16. They span supervised convolutional networks, transformer-based models, self-supervised models and image-text aligned models. A convolutional network applies local filters; a transformer uses attention over image patches; self-supervised training uses the images themselves rather than dish labels; image-text alignment places images and captions in one vector space. The formal point is simple: S(d_i,d_j)=sim(f(d_i),f(d_j)), so a different f induces a different S [1]. The protocol has three levels: image-to-image retrieval, image-to-dish aggregation and dish-to-dish aggregation. That controlled setup is why the paper can attribute neighborhood changes to the representation rather than to a new loss, dataset or query set.
| Model | Type in the paper | How to read it |
|---|---|---|
| ResNet-152 | Supervised convolutional | Classic residual network |
| EfficientNet-V2-S | Supervised convolutional | Efficient scaled convolutional network |
| ConvNeXt-Small | Supervised convolutional (modern backbone) | Modern convolutional design |
| ViT-B/16 | Transformer | Attention over image patches |
| DINOv2 | Self-supervised | Label-free pretrained features |
| DINOv3 | Self-supervised | Updated label-free pretraining |
| CLIP ViT-B/16 | Image-text aligned | Images and text share one space |
Three Contrast Cases Where Relations Collide
Three contrast cases make the tension visible. Case A is cross-family visual similarity: Steamed Momo and Modak belong to different culinary families but look close. Case B is within-family visual dissimilarity: Dhokla and Idli share a family but look far apart. Case C is within-family visual similarity: Kadhai Paneer and Shahi Paneer share a family and look close. The fourth combination, cross-family visual dissimilarity, is not a contrast case because visual and culinary relations point in the same direction [1]. These probes ask a practical question: when the two relations disagree, which one wins in the embedding? A high same-class retrieval score cannot answer that, because it never puts the two relations in tension.
| Case | Relation | Example in the paper | What it tests |
|---|---|---|---|
| A | Cross-family visual similarity | Steamed Momo / Modak | Whether visual neighbors cross family boundaries |
| B | Within-family visual dissimilarity | Dhokla / Idli | Whether family relation is pushed apart visually |
| C | Within-family visual similarity | Kadhai Paneer / Shahi Paneer | Whether visual closeness hides identity differences |
Findings: Image-Level Drift, Dish-Level Convergence
At the image level, neighborhoods vary substantially across representations, including similarities that cross culinary-family boundaries. At the dish level, aggregating multiple images per dish reveals a common visual structure despite local variation, but that structure corresponds less strongly with recipe-derived similarity for the same dish concepts [1]. In plain terms, the models partly converge when you average away individual photos, yet the visual map still does not match the recipe map. The paper therefore does not crown one model with a single score; it reports structural diagnostics: neighborhood composition, culinary-family structure, contrast cases and cross-representation agreement. For a buyer, that is a useful warning. A vendor can show high top-1 accuracy without showing whether the nearest neighbors are culinarily meaningful.
Boundaries: When This Method Does Not Apply
The method has clear limits. It studies Indian cuisine, so the 45-family structure does not transfer automatically to Chinese, European or cross-cuisine catalogs. It compares 7 pretrained visual representations, not every model family. The culinary families are human annotations, not semantic ground truth. Recipe similarity is one other modality, not the correct answer. Web-image filtering with CLIP may favor visually prototypical images, which the authors say can limit diversity [1]. The approach fails when a business has no independent relational labels, uses only one model, or lets the definition of similar change by use case. In those settings, the paper is a diagnostic template, not a plug-in score. Its boundary is exactly where food similarity stops being a visual question alone.
