Training on the test set? An analysis of Spampinato et al. [31]

Ren Li, Jared S. Johansen, Hamad Ahmed, Thomas V. Ilyevsky, Ronnie B. Wilbur, Hari M. Bharadwaj, Jeffrey Mark SiskindarXiv 2018

Abstract

This paper provides a critical re-evaluation of high-profile research claiming to decode visual perception from EEG signals to improve computer vision models. By replicating and analyzing the original experiments, the authors demonstrate that the reported high classification accuracies were likely artifacts of a flawed "block design" experimental setup. This design allowed models to exploit long-term temporal correlations and low-frequency drifts rather than learning actual neural representations of visual stimuli. The study reveals that performance collapses toward chance levels when stimuli are randomized or when models are tested on data blocks unseen during training, serving as a cautionary tale for the Brain-Computer Interface (BCI) community.

Introduction

In 2017, Spampinato et al. published a study claiming that EEG data from subjects viewing ImageNet stimuli could be classified with over 80% accuracy. Furthermore, they suggested that these "neural representations" could be used to enhance computer vision classifiers and even drive generative models. However, subsequent analysis by researchers at Purdue University identified a significant methodological concern: the original experiments utilized a block design. In this setup, all images of a single class (e.g., "dogs") were presented in one continuous sequence. Given that EEG signals are prone to slow temporal drifts and artifacts, there was a high risk that classifiers were merely identifying the specific temporal "block" rather than the visual content.

Methodology

The authors conducted a multi-pronged forensic analysis to investigate these claims:

  1. Re-analysis of Original Data: Simpler classifiers, including SVMs and 1D CNNs, were applied to the original dataset across varying time windows.
  2. Controlled Replication: A new dataset was collected using both the original block design and a rapid-event design, where stimuli from different classes were randomly intermixed to eliminate temporal correlations.
  3. Spectral Filtering: High-pass filters were used to isolate high-frequency neural processing from low-frequency (VLF) drifts.
  4. Random Codebook Attack: EEG features were replaced with random numbers sharing the same class-level correlation to test the validity of transfer learning claims.

The 1ms Anomaly and Temporal Leakage

A primary "red flag" discovered during the re-analysis was the performance of models on extremely short time windows. Theoretically, the human brain requires hundreds of milliseconds to process visual information. However, the authors found that models could achieve nearly 90% accuracy using only a 1ms slice of EEG data.

Table showing high classification accuracy even with a 1ms window, indicating the model is learning block-level offsets rather than perception.

As shown in the table above, an MLP achieved 92.1% accuracy on a 1ms window. This result is a mathematical impossibility for a perception task and strongly suggests that the models were simply identifying a static voltage offset or "background noise" unique to each experimental block. If 50 images of "cats" are shown in a 25-second window, the model learns to recognize the brain's baseline state during that specific window, leading to "temporal leakage" where the training and test sets are effectively contaminated by the same temporal artifact.

Results: The Accuracy Collapse

The most definitive evidence against the original claims came from the randomized rapid-event design. When the temporal correlation between class and time was broken, the performance of all models plummeted significantly.

Table demonstrating the collapse of classification accuracy toward chance levels when stimuli are randomized or properly controlled.

In the randomized setup, classification accuracy for many models dropped toward the expected chance level (~2.5% for 40 classes). Furthermore, applying a high-pass filter (removing frequencies below 14Hz) to the original data caused accuracy to drop from 93% to roughly 30%, confirming that the "signal" was predominantly composed of low-frequency drifts rather than neural activity related to visual perception.

Conclusion

The findings of this study serve as a rigorous debunking of the claim that current EEG-based methods can reliably "read the mind" for complex visual classification. The high accuracies reported in previous work were artifacts of experimental design flaws. The authors conclude with a warning that sensational claims in BCI research require stringent controls, including the avoidance of block designs, the use of high-pass filtering, and cross-subject validation to ensure that decoded signals represent actual cognitive processes rather than machine artifacts or temporal noise.

Summary updated

Abstract

A recent paper [31] claims to classify brain processing evoked in subjects watching ImageNet stimuli as measured with EEG and to use a representation derived from this processing to create a novel object classifier. That paper, together with a series of subsequent papers [8, 15, 17, 20, 21, 30, 35], claims to revolutionize the field by achieving extremely successful results on several computer-vision tasks, including object classification, transfer learning, and generation of images depicting human perception and thought using brain-derived representations measured through EEG. Our novel experiments and analyses demonstrate that their results crucially depend on the block design that they use, where all stimuli of a given class are presented together, and fail with a rapid-event design, where stimuli of different classes are randomly intermixed. The block design leads to classification of arbitrary brain states based on block-level temporal correlations that tend to exist in all EEG data, rather than stimulus-related activity. Because every trial in their test sets comes from the same block as many trials in the corresponding training sets, their block design thus leads to surreptitiously training on the test set. This invalidates all subsequent analyses performed on this data in multiple published papers and calls into question all of the purported results. We further show that a novel object classifier constructed with a random codebook performs as well as or better than a novel object classifier constructed with the representation extracted from EEG data, suggesting that the performance of their classifier constructed with a representation extracted from EEG data does not benefit at all from the brain-derived representation. Our results calibrate the underlying difficulty of the tasks involved and caution against sensational and overly optimistic, but false, claims to the contrary.
BibTeX
@misc{li2018training,
  author = {Ren Li and Jared S. Johansen and Hamad Ahmed and Thomas V. Ilyevsky and Ronnie B. Wilbur and Hari M. Bharadwaj and Jeffrey Mark Siskind},
  title = {{Training on the test set? An analysis of Spampinato et al. [31]}},
  year = {2018},
  eprint = {1812.07697},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.07697},
}
Figure