\interspeechcameraready\name

[affiliation=1*]YuejiaoWang \name[affiliation=2,3*]XianminGong \name[affiliation=1]LingweiMeng \name[affiliation=1]XixinWu \name[affiliation=1,2]HelenMeng

Large Language Model-based FMRI Encoding of Language Functions for Subjects with Neurocognitive Disorder

Abstract

Functional magnetic resonance imaging (fMRI) is essential for developing encoding models that identify functional changes in language-related brain areas of individuals with Neurocognitive Disorders (NCD). While large language model (LLM)-based fMRI encoding has shown promise, existing studies predominantly focus on healthy, young adults, overlooking older NCD populations and cognitive level correlations. This paper explores language-related functional changes in older NCD adults using LLM-based fMRI encoding and brain scores, addressing current limitations. We analyze the correlation between brain scores and cognitive scores at both whole-brain and language-related ROI levels. Our findings reveal that higher cognitive abilities correspond to better brain scores, with correlations peaking in the middle temporal gyrus. This study highlights the potential of fMRI encoding models and brain scores for detecting early functional changes in NCD patients.

keywords:
encoding model, brain score, large language model, neurocognitive disorder

1 Introduction

Neurocognitive Disorder (NCD) is a general term for describing neurocognitive decline beyond normal aging caused by various conditions, such as Alzheimer’s disease and brain vascular diseases [1, 2]. It poses major challenges to individuals’ well-being and the society [3]. Early detection of NCD is critical because it is possible to halt or even reverse its progression during the early stage, but much less possible at its later stage [4, 5]. Deficits in language functions are one of the major symptoms of various types of NCD [6, 7], and the changes of language-related functions in the brain may emerge before structural brain changes and overt NCD symptoms appear [8]. Therefore, it is promising to detect language-related functional changes in the brain as a mean of early NCD detection.

Functional magnetic resonance imaging (fMRI) is widely used to study language-related functional changes in the brain. FMRI measures brain activity by recording the blood-oxygenation-level changes in the brain noninvasively with high spatial resolution. And the brain encoding models built upon fMRI signals and large language models (LLMs) provide researchers in cognitive neuroscience with a powerful computational tool to quantify and locate language-related functions in the human brain, and such models have attracted wide attention in recent years [9, 10, 11, 12, 13, 14, 15, 16, 17]. They also show us a feasible way to quantify language-related functional changes among older adults and help the early detection of NCD.

The fMRI encoding models are used for predicting brain activation from language stimuli. A central goal of such models is to reveal how and where linguistic features at various levels, such as semantic and syntactic, are processed within the brain [10, 11]. The typical pipeline for building up a traditional language-related fMRI encoding model is as follows: 1) A set of linguistic features are extracted first from the same language stimuli that human subjects have heard or read. These features can be expert-designed or -encoded simple features (e.g. word count and spectrum) or higher-level contextual embeddings from layers of an LM; 2) a voxel-wise linear regression is then fitted upon these features to predict the fMRI signals in different voxels or brain regions. Given a fitted encoding model, brain scores will be calculated, i.e. the correlation r𝑟ritalic_r or determination coefficient R2superscript𝑅2R^{2}italic_R start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT between the predicted and actual fMRI signals. A brain score reflects the strength of association between a brain voxel’s activity and a specific language process, depending on which linguistic features were extracted at the very beginning. These brain scores thus can help pinpoint brain voxels and regions involved in the processing of specific language features.

Recent developments in LLMs have made it more efficient to build language-related fMRI encoding models [18, 19, 20]. Particularly, the embedding of middle layers of an LLM can effectively represent language features (e.g., semantic and syntactic features) that are highly relevant to NCD symptoms [6, 7], while these features are challenging to code in traditional ways (e.g., manually code) or experimentally controlled. Caucheteux et al. [9] have revealed that the similarity between the LLMs and the brain primarily depends on their ability to predict words from context. Based on the encoding model of GPT-2, they further strengthened the role of hierarchical predictive coding in language processing [11]. It is even more encouraging that Tang et al. [13] have demonstrated the feasibility of recovering the intelligible meaning of perceived speech from fMRI signals using a semantic encoding model based on GPT-1. Beyond the GPT family, Antonello et al. [14] have tested the OPT and LLaMA families and found that the brain score of semantic encoding models increases logarithmically with LLM size. These studies used brain scores obtained from different feature spaces of LLMs to locate brain regions related to language functions of different levels, promoting our understanding of complex language processing in the human brain.

Limitations in previous research. 1) The above-mentioned research on LLM-based fMRI encoding models only involved young and healthy subjects. No study has yet used such models to investigate functional changes in older adults, especially those with NCD. 2) Existing studies mostly use brain scores to identify brain regions relevant to language processing, and only a few studies have reported the relationship between brain scores and subjects’ performance on self-paced reading tasks or story comprehensions [15, 16]. The correlation between brain scores and cognitive levels needs further analysis.

In our study, we built an fMRI encoding model for older adults in the early stage of NCD or at risk and explored the correlation between brain scores and the subjects’ overall cognitive functioning levels. We aim to provide evidence for the feasibility of using brain scores obtained from fMRI encoding models to build interpretable models for the early detection of NCD in the future. We makes the following contributions:

  • As far as we know, this is the first study that applies the fMRI encoding model based on LlaMA2 to study NCD subjects. The model generates brain scores to quantify the association between brain areas and language functions among NCD subjects;

  • We find that brain scores for the higher cognitive-level group are consistently better than those of the lower cognitive-level group, and the correlation between brain scores and cognition peaks in the middle temporal gyrus (r𝑟ritalic_r = 0.3680.3680.3680.368) and the superior frontal gyrus (r𝑟ritalic_r = 0.2890.2890.2890.289);

  • This study provides a feasible direction for further developing interpretable machine-learning models based on language-related fMRI signals for early NCD detection.

2 Data Collection

By the time of analysis, data had been collected from 95959595 older adults in the following two tasks. Statistics of subjects are reported in Table 1.

Refer to caption
Figure 1: Construction of a language encoding model based on the movie-watching task, and the correlation between brain scores and MoCA scores.

Movie-watching fMRI task. The data in this study was from a group of Hong Kong older adults who were at risk of NCD or had been diagnosed with mild NCD (i.e., mild cognitive impairment). These participants were fMRI scanned when watching an 11-minute clip from a Cantonese movie “Sweet Home.” The movie clip contains everyday scenes with family members engaging in dialogues or monologues. With speech embedded in multimodal information (video, audio, subtitles; see Figure 1), this task allows us to examine brain functions involved in the processing of language in a naturalistic context.

The fMRI signals were acquired using a Siemens MAGNETOM Prisma 3 Tesla MRI Scanner with a 64-Channel Head/Neck coil. A multiband (factor = 6) gradient echo echoplanar (EPI) sequence was used to scan the whole brain with the following parameters: repetition time (TR) = 900 ms, echo time (TE) = 24 ms, flip angle = 90°, voxel size = 2 × 2 × 2 mm3, matrix size = 104 × 104, field of view (FoV) = 206 × 206 mm2, and number of slice = 72. For each participant, 736 fMRI images (i.e., 735 TRs) were collected during the movie-watching task. Standardized preprocessing procedures were performed using the SPM12 toolkit [21] for denoising, which includes field map correction, realignment, co-registration, normalization into the standard MNI space, and spatial smoothing. Only fMRI signals from the gray matter in the brain were included for analysis. Head-motion parameters were regressed out as confounders.

HK-MoCA test. The Hong Kong version of the Montreal Cognitive Assessment (HK-MoCA) [22] was used to assess participants’ cognitive function. MoCA is a well-established neurocognitive test for NCD diagnosis, which assesses a range of key cognitive functions, such as attention, memory, language, and visuospatial skills [23]. The test score ranges between 00 and 30303030, with a higher score indicating a better cognitive state.

Table 1: Statistics of subjects.
Feature Male (n = 52) Female (n = 43)
Mean Std. Mean Std.
Age 72.35 6.03 71.09 6.24
Bildung 9.25 3.90 6.70 3.67
MoCA 20.9 4.00 19.05 4.11

3 Approach

3.1 LlaMA2-Cantonese and Context Features

An open-source LlaMA2-7b-Cantonese model (https://huggingface.co/indiejoseph) is applied to extract context features for each Cantonese word appearing in the movie. The original LlaMA2-7b, released by Meta [18], has 32323232 layers and is trained on a mix of publicly available online data (with English accounting for 89.7%percent89.789.7\%89.7 % and Chinese accounting for 0.13%percent0.130.13\%0.13 %), with a context length of 4k4𝑘4k4 italic_k. Since it employs a byte pair encoding algorithm to decompose unknown UTF-8 characters, it can also encode the context knowledge of Cantonese. However, to better adapt to the Cantonese context, the LlaMA2-7b-Cantonese used in this study is further trained on the LlaMA2-7b model using additional Cantonese corpus.

The context feature of the word sisubscript𝑠𝑖s_{i}italic_s start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT is extracted based on the next-word-prediction task: for each word-time pair (si,ti)subscript𝑠𝑖subscript𝑡𝑖\left(s_{i},t_{i}\right)( italic_s start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , italic_t start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ), LlaMA2-Cantonese takes a word sequence S=(si255,,si1,si)𝑆subscript𝑠𝑖255subscript𝑠𝑖1subscript𝑠𝑖S=\left(s_{i-255},\cdots,s_{i-1},s_{i}\right)italic_S = ( italic_s start_POSTSUBSCRIPT italic_i - 255 end_POSTSUBSCRIPT , ⋯ , italic_s start_POSTSUBSCRIPT italic_i - 1 end_POSTSUBSCRIPT , italic_s start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) as input, and its hidden layer activations provide vector embeddings that represent the meaning of sisubscript𝑠𝑖s_{i}italic_s start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT within a context length of 256256256256. This yields a high-dimensional vector-time pair (𝑿i,ti)subscript𝑿𝑖subscript𝑡𝑖\left(\bm{X}_{i},t_{i}\right)( bold_italic_X start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , italic_t start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) where 𝑿isubscript𝑿𝑖\bm{X}_{i}bold_italic_X start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT is a 4096409640964096-dimensional context representation for sisubscript𝑠𝑖s_{i}italic_s start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT. Then, three steps are conducted before we obtain the final stimulus matrix (as shown in Figure 2): (1) these vectors are resampled at times corresponding to the fMRI acquisitions using a three-lobe Lanczos filter [13, 24]; (2) vectors are reduced to d=90𝑑90d=90italic_d = 90 dimensions using PCA for computational efficiency; (3) finally, based on the linearized finite impulse response (FIR) model [25], (𝑿i6,𝑿i5,,𝑿i1)subscript𝑿𝑖6subscript𝑿𝑖5subscript𝑿𝑖1\left(\bm{X}_{i-6},\bm{X}_{i-5},\cdots,\bm{X}_{i-1}\right)( bold_italic_X start_POSTSUBSCRIPT italic_i - 6 end_POSTSUBSCRIPT , bold_italic_X start_POSTSUBSCRIPT italic_i - 5 end_POSTSUBSCRIPT , ⋯ , bold_italic_X start_POSTSUBSCRIPT italic_i - 1 end_POSTSUBSCRIPT ), i.e. context representations from 0.9s0.9𝑠0.9s0.9 italic_s to 5.4s5.4𝑠5.4s5.4 italic_s earlier before the timepoint tisubscript𝑡𝑖t_{i}italic_t start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT, are concatenated to predict the fMRI signal, (yi,ti)subscript𝑦𝑖subscript𝑡𝑖\left(y_{i},t_{i}\right)( italic_y start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , italic_t start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ). We then obtain the final context stimulus matrix 𝑿#TR×6d𝑿superscript#𝑇𝑅6𝑑\bm{X}\in\mathbb{R}^{\#TR\times 6d}bold_italic_X ∈ blackboard_R start_POSTSUPERSCRIPT # italic_T italic_R × 6 italic_d end_POSTSUPERSCRIPT, time-aligned with the processed fMRI signal 𝒀#TR×1𝒀superscript#𝑇𝑅1\bm{Y}\in\mathbb{R}^{\#TR\times 1}bold_italic_Y ∈ blackboard_R start_POSTSUPERSCRIPT # italic_T italic_R × 1 end_POSTSUPERSCRIPT of a brain voxel.

3.2 Encoding Model and Hyperparameter Selection

Let f(𝑿)𝑓𝑿f\left(\bm{X}\right)italic_f ( bold_italic_X ) represent the brain encoding model. Following the work of [14], we select f𝑓fitalic_f as a voxel-wise linear transformation between 𝑿𝑿\bm{X}bold_italic_X and 𝒀𝒀\bm{Y}bold_italic_Y for interpretability. For each subject s𝑠sitalic_s, voxel v𝑣vitalic_v, and LlaMA2-Cantonese layer lisubscript𝑙𝑖l_{i}italic_l start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT, we fit a separate encoding model fs,v(𝑿li):=𝑿li𝑾s,vliassignsubscript𝑓𝑠𝑣subscript𝑿subscript𝑙𝑖subscript𝑿subscript𝑙𝑖superscriptsubscript𝑾𝑠𝑣subscript𝑙𝑖f_{s,v}\left(\bm{X}_{l_{i}}\right):=\bm{X}_{l_{i}}\bm{W}_{s,v}^{l_{i}}italic_f start_POSTSUBSCRIPT italic_s , italic_v end_POSTSUBSCRIPT ( bold_italic_X start_POSTSUBSCRIPT italic_l start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT ) := bold_italic_X start_POSTSUBSCRIPT italic_l start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT bold_italic_W start_POSTSUBSCRIPT italic_s , italic_v end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_l start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUPERSCRIPT, using linearized ridge regression, to predict the fMRI signal 𝒀s,vsubscript𝒀𝑠𝑣\bm{Y}_{s,v}bold_italic_Y start_POSTSUBSCRIPT italic_s , italic_v end_POSTSUBSCRIPT, where 𝑾s,vlisuperscriptsubscript𝑾𝑠𝑣subscript𝑙𝑖\bm{W}_{s,v}^{l_{i}}bold_italic_W start_POSTSUBSCRIPT italic_s , italic_v end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_l start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUPERSCRIPT are the learnable weight parameters. The final objective function is:

min𝑾s,vli𝒀s,vli𝑿li𝑾s,vliF2+λs,v𝑾s,vliF2subscriptsuperscriptsubscript𝑾𝑠𝑣subscript𝑙𝑖subscriptsuperscriptnormsuperscriptsubscript𝒀𝑠𝑣subscript𝑙𝑖subscript𝑿subscript𝑙𝑖superscriptsubscript𝑾𝑠𝑣subscript𝑙𝑖2𝐹subscript𝜆𝑠𝑣subscriptsuperscriptnormsuperscriptsubscript𝑾𝑠𝑣subscript𝑙𝑖2𝐹\min_{\bm{W}_{s,v}^{l_{i}}}\|\bm{Y}_{s,v}^{l_{i}}-\bm{X}_{l_{i}}\bm{W}_{s,v}^{% l_{i}}\|^{2}_{F}+\lambda_{s,v}\|\bm{W}_{s,v}^{l_{i}}\|^{2}_{F}roman_min start_POSTSUBSCRIPT bold_italic_W start_POSTSUBSCRIPT italic_s , italic_v end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_l start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUPERSCRIPT end_POSTSUBSCRIPT ∥ bold_italic_Y start_POSTSUBSCRIPT italic_s , italic_v end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_l start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUPERSCRIPT - bold_italic_X start_POSTSUBSCRIPT italic_l start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUBSCRIPT bold_italic_W start_POSTSUBSCRIPT italic_s , italic_v end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_l start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUPERSCRIPT ∥ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_F end_POSTSUBSCRIPT + italic_λ start_POSTSUBSCRIPT italic_s , italic_v end_POSTSUBSCRIPT ∥ bold_italic_W start_POSTSUBSCRIPT italic_s , italic_v end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_l start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT end_POSTSUPERSCRIPT ∥ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_F end_POSTSUBSCRIPT (1)

where F\|\cdot\|_{F}∥ ⋅ ∥ start_POSTSUBSCRIPT italic_F end_POSTSUBSCRIPT denotes the Frobenius norm, and λs,vsubscript𝜆𝑠𝑣\lambda_{s,v}italic_λ start_POSTSUBSCRIPT italic_s , italic_v end_POSTSUBSCRIPT is the only hyperparameter representing the regularization weight. Each λs,vsubscript𝜆𝑠𝑣\lambda_{s,v}italic_λ start_POSTSUBSCRIPT italic_s , italic_v end_POSTSUBSCRIPT is selected independently for each voxel in each subject.

Specifically, 20%percent2020\%20 % of the data samples (continuous in the time dimension) are held out as the test set. In contrast, the remaining data samples are divided into training and validation sets for regression and hyperparameter selection using a bootstrap method [13]. In each iteration, the model weights are estimated on the training set for each of 10101010 possible regularization coefficients (log spaced between 10101010 and 1000100010001000). These weights are used to predict responses in the validation set, followed by the calculation of R2superscript𝑅2R^{2}italic_R start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT between the actual and predicted fMRI time series. The regularization coefficient for each voxel is chosen based on the value that yields the best performance on the validation set, averaged across 50 bootstraps. After all parameters are finalized, the encoding model is applied to the test set to obtain the brain score (i.e., R2superscript𝑅2R^{2}italic_R start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT) for each voxel.

Refer to caption
Figure 2: Stimulus matrix construction with time alignment, feature dimension reduction and finite impulse response (FIR) model [11]. D and d are feature dimensions before and after PCA. TR is the repetition time of fMRI.

3.3 Experimental Design

Brain score analysis of the whole brain. We computed the brain score for the entire brain of each subject, averaging across all voxels, with various activation layers of LlaMA2-Cantonese. The Pearson correlation between the brain score and the subject group’s MoCA score was subsequently calculated using pearsonr in Scipy toolkit of Python.

Brain score analysis within language-related ROIs. We focus on language-related ROIs for two reasons: 1) early functional changes in NCD subjects occur in language brain areas; 2) the movie-watching task could activate brain regions related to vision, and the ROI analysis can reduce the influence from other cognitive processes to some extent.

Consequently, our study uses the brain parcellation from the Destrieux cortical deterministic atlas (dated 2009200920092009) [26] to identify language-related ROIs [27, 28] in both brain hemispheres, including the precuneus, angular gyrus (AG), inferior temporal gyrus (ITG), middle temporal gyrus (MTG), superior temporal gyrus (STG), superior frontal gyrus (SFG), middle frontal gyrus (MFG), and inferior frontal gyrus (IFG). These ROIs correspond to a total of 26 labels in the Destrieux atlas. We then analyzed the brain scores of each ROI and their Pearson correlations with MoCA scores.

Statistical significance To assess the statistical significance of the Pearson correlations between brain scores and MoCA scores, we conducted two-tailed t-tests with p<0.05𝑝0.05p<0.05italic_p < 0.05. The Benjamini-Hochberg False Discovery Rate (FDR) [29] correction was used to adjust the p-values for multiple comparisons.

Refer to caption
Figure 3: Average brain score across different cognitive groups and activation layers (the bar plot), and the correlation between brain score and MoCA score (the blue line). The red dot means the correlation of that layer is significant.

4 Results and Discussions

Refer to caption
Figure 4: (a) Averaged brain score map (activated by the 8th layer) for language-related ROIs. (b) Map of Pearson correlation coefficients between the averaged brain scores and MoCA scores. (c) Relationship between the averaged brain scores of ROIs and correlation coefficients. The number next to the point indicates the label number of the ROI in the Destrieux atlas. Red points represent ROIs with an adjusted p𝑝pitalic_p-value <0.05absent0.05<0.05< 0.05; (d) Regression plot of MoCA scores and brain scores for the middle temporal gyrus (MTG).

4.1 Brain Score Analysis of the Whole Brain

The blue bars in Figure 3 display the average brain scores for the entire subject group. The 95959595 subjects are further divided into two subgroups: the higher cognitive subgroup with MoCA scores >20absent20>20> 20 and the lower cognitive subgroup with MoCA 20absent20\leq 20≤ 20, where 20202020 is the median of their MoCA scores.

The overall trend indicates that the average brain scores for different cognitive groups reach peaks simultaneously in the relatively early layers (from the 7th to the 16th layer), followed by a gradual decline. Their trend lines align well with [14], which reported that the performances of semantic encoding models for three young adults fitted by LlaMA2-30B or LlaMA2-65B reach a peak between 20%percent2020\%20 % and 40%percent4040\%40 % of the layer depth. These similar patterns across different cognitive subgroups and language stimuli suggest both the effectiveness and the general nature of the encoding model fitted by LlaMA2.

Comparing the two cognitive subgroups, the average brain score for the higher cognitive group is consistently better than that of the lower cognitive group. The averaged Δ(R2)=1.28×103Δsuperscript𝑅21.28E-3\Delta(R^{2})=$1.28\text{\times}{10}^{-3}$roman_Δ ( italic_R start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT ) = start_ARG 1.28 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG across 32323232 layers, with a standard deviation of 1.53×1041.53E-41.53\text{\times}{10}^{-4}start_ARG 1.53 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 4 end_ARG end_ARG indicating that the fMRI signal within the higher cognitive subgroup more closely aligns with context representations. This gap could arise from two possible reasons: 1) individuals with higher cognitive abilities may have followed the dialogue more closely during the task; or 2) their brains could process context information more similarly to LlaMA2.

The Pearson correlation between the brain scores and MoCA scores for the entire group is depicted as the blue line in Figure 3. Correlation coefficients reach 0.250.250.250.25 in layers 1111, 2222, and 8888, and drop significantly after layer 16161616. Along with brain score performance, we focus on the encoding model fitted by the 8th layer in the subsequent ROI analysis.

4.2 Brain Score Analysis in Language-related ROIs

In Figure 4, the average brain score and correlation coefficient of each ROI are projected onto the fsaverage5 brain surface using vol to surf in nilearn toolkit. As illustrated in Figure 4c, only 9999 out of 26262626 ROIs pass the significance test for correlation (p𝑝pitalic_p <0.05absent0.05<0.05< 0.05 adjusted using FDR): MTG (labels 38383838, 113113113113), Precuneus (labels 30303030, 105105105105), AG (labels 25252525, 100100100100), Left-SFG (label 16161616), and SFS (labels 55555555, 130130130130).

The lateral STG (labels 109109109109, 34343434), AG, and the plan-tempo STG in the left hemisphere (label 36363636) exhibit higher brain scores (figure 4a). However, only the AG is significantly correlated with the MoCA score, with r100=0.253subscript𝑟1000.253r_{100}=0.253italic_r start_POSTSUBSCRIPT 100 end_POSTSUBSCRIPT = 0.253 and r25=0.245subscript𝑟250.245r_{25}=0.245italic_r start_POSTSUBSCRIPT 25 end_POSTSUBSCRIPT = 0.245 (figure 4b,c). We propose that the STG primarily encodes lower-level semantic information, as supported by [30, 31]. Consequently, the STG may be associated with perception but not strongly correlated with high-level semantic understanding.

To our surprise, although the MTG in the left hemisphere has a medium brain score of 8.7×1038.7E-38.7\text{\times}{10}^{-3}start_ARG 8.7 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG, it attains the highest correlation coefficient of r38=0.37subscript𝑟380.37r_{38}=0.37italic_r start_POSTSUBSCRIPT 38 end_POSTSUBSCRIPT = 0.37 (adjusted p<0.001𝑝0.001p<0.001italic_p < 0.001). The detailed regression between the brain score of MTG and the MoCA score is plotted in Figure 4d. These findings are consistent with [16], which reported that the correlation between brain scores and comprehension scores peaks in the AG and MTG.

4.3 Effect of Cantonese Pretraining

To investigate the impact of additional Cantonese corpus on LLaMa2-Cantonese, we refitted the encoding model using the representations of the original LLaMa2 and calculated the average brain scores along with their correlations to MoCA scores. Results in Table 2 indicate that no significant difference in brain scores or correlations exist, except for the correlation at layer 8888, which is 4.9%percent4.94.9\%4.9 % higher after Cantonese pretraining. This can be attributed to the fact that Cantonese pretraining did not alter the structure or embedding representations of LLaMA2.

Table 2: Performance comparison of LlaMA2-7b and LlaMA2-7b-Cantonese. Corr. refers to Pearson correlation coefficients.
Layer LlaMA2 LlaMA2-Cantonese
Brain score Corr. Brain score Corr.
1 6.25×1036.25E-36.25\text{\times}{10}^{-3}start_ARG 6.25 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG 0.2532 6.23×1036.23E-36.23\text{\times}{10}^{-3}start_ARG 6.23 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG 0.2535
8 7.50×1037.50E-37.50\text{\times}{10}^{-3}start_ARG 7.50 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG 0.2384 7.55×1037.55E-37.55\text{\times}{10}^{-3}start_ARG 7.55 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG 0.2500
16 7.53×1037.53E-37.53\text{\times}{10}^{-3}start_ARG 7.53 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG 0.2331 7.53×1037.53E-37.53\text{\times}{10}^{-3}start_ARG 7.53 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG 0.2351
24 7.18×1037.18E-37.18\text{\times}{10}^{-3}start_ARG 7.18 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG 0.1993 7.05×1037.05E-37.05\text{\times}{10}^{-3}start_ARG 7.05 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG 0.2070
32 7.34×1037.34E-37.34\text{\times}{10}^{-3}start_ARG 7.34 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG 0.2027 7.36×1037.36E-37.36\text{\times}{10}^{-3}start_ARG 7.36 end_ARG start_ARG times end_ARG start_ARG power start_ARG 10 end_ARG start_ARG - 3 end_ARG end_ARG 0.2100

5 Conclusion

Focusing on older adults with NCD, this study extracted context representation from LlaMA2-Cantonese to model language stimuli in a movie-watching task and innovatively employed the fMRI encoding model and brain scores to assess their language function. We found that subjects with better cognitive states have significantly higher brain scores, and the correlation pattern peaks at language-related ROIs, e.g. MTG, SFG, and AG.

The primary limitation of this study is the uncertainty surrounding the extent of semantic or syntactic information contained in the embeddings of LLaMA2-Cantonese. Moreover, the brain areas responsible for language processing may also be activated by semantic stimuli generated through vision [32]. In the future, multi-modal semantic information should be comprehensively considered to construct a robust encoding model for the understanding of the interplay between different modalities and language functions.

6 Acknowledgements

This research is partially supported by the HKSARG Research Grants Council’s Theme-based Research Grant Scheme (Project No. T45-407/19N).

References

  • [1] D. Blazer, “Neurocognitive disorders in dsm-5,” American Journal of Psychiatry, vol. 170, no. 6, pp. 585–587, 2013.
  • [2] K. L. Lanctôt, L. Agüera-Ortiz, H. Brodaty, P. T. Francis, Y. E. Geda, Z. Ismail, G. A. Marshall, M. E. Mortby, C. U. Onyike, P. R. Padala et al., “Apathy associated with neurocognitive disorders: recent progress and future directions,” Alzheimer’s & Dementia, vol. 13, no. 1, pp. 84–100, 2017.
  • [3] H. Clark, “Ncds: a challenge to sustainable human development,” The Lancet, vol. 381, no. 9866, pp. 510–511, 2013.
  • [4] A. Leibing, “The earlier the better: Alzheimer’s prevention, early detection, and the quest for pharmacological interventions,” Culture, Medicine, and Psychiatry, vol. 38, pp. 217–236, 2014.
  • [5] S. J. Teipel, M. Grothe, S. Lista, N. Toschi, F. G. Garaci, and H. Hampel, “Relevance of magnetic resonance imaging for early detection and diagnosis of alzheimer disease,” Medical Clinics, vol. 97, no. 3, pp. 399–424, 2013.
  • [6] J. Appell, A. Kertesz, and M. Fisman, “A study of language functioning in alzheimer patients,” Brain and language, vol. 17, no. 1, pp. 73–91, 1982.
  • [7] X. Gong, P. C. Wong, H. H. Fung, V. C. Mok, T. C. Kwok, J. Woo, K. H. Wong, and H. Meng, “The hong kong grocery shopping dialog task (hk-gsdt): A quick screening test for neurocognitive disorders,” International Journal of Environmental Research and Public Health, vol. 19, no. 20, p. 13302, 2022.
  • [8] C. A. Raji, O. Lopez, L. Kuller, O. Carmichael, and J. Becker, “Age, alzheimer disease, and brain structure,” Neurology, vol. 73, no. 22, pp. 1899–1905, 2009.
  • [9] C. Caucheteux and J.-R. King, “Brains and algorithms partially converge in natural language processing,” Communications biology, vol. 5, no. 1, p. 134, 2022.
  • [10] X. L. Gong, A. G. Huth, F. Deniz, K. Johnson, J. L. Gallant, and F. E. Theunissen, “Phonemic segmentation of narrative speech in human cerebral cortex,” Nature communications, vol. 14, no. 1, p. 4309, 2023.
  • [11] C. Caucheteux, A. Gramfort, and J.-R. King, “Evidence of a predictive coding hierarchy in the human brain listening to speech,” Nature human behaviour, vol. 7, no. 3, pp. 430–441, 2023.
  • [12] E. J. Allen, G. St-Yves, Y. Wu, J. L. Breedlove, J. S. Prince, L. T. Dowdle, M. Nau, B. Caron, F. Pestilli, I. Charest et al., “A massive 7t fmri dataset to bridge cognitive neuroscience and artificial intelligence,” Nature neuroscience, vol. 25, no. 1, pp. 116–126, 2022.
  • [13] J. Tang, A. LeBel, S. Jain, and A. G. Huth, “Semantic reconstruction of continuous language from non-invasive brain recordings,” Nature Neuroscience, vol. 26, no. 5, pp. 858–866, 2023.
  • [14] R. Antonello, A. Vaidya, and A. Huth, “Scaling laws for language encoding models in fmri,” Advances in Neural Information Processing Systems, vol. 36, 2024.
  • [15] M. Schrimpf, I. A. Blank, G. Tuckute, C. Kauf, E. A. Hosseini, N. Kanwisher, J. B. Tenenbaum, and E. Fedorenko, “The neural architecture of language: Integrative modeling converges on predictive processing,” Proceedings of the National Academy of Sciences, vol. 118, no. 45, p. e2105646118, 2021.
  • [16] C. Caucheteux, A. Gramfort, and J.-R. King, “Deep language algorithms predict semantic comprehension from brain activity,” Scientific reports, vol. 12, no. 1, p. 16327, 2022.
  • [17] S. R. Oota, N. Trouvain, F. Alexandre, and X. Hinaut, “Meg encoding using word context semantics in listening stories,” in INTERSPEECH 2023-24th INTERSPEECH Conference, 2023.
  • [18] H. Touvron, L. Martin, K. Stone, P. Albert, A. Almahairi, Y. Babaei, N. Bashlykov, S. Batra, P. Bhargava, S. Bhosale et al., “Llama 2: Open foundation and fine-tuned chat models,” arXiv preprint arXiv:2307.09288, 2023.
  • [19] S. Zhang, S. Roller, N. Goyal, M. Artetxe, M. Chen, S. Chen, C. Dewan, M. Diab, X. Li, X. V. Lin et al., “Opt: Open pre-trained transformer language models,” arXiv preprint arXiv:2205.01068, 2022.
  • [20] J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat et al., “Gpt-4 technical report,” arXiv preprint arXiv:2303.08774, 2023.
  • [21] J. Ashburner, G. Barnes, C.-C. Chen, J. Daunizeau, G. Flandin, K. Friston, S. Kiebel, J. Kilner, V. Litvak, R. Moran et al., “Spm12 manual,” Wellcome Trust Centre for Neuroimaging, London, UK, vol. 2464, no. 4, 2014.
  • [22] A. Wong, Y. Y. Xiong, P. W. Kwan, A. Y. Chan, W. W. Lam, K. Wang, W. C. Chu, D. L. Nyenhuis, Z. Nasreddine, L. K. Wong et al., “The validity, reliability and clinical utility of the hong kong montreal cognitive assessment (hk-moca) in patients with cerebral small vessel disease,” Dementia and geriatric cognitive disorders, vol. 28, no. 1, pp. 81–87, 2009.
  • [23] Z. S. Nasreddine, N. A. Phillips, V. Bédirian, S. Charbonneau, V. Whitehead, I. Collin, J. L. Cummings, and H. Chertkow, “The montreal cognitive assessment, moca: a brief screening tool for mild cognitive impairment,” Journal of the American Geriatrics Society, vol. 53, no. 4, pp. 695–699, 2005.
  • [24] F. Deniz, A. O. Nunez-Elizalde, A. G. Huth, and J. L. Gallant, “The representation of semantic information across human cerebral cortex during listening versus reading is invariant to stimulus modality,” Journal of Neuroscience, vol. 39, no. 39, pp. 7722–7736, 2019.
  • [25] K. N. Kay, S. V. David, R. J. Prenger, K. A. Hansen, and J. L. Gallant, “Modeling low-frequency fluctuation and hemodynamic response timecourse in event-related fmri,” Wiley Online Library, Tech. Rep., 2008.
  • [26] C. Destrieux, B. Fischl, A. Dale, and E. Halgren, “A sulcal depth-based anatomical parcellation of the cerebral cortex.” NeuroImage, vol. 47, p. S151, 2009.
  • [27] A. G. Huth, W. A. De Heer, T. L. Griffiths, F. E. Theunissen, and J. L. Gallant, “Natural speech reveals the semantic maps that tile human cerebral cortex,” Nature, vol. 532, no. 7600, pp. 453–458, 2016.
  • [28] X. Zhang, S. Wang, N. Lin, J. Zhang, and C. Zong, “Probing word syntactic representations in the brain by a feature elimination method,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 36, no. 10, 2022, pp. 11 721–11 729.
  • [29] Y. Benjamini and Y. Hochberg, “On the adaptive control of the false discovery rate in multiple testing with independent statistics,” Journal of educational and Behavioral Statistics, vol. 25, no. 1, pp. 60–83, 2000.
  • [30] A. R. Vaidya, S. Jain, and A. Huth, “Self-supervised models of audio effectively explain human cortical responses to speech,” in International Conference on Machine Learning.   PMLR, 2022, pp. 21 927–21 944.
  • [31] J. Millet, C. Caucheteux, Y. Boubenec, A. Gramfort, E. Dunbar, C. Pallier, J.-R. King et al., “Toward a realistic model of speech processing in the brain with self-supervised learning,” Advances in Neural Information Processing Systems, vol. 35, pp. 33 428–33 443, 2022.
  • [32] J. Tang, M. Du, V. Vo, V. Lal, and A. Huth, “Brain encoding models based on multimodal transformers can transfer across language and vision,” Advances in Neural Information Processing Systems, vol. 36, 2024.