arXiv:2611.09027cs.CLNov 2026

Manuscript Offprint

arXiv:2611.09027

Language, Not Code Abstraction: Natural-language Training Shapes Brain-aligned Geometry

Iñigo Parra

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Code-trained language models produce positive brain scores, which raises the question of whether abstract structure learned from programming languages can substitute for natural-language training. We trained 25 GPT-2-small models on TinyStories, Python, C functions, x86-64 assembly, and the corresponding machine code, and scored them using a shared tokenizer and encoding procedure against matched random-weight models. On Pereira-243 and Tuckute2024, TinyStories exceeds the mean of the four code models by Δr=0.053\Delta r = 0.053 and 0.059 (Holm-corrected p<0.001p < 0.001), while code training leaves alignment near the random-weight level. The language advantage is benchmark-specific: Blank2014 shows no corrected language-code difference, and Fedorenko2016 shows no language benefit. Geometry tracks the encoding result on Pereira-243: TinyStories seeds converge on the most similar representations, and its fit-free correspondence with neural dissimilarity peaks at ρ=0.14\rho = 0.14, twice the code and random-weight levels. Binary-trained models have about three effective dimensions, so seed agreement alone does not imply neural correspondence. Updating only the embedding matrix on English improves mean-over-depth alignment for every code model more than an equal update on its own corpus. Within this architecture and training setup, natural-language training produces a distinct representational geometry with closer neural correspondence on Pereira-243.¹

Keywords: representational geometry; language-brain alignment; centered kernel alignment; representational similarity analysis; code language models.

Project page: language-training-brain-geometry

1. Introduction

Transformer language models predict activity in the human language network (Schrimpf et al., 2021; Caucheteux and King, 2022; Goldstein et al., 2022). Models trained on computer code also obtain positive scores, suggesting alignment might arise from abstract sequential and compositional structure rather than from learning natural language. An absolute score cannot settle this. A randomly initialized transformer already supplies a learned tokenizer, positional structure, causal attention, nonlinear random features, and, under encoding analyses, a fitted readout (Pasquiou et al., 2022; AlKhamissi et al., 2024). Surface properties of the stimuli add predictive power (Feghhi et al., 2024). A corpus contributes what it produces relative to an identical model that was never trained.

We contrast two predictions. If abstraction learned from code drives alignment, models trained on high-level source code should align better than those trained on lower-level

  1. Code and results: https://github.com/IParraMartin/language-training-brain-geometry. Models: https://huggingface.co/collections/IParraMartin/brain-scores.

© 2026 I. Parra.

representations, giving a Python > C > assembly > binary ordering. If natural-language learning drives it, a model trained on English should separate from all code models, with no particular ordering among them. Our five corpora share one tokenizer, architecture, and training recipe. Three of them keep the same programs fixed: every C function in the corpus also appears as x86-64 assembly and as hexadecimal machine code. Python is an unrelated corpus, and TinyStories supplies narrative English (Eldan and Li, 2023).

We score every block of every model on Pereira2018 (Pereira et al., 2018), Tuckute2024 (Tuckute et al., 2024), Blank2014 (Blank et al., 2014), and Fedorenko2016 (Fedorenko et al., 2016), treating independently trained seeds as the unit of inference. Because fitted encoders can exploit stimulus surface features, we add analyses that fit nothing: CKA between models, covariance spectra, and RSA between model and brain. Two interventions—block transplants and embedding-only retraining—ask which learned components carry the effect. The results support a narrower claim than the one we began with: English training produces a depth-wide encoding advantage over code on Pereira-243 and Tuckute2024, but not on Blank2014 or Fedorenko2016. On Pereira-243, it also produces a more reproducible geometry with closer neural correspondence. No abstraction ordering appears among the code models. Because the models are compared with human responses to language, these experiments constrain what code training contributes to language-network alignment, not how people process code, which recruits mainly domain-general cortex (Ivanova et al., 2020; Liu et al., 2020).

References (23)