Harnessing Large Language Models as Post-hoc Correctors

Zhiqiang Zhong, Kuangyu Zhou, Davide Mottin
2/20/2024
cs.LGcs.CL

No official code found. Best implementation: zhiqiangzhongddu/LLMCorr (0 stars, last commit 2024-08-12).

Abstract

As Machine Learning (ML) models grow in size and demand higher-quality training data, the expenses associated with re-training and fine-tuning these models are escalating rapidly. Inspired by recent impressive achievements of Large Language Models (LLMs) in different fields, this paper delves into the question: can LLMs efficiently improve an ML's performance at a minimal cost? We show that, through our proposed training-free framework LlmCorr, an LLM can work as a post-hoc corrector to propose corrections for the predictions of an arbitrary ML model. In particular, we form a contextual knowledge database by incorporating the dataset's label information and the ML model's predictions on the validation dataset. Leveraging the in-context learning capability of LLMs, we ask the LLM to summarise the instances in which the ML model makes mistakes and the correlation between primary predictions and true labels. Following this, the LLM can transfer its acquired knowledge to suggest corrections for the ML model's predictions. Our experimental results on text analysis and the challenging molecular predictions show that \model improves the performance of a number of models by up to 39%.

View on arXivView PDF

Code Implementations(1)

00Python, Jupyter NotebookFeb 16, 20242 years ago

Similar Papers

Cite this paper

@article{zhong2024harnessing,
  title  = {Harnessing Large Language Models as Post-hoc Correctors},
  author = {Zhiqiang Zhong and Kuangyu Zhou and Davide Mottin},
  year   = {2024},
  eprint = {2402.13414},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.13414v2}
}

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/2402.13414.svg)](https://codeofpaper.com/paper/2402.13414)

Discussion