Brain-Inspired fMRI-to-Text Decoding via Incremental and Wrap-Up Language Modeling

Wen-Tao Lu, Dong Nie, Pengcheng Xue, Zheng Cui, Pi-Ji Li +2 more
1/1/2025

No confident code implementation found for this paper.

Abstract

Decoding natural language text from non-invasive brain signals, such as functional magnetic resonance imaging (fMRI), remains a central challenge in brain-computer interface research. While recent advances in large language models (LLMs) have enabled open-vocabulary fMRI-to-text decoding, existing frameworks typically process the entire fMRI sequence in a single step, leading to performance degradation when handling long input sequences due to memory overload and semantic drift.

Show full abstract

To address this limitation, we propose a brain-inspired sequential fMRI-to-text decoding framework that mimics the human cognitive strategy of segmented and inductive language processing. Specifically, we divide long fMRI time series into consecutive segments aligned with optimal language comprehension length. Each segment is decoded incrementally, followed by a wrap-up mechanism that summarizes the semantic content and incorporates it as prior knowledge into subsequent decoding steps. This sequence-wise approach alleviates memory burden and ensures semantic continuity across segments. In addition, we introduce a text-guided masking strategy integrated with a masked autoencoder (MAE) framework for fMRI representation learning. This method leverages attention distributions over key semantic tokens to selectively mask the corresponding fMRI time points, and employs MAE to guide the model toward focusing on neural activity at semantically salient moments, thereby enhancing the capability of fMRI embeddings to represent textual information. Experimental results on the two datasets demonstrate that our method significantly outperforms state-of-the-art approaches, with performance gains increasing as decoding length grows. The code is available at https://

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lu2025braininspired,
  title  = {Brain-Inspired fMRI-to-Text Decoding via Incremental and Wrap-Up Language Modeling},
  author = {Wen-Tao Lu and Dong Nie and Pengcheng Xue and Zheng Cui and Pi-Ji Li and Dao-Qiang Zhang and Xu-Yun Wen},
  year   = {2025},
  doi    = {10.52202/085713-5015},
  url    = {https://doi.org/10.52202/085713-5015},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/33459f713c33dd701d8959abb84946cd0552ff43.svg)](https://codeofpaper.com/paper/33459f713c33dd701d8959abb84946cd0552ff43)

Discussion