Skip to content
Open access

fMRI Encoding and Decoding with LLMs: Input Embeddings vs. Hidden State Representations

Jul 2026 · Journal of Advanced Computational Intelligence and Intelligent Informatics · Vol 30, pp. 1243-1257 · 0 citations · 17 references
Computer Science

TL;DR

Comparing input embeddings and hidden states from multiple language model families within both encoding frameworks, which map text features to brain responses, and decoding frameworks, which reconstruct linguistic features from brain activity shows that input embeddings offer a strong and interpretable baseline for representational alignment between language models and brain activity.

Abstract

Systematically comparing how linguistic representations relate to brain activity has become an important topic in the field of computational neuroscience. Prior studies have mainly relied on contextual hidden states combined with linear regression, leaving open questions about the role of static input embeddings and the benefits of nonlinear mappings. In this study, we compare input embeddings and hidden states from multiple language model families (BERT, GPT-2, and LLaMA) within both encoding frameworks, which map text features to brain responses, and decoding frameworks, which reconstruct linguistic features from brain activity. We benchmarked voxel-wise ridge regression against bidirectional long short-term memory (BiLSTMs) models, using repeat-split cross-validation and explainable variance normalization on functional magnetic resonance imaging (fMRI) data from three subjects. Our analyses demonstrate that input embeddings, despite being context-invariant, remain competitive and, in some cases, outperform hidden states, while BiLSTMs provide modest but region-specific improvements over ridge regression. Fine-grained voxel-level results further revealed distinct cortical distributions of stable versus context-dependent features. Together, these findings clarify the trade-off between predictive performance and interpretability and highlight that input embeddings offer a strong and interpretable baseline for representational alignment between language models and brain activity.

Read PDF

Similar papers

Preprint Sep 2026

Predictor Construction Can Reverse Multimodal Neural Contrasts

These results show that nested neural contrasts do not identify represented content by themselves: predictor construction is part of the experimental design, and matched controls are required for representational claims.

Lucas Nadolskis, Galen Pogoncheff, Michael Beyeler · 0 citations
Open access Aug 2026

Brain–Language Alignment During Naturalistic Reading and Its Disruption by Mind-Wandering

Encoding models offer a principled framework for linking computational representations of language to neural activity, but most electroencephalography (EEG) evidence for brain–language alignment comes from tightly controlled, word-by-word reading paradigms. Whether such alignment is detectable during naturalistic readi...

Haorui Sun, D. Jangraw · 0 citations
Preprint Sep 2026

Natural Image Autoencoder-Based fMRI Representations for Trait and State Prediction

FReD is introduced, which derives fMRI representations from a frozen Deep Compression AutoEncoder pre-trained exclusively on natural images and pairs them with a task specific readout, making frozen natural-image features as a useful baseline for assessing its added value on current fMRI benchmarks.

Juhyeon Park, Yeonwook Kim, P. Y. Kim et al. · 0 citations
Open access Sep 2026

NeuroGate: waveform translation between brain regions

NeuroGate, a framework for cross-regional neural signal translation that recovers an unrecorded region’s waveform from a recorded one, is introduced, demonstrating two applications: quantifying how recording redundancy bounds the information from each added source, and a reusable perturbation protocol for verifying dir...

Ali Zareh, Rufeyda Yağcı, M. K. Özdemir · 0 citations
Open access Aug 2026

Behavioral and Brain Responses to Language Reflect Different Levels of Linguistic Representation

Human language processing can be studied through both behavior and brain activity, yet it remains unclear whether these two data types reflect sensitivity to the same information. One influential view holds that both behavioral and neural responses are largely determined by processing effort, often estimated by word su...

Andrea Gregor de Varda, Y. Berzak, Evelina Fedorenko et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Cross-attention encoding models reveal dynamic spatiotemporal routing across human higher visual cortex

This work uses per-parcel cross-attention to dynamically route features from a self-supervised video model (V-JEPA-2) across both space and time, and finds that joint routing improves predictions of brain responses to held-out videos across higher visual regions, most consistently in lateral and dorsal visual areas ass...

Iishaan Inabathini, Margaret M. Henderson · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.