From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examples
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 55 papers in the map (data through 7 Oct 2026). Builds on 40 of its 59 references that are in the map. First posted on arXiv 11 Apr 2024.
Builds on
40 of 59 references.
References · 40
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Mistral 7Bcited by 3,065
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2024Mixtral of Expertscited by 1,785
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
28 more
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2023The Falcon Series of Open Language Modelscited by 526
- 2019Online Learning: A Modern Introduction Using Convex Optimizationcited by 407
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2023Larger language models do in-context learning differentlycited by 386
- 2023NLP Evaluation in trouble: On the Need to Measure LLM Data Contamination for each Benchmarkcited by 339
- 2023In-Context Learning Creates Task Vectorscited by 302
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
- 2023In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steeringcited by 240
- 2023Large Language Models as General Pattern Machinescited by 196
- 2023Time Travel in LLMs: Tracing Data Contamination in Large Language Modelscited by 175
- 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 168
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
- 2019Online Meta-Learningcited by 137
- 2023The Learnability of In-Context Learningcited by 126
- 2023In-Context Convergence of Transformerscited by 112
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 101
- 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
- 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 72
- 2023Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Contextcited by 63
- 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 62
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
- 2023Understanding In-Context Learning via Supportive Pretraining Datacited by 41
- 2024How Do Nonlinear Transformers Learn and Generalize in In-Context Learning?cited by 35
- 2024Linear Transformers are Versatile In-Context Learnerscited by 28
- 2023In-context Learning and Gradient Descent Revisitedcited by 20
- 2024Theoretical Understanding of In-Context Learning in Shallow Transformers with Unstructured Datacited by 5
Built on by
Citing papers per year: 2024: 15; 2025: 29; 2026: 11.
55 papers.
Sort:
By area:
- 2024Many-Shot In-Context Learningcited by 203
- 2024How Well Do LLMs Represent Values Across Cultures? Empirical Analysis of LLM Responses Based on Hofstede Cultural Dimensionscited by 51
- 2025Language Models Are Capable of Metacognitive Monitoring and Control of Their Internal Activationscited by 37
- 2024InsightBench: Evaluating Business Analytics Agents Through Multi-Step Insight Generationcited by 30
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
- 2024Understanding LLM Embeddings for Regressioncited by 19
- 2025Extracting Probabilistic Knowledge from Large Language Models for Bayesian Network Parameterizationcited by 15
- 2025Performance Prediction for Large Systems via Text-to-Text Regressioncited by 14
- 2025Decoding-based Regressioncited by 11
- 2024Fourier Head: Helping Large Language Models Learn Complex Probability Distributionscited by 10
- 2025Regression Language Models for Codecited by 10
- 2024Evaluating the Performance and Robustness of LLMs in Materials Science Q&A and Property Predictionscited by 9
38 more
- 2025Always Tell Me The Odds: Fine-grained Conditional Probability Estimationcited by 9
- 202534 Examples of LLM Applications in Materials Science and Chemistry: Towards Automation, Assistants, Agents, and Accelerated Scientific Discoverycited by 9
- 2025Quantile Regression with Large Language Models for Price Predictioncited by 9
- 2024Language Model Embeddings Can Be Sufficient for Bayesian Optimizationcited by 8
- 2024ELICIT: LLM Augmentation via External In-Context Capabilitycited by 7
- 2024Memorization in In-Context Learningcited by 6
- 2024Zero-shot Model-based Reinforcement Learning using Large Language Modelscited by 6
- 2025Rank-Then-Score: Enhancing Large Language Models for Automated Essay Scoringcited by 6
- 2024A Survey of RWKVcited by 5
- 2026Eliciting Numerical Predictive Distributions of LLMs Without Autoregressioncited by 5
- 2024Learning vs Retrieval: The Role of In-Context Examples in Regression with Large Language Modelscited by 4
- 2025ICL CIPHERS: Quantifying "Learning" in In-Context Learning via Substitution Cipherscited by 4
- 2025LLM-Fusion: A Novel Multimodal Fusion Model for Accelerated Material Discoverycited by 3
- 2025Teaching Metric Distance to Discrete Autoregressive Language Modelscited by 3
- 2025On the Performance of LLMs for Real Estate Appraisalcited by 3
- 2025Towards Compute-Optimal Many-Shot In-Context Learningcited by 3
- 2025Improving the Distributional Alignment of LLMs using Supervisioncited by 2
- 2025Reasoning-Intensive Regressioncited by 2
- 2025InPhyRe Discovers: Large Multimodal Models Struggle in Inductive Physical Reasoningcited by 2
- 2025Interpreting LLMs as Credit Risk Classifiers: Do Their Feature Explanations Align with Classical ML?cited by 2
- 2026Configuration-to-Performance Scaling Law with Neural Ansatzcited by 2
- 2024Evaluating Theory of (an uncertain) Mind: Predicting the Uncertain Beliefs of Others in Conversation Forecastingcited by 1
- 2025Large language models streamline automated systematic review: A preliminary studycited by 1
- 2025Robustness is Important: Limitations of LLMs for Data Fittingcited by 1
- 2025PIE: Performance Interval Estimation for Free-Form Generation Taskscited by 1
- 2025Anticipatory Evaluation of Language Modelscited by 1
- 2025Towards Unified Vision Language Models for Forest Ecological Analysis in Earth Observationcited by 1
- 2025Beyond Token-level Supervision: Unlocking the Potential of Decoding-based Regression via Reinforcement Learningcited by 1
- 2026LLM Flow Processes for Text-Conditioned Regressioncited by 1
- 2026RELISH: LLM REgression with a Latent Iterative State Headcited by 1
- 2026Reinforcement Learning over Predictive Distributions for LLM Regressioncited by 1
- 2024Scaling Particle Collision Data Analysiscited by 0
- 2025Transforming Decoder-Only Transformers for Accurate WiFi-Telemetry Based Indoor Localizationcited by 0
- 2025Next Token Perception Score: Analytical Assessment of your LLM Perception Skillscited by 0
- 2025Univariate to Multivariate: LLMs as Zero-Shot Predictors for Time-Series Forecastingcited by 0
- 2025In-Context Clustering with Large Language Modelscited by 0
- 2025LASER: Language Model Regression for Semi-Structured Workflow Resource and Runtime Estimationcited by 0
- 2026Federated Customization of Large Models: Approaches, Experiments, and Insightscited by 0
50 most cited of 55 All 55 (JSON)
- 2026Making Alternative Data Work: Context-Augmented LLMs for Financial Forecasting10 Sep 2026
- 2026A Graph Signal Processing Perspective on Numerical Sequence Representations in LLM In-Context Learning4 Aug 2026
- 2026From Critic to Confidence: PPO for Language-Based Quantitative Prediction with Confidence Estimation14 Jul 2026
- 2026Reinforcement Learning over Predictive Distributions for LLM Regression20 May 2026
- 2026Text-to-Distribution Prediction with Quantile Tokens and Neighbor Context22 Apr 2026
- 2026RELISH: LLM REgression with a Latent Iterative State Head1 Apr 2026
- 2026Eliciting Numerical Predictive Distributions of LLMs Without Autoregression3 Mar 2026
- 2026In-Context Function Learning in Large Language Models12 Feb 2026
- 2026Configuration-to-Performance Scaling Law with Neural Ansatz10 Feb 2026
- 2026LLM Flow Processes for Text-Conditioned Regression5 Jan 2026
- 2026Federated Customization of Large Models: Approaches, Experiments, and Insights2 Jan 2026
- 2025LASER: Language Model Regression for Semi-Structured Workflow Resource and Runtime Estimation8 Dec 2025
38 more
- 2025Beyond Token-level Supervision: Unlocking the Potential of Decoding-based Regression via Reinforcement Learning6 Dec 2025
- 2025Towards Unified Vision Language Models for Forest Ecological Analysis in Earth Observation20 Nov 2025
- 2025Interpreting LLMs as Credit Risk Classifiers: Do Their Feature Explanations Align with Classical ML?29 Oct 2025
- 2025In-Context Clustering with Large Language Models9 Oct 2025
- 2025Regression Language Models for Code30 Sep 2025
- 2025Anticipatory Evaluation of Language Models25 Sep 2025
- 2025InPhyRe Discovers: Large Multimodal Models Struggle in Inductive Physical Reasoning12 Sep 2025
- 2025PIE: Performance Interval Estimation for Free-Form Generation Tasks9 Sep 2025
- 2025Reasoning-Intensive Regression29 Aug 2025
- 2025Robustness is Important: Limitations of LLMs for Data Fitting27 Aug 2025
- 2025Towards Compute-Optimal Many-Shot In-Context Learning22 Jul 2025
- 2025Improving the Distributional Alignment of LLMs using Supervision1 Jul 2025
- 2025Performance Prediction for Large Systems via Text-to-Text Regression26 Jun 2025
- 2025On the Performance of LLMs for Real Estate Appraisal13 Jun 2025
- 2025Quantile Regression with Large Language Models for Price Prediction7 Jun 2025
- 2025Univariate to Multivariate: LLMs as Zero-Shot Predictors for Time-Series Forecasting3 Jun 2025
- 2025Next Token Perception Score: Analytical Assessment of your LLM Perception Skills22 May 2025
- 2025Extracting Probabilistic Knowledge from Large Language Models for Bayesian Network Parameterization21 May 2025
- 2025Language Models Are Capable of Metacognitive Monitoring and Control of Their Internal Activations19 May 2025
- 2025Transforming Decoder-Only Transformers for Accurate WiFi-Telemetry Based Indoor Localization16 May 2025
- 202534 Examples of LLM Applications in Materials Science and Chemistry: Towards Automation, Assistants, Agents, and Accelerated Scientific Discovery5 May 2025
- 2025Always Tell Me The Odds: Fine-grained Conditional Probability Estimation2 May 2025
- 2025ICL CIPHERS: Quantifying "Learning" in In-Context Learning via Substitution Ciphers28 Apr 2025
- 2025Rank-Then-Score: Enhancing Large Language Models for Automated Essay Scoring8 Apr 2025
- 2025Teaching Metric Distance to Discrete Autoregressive Language Models4 Mar 2025
- 2025LLM-Fusion: A Novel Multimodal Fusion Model for Accelerated Material Discovery2 Mar 2025
- 2025Decoding-based Regression31 Jan 2025
- 2025Large language models streamline automated systematic review: A preliminary study9 Jan 2025
- 2024A Survey of RWKV19 Dec 2024
- 2024Scaling Particle Collision Data Analysis28 Nov 2024
- 2024Understanding LLM Embeddings for Regression22 Nov 2024
- 2024Fourier Head: Helping Large Language Models Learn Complex Probability Distributions29 Oct 2024
- 2024Zero-shot Model-based Reinforcement Learning using Large Language Models15 Oct 2024
- 2024Language Model Embeddings Can Be Sufficient for Bayesian Optimization14 Oct 2024
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?13 Oct 2024
- 2024ELICIT: LLM Augmentation via External In-Context Capability12 Oct 2024
- 2024Evaluating Theory of (an uncertain) Mind: Predicting the Uncertain Beliefs of Others in Conversation Forecasting23 Sep 2024
- 2024Evaluating the Performance and Robustness of LLMs in Materials Science Q&A and Property Predictions22 Sep 2024
50 newest of 55 All 55 (JSON)
- 2024Many-Shot In-Context Learningcited by 203
- 2024How Well Do LLMs Represent Values Across Cultures? Empirical Analysis of LLM Responses Based on Hofstede Cultural Dimensionscited by 51
- 2025Language Models Are Capable of Metacognitive Monitoring and Control of Their Internal Activationscited by 37
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
- 2024Understanding LLM Embeddings for Regressioncited by 19
- 2025Extracting Probabilistic Knowledge from Large Language Models for Bayesian Network Parameterizationcited by 15
- 2025Performance Prediction for Large Systems via Text-to-Text Regressioncited by 14
- 2025Decoding-based Regressioncited by 11
- 2025Regression Language Models for Codecited by 10
- 2024Evaluating the Performance and Robustness of LLMs in Materials Science Q&A and Property Predictionscited by 9
- 2025Always Tell Me The Odds: Fine-grained Conditional Probability Estimationcited by 9
- 202534 Examples of LLM Applications in Materials Science and Chemistry: Towards Automation, Assistants, Agents, and Accelerated Scientific Discoverycited by 9
12 most cited of 49 All 49 (JSON)
- 2026Making Alternative Data Work: Context-Augmented LLMs for Financial Forecasting10 Sep 2026
- 2026A Graph Signal Processing Perspective on Numerical Sequence Representations in LLM In-Context Learning4 Aug 2026
- 2026From Critic to Confidence: PPO for Language-Based Quantitative Prediction with Confidence Estimation14 Jul 2026
- 2026Reinforcement Learning over Predictive Distributions for LLM Regression20 May 2026
- 2026Text-to-Distribution Prediction with Quantile Tokens and Neighbor Context22 Apr 2026
- 2026RELISH: LLM REgression with a Latent Iterative State Head1 Apr 2026
- 2026Eliciting Numerical Predictive Distributions of LLMs Without Autoregression3 Mar 2026
- 2026In-Context Function Learning in Large Language Models12 Feb 2026
- 2026Configuration-to-Performance Scaling Law with Neural Ansatz10 Feb 2026
- 2026LLM Flow Processes for Text-Conditioned Regression5 Jan 2026
- 2026Federated Customization of Large Models: Approaches, Experiments, and Insights2 Jan 2026
- 2025LASER: Language Model Regression for Semi-Structured Workflow Resource and Runtime Estimation8 Dec 2025
12 newest of 49 All 49 (JSON)