BrainCLIP
VAE-based mapping network that transforms fMRI patterns into CLIP embeddings for brain decoding.
Neuroscience signals · 27 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Neuroscience signals
- Parameters
- 15.6M
- Operations
- 27
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2023
- Cited by
- 8 (as of 29 October 2026)
- Authors
- Yulong Liu, Yongqiang Ma, Wei Zhou and others
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14980
- Graph hash
- 5be10002b8f81ab733c84b0b6df90300ad9bb9e7c6c8a157bcc31bc4cc1778fa
- Skeleton hash
- 5e146430d0f68316a57307b7dee40e4f332ff04798d9258498738ff4ed818a32
- Architecture hash
- 3710711e6bd2cab7659a2afd8933a5ea1da2c95e6be87125e31ca75afdbab953
- Diagram SHA-256
- c409cacfdbc0c51bcce01f998bc799244a57c851660cda1a392e2a39e03727e5
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
BrainCLIP is a brain decoding model: it trains a mapping network that turns fMRI patterns into embeddings aligned with the CLIP embedding space. The paper uses CLIP as a pivot for several brain decoding tasks: zero-shot visual category decoding, fMRI-image/text matching and fMRI-to-image generation.
The paper explores two mapping networks, a single linear layer and a variational autoencoder (VAE) made of an fMRI encoder and a decoder. In the VAE variant, the decoder is first pre-trained together with a visual encoder so that it reconstructs a CLIP visual embedding from a latent representation. The decoder is then frozen and only the fMRI encoder is trained. Because fMRI-image pairs are limited, training aligns the fMRI embeddings with both images and text by minimizing a contrastive loss.
For image generation, the released code uses the fMRI embedding to guide a diffusion model. Zero-shot classification is evaluated on the GOD dataset, whose test set has 50 visual stimuli from 50 categories that do not overlap with the training set. On that task the paper reports significantly better performance than BraVL, a method designed specifically for it.
Key idea. BrainCLIP trains a mapping network that transforms fMRI patterns into a well-aligned CLIP embedding space by combining visual and textual supervision.
- BrainCLIP
- BrainCLIP-VAE
- fMRI decoding
- brain decoding
- fMRI to CLIP embedding
- visual stimulus decoding
- fMRI-to-image generation
- zero-shot visual category decoding
- fMRI mapping network
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{liu2023brainclipbridgingbrainvisuallinguistic,
title={BrainCLIP: Bridging Brain and Visual-Linguistic Representation Via CLIP for Generic Natural Visual Stimulus Decoding},
author={Yulong Liu and Yongqiang Ma and Wei Zhou and Guibo Zhu and Nanning Zheng},
year={2023},
eprint={2302.12971},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2302.12971},
}