EEG Benchmarking Needs a Task Specification Layer: NeuroDoc for Rulebook-Guided, Executable Benchmark Construction

Chengxuan Qin, Zhige Chen, Shu Peng, Rui Yang, Jiping Cui, Yikai Dong, Jun Li, Liu Peng, Zhida Shang, Mingze Tang, Kay Chen Tan, Jibin WuarXiv 2026

TL;DR

This paper introduces a structured "task specification layer" to solve the mess of heterogeneous EEG datasets. By combining a shared rulebook, an LLM-assisted drafting tool (NeuroDoc), and a community-review interface (NeuroAudit), the authors transformed 53 public datasets into 245 standardized, executable benchmark units ready for foundation model training and evaluation.

What Problem Does This Paper Address?

In the world of Electroencephalography (EEG), we are entering the era of "foundation models"—large-scale neural networks trained on massive, aggregated datasets. However, there is a massive roadblock: heterogeneity.

While standards like BIDS (Brain Imaging Data Structure) help organize files and metadata, they don't tell you how to actually run a task. Critical details—like how to segment the data (epoching), what the labels actually mean, and where the ground truth evidence comes from—are usually buried in PDF papers, messy code snippets, or the heads of the original researchers.

This lack of a "task specification layer" makes large-scale benchmarking a manual, error-prone nightmare. Researchers spend more time "data cleaning" and interpreting old papers than they do building models.

Figure 1: Project vision. A rulebook-guided task specification layer converts heterogeneous EEG datasets into reusable benchmark units with auditable task semantics and executable kernels, enabling shared downstream evaluation without repackaging raw EEG recordings.

Methods

The authors propose a methodology centered on rulebook-guided benchmark construction. Every benchmark entry consists of two synchronized parts:

  1. Task Document: A human-readable Markdown file specifying the paradigm, task types, epoching methods, and evidence sources.
  2. Task Kernel: An executable Python script that operationalizes the document's logic to process raw data into a unified pipeline.

To build this at scale, they developed a two-part toolchain:

  • NeuroDoc: An LLM-assisted pipeline that builds context from raw data and academic papers to draft the initial Task Document and Kernel. It uses a strict rulebook to ensure the LLM doesn't "hallucinate" task definitions that the data can't actually support.
  • NeuroAudit: A web-based UI for human experts to review, amend, and finalize these drafts. It includes machine-checkable constraints to ensure the document and kernel stay perfectly aligned.
Figure 2: NeuroDoc workflow for initial generation and later upgrade of benchmark entries under the shared task specification language and entry rulebook.

Datasets

The project started with a massive pool of over 300 raw datasets (~23 TB). From this, they isolated 17.7 TB of signal data and 8.46 GB of reference literature.

The primary output is a community-reviewed corpus of 53 datasets containing 245 task definitions. These span diverse paradigms, including:

  • Motor Imagery (e.g., BCIC IV, EEGMMI)
  • Sleep Staging (e.g., Sleep-EDF, UCDDB)
  • Clinical EEG (e.g., TUH Seizure Corpus)
  • Cognitive Tasks (e.g., Visual Oddball, Mental Arithmetic)

Key Insights and Ideas

  • Task Specification as a Bottleneck: The authors argue that task definition is a "first-class scientific bottleneck." If you can't define the benchmark unit clearly at the task level, large-scale reuse remains fragile.
  • Rulebook-Guided LLMs: Instead of letting an LLM freely describe a dataset, they force it to work within a "rulebook" (e.g., Article 15: "Actual data files prevail over paper descriptions"). This turns the LLM into a structured drafting assistant rather than a creative writer.
  • Decoupling Epoching and Labeling: By breaking tasks into four layers (Type, Epoch Method, Label Route, and Meta Level), they created a language flexible enough to describe almost any EEG experiment while remaining machine-executable.
  • Auditable Provenance: Every task in the corpus is linked to specific evidence (DOIs, official docs), making the benchmark transparent and scientifically sound.

Key Results

The authors validated their corpus by running 266 evaluations across 18 datasets using four major EEG foundation model backbones: BENDR, CBraMod, CodeBrain, and LaBraM.

  • Execution-Based Evidence: All four models were successfully run under the shared task specification layer, proving the infrastructure is truly "executable."
  • Meaningful Learning: The instantiated tasks preserved expected learning structures. For example, within-subject (WS) evaluation consistently outperformed cross-subject (CS) evaluation by an average of 12.6 percentage points, and test accuracy remained generally above random baselines.
  • NeuroDoc Efficiency: The automated pipeline achieved a 90.7% generation rate for feasible datasets, though human review (NeuroAudit) remains essential, as kernel validation success for the LLM-drafted code was around 47.6%.
Figure 4: Overview of the completed benchmark corpus used in this paper.

Limitations and Future Work

  • Scale: While 53 datasets are a great start, the broader database contains 200+ more drafts that still need community review and kernel validation.
  • Complexity: The current rulebook excels at standard paradigms but needs extension for more complex clinical task families and longitudinal studies.
  • Human Effort: Despite LLM assistance, the "human-in-the-loop" review via NeuroAudit is still labor-intensive, especially for datasets with poorly documented event markers (like the TUH corpus).
  • Future Directions: The authors plan to extend the rulebook to broader EEG task families and further characterize the human effort required for high-quality scientific review.

Summary updated

BibTeX
@misc{qin2026eeg,
  author = {Chengxuan Qin and Zhige Chen and Shu Peng and Rui Yang and Jiping Cui and Yikai Dong and Jun Li and Liu Peng and Zhida Shang and Mingze Tang and Kay Chen Tan and Jibin Wu},
  title = {{EEG Benchmarking Needs a Task Specification Layer: NeuroDoc for Rulebook-Guided, Executable Benchmark Construction}},
  year = {2026},
  eprint = {2606.22925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.22925},
}
Figure