MindCustomer: Multi-Context Image Generation Blended with Brain Signal

Muzhou Yu, Shuyun Lin, Lei Ma, Bo Lei, Kaisheng Ma

Advancements in generative models have made text- and image-based multi-context image generation highly sophisticated. However, using brain signals as a direct input remains a "final frontier." MindCustomer is a pioneering framework designed to successfully blend visual brain signals (fMRI) with image and text contexts to generate high-quality, customized images. By bridging the gap between neural activity and computer vision, the system can "hallucinate" objects from a user's thoughts into a specific photographic scene without needing manual masks or complex editing.

The Challenge of Brain-Computer Vision

While brain signals offer a raw, unfiltered look at user intent, they are notoriously difficult to integrate into generative models. The authors identify three primary hurdles:

  1. Cross-Subject Variability: Brain responses to visual stimuli (like seeing a "zebra") vary significantly from person to person, making it hard to build a universal model.
  2. Data Scarcity: Collecting fMRI data is expensive and time-consuming, resulting in a lack of large-scale datasets compared to traditional image-text pairs.
  3. Semantic Conflict: Fusing a brain signal (e.g., "I'm thinking of a zebra") with an image context (e.g., "a living room") often causes the modalities to "fight." This results in blurry outputs or the model ignoring one input entirely.

The MindCustomer Pipeline

To harmonize these disparate data types, MindCustomer introduces a multi-stage pipeline:

Overview of the MindCustomer framework and its generation capabilities.
  • Image-Brain Translator (IBT): This core innovation is a light MLP-based model trained to predict what a specific subject's brain activity would look like when viewing a certain image. This allows researchers to "augment" tiny brain datasets with millions of existing images.
  • Brain Representation Pre-training: Using the IBT, the team trains a shared deep-layer embedder that maps fMRI voxels into a universal CLIP-like latent space, making the model robust across different human subjects.
  • Two-Step Diffusion Fine-tuning: To prevent semantic conflicts, a "Versatile Diffusion" model is first fine-tuned on the image context. Then, the model is frozen, and the brain embeddings are lightly optimized to "fit" into the image's semantic space.
  • Mask-Free Fusion: Unlike previous methods requiring users to draw a mask where a new object should appear, MindCustomer uses a simple linear interpolation between image and brain embeddings. This allows the model to naturally integrate the "thought" into the "scene."

Datasets

The study primarily utilizes the Natural Scenes Dataset (NSD), a gold-standard benchmark in neuro-imaging featuring high-resolution 7-Tesla fMRI scans. The dataset includes four subjects viewing thousands of natural images from the MS-COCO dataset, with each subject viewing roughly 8,859 individual images.

Key Results and Insights

MindCustomer outperformed several state-of-the-art baselines in both quantitative and qualitative tests.

  • The IBT as a Rosetta Stone: The IBT is cleverly used not just for data augmentation, but to "translate" the image context into a "pseudo-brain signal" before fusion. This ensures the two modalities speak the same "language" before hitting the diffusion model.
  • Harmonious Coexistence: By optimizing the brain embedding against a frozen image-tuned model, the background stays stable while the foreground adapts to fit the lighting and style of the scene.
  • Few-Shot Generalization: The model is surprisingly efficient, adapting to a brand-new human subject using less than 20% of their available fMRI data.
  • Quantitative Success: It achieved a CLIP-IQA score of 0.892, significantly higher than baselines using visual stimuli instead of brain signals (0.734). This suggests the brain signal adds unique semantic value.
Example of a generated image blending a zebra brain context with a room image context.

Qualitatively, the generated images show impressive blending. In human evaluations, users preferred MindCustomer over baselines in both image quality (2.618 vs 1.868) and context consistency (1.868 vs 1.675).

Limitations and Future Work

Despite this breakthrough, several hurdles remain for practical application:

  • Signal Coarseness: Current fMRI signals are "noisy" and "coarse." They capture global concepts well but struggle with fine-grained details or specific instructions.
  • Hardware Constraints: fMRI machines are massive and expensive. Real-world retail applications will require advancements in portable neural interfaces like high-fidelity EEG or NIRS.
  • Data Diversity: The model is currently limited to the types of objects found in the MS-COCO dataset. Expanding the "vocabulary" of the brain-to-image pipeline is a crucial next step.

Summary updated

BibTeX
@inproceedings{yu2025mindcustomer,
  author = {Muzhou Yu and Shuyun Lin and Lei Ma and Bo Lei and Kaisheng Ma},
  title = {{MindCustomer: Multi-Context Image Generation Blended with Brain Signal}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=06UlFIly8J},
}
Figure