Interpretable weight-space programming builds transparent transformers and brain encoding models
Yash Mehta, Chandan Singh, Weijia Xu, Richard J. Antonello, Adeen Flinker, Nima Mesgarani, Michael F. Bonner, Nebojsa Jojic, Jianfeng Gao
Abstract
Neural networks are powerful predictors, yet their opacity limits their usefulness in science, where the goal is explanation rather than mere prediction. In neuroscience, for example, deep encoding models accurately predict brain activity in response to natural stimuli, but struggle to reveal which stimulus features drive those predictions. Here we introduce interpretable weight-space programming (iWSP), a method in which an LLM agent iteratively builds interpretable models by explicitly programming their weights and features in code, without gradient-based training (backpropagation). Without backpropagation to tune parameters, the agent must draw on its prior knowledge and reason over previous trials to hypothesize, hand-craft, and refine human-interpretable computations mirroring the workflow of a human scientist. LLM audits confirm the interpretability of the hand-crafted models. We first validate iWSP by tasking it with constructing transformers for canonical benchmarks such as arithmetic and sentiment classification, finding that LLM agents can successfully craft compact, accurate networks directly. Next, we apply iWSP to build neural encoding models across vision, language, and audition. In the visual cortex, iWSP outpredicts existing interpretable baselines, uncovers distinct computations across early/higher visual areas, and generalizes to unseen data. In language fMRI, iWSP surfaces a confound in the data and in auditory ECoG, it systematically discovers interpretable acoustic features that predict neural activity. Together, these results establish iWSP as a general paradigm for aligning high predictive performance with human-interpretable scientific discovery.
Create a lesson
Related papers
Gauge-equivariant real-space renormalization of frustrated magnets and topological spin textures
Shared title terminology · Musen Li, Tianhao Su, Shunbo Hu et al.
InfantConnect: integrating developmental brain atlases and electrophysiological network analysis
Shared title terminology · Alessandro Crimi, Paweł Gryboś
CHORUS: Cross-Subject Harmonization via Population Relay for Unseen Subjects in Brain Visual Decoding
Shared title terminology · Jiayu Zuo, Dongyang Li, Chen Wei et al.
Mechanism-Level Chemical Reaction Simulation with Electron Bookkeeping Transformer
Shared title terminology · Sarah Cao, Shitong Luo, Connor W. Coley
Mechanical behaviour of the intact brain-skull interface under tension, compression and shear
Shared title terminology · Sajjad Arzemanzadeh, Karol Miller, Ron Kikinis et al.
TPIC: Energy-Conserving Space Plasma Simulations on GPU Supercomputers
Shared title terminology · Luca Pennati, Ivy Peng, Stefano Markidis