Losses that Cook: Topological Optimal Transport for Structured Recipe Generation

Mattia Ottoborgo, Daniele Rege Cambrin, Paolo Garza


Abstract
Cooking recipes are complex procedures that require not only a fluent and factual text, but also accurate timing, temperature, and procedural coherence, as well as the correct composition of ingredients. Standard training procedures are primarily based on cross-entropy and focus solely on fluency. Building on RECIPE-NLG, we investigate the use of several composite objectives and present a new topological loss that represents ingredient lists as point clouds in embedding space, minimizing the divergence between predicted and gold ingredients. Using both standard NLG metrics and recipe-specific metrics, we find that our loss significantly improves ingredient- and action-level metrics. Meanwhile, the Dice loss excels in time/temperature precision, and the mixed loss yields competitive trade-offs with synergistic gains in quantity and time. A human preference analysis supports our finding, showing our model is preferred in 62% of the cases.
Anthology ID:
2026.findings-acl.1318
Volume:
Findings of the Association for Computational Linguistics: ACL 2026
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
26489–26500
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.1318/
DOI:
Bibkey:
Cite (ACL):
Mattia Ottoborgo, Daniele Rege Cambrin, and Paolo Garza. 2026. Losses that Cook: Topological Optimal Transport for Structured Recipe Generation. In Findings of the Association for Computational Linguistics: ACL 2026, pages 26489–26500, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
Losses that Cook: Topological Optimal Transport for Structured Recipe Generation (Ottoborgo et al., Findings 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.1318.pdf
Checklist:
 2026.findings-acl.1318.checklist.pdf