Skip to content
conftrace_
2025 SemEval SemEval 2025

Fossils at SemEval-2025 Task 9: Tasting Loss Functions for Food Hazard Detection in Text Reports

AbstractFood hazard detection is an emerging field where NLP solutions are being explored. Despite the recent accessibility of powerful language models, one of the key challenges that still persists is the high class imbalance within datasets, often referred to in the literature as the {textit{long tail problem}}.In this work, we present a study exploring different loss functions borrowed from the field of visual recognition, to tackle long-tailed class imbalance for food hazard detection in text reports. Our submission to SemEval-2025 Task 9 on the Food Hazard Detection Challenge shows how re-weighting mechanism in loss functions prove beneficial in class imbalance scenarios. In particular, we empirically show that class-balanced and focal loss functions outperform all other loss strategies for Subtask 1 and 2 respectively.

🌉 Interdisciplinary Bridge - Artificial Intelligence and Natural Language Processing
📈 Trend Setter - Class Imbalance

More from SemEval 2025

All SemEval 2025 papers →