LLM-MRI Python module: a brain scanner for LLMs

LLMs (Large Language Models) have demonstrated human-level language and knowledge acquisition skills in several tasks. However, despite the recent success and broad use, understanding how these skills are learned and encoded inside the underlying neural network is still challenging. The goal of the LLM-MRI package is to simplify the study of activation patterns in any transformer-based LLM, similarly to how MRI (magnetic resonance imaging) simplifies with biological brains. The package, written for the Python language, allows the mapping of neural regions using a parameterized reduction of the model's dimensionality. Neural regions can be visualized according to the forward-pass activations stimulated by a set of documents. Similarly, the package enables the creation of graph models representing the interlayer network of connections stimulated by a set of documents. These features allow for qualitative and quantitative assessments of the underlying structure of activations, depending on the type of documents that the LLM model is exposed to.

Authors

Institutions

Publication Details

Published
2024-10-14
DOI
https://doi.org/10.5753/sbbd_estendido.2024.243136
Citations
2
Primary Topic
Medical Imaging Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.81
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

LLM-MRI Python module: a brain scanner for LLMs

Luiz Gomes-Jr, André Santanchè, Mateus R. Figênio, Luiz Pereira da Costa
2 citations
Medical Imaging Techniques and Applications
0.81
article

LLM-MRI Python module: a brain scanner for LLMs

Luiz Gomes-Jr, André Santanchè, Mateus R. Figênio, Luiz Pereira da Costa
article en
2 citations

Abstract

LLMs (Large Language Models) have demonstrated human-level language and knowledge acquisition skills in several tasks. However, despite the recent success and broad use, understanding how these skills are learned and encoded inside the underlying neural network is still challenging. The goal of the LLM-MRI package is to simplify the study of activation patterns in any transformer-based LLM, similarly to how MRI (magnetic resonance imaging) simplifies with biological brains. The package, written for the Python language, allows the mapping of neural regions using a parameterized reduction of the model's dimensionality. Neural regions can be visualized according to the forward-pass activations stimulated by a set of documents. Similarly, the package enables the creation of graph models representing the interlayer network of connections stimulated by a set of documents. These features allow for qualitative and quantitative assessments of the underlying structure of activations, depending on the type of documents that the LLM model is exposed to.

Universidade Tecnológica Federal do Paraná (BR), Universidade Estadual de Campinas (UNICAMP) (BR)
Quality Education
Openalex Percentile: Top 25%
Medical Imaging Techniques and Applications
0.81
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

LLM-MRI Python module: a brain scanner for LLMs — Luiz Gomes-Jr, André Santanchè, et al. · (2024) | TGRS Research Map | TGRS