All models

DREAM

fMRI encoder from DREAM that maps brain voxels to CLIP embeddings for reconstructing viewed images.

Neuroscience signals · 36 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (46 KB)

Open in a new tab

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

Parameters
381.2M
Operations
36
Framework
PyTorch
Recurrent
No
Published
WACV 2024
Cited by
44 (as of 24 October 2026)
Authors
Weihao Xia, Raoul de Charette, Cengiz Öztireli, Jing-Hao Xue
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m15730
Graph hash
9a8cf44fcfbcbdbae93016eaa1866f390de0050654e0b4fbda8562dc6fad38cf
Skeleton hash
3eb2d0791e38d99501fae8e52a9f147651c9fffd515968361224c7f7fa927a2d
Architecture hash
d77a58d3e75de7aa0021eb50ea963447f222dadd301394086502fa44af5c3e96
Diagram SHA-256
76b5356866aa053b323d169c7fa781fe19e236ebd0e2f71cc6f557da78b96a54
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

DREAM is an fMRI-to-image method: it reconstructs the image a person was viewing from recordings of their brain activity. Its design follows the human visual system in reverse, with pathways that recover semantics, color and depth from the fMRI data.

Two components do the decoding. The Reverse Visual Association Cortex (R-VAC) extracts semantics with an fMRI encoder trained in a contrastive fashion to align with CLIP. Its network is described as a linear layer followed by multiple residual blocks, a linear projector and a final MLP projector. The learned embedding has a feature dimension of 77 × 768, where 77 is the maximum token length and 768 the encoding dimension of each token. The second component, R-PKM, maps fMRI to color and depth in the form of spatial palettes and depth maps. A frozen Stable Diffusion with T2I-Adapter then generates the image from these cues.

All experiments use the Natural Scenes Dataset (NSD). Because brain activity patterns vary strongly across subjects, a separate model is trained per subject. The R-VAC code in the authors' repository is based on MedARC-AI/fMRI-reconstruction-NSD.

Key idea. DREAM reconstructs viewed images from fMRI by deciphering semantics, color and depth with two reverse pathways, R-VAC and R-PKM, then guiding Stable Diffusion with those cues.

  • dream
  • fmri-to-image
  • visual decoding
  • brain decoding
  • fmri image reconstruction
  • r-vac
  • r-pkm
  • natural scenes dataset
  • clip embedding from fmri

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{xia2024dreamvisualdecodingreversing,
      title={DREAM: Visual Decoding from Reversing Human Visual System}, 
      author={Weihao Xia and Raoul de Charette and Cengiz Öztireli and Jing-Hao Xue},
      year={2024},
      eprint={2310.02265},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2310.02265}, 
}