Variable names provide priors: semantic grounding enables data-efficient numerical prediction by large language models
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have achieved strong performance across diverse tasks, from question answering to code generation. Recent studies have found that LLMs can perform numerical prediction on tabular datasets via in-context learning. However, it remains unclear under what conditions and how LLMs use variable names and in-context examples for numerical prediction. Here we show that semantic grounding, the match between variable names and the values they describe, allows five LLMs without task-specific training to match or outperform seven supervised machine learning (ML) models across 20 datasets from nine scientific domains, particularly when examples are scarce. Reasoning traces indicate that variable names allow LLMs to draw on domain-specific knowledge acquired during pretraining. Using controlled tasks based on physical formulas, we further show that LLMs integrate domain-specific knowledge with in-context examples in a way consistent with Bayesian updating. Specifically, when the relationship between the inputs and the target cannot be inferred from the examples alone, LLMs rely on domain-specific knowledge as the prior. Conversely, as contradicting examples accumulate, LLM predictions shift progressively towards these examples, which act as the likelihood. Our work reveals how LLMs use domain-specific knowledge in numerical prediction and positions them as data-efficient predictors for data-scarce scientific domains.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 15 of its 50 references that are in the map. Submitted 2 Nov 2026.
Builds on
15 of 50 references.
References · 15
- 2020Language Models are Few-Shot Learnerscited by 33,113
- 2023GPT-4 Technical Reportcited by 19,416
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,560
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 989
- 2023Larger language models do in-context learning differentlycited by 436
- 2021Transformers Can Do Bayesian Inferencecited by 409
- 2018Recasting Gradient-Based Meta-Learning as Hierarchical Bayescited by 188
- 2023In-Context Learning through the Bayesian Prismcited by 95
- 2024CARTE: Pretraining and Transfer for Tabular Learningcited by 85
- 2024From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examplescited by 64
- 2024Elephants Never Forget: Memorization and Learning of Tabular Data in Large Language Modelscited by 40
- 2026TabPFN-3: Technical Reportcited by 23
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Learning When to Trust LLM Priors: A Validated Framework for Semantic Prior Integration
- 2025Knowing the Facts but Choosing the Shortcut: Understanding How Large Language Models Compare Entities
- 2025MachineLearningLM: Scaling Many-shot In-context Learning via Continued Pretraining
- 2024Improving Large Language Model (LLM) fidelity through context-aware grounding: A systematic approach to reliability and veracity
- 2024Beyond the Black Box: A Statistical Model for LLM Reasoning and Inference
- 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoning
- 2026Language Models Struggle to Use Representations Learned In-Context
- 2025Demystifying the Roles of LLM Layers in Retrieval, Knowledge, and Reasoning