Regression-aware Inference with LLMs

Michal Lukasik, Harikrishna Narasimhan, Aditya Krishna Menon, Felix Yu, Sanjiv Kumar
3/7/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) have shown strong results on a range of applications, including regression and scoring tasks. Typically, one obtains outputs from an LLM via autoregressive sampling from the model's output distribution. We show that this inference strategy can be sub-optimal for common regression and scoring evaluation metrics. As a remedy, we build on prior work on Minimum Bayes Risk decoding, and propose alternate inference strategies that estimate the Bayes-optimal solution for regression and scoring metrics in closed-form from sampled responses. We show that our proposal significantly improves over baselines across datasets and models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lukasik2024regressionaware,
  title  = {Regression-aware Inference with LLMs},
  author = {Michal Lukasik and Harikrishna Narasimhan and Aditya Krishna Menon and Felix Yu and Sanjiv Kumar},
  year   = {2024},
  eprint = {2403.04182},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.04182v3}
}

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

Discussion