SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2212.08094 · NeurIPS · 2023

Joint processing of linguistic properties in brains and language models

Mariya Toneva, Manish Gupta, Subba Reddy Oota

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 12 functions out of this paper's own repositories and ran 9 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
subbareddy248/linguistic-properties-brain-alignment pwc_unofficial 9 of 12
FunctionStatusWhere it lives
R2 Ran subbareddy248/linguistic-properties-brain-alignment/stimulus_resources/residuals-word-level.py
code served (permissive licence) · get_code("a5357d613fccb792")
R2r Ran subbareddy248/linguistic-properties-brain-alignment/stimulus_resources/residuals-word-level.py
code served (permissive licence) · get_code("fcc1bc3f3b56a6ba")
add_word_model_embedding Ran subbareddy248/linguistic-properties-brain-alignment/extract_features_words.py
code served (permissive licence) · get_code("30382c1630cd1161")
load_data Ran subbareddy248/linguistic-properties-brain-alignment/brain_predictions/utils1.py
code served (permissive licence) · get_code("aad1e8fe5859aff6")
load_generic_trfiles Ran subbareddy248/linguistic-properties-brain-alignment/brain_predictions/brain_predictions_21styear_text.py
code served (permissive licence) · get_code("6c94ffa68cf8ce40")
load_sparse_array Ran subbareddy248/linguistic-properties-brain-alignment/brain_predictions/utils1.py
code served (permissive licence) · get_code("496d5f70afb73c7e")
predict_model_embeddings Ran subbareddy248/linguistic-properties-brain-alignment/extract_features_words.py
code served (permissive licence) · get_code("96546567520da90c")
ridge Ran subbareddy248/linguistic-properties-brain-alignment/brain_predictions/ridge_utils/ridge.py
code served (permissive licence) · get_code("52b032b23f66e7e0")
ridge_corr_pred Ran subbareddy248/linguistic-properties-brain-alignment/brain_predictions/ridge_utils/ridge.py
code served (permissive licence) · get_code("012ed3c58e79c881")
corr Not yet run subbareddy248/linguistic-properties-brain-alignment/stimulus_resources/residuals-word-level.py
code served (permissive licence) · get_code("8cc15e414ba9c48a")
get_model_layer_representations Not yet run subbareddy248/linguistic-properties-brain-alignment/extract_features_words.py
code served (permissive licence) · get_code("348a15e737a5b1c1")
map_to_flat Not yet run subbareddy248/linguistic-properties-brain-alignment/brain_predictions/utils1.py
code served (permissive licence) · get_code("7fd2dffd4327726a")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Language models have been shown to be very effective in predicting brain recordings of subjects experiencing complex language stimuli. For a deeper understanding of this alignment, it is important to understand the correspondence between the detailed processing of linguistic information by the human brain versus language models. We investigate this correspondence via a direct approach, in which we eliminate information related to specific linguistic properties in the language model representations and observe how this intervention affects the alignment with fMRI brain recordings obtained while participants listened to a story. We investigate a range of linguistic properties (surface, syntactic, and semantic) and find that the elimination of each one results in a significant decrease in brain alignment. Specifically, we find that syntactic properties (i.e. Top Constituents and Tree Depth) have the largest effect on the trend of brain alignment across model layers. These findings provide clear evidence for the role of specific linguistic information in the alignment between brain and language models, and open new avenues for mapping the joint information processing in both systems. We make the code publicly available 1 .

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2212.08094")
get_code_for_paper("2212.08094")
have("2212.08094")

Connect an agent — have() is free.