AI summary · arXiv: 2404.07544v1 · cs.CL

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

Robert Vacareanu, Vlad-Andrei Negru, Vasile Suciu, Mihai Surdeanu
Original paper Submitted to arXiv on 11 Apr. 2024 50 pages, 48 figures, preprint License: CC BY 4.0

How to read this summary? Illustrated guide

The essentials

  • Investigated capabilities of large language models (LLMs) in regression tasks without additional training
  • Pre-trained models like GPT-4 and Claude 3 can rival or outperform traditional supervised methods in regression tasks
  • Claude 3 showed superior performance on challenging datasets like Friedman #2 compared to other supervised methods
  • Performance of LLMs scales with number of in-context exemplars, achieving sub-linear regret based on online learning principles
  • Addressed limitations including reliance on proprietary models, potential data contamination issues, and released results from open-weight models for comparison
  • Empirical evidence supports effectiveness of LLMs in regression tasks but lacks theoretical explanations
  • Study provides valuable insights into regression capabilities of LLMs without needing additional training or updates

Key points written by AI: they may contain errors, check them against the paper.

AI-generated keywords: Large Language Models Regression Tasks Pre-trained Models Performance Limitations

Read further

  • Comprehensive Summary
  • Layman's Summary
  • Blog article
  • Original abstract
In this study, we investigated the capabilities of large language models (LLMs) in performing regression tasks without any additional training. Our analysis focused on various pre-trained models such as GPT-4 and Claude 3, highlighting their ability to rival or even outperform traditional supervised methods like Random Forest and Gradient Boosting in regression tasks. Notably, Claude 3 demonstrated superior performance on challenging datasets like Friedman #2 compared to other supervised methods. Furthermore, we explored how the performance of LLMs scales with the number of in-context exemplars, demonstrating their capacity to achieve sub-linear regret based on online learning principles. We also addressed several limitations in our study, including the reliance on proprietary models whose performance may vary over time and potential data contamination issues due to opaque training datasets for LLMs. To mitigate these challenges, we included results from leading open-weight models alongside proprietary ones and conducted experiments with multiple random seeds on new datasets. Additionally, we released intermediate results and considered a publicly available model like Falcon 40B for comparison. While our empirical evidence supports the effectiveness of LLMs in regression tasks, we acknowledge the lack of theoretical explanations to underpin these observations. Overall, our study provides valuable insights into the regression capabilities of large language models when presented with in-context examples, highlighting their potential as proficient regressors without the need for additional training or updates.

Was this synthesis useful?

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Figures and plots

Ask about a figure by number or use its question button to request visual analysis. Up to two figures and four image panels per question. Values read from plots are approximate; check the original data.

AI assistant instructions?

Tools for this paper

Explain it differently 1 free rewrite left today
Save to a collection Group papers in collections to compare them, chat with them and export them. Continue with Google Create a free account Log in

Advanced tools Premium

For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium

Zotero Zotero guide
Citation alerts 78 papers already cite it: be emailed each new one. Citation alerts guide
Who works on it?

Among the 31 papers around this one, the name that comes back most: Xing-You Song (2 papers)

4 more people sign several of them. The full map adds their institutions and approaches, from the papers of the last years.

Continue with Google Create a free account: your first map is free
Weekly letter The latest letter of its field, "Artificial intelligence this week" of 30 November 2026: Artificial intelligence this week: What the tests leave out · Receive one by email for free

Papers around this one

See them on a map

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Cites this paper Uses this paper in depth
    Learning vs Retrieval: The Role of In-Context Examples in Regression with Large Language Models
    Aliakbar Nafar, K. Venable, Parisa Kordjamshidi · 2024 · North American Chapter of the Association for Computational Linguistics · cited 7 times · Not summarized yet
    Abstract

    Generative Large Language Models (LLMs) are capable of being in-context learners. However, the underlying mechanism of in-context learning (ICL) is still a major research question, and experimental research results about how models exploit ICL are not always consistent. In this work, we propose a framework for evaluating in-context learning mechanisms, which we claim are a combination of retrieving internal knowledge and learning from in-context examples by focusing on regression tasks. First, we show that LLMs can solve real-world regression problems and then design experiments to measure the extent to which the LLM retrieves its internal knowledge versus learning from in-context examples. …

  2. Very close
    Why Larger Language Models Do In-context Learning Differently?
    Zhenmei Shi, Jun-Yi Wei, Zhuoyan Xu et al. · 2024 · International Conference on Machine Learning · cited 57 times · Not summarized yet
    Abstract

    Large language models (LLM) have emerged as a powerful tool for AI, with the key ability of in-context learning (ICL), where they can perform well on unseen tasks based on a brief series of task examples without necessitating any adjustments to the model parameters. One recent interesting mysterious observation is that models of different scales may have different ICL behaviors: larger models tend to be more sensitive to noise in the test context. This work studies this observation theoretically aiming to improve the understanding of LLM and ICL. We analyze two stylized settings: (1) linear regression with one-layer single-head linear transformers and (2) parity classification with two-layer…

  3. Very close Cites this paper Uses this paper in depth
    In-Context Function Learning in Large Language Models
    Elif Akata, Konstantinos Voudouris, Vincent Fortuin et al. · 2026 · arXiv.org · preprint, not peer reviewed · cited 1 time · Not summarized yet
    Abstract

    Large language models (LLMs) can learn from a few demonstrations provided at inference time. We study this in-context learning phenomenon through the lens of Gaussian Processes (GPs). We build controlled experiments where models observe sequences of multivariate scalar-valued function samples drawn from known GP priors. We evaluate prediction error in relation to the number of demonstrations and compare against two principled references: (i) an empirical GP-regression learner that gives a lower bound on achievable error, and (ii) the expected error of a 1-nearest-neighbor (1-NN) rule, which gives a data-driven upper bound. Across model sizes, we find that LLM learning curves are strongly inf…

  4. Very close
    Financial Statement Analysis with Large Language Models
    Alex Kim, Maximilian Muhn, Valeri Nikolaev · 2024 · Statistical Finance · preprint, not peer reviewed · cited 92 times · AI summary available
    Abstract

    We investigate whether large language models (LLMs) can successfully perform financial statement analysis in a way similar to a professional human analyst. We provide standardized and anonymous financial statements to GPT4 and instruct the model to analyze them to determine the direction of firms' future earnings. Even without narrative or industry-specific information, the LLM outperforms financial analysts in its ability to predict earnings changes directionally. The LLM exhibits a relative advantage over human analysts in situations when the analysts tend to struggle. Furthermore, we find that the prediction accuracy of the LLM is on par with a narrowly trained state-of-the-art ML model. …

  5. Very close Cites this paper
    Regression Language Models for Code
    Yash Akhauri, Xing-You Song, Arissa Wongpanich et al. · 2025 · arXiv.org · preprint, not peer reviewed · cited 11 times · Not summarized yet
    Abstract

    We study code-to-metric regression: predicting numeric outcomes of code executions, a challenging task due to the open-ended nature of programming languages. While prior methods have resorted to heavy and domain-specific feature engineering, we show that a single unified Regression Language Model (RLM) using a frozen LLM encoder can simultaneously predict directly from text, (i) the memory footprint of code across multiple high-level languages such as Python and C++, (ii) the latency of Triton GPU kernels, and (iii) the accuracy and speed of trained neural networks represented in ONNX. In particular, a relatively small 300M parameter RLM based on T5Gemma, obtains>0.9 Spearman-rank on competi…

  6. Very close
    Predicting the Performance of Black-box LLMs through Self-Queries
    Dylan Sam, Marc Finzi, J. Zico Kolter · 2025 · Machine Learning · cited 11 times · AI summary available
    Abstract

    As large language models (LLMs) are increasingly relied on in AI systems, predicting when they make mistakes is crucial. While a great deal of work in the field uses internal representations to interpret model behavior, these representations are inaccessible when given solely black-box access through an API. In this paper, we extract features of LLMs in a black-box manner by using follow-up prompts and taking the probabilities of different responses as representations to train reliable predictors of model behavior. We demonstrate that training a linear model on these low-dimensional representations produces reliable and generalizable predictors of model performance at the instance level (e.g…

  7. Very close
    Large Language Models As Evolution Strategies
    Robert Tjarko Lange, Yingtao Tian, Yujin Tang · 2024 · Artificial Intelligence · cited 108 times · AI summary available
    Abstract

    Large Transformer models are capable of implementing a plethora of so-called in-context learning algorithms. These include gradient descent, classification, sequence completion, transformation, and improvement. In this work, we investigate whether large language models (LLMs), which never explicitly encountered the task of black-box optimization, are in principle capable of implementing evolutionary optimization algorithms. While previous works have solely focused on language-based task specification, we move forward and focus on the zero-shot application of LLMs to black-box optimization. We introduce a novel prompting strategy, consisting of least-to-most sorting of discretized population …

  8. Very close
    The Performance of the LSTM-based Code Generated by Large Language Models (LLMs) in Forecasting Time Series Data
    Saroj Gopali, Sima Siami-Namini, Faranak Abri et al. · 2024 · Artificial Intelligence · cited 12 times · AI summary available
    Abstract

    As an intriguing case is the goodness of the machine and deep learning models generated by these LLMs in conducting automated scientific data analysis, where a data analyst may not have enough expertise in manually coding and optimizing complex deep learning models and codes and thus may opt to leverage LLMs to generate the required models. This paper investigates and compares the performance of the mainstream LLMs, such as ChatGPT, PaLM, LLama, and Falcon, in generating deep learning models for analyzing time series data, an important and popular data type with its prevalent applications in many application domains including financial and stock market. This research conducts a set of contro…

Prior work it builds on

  1. Close Groundwork for this paper Used in depth by this paper
    Language Models are Few-Shot Learners
    Tom B. Brown, Benjamin Mann, Nick Ryder et al. · 2020 · Computation and Language · cited 65,933 times · AI summary available

    Language Models are Few-Shot Learners establishes few-shot in-context performance in language models, the setting this paper applies to regression.

    Abstract

    Recent work has demonstrated substantial gains on many NLP tasks and benchmarks by pre-training on a large corpus of text followed by fine-tuning on a specific task. While typically task-agnostic in architecture, this method still requires task-specific fine-tuning datasets of thousands or tens of thousands of examples. By contrast, humans can generally perform a new language task from only a few examples or from simple instructions - something which current NLP systems still largely struggle to do. Here we show that scaling up language models greatly improves task-agnostic, few-shot performance, sometimes even reaching competitiveness with prior state-of-the-art fine-tuning approaches. Spec…

  2. Close
    Why Can GPT Learn In-Context? Language Models Secretly Perform Gradient Descent as Meta-Optimizers
    Damai Dai, Yutao Sun, Li Dong et al. · 2023 · Annual Meeting of the Association for Computational Linguistics · cited 426 times · Not summarized yet
    Abstract

    Large pretrained language models have shown surprising In-Context Learning (ICL) ability. With a few demonstration input-label pairs, they can predict the label for an unseen input without additional parameter updates. Despite the great success in performance, the working mechanism of ICL still remains an open problem. In order to better understand how ICL works, this paper explains language models as meta-optimizers and understands ICL as a kind of implicit finetuning. Theoretically, we figure out that the Transformer attention has a dual form of gradient descent based optimization. On top of it, we understand ICL as follows: GPT first produces meta-gradients according to the demonstration exa…

  3. Close
    Large Language Models as General Pattern Machines
    Suvir Mirchandani, F. Xia, Peter R. Florence et al. · 2023 · Conference on Robot Learning · cited 308 times · Not summarized yet
    Abstract

    We observe that pre-trained large language models (LLMs) are capable of autoregressively completing complex token sequences -- from arbitrary ones procedurally generated by probabilistic context-free grammars (PCFG), to more rich spatial patterns found in the Abstraction and Reasoning Corpus (ARC), a general AI benchmark, prompted in the style of ASCII art. Surprisingly, pattern completion proficiency can be partially retained even when the sequences are expressed using tokens randomly sampled from the vocabulary. These results suggest that without any additional training, LLMs can serve as general sequence modelers, driven by in-context learning. In this work, we investigate how these zero-…

  4. Close
    Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
    Sewon Min, Xinxi Lyu, Ari Holtzman et al. · 2022 · Conference on Empirical Methods in Natural Language Processing · cited 2,305 times · Not summarized yet
    Abstract

    Large language models (LMs) are able to in-context learn—perform a new task via inference alone by conditioning on a few input-label pairs (demonstrations) and making predictions for new inputs. However, there has been little understanding of how the model learns and which aspects of the demonstrations contribute to end task performance. In this paper, we show that ground truth demonstrations are in fact not required—randomly replacing labels in the demonstrations barely hurts performance on a range of classification and multi-choce tasks, consistently over 12 different models including GPT-3. Instead, we find that other aspects of the demonstrations are the key drivers of endtask performanc…

  5. Close
    Larger language models do in-context learning differently
    Jerry W. Wei, Jason Wei, Yi Tay et al. · 2023 · arXiv.org · preprint, not peer reviewed · cited 522 times · Not summarized yet
    Abstract

    We study how in-context learning (ICL) in language models is affected by semantic priors versus input-label mappings. We investigate two setups-ICL with flipped labels and ICL with semantically-unrelated labels-across various model families (GPT-3, InstructGPT, Codex, PaLM, and Flan-PaLM). First, experiments on ICL with flipped labels show that overriding semantic priors is an emergent ability of model scale. While small language models ignore flipped labels presented in-context and thus rely primarily on semantic priors from pretraining, large models can override semantic priors when presented with in-context exemplars that contradict priors, despite the stronger semantic priors that larger…

Papers that cite it

  1. Close Uses this paper in depth
    Robustness is Important: Limitations of LLMs for Data Fitting
    Hejia Liu, Mochen Yang, G. Adomavicius · 2025 · arXiv.org · preprint, not peer reviewed · cited 3 times · Not summarized yet
    Abstract

    Large Language Models (LLMs) are being applied in a wide array of settings, well beyond the typical language-oriented use cases. In particular, LLMs are increasingly used as a plug-and-play method for fitting data and generating predictions. Prior work has shown that LLMs, via in-context learning or supervised fine-tuning, can perform competitively with many tabular supervised learning techniques in terms of predictive performance. However, we identify a critical vulnerability of using LLMs for data fitting -- making changes to data representation that are completely irrelevant to the underlying learning task can drastically alter LLMs'predictions on the same data. For example, simply changi…

  2. Close Uses this paper in depth
    Quantile Regression with Large Language Models for Price Prediction
    Nikhita Vedula, Dushyanta Dhyani, Laleh Jalali et al. · 2025 · Annual Meeting of the Association for Computational Linguistics · cited 12 times · Not summarized yet
    Abstract

    Large Language Models (LLMs) have shown promise in structured prediction tasks, including regression, but existing approaches primarily focus on point estimates and lack systematic comparison across different methods. We investigate probabilistic regression using LLMs for unstructured inputs, addressing challenging text-to-distribution prediction tasks such as price estimation where both nuanced text understanding and uncertainty quantification are critical. We propose a novel quantile regression approach that enables LLMs to produce full predictive distributions, improving upon traditional point estimates. Through extensive experiments across three diverse price prediction datasets, we demo…

  3. Close
    Regression Aware Inference with LLMs
    Michal Lukasik, Harikrishna Narasimhan, A. Menon et al. · 2024 · Conference on Empirical Methods in Natural Language Processing · cited 19 times · Not summarized yet
    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.

  4. Close Uses this paper in depth
    Reinforcement Learning over Predictive Distributions for LLM Regression
    Jungsoo Park, H. Chae, Ethan Mendes et al. · 2026 · cited 1 time · Not summarized yet
    Abstract

    Large language models (LLMs) have emerged as flexible regressors capable of predicting real-valued quantities from heterogeneous inputs. Yet most LLM regression objectives optimize predictions independently, often yielding poor calibration. We introduce Distribution-Aware Reward (DAR), an on-policy reinforcement learning objective that instead jointly evaluates the empirical predictive distribution formed by multiple predictions for the same input. To translate this distribution-level objective into rollout-level rewards, we assign each prediction credit based on its leave-one-out contribution to the quality of the overall predictive distribution. This encourages predictions that are well-ce…

  5. Close
    Eliciting Numerical Predictive Distributions of LLMs Without Autoregression
    Julianna Piskorz, Katarzyna Kobalczyk, M. van der Schaar · 2026 · arXiv.org · preprint, not peer reviewed · cited 7 times · Not summarized yet
    Abstract

    Large Language Models (LLMs) have recently been successfully applied to regression tasks -- such as time series forecasting and tabular prediction -- by leveraging their in-context learning abilities. However, their autoregressive decoding process may be ill-suited to continuous-valued outputs, where obtaining predictive distributions over numerical targets requires repeated sampling, leading to high computational cost and inference time. In this work, we investigate whether distributional properties of LLM predictions can be recovered without explicit autoregressive generation. To this end, we study a set of regression probes trained to predict statistical functionals (e.g., mean, median, q…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 1 November 2026.

The illustrated guide to the papers around a paper

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.