mlsanityData to 14 Oct 2026

Uncovering Spontaneous Physics Representations in In-Context Learning

arXiv 2508.12448 ↗First posted 17 Aug 2025cs.CL cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

In-context learning (ICL) lets large language models (LLMs) solve new tasks from prompts alone, across an ever-widening range of domains, yet the mechanisms underlying this ability remain poorly understood. Physical systems offer a controlled testbed for this question as they provide experimentally controllable data with structured dynamics grounded in fundamental principles. Here we study the ICL ability of LLMs, focusing on physical reasoning. Using dynamics forecasting as a proxy task, we first show that LLMs forecast physical dynamics in context, with accuracy improving as more history is provided. Analyzing the model's residual stream reveals internal activations that correlate with key physical quantities such as energy. These correlations strengthen gradually with context length, indicating that LLMs spontaneously form representations aligned with physical concepts without any physics-specific supervision. To assess whether these representations contribute to the model's predictions, we introduce a layer-wise gradient-based attribution analysis. We find that, residual directions more strongly correlated with energy also receive greater attribution to numerical predictions. This pattern is not observed for features correlated with directly observed quantities such as displacement, suggesting that the energy-related signal is not merely numerical information copied from the input. Our results broaden ICL analysis to structured physical dynamics and give a mechanistic account of how LLMs organize physical structure in context.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 0 of its 4 references that are in the map. First posted on arXiv 17 Aug 2025.

Builds on

0 of 4 references.

No references here yet.

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Physics Steering: Causal Control of Cross-Domain Concepts in a Physics Foundation Model
  2. 2026Decoupled Physical Modeling and Execution for Physics Reasoning
  3. 2025Illusion or Algorithm? Investigating Memorization, Emergence, and Symbolic Processing in In-Context Learning
  4. 2026PhysMent: An Interactive Approach For LLM Reasoning In Physics Problems
  5. 2025Neural Force Field: Few-shot Learning of Generalized Physical Reasoning
  6. 2026Towards Physical Intuitions for Alignment Dynamics: A Case Study With Randomness Crystallization
  7. 2024Exploring the Limits of Fine-grained LLM-based Physics Inference via Premise Removal Interventions
  8. 2026PhysFieldBench: Can Multimodal Models Understand Physical Fields?