EEG-Based Brain-LLM Interface for Human Preference Aligned Generation

Junzi Zhang, Jianing Shen, Weijie Tu, Yi Zhang, Hailin Zhang, Tom Gedeon, Bin Jiang, Yue YaoarXiv 2026

TL;DR

This paper introduces a novel brain-LLM interface that uses real-time EEG signals to decode human satisfaction and dynamically guide image generation. By integrating binary neural feedback into a test-time scaling (TTS) framework, the system iteratively refines model outputs without requiring explicit text or speech input. This approach opens up new possibilities for making generative AI accessible to individuals with severe motor or speech impairments, such as ALS.

What Problem Does This Paper Address?

Large Language Models (LLMs) and Multimodal Models have revolutionized how we interact with AI, but they share a fundamental assumption: that users can reliably provide explicit linguistic input via text or speech. This assumption creates a severe accessibility barrier for individuals with speech or motor impairments (e.g., Amyotrophic Lateral Sclerosis, or ALS), who retain intact cognitive functions and clear preferences but lack the physical means to articulate them.

While brain-computer interfaces (BCIs) offer a potential alternative, direct "EEG-to-text" decoding of open-ended thoughts remains highly unreliable for practical applications. To bridge this gap, the authors ask a more tractable question: Can we decode a simpler, binary neural signal of user satisfaction to steer generative models in real time?

Figure 1. Motivation for EEG-based interface for LLM. Ex- isting large language models rely mainly on explicit linguistic feedback such as typed instructions or corrections. However, there may exist a group of users with speech or motor impairments (e.g., ALS) thus language may not be available. For those users, we investigate whether neural signals can be used as an alternative input to LLMs.

Methods

Instead of trying to decode exactly what a user wants to change in an image, the authors implement a robust "generate-check-refine" loop powered by Test-Time Scaling (TTS).

  1. Generate: A base text-to-image model produces an initial image from a prompt.
  2. Check: As the user views the generated image, a neural preference decoder analyzes their raw EEG signals to compute a satisfaction probability score ($p^{score}_t$). If the score meets a fixed threshold ($\ge 0.5$), the image is accepted.
  3. Refine: If the decoder detects dissatisfaction ($p^{score}_t < 0.5$), it triggers a refinement step. A frozen Large Multimodal Model (LMM) acts as a refinement operator, performing a "critique-and-rewrite" procedure to generate a revised prompt. The system then loops back to generate a new image, repeating the process up to a maximum number of iterations ($T_{max} = 5$).

Datasets

The authors introduced a new dataset specifically designed for this task:

  • BLID (Brain-LLM Interface Dataset): Contains 1,300 trials collected from 10 healthy participants. Each participant evaluated 130 unique prompt-image pairs generated by GPT-4o. The prompts were carefully selected using a stratified sampling strategy to cover 6 semantic themes and 14 challenging aspects of text-to-image generation (such as fine-grained counting, negation, and spatial relations) to capture both gross errors and subtle misalignments.
Figure 2. Meta-information on the semantic themes, challenge categories, and EEG data collection procedure of BLID. (A) Visualization of the six semantic themes and fourteen challenging aspects of text-to-image generation used to construct the stimulus set. (B) Balanced distribution of prompt–image pairs across six semantic themes and fourteen challenge categories, ensuring diverse coverage of both objective constraints and subjective nuances. (C) Illustration of the EEG collection procedure. The experiment consisted of five evaluation blocks (12 minutes each). Each block contained 26 trials, and each trial lasted approximately 28 seconds, including stimulus presentation, evaluation periods, and inter-trial intervals.

Key Insights and Ideas

  • Foundation Models Excel at EEG Decoding: Using the large-scale pretrained EEG foundation model LaBraM, the authors achieved a peak classification accuracy of 80.68% (87.91% AUROC) in distinguishing "Satisfied" vs. "Unsatisfied" states, significantly outperforming traditional non-pretrained deep learning architectures like EEGNet (70.20%).
  • Signals are Cognitive, Not Motor Artifacts: Time-resolved decoding analysis revealed that classification accuracy peaks in the $[-2.0, -1.0]\text{s}$ interval before the physical button press. This temporal decoupling proves that the decoded preference signal stems from high-level cognitive appraisal rather than low-level motor preparation or muscle artifacts.
  • Frontal Cortex Dominance: Systematic brain region ablation confirmed that removing frontal electrodes caused the largest drop in decoding accuracy (falling to 75.88%), reinforcing the prefrontal cortex's well-established neuroscientific role in value-based decision-making and judgment.

Key Results

The framework was evaluated across 7 state-of-the-art text-to-image models, including open-source backbones (Stable Diffusion XL, Wanx-v1, Wan2.2-t2i-flash, Qwen-image-plus) and proprietary systems (GPT-4o Image, Doubao-seedream).

Integrating the EEG-guided TTS loop yielded consistent, substantial improvements across all models and metrics (CLIP, BLIP, Aesthetic, and VQA scores). Most notably:

  • Success Rate Boost: For GPT-4o Image, the final success rate (the percentage of images the user found satisfactory) surged from a baseline of 64.76% to 92.38%.
  • Stable Diffusion XL saw its success rate jump from a meager 3.33% to 27.62%.
  • Optimization Gradient: Tracking performance across iterations showed a steady upward trend in both Human and VQA scores, proving that EEG feedback provides a consistent optimization gradient rather than acting as a random "restart" mechanism.

Limitations and Future Work

While promising, the authors note several limitations:

  • Coarse Feedback: The current system relies entirely on a simplified binary gate (satisfied/unsatisfied). Future work aims to incorporate multi-dimensional neural markers like cognitive load, confidence, or affective valence to provide more nuanced feedback.
  • Cross-Subject Variability: Pronounced individual differences in EEG recordings mean that calibration-free cross-subject decoding remains a challenge.
  • Bounded by Base Models: The framework cannot fix errors that exceed the generation capabilities of the underlying text-to-image model; it can only steer the model to perform optimally within its inherent performance ceiling.

Summary updated

BibTeX
@misc{zhang2026eeg,
  author = {Junzi Zhang and Jianing Shen and Weijie Tu and Yi Zhang and Hailin Zhang and Tom Gedeon and Bin Jiang and Yue Yao},
  title = {{EEG-Based Brain-LLM Interface for Human Preference Aligned Generation}},
  year = {2026},
  eprint = {2603.16897},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.16897},
}
Figure