Skip to main content
QUICK REVIEW

[Paper Review] FoodLMM: A Versatile Food Assistant using Large Multi-modal Model

Yuehao Yin, Huiyan Qi|arXiv (Cornell University)|Dec 22, 2023
Multimodal Machine Learning ApplicationsComputer Science6 citations
TL;DR

FoodLMM is a unified, versatile food assistant built on a large multi-modal model that integrates food recognition, ingredient detection, recipe generation, nutrition estimation, and multi-round dialogue with segmentation capabilities. By introducing task-specific tokens and heads for segmentation and nutrition prediction, and using a two-stage training strategy with specialized datasets, FoodLMM achieves state-of-the-art performance across multiple food benchmarks, including 93.93% top-1 accuracy on Food-101 and 4.96% higher ingredient recognition F1 than prior methods.

ABSTRACT

Large Multi-modal Models (LMMs) have made impressive progress in many vision-language tasks. Nevertheless, the performance of general LMMs in specific domains is still far from satisfactory. This paper proposes FoodLMM, a versatile food assistant based on LMMs with various capabilities, including food recognition, ingredient recognition, recipe generation, nutrition estimation, food segmentation and multi-round conversation. To facilitate FoodLMM to deal with tasks beyond pure text output, we introduce a series of novel task-specific tokens and heads, enabling the model to predict food nutritional values and multiple segmentation masks. We adopt a two-stage training strategy. In the first stage, we utilize multiple public food benchmarks for multi-task learning by leveraging the instruct-following paradigm. In the second stage, we construct a multi-round conversation dataset and a reasoning segmentation dataset to fine-tune the model, enabling it to conduct professional dialogues and generate segmentation masks based on complex reasoning in the food domain. Our fine-tuned FoodLMM achieves state-of-the-art results across several food benchmarks. We will make our code, models and datasets publicly available.

Motivation & Objective

  • To address the limitations of general large multi-modal models in the food domain, which often hallucinate or fail to provide precise nutritional or segmentation outputs.
  • To unify multiple food-related tasks—such as classification, ingredient recognition, recipe generation, nutrition estimation, and segmentation—into a single, versatile model.
  • To enable complex, multi-round dialogues and reasoning-based segmentation through fine-tuning on custom datasets.
  • To develop a model that accurately handles challenging referring segmentation cases, including one-to-zero and one-to-many queries.
  • To establish a benchmark for multi-modal food understanding by releasing code, models, and datasets.

Proposed method

  • FoodLMM extends LLaVA with a segmentation head from SAM and introduces task-specific tokens for segmentation and nutrition prediction.
  • The model uses a two-stage training process: first, multi-task learning on public food benchmarks using instruction-following prompts; second, fine-tuning on custom datasets for dialogue and reasoning.
  • Specialized instruction templates are designed for each task, enabling the model to generate text outputs for classification, recognition, and recipe generation.
  • For segmentation, multiple special tokens are embedded into the vocabulary, and their hidden states are decoded into one or more segmentation masks.
  • Nutritional estimation is performed by processing the hidden states of dedicated nutrition tokens through regression heads to predict precise macronutrient and micronutrient values.
  • The fine-tuning datasets—FoodDialogues (multi-round nutrition dialogues) and FoodReasonSeg (complex reasoning segmentation) —are constructed using GPT-4 to ensure high-quality, context-aware interactions.

Experimental results

Research questions

  • RQ1Can a unified large multi-modal model achieve state-of-the-art performance across diverse food-related tasks, including segmentation and nutrition estimation?
  • RQ2How can task-specific tokens and heads be effectively designed to enable multi-modal outputs such as segmentation masks and numerical nutrition predictions?
  • RQ3To what extent does fine-tuning on multi-round dialogue and reasoning datasets improve the model’s ability to handle complex, context-dependent queries?
  • RQ4How does data imbalance—particularly in one-to-zero referring queries—affect model performance and generalization?
  • RQ5Can a single model outperform task-specific models across multiple food benchmarks without sacrificing accuracy or robustness?

Key findings

  • FoodLMM achieves a top-1 accuracy of 93.93% on the Food-101 benchmark, outperforming previous methods.
  • In ingredient recognition, FoodLMM achieves an F1 score that is 4.96% higher than the previous state-of-the-art method, CACLNet.
  • For recipe generation, FoodLMM achieves SacreBLEU and Rouge-L scores of 6.24 and 39.96, respectively, representing 3.65% and 21.46% improvements over the prior best method, FIRE.
  • The model demonstrates strong performance in referring segmentation, with a 73.07% accuracy on one-to-zero queries at a 2% ratio of non-existent referring queries.
  • Ablation studies show that increasing the proportion of non-existent referring queries during training (to 20%) severely degrades performance on one-to-one and one-to-many queries, dropping accuracy from 99.16% to 28.57%.
  • The model maintains high cIoU scores (0.78–0.90) across datasets, indicating robust mask quality, even when response accuracy drops under data imbalance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.