[Paper Review] Scaling laws for language encoding models in fMRI
This paper tests whether larger open-source language and acoustic models better predict fMRI responses to natural language, finding logarithmic scaling with model size and data, approaching noise ceilings in some brain areas.
Representations from transformer-based unidirectional language models are known to be effective at predicting brain responses to natural language. However, most studies comparing language models to brains have used GPT-2 or similarly sized language models. Here we tested whether larger open-source models such as those from the OPT and LLaMA families are better at predicting brain responses recorded using fMRI. Mirroring scaling results from other contexts, we found that brain prediction performance scales logarithmically with model size from 125M to 30B parameter models, with ~15% increased encoding performance as measured by correlation with a held-out test set across 3 subjects. Similar logarithmic behavior was observed when scaling the size of the fMRI training set. We also characterized scaling for acoustic encoding models that use HuBERT, WavLM, and Whisper, and we found comparable improvements with model size. A noise ceiling analysis of these large, high-performance encoding models showed that performance is nearing the theoretical maximum for brain areas such as the precuneus and higher auditory cortex. These results suggest that increasing scale in both models and data will yield incredibly effective models of language processing in the brain, enabling better scientific understanding as well as applications such as decoding.
Motivation & Objective
- Investigate whether scaling laws for language models extend to encoding brain responses measured by fMRI.
- Evaluate encoding performance of OPT and LLaMA language models across multiple sizes.
- Evaluate scaling for acoustic models (HuBERT, WavLM, Whisper) in predicting fMRI responses.
- Assess how training data amount (number of stories) affects encoding performance.
- Characterize how encoding performance approaches noise ceilings in various brain regions.
Proposed method
- Extract contextual embeddings from decoder-only transformer language models (OPT and LLaMA) across multiple sizes.
- Extract embeddings from audio models (Whisper, HuBERT, WavLM) for acoustic encoding.
- Align word-level model activations with fMRI BOLD responses using a linear ridge regression with temporal delays to account for hemodynamic response.
- Use a dynamic context window to efficiently compute hidden states for long inputs.
- Apply a stacking regression approach to combine semantic and acoustic features for improved encoding.
- Compute a noise ceiling to quantify explainable variance and normalize correlations.
Experimental results
Research questions
- RQ1Do larger language models from OPT and LLaMA provide better fMRI encoding performance than smaller ones?
- RQ2How does encoding performance scale with training data size (number of stories) for language and acoustic models?
- RQ3Are audio models (HuBERT, WavLM, Whisper) subject to similar scaling laws as language models in brain encoding?
- RQ4To what extent do encoding models approach the noise ceiling across brain regions?
- RQ5Can stacking semantic and acoustic features improve encoding in auditory cortex and related areas?
Key findings
- Encoding performance scales approximately logarithmically with model size for language models from OPT and LLaMA, with about 15% improvement from smaller to larger models within the tested range.
- Encoding performance also scales logarithmically with the amount of training stories, with about a 122% increase per order-of-magnitude data increase for OPT-125M.
- Auditory cortex and higher auditory areas show notable improvements with larger acoustic models, with Whisper results indicating strong layer-related performance gains.
- The LLaMA models slightly outperform OPT models in encoding, with peak performance in earlier layers for LLaMA versus later layers for OPT.
- Noise ceiling analysis reveals that some regions (precuneus and higher auditory cortex) are near optimal, while areas like angular gyrus and parts of PFC still have room for improvement.
- Stacked regression combining Whisper and LLaMA can further improve auditory cortex encoding compared to semantic modeling alone.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.