Language and the Brain: Deep Learning for Brain Encoding and Decoding
Subba Reddy Oota1, Manish Gupta2,3, Raju S. Bapi2
1Inria Bordeaux, France; 2IIIT Hyderabad, India; 3Microsoft, India
subba-reddy.oota@inria.fr, gmanish@microsoft.com, raju.bapi@iiit.ac.in
Agenda
IJCNN 2023: DL for Brain Encoding and Decoding
2
Agenda
IJCNN 2023: DL for Brain Encoding and Decoding
3
Agenda
IJCNN 2023: DL for Brain Encoding and Decoding
4
Agenda
IJCNN 2023: DL for Brain Encoding and Decoding
5
Neuroscience
IJCNN 2023: DL for Brain Encoding and Decoding
6
Brain encoding and decoding in cognitive neuroscience
Ivanova, Anna A., Martin Schrimpf, Stefano Anzellotti, Noga Zaslavsky, Evelina Fedorenko, and Leyla Isik. "Is it that simple? Linear mapping models in cognitive neuroscience." bioRxiv (2021).
IJCNN 2023: DL for Brain Encoding and Decoding
7
Brain encoding and decoding
IJCNN 2023: DL for Brain Encoding and Decoding
8
Techniques for studying the brain function
Vogel, Jörn, Sami Haddadin, Beata Jarosiewicz, John D. Simeral, Daniel Bacher, Leigh R. Hochberg, John P. Donoghue, and Patrick van der Smagt. "An assistive decision-and-control architecture for force-sensitive hand–arm systems driven by human–machine interfaces." The International Journal of Robotics Research 34, no. 6 (2015): 763-780.
IJCNN 2023: DL for Brain Encoding and Decoding
9
Single Micro-Electrode (ME), Micro-Electrode array (MEA), Electro-Cortico Graphy (ECoG), Positron emission tomography (PET), functional MRI (fMRI), Magneto-encephalography (MEG), Electro-encephalography (EEG), Near-Infrared Spectroscopy (NIRS)
fMRI
IJCNN 2023: DL for Brain Encoding and Decoding
10
An fMRI image with yellow areas showing increased activity compared with a control condition
Computational Cognitive Science Research goals
Ivanova, Anna A., Martin Schrimpf, Stefano Anzellotti, Noga Zaslavsky, Evelina Fedorenko, and Leyla Isik. "Is it that simple? Linear mapping models in cognitive neuroscience." bioRxiv (2021).
IJCNN 2023: DL for Brain Encoding and Decoding
11
Computational Cognitive Science Research goals
Ivanova, Anna A., Martin Schrimpf, Stefano Anzellotti, Noga Zaslavsky, Evelina Fedorenko, and Leyla Isik. "Is it that simple? Linear mapping models in cognitive neuroscience." bioRxiv (2021).
IJCNN 2023: DL for Brain Encoding and Decoding
12
Agenda
IJCNN 2023: DL for Brain Encoding and Decoding
13
Forms of stimulus presentation and data collection
IJCNN 2023: DL for Brain Encoding and Decoding
14
Text Stimulus Datasets
IJCNN 2023: DL for Brain Encoding and Decoding
15
Dataset | Type | Language | Stimulus | #Subjects | Paradigm | Size | Task |
Wehbe et al., 2014 | fMRI | English | Chapter 9 of Harry Potter and the Sorcerer's Stone | 9 | Reading stories | 5000 word chapter was presented in 45 minutes. | Story understanding |
Handjaras et al., 2016 | fMRI | Italian | Verbal, pictorial or auditory presentation of 40 concrete nouns | 20 | Reading, viewing or listening | 40 nouns * 4 times. | Property Generation |
Anderson et al., 2017 | fMRI | Italian | 70 concrete and abstract nouns from law/music. | 7 | Reading | 70 nouns * 5 times. | Imagine a situation that they personally associate with the noun |
Zurich Cognitive Language Processing Corpus (ZuCo): Hollenstein et al., 2018 | EEG and eye-tracking | English | Sentences from movie reviews or Wikipedia | 12 | Reading natural sentences | 21,629 words in 1107 sentences and 154,173 fixations | Rate movie quality, answer control questions, check for existence of a relation |
Anderson et al., 2019 | fMRI | English | 240 active voice sentences describing everyday situations | 14 | Reading | 240 sentences seen 12 times (by 10 subjects) and 6 times (by 4 subjects) | Passive reading |
BCCWJ-EEG: Oseki and Asahara, 2020 | EEG | Japanese | 20 newspaper articles | 40 | Reading | 1 time reading for ~30-40 minutes | Passive reading |
Data for concrete nouns from sighted/blind subjects
Handjaras, Giacomo, Emiliano Ricciardi, Andrea Leo, Alessandro Lenci, Luca Cecchetti, Mirco Cosottini, Giovanna Marotta, and Pietro Pietrini. "How concepts are encoded in the human brain: a modality independent, category-based cortical organization of semantic knowledge." Neuroimage 135 (2016): 232-242.
IJCNN 2023: DL for Brain Encoding and Decoding
16
70 - Italian word stimuli fMRI data
Anderson, Andrew J., Douwe Kiela, Stephen Clark, and Massimo Poesio. "Visually grounded and textual semantic models differentially decode brain activity associated with concrete and abstract nouns." Transactions of the Association for Computational Linguistics 5 (2017): 17-30.
IJCNN 2023: DL for Brain Encoding and Decoding
17
Zurich Cognitive Language Processing Corpus (ZuCo)
Hollenstein, Nora, Jonathan Rotsztejn, Marius Troendle, Andreas Pedroni, Ce Zhang, and Nicolas Langer. "ZuCo, a simultaneous EEG and eye-tracking resource for natural sentence reading." Scientific data 5, no. 1 (2018): 1-13.
IJCNN 2023: DL for Brain Encoding and Decoding
18
Text Stimulus Datasets References
IJCNN 2023: DL for Brain Encoding and Decoding
19
Agenda
IJCNN 2023: DL for Brain Encoding and Decoding
20
Text Stimulus Representations
IJCNN 2023: DL for Brain Encoding and Decoding
21
Basic NLP Representations for Word Stimuli
IJCNN 2023: DL for Brain Encoding and Decoding
22
Basic NLP Representations for Word Stimuli
Wehbe, Leila, Brian Murphy, Partha Talukdar, Alona Fyshe, Aaditya Ramdas, and Tom Mitchell. "Simultaneously uncovering the patterns of brain regions involved in different story reading subprocesses." PloS one 9, no. 11 (2014): e112575.
Wang, Jing, Vladimir L. Cherkassky, and Marcel Adam Just. "Predicting the brain activation pattern associated with the propositional content of a sentence: modeling neural representations of events and states." Human brain mapping 38, no. 10 (2017): 4865-4881.
IJCNN 2023: DL for Brain Encoding and Decoding
23
Discourse features (for Harry Potter dataset)
Wehbe, Leila, Brian Murphy, Partha Talukdar, Alona Fyshe, Aaditya Ramdas, and Tom Mitchell. "Simultaneously uncovering the patterns of brain regions involved in different story reading subprocesses." PloS one 9, no. 11 (2014): e112575.
Wang, Jing, Vladimir L. Cherkassky, and Marcel Adam Just. "Predicting the brain activation pattern associated with the propositional content of a sentence: modeling neural representations of events and states." Human brain mapping 38, no. 10 (2017): 4865-4881.
IJCNN 2023: DL for Brain Encoding and Decoding
24
DL Representations: Using embeddings for word stimuli
IJCNN 2023: DL for Brain Encoding and Decoding
25
DL Representations: Using longer context for word stimuli
Toneva, Mariya, and Leila Wehbe. "Interpreting and improving natural-language processing (in machines) with natural language-processing (in the brain)." Advances in Neural Information Processing Systems 32 (2019).
Jain, Shailee, and Alexander Huth. "Incorporating context into language encoding models for fMRI." Advances in neural information processing systems 31 (2018).
Jat, Sharmistha, Hao Tang, Partha Talukdar, and Tom Mitchell. "Relating simple sentence representations in deep neural networks and the brain." arXiv preprint arXiv:1906.11861 (2019).
IJCNN 2023: DL for Brain Encoding and Decoding
26
DL Representations: Using sentence embeddings
Toneva, Mariya, and Leila Wehbe. "Interpreting and improving natural-language processing (in machines) with natural language-processing (in the brain)." Advances in Neural Information Processing Systems 32 (2019).
Sun, Jingyuan, Shaonan Wang, Jiajun Zhang, and Chengqing Zong. "Towards sentence-level brain decoding with distributed representations." In Proceedings of the AAAI Conference on Artificial Intelligence, vol. 33, no. 01, pp. 7047-7054. 2019.
IJCNN 2023: DL for Brain Encoding and Decoding
27
DL Representations: Transformer-based methods for text stimuli (Layer #, context length, architecture)
Toneva, Mariya, and Leila Wehbe. "Interpreting and improving natural-language processing (in machines) with natural language-processing (in the brain)." Advances in Neural Information Processing Systems 32 (2019).
Sun, Jingyuan, Shaonan Wang, Jiajun Zhang, and Chengqing Zong. "Neural encoding and decoding with distributed sentence representations." IEEE Transactions on Neural Networks and Learning Systems 32, no. 2 (2020): 589-603.
IJCNN 2023: DL for Brain Encoding and Decoding
28
Transformer-XL is the only model that continues to increase performance as the context length is increased. In all networks, the middle layers perform the best for contexts longer than 15 words. The deepest layers across all networks show a sharp increase in performance at short-range context (fewer than 10 words), followed by a decrease in performance. [Toneva and Wehbe, 2019]
DL Representations: Transformer-based methods for text stimuli (NLP task finetuning and scrambled LM)
Gauthier, Jon, and Roger Levy. "Linking artificial and human neural representations of language." arXiv preprint arXiv:1910.01244 (2019).
IJCNN 2023: DL for Brain Encoding and Decoding
29
DL Representations: Transformer-based methods for text stimuli (NLP task finetuning)
Oota, Subba Reddy, Jashn Arora, Veeral Agarwal, Mounika Marreddy, Manish Gupta, and Bapi Raju Surampudi. "Neural Language Taskonomy: Which NLP Tasks are the most Predictive of fMRI Brain Activity?." arXiv preprint arXiv:2205.01404 (2022).
IJCNN 2023: DL for Brain Encoding and Decoding
30
Tasks
Paraphrase, Summarization, Question Answering, Sentiment Analysis, NER, Word Sense Disambiguation, Natural Language Inference, Semantic Role Labeling, Coreference Resolution, Shallow Syntax Parsing
Pereira dataset: CR, NER, and SS perform the best.
Dendrogram constructed using similarity on representations from task-specific Transformer encoder models with stimuli from the dataset passed as input.
DL Representations: Transformer-based methods for text stimuli (Multi-task setup)
Schwartz, Dan, Mariya Toneva, and Leila Wehbe. "Inducing brain-relevant bias in natural language processing models." Advances in neural information processing systems 32 (2019).
IJCNN 2023: DL for Brain Encoding and Decoding
31
DL Representations: Comparing Transformers and extracting syntax vs semantics
Caucheteux, Charlotte, Alexandre Gramfort, and Jean-Remi King. "Disentangling syntax and semantics in the brain with deep networks." In International Conference on Machine Learning, pp. 1336-1348. PMLR, 2021.
IJCNN 2023: DL for Brain Encoding and Decoding
32
Experiential attributes model for text stimuli
Anderson, Andrew James, Jeffrey R. Binder, Leonardo Fernandino, Colin J. Humphries, Lisa L. Conant, Rajeev DS Raizada, Feng Lin, and Edmund C. Lalor. "An integrated neural decoder of linguistic and experiential meaning." Journal of Neuroscience 39, no. 45 (2019): 8969-8987.
Anderson, Andrew James, Jeffrey R. Binder, Leonardo Fernandino, Colin J. Humphries, Lisa L. Conant, Mario Aguilar, Xixi Wang, Donias Doko, and Rajeev DS Raizada. "Predicting neural activity patterns associated with sentences using a neurobiologically motivated model of semantic representation." Cerebral Cortex 27, no. 9 (2017): 4379-4395.
Anderson, Andrew James, Kelsey McDermott, Brian Rooks, Kathi L. Heffner, David Dodell-Feder, and Feng V. Lin. "Decoding individual identity from brain activity elicited in imagining common experiences." Nature communications 11, no. 1 (2020): 1-14.
IJCNN 2023: DL for Brain Encoding and Decoding
33
Binary attribute representations
Handjaras, Giacomo, Emiliano Ricciardi, Andrea Leo, Alessandro Lenci, Luca Cecchetti, Mirco Cosottini, Giovanna Marotta, and Pietro Pietrini. "How concepts are encoded in the human brain: a modality independent, category-based cortical organization of semantic knowledge." Neuroimage 135 (2016): 232-242.
Wang, Jing, Vladimir L. Cherkassky, and Marcel Adam Just. "Predicting the brain activation pattern associated with the propositional content of a sentence: modeling neural representations of events and states." Human brain mapping 38, no. 10 (2017): 4865-4881.
IJCNN 2023: DL for Brain Encoding and Decoding
34
Agenda
IJCNN 2023: DL for Brain Encoding and Decoding
35
Thanks!
IJCNN 2023: DL for Brain Encoding and Decoding
36
Language and the Brain: Deep Learning for Brain Encoding and Decoding
Subba Reddy Oota1, Manish Gupta2,3, Raju S. Bapi2
1Inria Bordeaux, France; 2IIIT Hyderabad, India; 3Microsoft, India
subba-reddy.oota@inria.fr, gmanish@microsoft.com, raju.bapi@iiit.ac.in
Agenda
IJCNN 2023: DL for Brain Encoding and Decoding
38
39
LMs are trained to predict missing words
Language model
The
quick
brown
fox
[MASK]
jumps
Background
You use Language Models every day!
42
[Trichelair et al.]
I put the heavy table on the book and it broke.
But… LMs may be learning shallow heuristics to solve tasks
What broke?
“the book”
“the table”
43
Lots of progress made, but still a long way to go
How do we build systems with a deeper understanding of language?
Still a long way to go
Lots of progress
Transformer
Harry never thought he would
Harry never thought he ???
LLMs: Pretraining for three types of architectures
Task-specific language models
Language models are everywhere
Sentiment
Question Answering
Summarization
Coreference Resolution
Instruction Models:
NLU tasks in blue; NLG tasks in teal
Multiple Instruction Templates for Each NLP Task
In-Context Learning and Chain-of-Thought
Data-driven encoding models evaluate the relationships between brains and deep learning models
fMRI
A priori locations in DL system and brain
Deep learning system
how are they related?
Multimodal naturalistic stimulus
Data-driven encoding model
Deep learning models enable data-driven encoding models for naturalistic stimuli
more stimulus properties that affect brain activity
more naturalistic stimuli
<0,1,...0>
simple stim. representations explain less variance in brain activity
Deep learning models enable data-driven encoding models for naturalistic stimuli
Encoding (Well-posed) vs Decoding (Ill-posed) in Neuroscience
Decoding is ill-posed?
Brain Encoding?
Present
Stimulus
Stimulus
Ridge Regression
Input
Input
Output
X
Y
W
Pearson Correlation (R) = Corr(Y, W(X))
Encoding: training independent models
P1
…
P2
PN
P1, v1
P1, v2
…
P1, vm
Mechanistic understanding of information processing in the brain: 4 big questions
57
How
Where
When
What
With MEG we can analyze sub-word time course
Where
When
How does brain represents complex meaning? (Where, When and What)
Word Context
1-word context
2-word context
3-word context
4-word context
5-word context
Past context
Future context
Recent work utilizing progress in LLMs for encoding
Language: work utilizing DL progress
63
across several types of large NLP systems, best alignment with fMRI in middle layers
Language: work utilizing DL progress
some NLP systems can predict fMRI and ECoG up to 100% of estimated noise ceiling
Language: work utilizing DL progress
65
best alignment with fMRI & MEG in middle layers
better performance at predicting next word -> better prediction of fMRI & MEG
Language: work utilizing DL progress
66
best alignment with fMRI & MEG in middle layers
better performance at predicting next word -> better prediction of fMRI & MEG
Language: work utilizing DL progress
67
model-selected ‘out-of- distribution’ sentences indeed drive and suppress activity of human language areas in new individuals
Challenges in using DL for cognitive science
68
NLP systems: Designed to predict upcoming words
Harry never thought ???
Harry never thought he ???
Harry never thought he would ???
...
Challenges in using DL for cognitive science
69
Challenges in using DL for cognitive science
70
part-of-speech
semantic role
dependence on other words
...
+
+
+
?
Challenges in using DL for cognitive science
71
Challenges in using DL for cognitive science
72
Training DL models using brain recordings
73
Brain-optimized NLP model predicts unseen fMRI recordings better, especially in canonical language regions
A priori locations in NLP system and brain
NLP system
Chapter of a book
𝑥 alignment
error propagation
fMRI
Inducing Brain Relevant Bias
Challenges in using DL for cognitive science
75
Tasks affect processing
76
bear
X
veg?
bear
X
tool?
800ms
306 sensors
800ms
306 sensors
Systematic difference due to different question tasks
Attention emphasizes task-relevant information
Mechanism?
Can we model as a function of the task AND stimulus?
Tasks affect processing
77
question task effect word effect
significant prediction performance
The end of semantic processing of a word is task-dependent
Neural Language Taskonomy: Which NLP Tasks are the most Predictive of fMRI Brain Activity
Subba Reddy Oota1,2, Jashn Arora2, Veeral Agarwal2, Mounika Marreddy2, Manish Gupta2,3, Bapi Raju Surampudi2
July 13, 2022
NAACL-HLT 2022
1Inria Bordeaux France, 2IIIT-Hyderabad, 3Microsoft India
Can task-specific language models better predict fMRI brain activity?
Tasks
Devlin et al. 2019, Bowon et al. 2020
Syntactic
Can task-specific language models have similar predictive performance in reading and listening?
Tasks affect processing
Oota, Subba Reddy, Jashn Arora, Veeral Agarwal, Mounika Marreddy, Manish Gupta, and Bapi Raju Surampudi. "Neural Language Taskonomy: Which NLP Tasks are the most Predictive of fMRI Brain Activity?." arXiv preprint arXiv:2205.01404 (2022).
81
Reading fMRI best explained by coref. resolution, NER, shallow syntax parsing
Listening fMRI best explained by paraphrasing, summarization, NLI
Challenges in using DL for cognitive science
82
Disentangling contributions of different info sources to brain predictions
83
“Mary finished the apple”
supra-word meaning may contain concept of:
supra-word
meaning
Isolating supra-word meaning is a type of intervention
Disentangling contributions of different info sources to brain predictions
84
full context
supra-word
Bilateral PTL and ATL process supra-word meaning
Word-level information important for prediction of most language regions
Disentangling contributions of different info sources to brain predictions
85
Syntactic structure-based features explain additional variance in language regions over complexity metrics
Regions predicted by syntactic and semantic are difficult to distinguish
Disentangling contributions of different info sources to brain predictions
86
Constituency tree structure is better in temporal cortex and MFG, while Dependency structure is better in AG and PCC,
Regions predicted by syntactic and semantic are difficult to distinguish
87
Subba reddy Oota, Manish Gupta, Mariya Toneva
Joint processing of linguistic properties in brains and language models
Hierarchy of Linguistic Info - Setting
88
BERT layer
Simple classifier
predict sentence length
If the prediction accuracy is good, then the model might be capturing the sentence length feature
Hierarchy of Linguistic Info - Result
89
Takeaway
90
BERT does capture many
structural properties of the English language.
Disentangling contributions of different info sources to brain predictions
91
Top constituents and Tree Depth contribute the most to the alignment trend across layers
Disentangling contributions of different info sources to brain predictions
92
Past word context is�crucial in obtaining significant results.
Khai Loong Aw Mariya Toneva
Max Planck Institute for Software Systems (MPI-SWS)
Training language models to summarize narratives�improves brain alignment
How to build better Language models?
Biological
Artificial
94
Compare against actual brain recordings
(brain alignment)
Use model’s internal layer�activations to predict brain activity on held-out data
Model trained with�language modeling
Model trained to�summarize narratives
input
input
activations
activations
book�chapter
95
Model trained with�language modeling
Model trained to�summarize narratives
input
input
activations
activations
Compare against actual brain recordings
(brain alignment)
Use model’s internal layer�activations to predict brain activity on held-out data
96
Result: Summarize narratives → Greater brain alignment 🧠
Training language models to summarize narratives improves brain alignment
this is the title of our paper!
brain alignment (Pearson correlation)
97
Result: Brain alignment improves for all discourse features
Booksum models’ representations of Characters, Emotions and Motions are more aligned to the brain than the base models’ representations.
brain alignment (Pearson correlation)
98
Subba reddy Oota, Fatma Deniz, Mariya Toneva
What aspects of NLP models and brain datasets affect brain-NLP alignment?
99
Text models predict fMRI recordings significantly better than speech models
Recent work utilizing progress in LLMs for encoding
Audio: work utilizing DL progress
Middle layers of self-supervised speech models predict auditory cortex the best
Audio: work utilizing DL progress
Self-supervised speech models exhibit specialization for native sounds in the STS and MTG;
IFG and AG show more general specialization for speech rather than native-language
Neural Architecture of Speech
Subba Reddy Oota1, Khushbu Pahwa2, Mounika Marreddy3, Manish Gupta3,4, Bapi Raju Surampudi3
June 6, 2023
ICASSP 2023
1Inria Bordeaux France, 2University of California LA, 3IIIT-Hyderabad, 4Microsoft India
Speech representation learning methods
Speech Models
Generative approaches
Predictive approaches
Contrastive approaches
Traditional approaches
Encoding Performance of Speech Models
Model Encoding Performance (Data2Vec)
Layer Selectivity
How do we assess models’ performance?
Neural Architecture of Speech: MEG Encoding
110
Previous studies using statistical correlation have observed using controlled settings (like piano tones) that the response to auditory stimulus peaks at around 200ms
Neural Architecture of Speech: MEG Encoding
111
Data2Vec: Early layers contribute the most to auditory response while later layers contribute both auditory and language information
Recent work utilizing progress in LLMs for encoding
Image reconstruction with latent diffusion models from human brain activity
Image reconstruction with latent diffusion models from human brain activity
Seeing Beyond the Brain: Conditional Diffusion Model with Sparse Masked Modeling for Vision Decoding
Recent work utilizing progress in LLMs for encoding
Visio-Linguistic Brain Encoding
Subba Reddy Oota1,2, Jashn Arora2, Vijay Rowtula2, Manish Gupta2,3, Bapi Raju Surampudi2
August 13, 2022
COLING 2022
1Inria Bordeaux France, 2IIIT-Hyderabad, 3Microsoft India
Can image-based and multi-model Transformers accurately perform fMRI encoding?
Dosovitskiy et al. 2021, Tan et al. 2019, Harold Li et al. 2019
Models used: Multi-Modal Transformers
CLIP
LXMERT
VisualBERT
Radford et al. 2021, Tan et al. 2019, Harold Li et al. 2019
Dataset Details
120
Periera
Periera et al. 2018, Nadine et al. 2019
BOLD5000
Concept+Picture (Bird)
Encoding performance (BOLD5000)
Incorporating natural language into vision models
DNNs & The Brain: Multi-modal, Multi-task
Fei, Lu, Gao et al (2022). Towards artificial general intelligence via a multimodal foundation model. Nature Communications 13:3094
doi.org/10.1038/s41467-022-30761-2
DNNs & Brain: Multi-modal, Multi-task
Fei, Lu, Gao et al (2022). Towards artificial general intelligence via a multimodal foundation model. Nature Communications 13:3094 doi.org/10.1038/s41467-022-30761-2
DNNs & Brain Damage
Snowden, Harris, Thompson, Kobylecki, Jones, Richardson, Neary (2018). Semantic dementia and the left and right temporal lobes, Cortex, 107(188-203).
https://doi.org/10.1016/j.cortex.2017.08.024.
Rt Ant Temporal Lobe Damage (Patient 8)
Animal habitat task.
The patient is asked:
Where would you find this?
Do DL Models exhibit such degradation with damage to units?
Future Works
Instruction Models and Brain Alignment
127
FLAN: Fine-Tuned Language Models are Zero-Shot Learners
BLOOM
PaLM: Scaling Language Modeling with Pathways
FLAN-T5
InstructGPT
Gopher
LaMDA
GPT-3
GLaM
Tk-Instruct
Llama
Human guided instructions into vision models and Brain Alignment
128
InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning
Human Alignment of Neural Network Representations
Lukas Muttenthaler, Jonas Dippel, Lorenz Linhardt, Robert A. Vandermeulen
Research Question:
Main Contributions/Findings:
Training Vision models using brain recordings
130
Does brain-optimized vision models align better with human judgements?
Inducing Brain relevant bias into image Transformers
Multi-modal Brain CLIP
A big thank you!
Tutorial, Code and Material:
Deep Learning for Brain Encoding and Decoding, Cogsci-2022
Upcoming Tutorials:
Language and the Brain: Deep Learning for Brain Encoding and Decoding
Subba Reddy Oota1, Manish Gupta2,3, Raju S. Bapi2
1Inria Bordeaux, France; 2IIIT Hyderabad, India; 3Microsoft, India
subba-reddy.oota@inria.fr, gmanish@microsoft.com, raju.bapi@iiit.ac.in
Agenda
IJCNN 2023: DL for Brain Encoding and Decoding
134
Outline
IJCNN 2023: DL for Brain Encoding and Decoding
135
Encoding vs. Decoding
IJCNN 2023: DL for Brain Encoding and Decoding
136
Encoding
Decoding
Stimulus
Representation
Stimulus
Representation
fMRI
fMRI
What is Brain Decoding?
IJCNN 2023: DL for Brain Encoding and Decoding
137
Visual Task
Language Task
Smith et al., 2011, Wang et al. 2019
Linguistic Decoding
IJCNN 2023: DL for Brain Encoding and Decoding
138
input
output
Zou et al., 2022
Encoder-Decoder Models in AI
IJCNN 2023: DL for Brain Encoding and Decoding
139
Encoder
Decoder
Encoder
Decoder
Youssef et al. 2018
Outline
IJCNN 2023: DL for Brain Encoding and Decoding
140
Linear Decoder Models
IJCNN 2023: DL for Brain Encoding and Decoding
141
Ridge / Logistic Regression
Stimulus Representation
Stimulus Classification
Horikawa et al. 2018
Non-Linear Decoder
IJCNN 2023: DL for Brain Encoding and Decoding
142
Vu et al. 2018
Deep CNNs
Word-Level Brain Decoding
Toward a universal decoder of linguistic meaning from brain activation https://www.nature.com/articles/s41467-018-03068-4
IJCNN 2023: DL for Brain Encoding and Decoding
Evaluating Decoding Models: Rank Accuracy
IJCNN 2023: DL for Brain Encoding and Decoding
144
Y1
Y2
Yn
Periera et al. 2018
ith Concept Word
Correaltion
rank = rsort(corr_scores).index(correlation)
All the correlation scores in descending order
Outline
IJCNN 2023: DL for Brain Encoding and Decoding
145
Linguistic Brain Decoding
IJCNN 2023: DL for Brain Encoding and Decoding
146
Periera et al. 2018, Gauthier et al. 2019, Huth et al. 2023, Oota et al. 2022
Classical Decoders
IJCNN 2023: DL for Brain Encoding and Decoding
147
Mitchell et al. 2008
Toward a universal decoder
IJCNN 2023: DL for Brain Encoding and Decoding
148
Pereira et al. 2018
GloVE
Dataset Details (Experiment-1)
IJCNN 2023: DL for Brain Encoding and Decoding
149
Concept + Sentence View
Concept Word
Concept + Picture View
Concept + Wordcloud View
Periera et al. 2018
Dataset Details (Experiment-1)
IJCNN 2023: DL for Brain Encoding and Decoding
150
Periera et al. 2018
Dataset Details (Experiments 2 and 3)
IJCNN 2023: DL for Brain Encoding and Decoding
151
Topic
Concept
Topic
Periera et al. 2018
Informative Voxel Selection
Cogsci-2022: DL for Brain Encoding and Decoding
152
Voxel + 26 neighbors in 3D
Input
Ridge Regression
Output
Stimulus:
Apartment
Present
GloVE
Present
Stimulus:
Apartment
Pearson Correlation (R) = Corr(Y, W(X))
Correlation across feature dimensions
V1 – R1
V2 – R2
….
Vn – R3
Select 5000 voxels based on top-5000 correlation scores
3D Image
X
Y
W
Experimental Setup
IJCNN 2023: DL for Brain Encoding and Decoding
153
Brain Decoder Schematic? (concept+picture)
IJCNN 2023: DL for Brain Encoding and Decoding
154
Present
Stimulus:
Apartment
Stimulus:
Apartment
Present
Ridge Regression
GloVE
Periera et al. 2018, Pennington et al. 2014
Brain Decoder Schematic? (concept+picture)
IJCNN 2023: DL for Brain Encoding and Decoding
155
Wang et al. 2019
Brain Decoder Schematic? (concept+sentence)
IJCNN 2023: DL for Brain Encoding and Decoding
156
Present
Stimulus:
Apartment
Stimulus:
Apartment
Present
Ridge Regression
GloVE
Periera et al. 2018, Pennington et al. 2014
Brain Decoder (Exp 2& 3: Different Topics)
IJCNN 2023: DL for Brain Encoding and Decoding
157
Present
Stimulus
Present
Ridge Regression
GloVE
Periera et al. 2018, Pennington et al. 2014
Stimulus
Testing
A butterfly is a flying insect with four large wings.
The piano is a popular musical instrument …
The piano is a popular musical instrument …
Brain Decoder ( Different passages from same topic)
IJCNN 2023: DL for Brain Encoding and Decoding
158
Present
Stimulus
Present
Ridge Regression
GloVE
Periera et al. 2018, Pennington et al. 2014
Stimulus
Testing
A butterfly is a flying insect …
Mosquitos are thin, small flying …
Mosquitos are thin, small flying …
Insect
Brain Decoder (Different sentences within the same passage)
IJCNN 2023: DL for Brain Encoding and Decoding
159
Present
Stimulus
Present
Ridge Regression
GloVE
Periera et al. 2018, Pennington et al. 2014
Stimulus
Testing
The piano is a popular musical instrument …
The piano is a popular musical instrument …
The piano has an enormous …
Pairwise and Rankwise Results
IJCNN 2023: DL for Brain Encoding and Decoding
160
Periera et al. 2018
Distribution of Informative Voxels
IJCNN 2023: DL for Brain Encoding and Decoding
161
Periera et al. 2018
Average decoding performance
IJCNN 2023: DL for Brain Encoding and Decoding
162
50K informativevoxels
Periera et al. 2018
Voxels contributing to decoding are widely distributed
Insights
IJCNN 2023: DL for Brain Encoding and Decoding
163
Periera et al. 2018
Linguistic Brain Decoding
IJCNN 2023: DL for Brain Encoding and Decoding
164
Periera et al. 2018, Gauthier et al. 2019, Huth et al. 2023, Oota et al. 2022
Linking artificial and human neural representations of language
IJCNN 2023: DL for Brain Encoding and Decoding
165
Ridge Regression
Gauthier et al. 2019
Cogsci-2022: DL for Brain Encoding and Decoding
166
Devlin et al. 2019
Pretrained vs. Task-specific language models
IJCNN 2023: DL for Brain Encoding and Decoding
167
Natural Language Understaning Tasks
Devlin et al. 2019, Bowon et al. 2020
Pretrained vs. Task-specific language models
Squad-2.0: Question Answering
Custom Tasks
IJCNN 2023: DL for Brain Encoding and Decoding
168
Fingers are used for grasping, writing, grooming and other activities. |
grasping are used for Fingers, grooming, writing and other activities. |
This is Los Angeles. And it's the height of summer. In a small bungalow off of La Cienega, Clara serves homemade chili and chips in red plastic bowls -- wine in blue plastic. |
This is Los Angeles. And the height it's of summer. In a bungalow off small of La Cienega, Clara serves homemade chili and chips in red plastic bowls -- wine in blue plastic. |
Gauthier et al. 2019
Custom Tasks
IJCNN 2023: DL for Brain Encoding and Decoding
169
Dotted lines: Incorrect dependecies
Solid lines: correct dependecies
Gauthier et al. 2019
Reading data target: human brain recordings
IJCNN 2023: DL for Brain Encoding and Decoding
170
Periera et al. 2018 fMRI
Example: ''A clarinet is a woodwind musical instrument''
Brain decoding performance
IJCNN 2023: DL for Brain Encoding and Decoding
171
Scrambled language models have shown better performance!!
Gauthier et al. 2019
Brain decoding performance trajectories over fine-tuning time
IJCNN 2023: DL for Brain Encoding and Decoding
172
Gauthier et al. 2019
Representational similarity of the sentence encodings
IJCNN 2023: DL for Brain Encoding and Decoding
173
Correlation between pair of model representaions
Gauthier et al. 2019
Summary
IJCNN 2023: DL for Brain Encoding and Decoding
174
Gauthier et al. 2019
Linguistic Brain Decoding
IJCNN 2023: DL for Brain Encoding and Decoding
175
Periera et al. 2018, Gauthier et al. 2019, Huth et al 2023, Oota et al. 2022
IJCNN 2023: DL for Brain Encoding and Decoding
176
Continuous Language Decoder
Tang, LaBel, Jain & Huth (2023)
IJCNN 2023: DL for Brain Encoding and Decoding
177
Continuous Language Decoder
Tang, LaBel, Jain & Huth (2023)
IJCNN 2023: DL for Brain Encoding and Decoding
178
Continuous Language Decoder
Tang, LaBel, Jain & Huth (2023)
Summary
IJCNN 2023: DL for Brain Encoding and Decoding
179
Tang, LaBel, Jain & Huth (2023)
Linguistic Brain Decoding
IJCNN 2023: DL for Brain Encoding and Decoding
180
Periera et al. 2018, Gauthier et al. 2019, Huth et al. 2023, Oota et al. 2022
Multi-view and Cross-ViewBrain Decoding
IJCNN 2023: DL for Brain Encoding and Decoding
181
Oota et al. 2022
Multi-view decoding
IJCNN 2023: DL for Brain Encoding and Decoding
182
Wordcloud View
Train
Sentence View
Picture View
Wordcloud View
Oota et al. 2022
Picture View
Train
Sentence View
Train
Multi-view decoding results
IJCNN 2023: DL for Brain Encoding and Decoding
183
Picture View
Train
BERT Representaions
Shuffled the Target Concepts
Test
Sentence View
Train
WordCloud View
Train
Pictures Best Accuracy
Sentences Best Accuracy
Oota et al. 2022
Distribution of Informative Voxels
IJCNN 2023 : DL for Brain Encoding and Decoding
184
Oota et al. 2022
Distribution of Information Voxels: Language Network
IJCNN 2023 : DL for Brain Encoding and Decoding
185
Oota et al. 2022
Distribution of Informative Voxels: Visual Network
IJCNN 2023: DL for Brain Encoding and Decoding
186
Oota et al. 2022
Cross-view Decoding
IJCNN 2023: DL for Brain Encoding and Decoding
187
Picture View
Train
Caption
Test
Picture View
Train
Visual words
Test
Wordcloud View
Train
Sentence
Test
Sentence View
Train
Keywords
Test
Oota et al. 2022
Cross-view Decoding results
IJCNN 2023: DL for Brain Encoding and Decoding
188
BERT Representaions
Shuffled the Target Concepts
Oota et al. 2022
Distribution of Informative Voxels
IJCNN 2023: DL for Brain Encoding and Decoding
189
Oota et al. 2022
Distribution of Informative Voxels: Language Network
IJCNN 2023: DL for Brain Encoding and Decoding
190
Oota et al. 2022
Distribution of Information Voxels: Visual Network
IJCNN 2023: DL for Brain Encoding and Decoding
191
Oota et al. 2022
Summary
IJCNN 2023: DL for Brain Encoding and Decoding
192
Oota et al. 2022
Agenda
IJCNN 2023: DL for Brain Encoding and Decoding
193
References
IJCNN 2023: DL for Brain Encoding and Decoding
194
References
IJCNN 2023: DL for Brain Encoding and Decoding
195
Language and the Brain: Deep Learning for Brain Encoding and Decoding
Subba Reddy Oota1, Manish Gupta2,3, Raju S. Bapi2
1Inria Bordeaux, France; 2IIIT Hyderabad, India; 3Microsoft, India
subba-reddy.oota@inria.fr, gmanish@microsoft.com, raju.bapi@iiit.ac.in
Agenda
IJCNN 2023: DL for Brain Encoding and Decoding
197
Outline
198
IJCNN 2023: DL for Brain Encoding and Decoding
Summary
199
IJCNN 2023: DL for Brain Encoding and Decoding
Summary
200
IJCNN 2023: DL for Brain Encoding and Decoding
Outline
201
IJCNN 2023: DL for Brain Encoding and Decoding
DNNs & The Brain: Multi-modal, Multi-task
Fei, Lu, Gao et al (2022). Towards artificial general intelligence via a multimodal foundation model. Nature Communications 13:3094
doi.org/10.1038/s41467-022-30761-2
DNNs & Brain: Multi-modal, Multi-task
Fei, Lu, Gao et al (2022). Towards artificial general intelligence via a multimodal foundation model. Nature Communications 13:3094 doi.org/10.1038/s41467-022-30761-2
DNNs & Brain Damage
Snowden, Harris, Thompson, Kobylecki, Jones, Richardson, Neary (2018). Semantic dementia and the left and right temporal lobes, Cortex, 107(188-203).
https://doi.org/10.1016/j.cortex.2017.08.024.
Rt Ant Temporal Lobe Damage (Patient 8)
Animal habitat task.
The patient is asked:
Where would you find this?
Do DL Models exhibit such degradation with damage to units?
A big thank you!
Tutorial, Code and Material:
Material from IJCNN 2023 Tutorial would be uploaded soon!
Upcoming Tutorials:
(Past): Deep Learning for Brain Encoding and Decoding, Cogsci-2022