Logistic Regression makes small LLMs strong and explainable "tens-of-shot" classifiers

Marcus Buckmann, Edward Hill
8/6/2024
cs.CLcs.LGstat.ML

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

For simple classification tasks, we show that users can benefit from the advantages of using small, local, generative language models instead of large commercial models without a trade-off in performance or introducing extra labelling costs. These advantages, including those around privacy, availability, cost, and explainability, are important both in commercial applications and in the broader democratisation of AI. Through experiments on 17 sentence classification tasks (2-4 classes), we show that penalised logistic regression on the embeddings from a small LLM equals (and usually betters) the performance of a large LLM in the "tens-of-shot" regime. This requires no more labelled instances than are needed to validate the performance of the large LLM. Finally, we extract stable and sensible explanations for classification decisions.

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. 1 weaker match is hidden by default — 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{buckmann2024logistic,
  title  = {Logistic Regression makes small LLMs strong and explainable "tens-of-shot" classifiers},
  author = {Marcus Buckmann and Edward Hill},
  year   = {2024},
  eprint = {2408.03414},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.03414v2}
}

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

Discussion