HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Transformer Decoders with MultiModal Regularization for Cross-Modal Food Retrieval

Mustafa Shukor Guillaume Couairon Asya Grechka Matthieu Cord

Transformer Decoders with MultiModal Regularization for Cross-Modal Food Retrieval

Abstract

Cross-modal image-recipe retrieval has gained significant attention in recent years. Most work focuses on improving cross-modal embeddings using unimodal encoders, that allow for efficient retrieval in large-scale databases, leaving aside cross-attention between modalities which is more computationally expensive. We propose a new retrieval framework, T-Food (Transformer Decoders with MultiModal Regularization for Cross-Modal Food Retrieval) that exploits the interaction between modalities in a novel regularization scheme, while using only unimodal encoders at test time for efficient retrieval. We also capture the intra-dependencies between recipe entities with a dedicated recipe encoder, and propose new variants of triplet losses with dynamic margins that adapt to the difficulty of the task. Finally, we leverage the power of the recent Vision and Language Pretraining (VLP) models such as CLIP for the image encoder. Our approach outperforms existing approaches by a large margin on the Recipe1M dataset. Specifically, we achieve absolute improvements of 8.1 % (72.6 R@1) and +10.9 % (44.6 R@1) on the 1k and 10k test sets respectively. The code is available here:https://github.com/mshukor/TFood

Code Repositories

mshukor/tfood
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
cross-modal-retrieval-on-recipe1mT-Food (CLIP)
Image-to-text R@1: 72.3
Text-to-image R@1: 72.6
cross-modal-retrieval-on-recipe1mT-Food
Image-to-text R@1: 68.2
Text-to-image R@1: 68.3

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Transformer Decoders with MultiModal Regularization for Cross-Modal Food Retrieval | Papers | HyperAI