Pith. sign in

From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examples

1 Pith paper cite this work. Polarity classification is still indexing.

1 Pith paper citing it
abstract

We analyze how well pre-trained large language models (e.g., Llama2, GPT-4, Claude 3, etc) can do linear and non-linear regression when given in-context examples, without any additional training or gradient updates. Our findings reveal that several large language models (e.g., GPT-4, Claude 3) are able to perform regression tasks with a performance rivaling (or even outperforming) that of traditional supervised methods such as Random Forest, Bagging, or Gradient Boosting. For example, on the challenging Friedman #2 regression dataset, Claude 3 outperforms many supervised methods such as AdaBoost, SVM, Random Forest, KNN, or Gradient Boosting. We then investigate how well the performance of large language models scales with the number of in-context exemplars. We borrow from the notion of regret from online learning and empirically show that LLMs are capable of obtaining a sub-linear regret.

fields

cs.CL 1

years

2025 1

verdicts

CONDITIONAL 1

representative citing papers

Towards Compute-Optimal Many-Shot In-Context Learning

cs.CL · 2025-07-22 · conditional · novelty 6.0

Hybrid demonstration selection that adds 20 similar examples to a large cached random or k-means set matches or beats similarity-only selection at up to 10x lower estimated inference cost in many-shot ICL.

citing papers explorer

Showing 1 of 1 citing paper.

  • Towards Compute-Optimal Many-Shot In-Context Learning cs.CL · 2025-07-22 · conditional · none · ref 1953 · internal anchor

    Hybrid demonstration selection that adds 20 similar examples to a large cached random or k-means set matches or beats similarity-only selection at up to 10x lower estimated inference cost in many-shot ICL.