What Balanced Accuracy Cannot Identify in Neural-Signal Decoding under Test-Time Adaptation

Jiangshuo Xie, Zonghan WuarXiv 2026

TL;DR

Test-Time Adaptation (TTA) is often used to tweak neural-signal classifiers on the fly, but standard metrics like Balanced Accuracy (BA) are dangerously blind to its failures. This paper demonstrates that TTA can cause "class deletion"—where a model stops predicting a specific class entirely—while aggregate scores remain deceptively stable, hiding significant harm to individual subjects and specific clinical categories.

What Problem Does This Paper Address?

In neural-signal decoding (like EEG for sleep staging or ECG for heart monitoring), models face a major hurdle: every human body is different, and recording conditions drift over time. Test-Time Adaptation (TTA) attempts to solve this by updating the model on unlabeled incoming data as it arrives.

However, researchers usually evaluate TTA using a single aggregate number: Balanced Accuracy (BA). The authors argue that BA is a "blind" metric in this context. For example, in a two-class problem, a model that predicts only one class perfectly and ignores the other completely gets a 50% BA—the exact same score as a model that predicts both classes with 50% accuracy. This means a model could effectively "delete" a rare but critical class (like a seizure or a specific sleep stage) without the aggregate score sounding an alarm.

Methods

The researchers evaluated Full Test-Time Adaptation (full_ttt), which updates all backbone parameters of a model using a self-supervised objective (masked-feature reconstruction). They compared this against other common TTA strategies:

  • tent_ttt: Entropy minimization of normalization layers.
  • shot_ttt: Information maximization plus a diversity term.
  • adapter_ttt: Using small bottleneck adapters while keeping the main model frozen.

The study employed a transductive streaming protocol, meaning the model updates on a batch and then immediately scores that same batch. Crucially, they treated the individual subject as the unit of analysis, performing exact sign tests and "dependence audits" to see how sharing the adaptation state across different subjects influenced the results.

The TTA protocol and the inherent limits of Balanced Accuracy.

Datasets

The study utilized five datasets spanning EEG and ECG signals:

  • Core Analysis: Siena (EEG, 2 classes), Sleep-EDF (EEG, 5 classes), and PTB-XL (ECG, 2 classes).
  • Boundary Cases: BCI-IV-2a (EEG, 4 classes) and CHB-MIT (EEG, 2 classes).

These datasets were tested across four different neural architectures: Mamba (sequence model), MedFormer (transformer), EEGNet, and a standard CNN.

Table 1. Datasets and their role. PTB-XL is ECG; Siena, BCI-IV-2a, Sleep-EDF and CHB-MIT are EEG. The core cross-cell analysis uses PTB-XL, Siena and Sleep-EDF; the two EEG datasets with near-chance source skill (BCI-IV-2a, CHB-MIT) are extensions. Samples per subject is the number of test samples the subject contributes in this study, given as median [IQR] across subjects; it is not the size of the original recording, and subjects differ in how many windows survive preprocessing. Window gives channels × samples per input. Per-subject counts are not stored for the two boundary datasets and their entries are marked —. Sampling rate is fixed by the preprocessed feature files rather than recorded per run, so window length is given in samples. Folds is the subject-wise partition used for the dataset and Seeds the number of seeds run for it: four for the three core datasets, one for each boundary dataset.

Key Insights and Ideas

  • Class Deletion is Real: The most startling finding is that TTA can cause a model to completely stop predicting a class that is actually present in the data. For instance, on the Sleep-EDF dataset using a CNN encoder, recall for REM sleep dropped to 0.00%.
  • The "Headroom" Effect: Subjects who start with high accuracy have more to lose. The paper found a strong negative correlation between initial source accuracy and the subsequent change after adaptation—essentially, TTA often pulls everyone down to a common, mediocre floor.
  • Encoder Sensitivity: The specific class that gets "sacrificed" or harmed isn't just a property of the data; it depends heavily on the encoder architecture. Different encoders (e.g., Mamba vs. CNN) might deteriorate in opposite directions on the same subject.
  • Stream Organization Matters: Because the model carries its state forward, the order in which subjects appear in the data stream can change the outcome. Interleaving subjects vs. processing them in blocks can actually reverse the sign of the performance change.

Key Results

  • Frequency of Failure: A class covering at least 10% of a subject's samples went entirely unpredicted in 44 of 112 subject-cells (39.3%) under the full_ttt rule, compared to only 9 for the original unadapted models.
  • Metric Disagreement: Aggregate BA and class-level contrast metrics pointed to different "best" encoders in 10 out of 11 comparisons.
  • Subject-Level Harm: While a cohort mean might show a small decline, individual subjects often suffered massive drops. In PTB-XL, while the median change was 0, a long "negative tail" showed many subjects losing over 50 points in recall.
Visualizing how aggregate means conceal diverse subject-level distributions.

Limitations and Future Work

The authors acknowledge that their cohorts are relatively small (13–20 subjects for some datasets), which limits broad generalization. Furthermore, while they identified that different encoders fail in different ways, the exact internal mechanism—why one architecture deletes Class A while another deletes Class B—remains an open question.

The paper concludes that we need a new reporting standard for TTA: class-level changes must be reported alongside aggregates, and subject-level distributions must be shown alongside means. Future work should focus on developing label-free monitors that can detect these specific failure modes before a model is deployed in a clinical setting.

Summary updated

Abstract

Adaptation for neural-signal classification is usually transductive: each batch is scored after updating on it, and the gain depends on the adapted model [4]. This paper asks what an aggregate change fails to characterise inside the cohort. Full test-time adaptation (full_ttt) was evaluated in 11 dataset-encoder cells (four each on Siena/EEG and PTB-XL/ECG, three on Sleep-EDF/EEG), with splits and source-model evaluation fixed; the subject was the unit, exact sign tests were Holm-corrected and conditional on the shared stream, and bootstrap intervals accompanied a dependence audit. Two results of different kinds follow. In the binary case balanced accuracy gives a one-class decoder the same value as one reporting both classes at 50%, so the aggregate cannot identify a class that stopped being reported; a class covering a tenth of a subject's samples went unpredicted in 26-47 of 112 subject-cells, against 7-9 for the controls, which is a descriptive count. With cohort, split and update rule fixed, the within-subject class contrast follows the encoder, tested directly rather than inferred from tests against zero: two of six Siena encoder pairs survive the dependence readings at their nominal reference and one at a fold-level reference, while two of ten Sleep-EDF stage pairs pass the run-clustered gate at its nominal reference; aggregate and contrast named different encoders in 10 of 11. The protocol bounds both results, since a stream-interleaving effect reverses sign with state sharing (+3.5 to -2.4 pp). An aggregate score can hide individual harm, as [1] showed, but it cannot distinguish a uniform loss from a deleted class; class-level change should therefore be reported alongside the aggregate and subject-level change alongside it, with both results conditional on the cell, the rule and the stream construction.
BibTeX
@misc{xie2026what,
  author = {Jiangshuo Xie and Zonghan Wu},
  title = {{What Balanced Accuracy Cannot Identify in Neural-Signal Decoding under Test-Time Adaptation}},
  year = {2026},
  eprint = {2611.17925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.17925},
}
Figure