Neural-Driven Image Editing

Pengfei Zhou, Jie Xia, Xiaopeng Peng, Wangbo Zhao, Zilong Ye, Zekai Li, Suorong Yang, Jiadong Pan, Yuanxiang Chen, Ziqiao Wang, Kai Wang, Qian Zheng, Xiaojun Chang, Gang Pan, Shurong Dong, Kaipeng Zhang, Yang You

TL;DR

This paper introduces LoongX, a novel system for hands-free image editing that uses multimodal brain signals (EEG, fNIRS, PPG) and optional speech to control generative AI models. It achieves performance comparable to text-based methods, offering a more accessible and intuitive way to edit images, especially for individuals with motor impairments.

What Problem Does This Paper Address?

Traditional image editing tools, even those powered by advanced AI, often require manual input like text prompts, sketches, or drag-and-drop actions. This can be labor-intensive and inaccessible for people with limited motor control or communication abilities. While brain-computer interfaces (BCIs) offer a promising alternative, existing BCI-based methods often rely on single modalities (like EEG alone), which may not fully capture the nuances of user intent. This paper aims to bridge this gap by exploring how multimodal neurophysiological signals, combined with speech, can enable intuitive and accessible image editing.

Methods

LoongX employs a sophisticated pipeline to translate neural signals into image edits:

  • Multimodal Sensing: It integrates signals from EEG (capturing rapid electrical activity), fNIRS (monitoring slower hemodynamic responses), PPG (reflecting autonomic arousal), and head motion sensors.
  • Cross-Scale State Space (CS3) Encoder: This novel module extracts multi-scale temporal and channel-wise features from the diverse neural signals. It uses a structured state space model (S3M) for efficient long-sequence encoding, balancing performance with computational cost.
  • Dynamic Gated Fusion (DGF) Module: This module dynamically fuses the extracted features from different modalities into a unified latent space. It incorporates gate mixing, adaptive affine modulation, and dynamic masking to effectively integrate information and suppress noise.
  • Diffusion Transformer (DiT): The fused latent representation conditions a DiT model, a state-of-the-art diffusion model, to generate the edited image.
  • Pre-training and Fine-tuning: The system is pre-trained using contrastive learning to align neural features with semantic text embeddings and then fine-tuned on image editing tasks.

Datasets

  • L-Mind Dataset: The authors introduce L-Mind, a comprehensive multimodal dataset comprising 23,928 image-editing pairs. Each pair includes an original image, ground truth text instructions, a ground truth edited image, and synchronized EEG, fNIRS, PPG, head motion, and speech signals from 12 participants. This dataset is designed to support research in neural-driven image editing.

Key Insights and Ideas

  • Multimodal Synergy: Combining different neural signals (EEG, fNIRS, PPG) significantly enhances image editing performance compared to using any single modality. This highlights how complementary information from various physiological sources is crucial for capturing nuanced user intent.
  • EEG as a Primary Driver: EEG signals alone are surprisingly effective for driving image editing, outperforming text-only baselines on key semantic metrics. This suggests that brain activity can directly encode rich semantic information for editing.
  • Speech Augmentation: While neural signals alone are powerful, adding speech further boosts performance, particularly for capturing complex semantic nuances and achieving more intuitive control.
  • Brain Region Specialization: Different brain regions contribute uniquely to image editing. The occipital cortex (Oz) is vital for global image alignment and robustness, while the prefrontal cortex (Fpz) is key for semantic understanding and higher-order cognitive alignment. This insight can guide the design of more efficient BCI systems.

Key Results

  • Comparable Performance: LoongX, using only neural signals, achieved performance comparable to text-driven baselines (e.g., CLIP-I: 0.6605 vs. 0.6558; DINO: 0.4812 vs. 0.4636).
  • Enhanced by Speech: When combined with speech, LoongX surpassed text prompts alone (CLIP-T: 0.2588 vs. 0.2549).
  • Modality Contributions: Ablation studies showed that EEG and fNIRS provided the most significant contributions, with EEG alone enabling basic semantic editing and fNIRS improving feature robustness.
  • Qualitative Success: Qualitative examples demonstrated LoongX's ability to perform various edits, from background changes to object modifications, often with greater intuitive alignment than text-only methods.

Limitations and Future Work

  • Dataset Homogeneity: The current L-Mind dataset was collected from a relatively homogeneous group of young adults, limiting generalizability to broader populations.
  • Signal Resolution: The low-density EEG and fNIRS systems offer limited spatial resolution compared to high-density or invasive setups, potentially affecting fine-grained neural representation capture.
  • Robustness to Noise: The system's robustness to varying data distributions, noisy conditions, sensor dropout, or environmental interference needs further exploration.
  • Interpretability: The learned neural representations are not yet fully interpretable, making it difficult to understand how latent features relate to cognitive states or intentions.
  • Future Directions: The authors suggest integrating LoongX with VR/XR for immersive experiences, aligning neural representations with emerging world models for more advanced control, and exploring user-specific fine-tuning for improved personalization. They also emphasize the need for adaptive methodologies to enhance accessibility and precision.

Summary updated

BibTeX
@inproceedings{zhou2025neural,
  author = {Pengfei Zhou and Jie Xia and Xiaopeng Peng and Wangbo Zhao and Zilong Ye and Zekai Li and Suorong Yang and Jiadong Pan and Yuanxiang Chen and Ziqiao Wang and Kai Wang and Qian Zheng and Xiaojun Chang and Gang Pan and Shurong Dong and Kaipeng Zhang and Yang You},
  title = {{Neural-Driven Image Editing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=UAc6RL9Tt4},
}
Figure