Saved in:
Bibliographic Details
Main Authors: Xu, Manjie, Yin, Isabella, Tu, Xinyi, Zhang, Chi, Zhu, Yixin
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2601.18352
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918318531674112
author Xu, Manjie
Yin, Isabella
Tu, Xinyi
Zhang, Chi
Zhu, Yixin
author_facet Xu, Manjie
Yin, Isabella
Tu, Xinyi
Zhang, Chi
Zhu, Yixin
contents LLMs struggle with Semantic Inertia: the inability to inhibit pre-trained priors (e.g., "Lava is Dangerous") when dynamic, in-context rules contradict them. We probe this phenomenon using Baba Is You, where physical laws are mutable text rules, enabling precise evaluation of models' ability to override learned priors when rules change. We quantatively observe that larger models can exhibit inverse scaling: they perform worse than smaller models when natural language reasoning requires suppressing pre-trained associations (e.g., accepting "Lava is Safe"). Our analysis attributes this to natural language encoding, which entangles descriptive semantics and logical rules, leading to persistent hallucinations of familiar physics despite explicit contradictory rules. Here we show that representing dynamics as executable code, rather than descriptive text, reverses this trend and enables effective prior inhibition. We introduce Code-Grounded Vistas (LCV), which fine-tunes models on counterfactual pairs and identifies states with contradictory rules, thereby forcing attention to logical constraints rather than visual semantics. This training-time approach outperforms expensive inference-time search methods in both efficiency and accuracy. Our results demonstrate that representation fundamentally determines whether scaling improves or impairs contextual reasoning. This challenges the assumption that larger models are universally better, with implications for domains that require dynamic overriding of learned priors.
format Preprint
id arxiv_https___arxiv_org_abs_2601_18352
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Code over Words: Overcoming Semantic Inertia via Code-Grounded Reasoning
Xu, Manjie
Yin, Isabella
Tu, Xinyi
Zhang, Chi
Zhu, Yixin
Computation and Language
Artificial Intelligence
LLMs struggle with Semantic Inertia: the inability to inhibit pre-trained priors (e.g., "Lava is Dangerous") when dynamic, in-context rules contradict them. We probe this phenomenon using Baba Is You, where physical laws are mutable text rules, enabling precise evaluation of models' ability to override learned priors when rules change. We quantatively observe that larger models can exhibit inverse scaling: they perform worse than smaller models when natural language reasoning requires suppressing pre-trained associations (e.g., accepting "Lava is Safe"). Our analysis attributes this to natural language encoding, which entangles descriptive semantics and logical rules, leading to persistent hallucinations of familiar physics despite explicit contradictory rules. Here we show that representing dynamics as executable code, rather than descriptive text, reverses this trend and enables effective prior inhibition. We introduce Code-Grounded Vistas (LCV), which fine-tunes models on counterfactual pairs and identifies states with contradictory rules, thereby forcing attention to logical constraints rather than visual semantics. This training-time approach outperforms expensive inference-time search methods in both efficiency and accuracy. Our results demonstrate that representation fundamentally determines whether scaling improves or impairs contextual reasoning. This challenges the assumption that larger models are universally better, with implications for domains that require dynamic overriding of learned priors.
title Code over Words: Overcoming Semantic Inertia via Code-Grounded Reasoning
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2601.18352