CICLe: Conformal In-Context Learning for Largescale Multi-Class Food Risk Classification

Korbinian Randl, John Pavlopoulos, Aron Henriksson, Tony Lindgren
3/18/2024
25 citations
cs.CLcs.LG

Official code: k-randl/conformal_prompting (2 stars, Jupyter Notebook, GPL-3.0, last commit 2025-05-16).

Abstract

Contaminated or adulterated food poses a substantial risk to human health. Given sets of labeled web texts for training, Machine Learning and Natural Language Processing can be applied to automatically detect such risks.

Show full abstract

We publish a dataset of 7,546 short texts describing public food recall announcements. Each text is manually labeled, on two granularity levels (coarse and fine), for food products and hazards that the recall corresponds to. We describe the dataset and benchmark naive, traditional, and Transformer models. Based on our analysis, Logistic Regression based on a tf-idf representation outperforms RoBERTa and XLM-R on classes with low support. Finally, we discuss different prompting strategies and present an LLM-in-the-loop framework, based on Conformal Prediction, which boosts the performance of the base classifier while reducing energy consumption compared to normal prompting.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Implementation of the paper "CICLe: Conformal In-Context Learning for Largescale Multi-Class Food Risk Classification"

21Jupyter Notebook, PythonOct 18, 20231 years agoGPL-3.0
conformal-predictiongpt-3large-language-models

Similar Papers

Cite this paper

@article{randl2024cicle,
  title  = {CICLe: Conformal In-Context Learning for Largescale Multi-Class Food Risk Classification},
  author = {Korbinian Randl and John Pavlopoulos and Aron Henriksson and Tony Lindgren},
  year   = {2024},
  eprint = {2403.11904},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.11904v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.11904.svg)](https://codeofpaper.com/paper/2403.11904)

Discussion