FoodPuzzle: Developing Large Language Model Agents as Flavor Scientists

Tenghao Huang, Donghee Lee, John Sweeney, Jiatong Shi, Emily Steliotes, Matthew Lange, Jonathan May, Muhao Chen · DOI

TL;DR

This paper introduces FOODPUZZLE, a new benchmark and a novel "Scientific Agent" approach for flavor science. By leveraging Large Language Models (LLMs) with retrieval-augmented generation and in-context learning, their agent can generate scientifically grounded hypotheses for identifying flavor molecules and their sources, significantly outperforming traditional methods.

What Problem Does This Paper Address?

The food industry faces a constant demand for novel flavors, but traditional flavor development relies on slow, subjective, and labor-intensive methods. This bottleneck hinders rapid innovation. A key challenge is understanding the complex interactions between thousands of flavor molecules and their natural sources. Existing LLMs, trained on general web data, lack the specialized knowledge required for this domain. This paper aims to bridge this gap by framing flavor profile sourcing and understanding as a task for scientific AI agents and developing the tools to enable them.

Methods

The core of this work is a novel "Scientific Agent" architecture designed to mimic human scientific investigation. It combines several key techniques:

  • Problem Formulation: Flavor profile sourcing and understanding are framed as a task for AI agents.
  • Retrieval-Augmented Generation (RAG): The agent doesn't rely solely on its internal knowledge. It actively retrieves relevant information from external sources, including scientific literature (PubMed, arXiv) and a specialized flavor database (FlavorDB).
  • In-Context Learning (ICL): The agent uses examples (demonstrations) to learn how to perform tasks, guiding its reasoning process.
  • Starting Point Identification: For predicting food sources from molecules (MFP task), the agent first identifies the most "pivotal" molecules by analyzing their information entropy within the dataset.
  • Information Collection: The agent queries scientific repositories and online blogs to gather evidence about which organisms naturally produce specific flavor molecules.
  • Hypothesis Generation: A "role-play" framework is employed, with a "Scientist" model proposing hypotheses based on collected evidence and a "Reviewer" model evaluating and selecting the best one. This structured approach aims to ensure grounded and evidence-based outputs.

Datasets

  • FlavorDB: The paper leverages FlavorDB, a comprehensive database containing information on 25,595 flavor molecules.
  • FOODPUZZLE Dataset: A new benchmark dataset was constructed from FlavorDB, comprising 978 food items and 1,766 flavor molecule profiles. This dataset is split into training, development, and testing sets (80%/10%/10%).

Key Insights and Ideas

  • LLMs as Flavor Scientists: The paper demonstrates that LLMs, when augmented with domain-specific knowledge and structured reasoning processes, can act as valuable "scientific agents" in complex fields like flavor science.
  • The Power of Retrieval: Actively retrieving and integrating information from scientific literature and specialized databases is crucial for LLMs to overcome their inherent lack of domain-specific knowledge.
  • Structured Hypothesis Generation: Mimicking the scientific method, with distinct roles for proposing and reviewing hypotheses, leads to more reliable and interpretable AI outputs.
  • Functional Groups Matter: The evaluation protocol highlights the importance of considering chemical functional groups, as they often correlate with similar properties, enabling more robust predictions than strict structural similarity alone.

Key Results

The proposed "Scientist Agent" significantly outperformed baseline models on both key tasks:

  • Molecular Food Prediction (MFP): The Scientist Agent achieved an accuracy of 35.5% (using LLaMA3-8B-instruct), which is notably higher than the best in-context learning model (34.6%) and foundation LLMs (19.0%).
  • Molecular Profile Completion (MPC): The agent achieved F1 scores up to 0.374, again surpassing other methods.
  • Error Analysis: The analysis revealed common error types, including "Inappropriate Initialization of Search Space," "Epistemic Hallucination" (generating plausible but factually incorrect information), and "Wrong Interpretation of Online Sources," providing valuable insights for future improvements.

Limitations and Future Work

  • Limitations:
    • The agent can still exhibit "epistemic hallucination" and misinterpret online sources, indicating room for improvement in grounding and factual accuracy.
  • Domain-specific LLMs, while specialized, did not always outperform general LLMs with advanced techniques, suggesting that architectural improvements are as important as domain-specific pre-training.
  • The current approach relies on existing databases and scholarly articles, which may not always be exhaustive or perfectly aligned with the nuances of flavor science.
  • Future Work:
    • Integrating the agent with wet lab experiments and sensory scientists for validation and fine-tuning.
  • Using analytical instruments (LC-MS, GC-MS) to verify flavor molecule structures and purity.
  • Synthesizing predicted flavor molecules and evaluating them with human sensory panels.
  • Exploring chemical synthesis and biological assays to further validate AI-generated hypotheses.

Summary updated

Abstract

Flavor development in the food industry is increasingly challenged by the need for rapid innovation and precise flavor profile creation. Traditional flavor research methods typically rely on iterative, subjective testing, which lacks the efficiency and scalability required for modern demands. This paper presents three contributions to address the challenges. Firstly, we define a new problem domain for scientific agents in flavor science, conceptualized as the generation of hypotheses for flavor profile sourcing and understanding. To facilitate research in this area, we introduce the FoodPuzzle, a challenging benchmark consisting of 978 food items and 1,766 flavor molecules profiles. We propose a novel Scientific Agent approach, integrating in-context learning and retrieval augmented techniques to generate grounded hypotheses in the domain of food science. Experimental results indicate that our model significantly surpasses traditional methods in flavor profile prediction tasks, demonstrating its potential to transform flavor development practices.
BibTeX
@inproceedings{huang2025foodpuzzle,
  author = {Tenghao Huang and Donghee Lee and John Sweeney and Jiatong Shi and Emily Steliotes and Matthew Lange and Jonathan May and Muhao Chen},
  title = {{FoodPuzzle: Developing Large Language Model Agents as Flavor Scientists}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
  doi = {10.1145/3711896.3737384},
}
Figure