Hardly Better Than Binary Cross-Entropy: Imbalance-Aware Losses under Tuned Thresholds in Long-Tailed Chest X-Ray Classification

Seunghun Choi, Hyunwon Lee, Minkyu Kim, Hyun-Soo ChoiML4H 2026 Poster 2026

TL;DR

Specialized "imbalance-aware" loss functions are widely used to help AI models spot rare diseases in chest X-rays, often beating standard binary cross-entropy (BCE) by wide margins. This paper shows that most of that apparent victory is an illusion caused by using a naive, fixed 0.5 decision threshold. Once you simply tune the decision thresholds for each finding, plain old BCE catches up almost completely—leaving the fancy losses with barely a 1-percentage-point edge and no consistent ranking advantage across random seeds.

What Problem Does This Paper Address?

In automated chest X-ray classification, some conditions are common while others are vanishingly rare. This "long-tailed" distribution creates three headaches for machine learning models:

  1. Rare findings have very few positive examples to learn from.
  2. Negative examples vastly outnumber positive ones.
  3. Multiple findings often appear together in the same X-ray, so naive rebalancing for a rare label can accidentally distort how the model learns frequent co-occurring labels.

To fix this, researchers have proposed a zoo of imbalance-aware loss functions. However, studies often compare them using a fixed 0.5 probability cutoff to turn raw model scores into yes/no decisions (measured by F1 score). Because different losses naturally push their raw probability scores into different ranges, a fixed 0.5 cutoff confounds how well a model ranks patients with where it happens to place its scores. The authors ask a sharp, practical question: if we hold the model and training pipeline fixed and simply tune the decision thresholds, do imbalance-aware losses still beat BCE on rare findings?

Methods

The authors set up a controlled, apples-to-apples benchmark. They use a single shared architecture—a ConvNeXt-Small backbone paired with an ML-Decoder head—and keep initialization, data augmentation, optimizer, and stopping criteria identical across all runs.

They compare BCE against ten imbalance-aware alternatives spanning three families:

  • Instance-wise modulation: Focal, Hill, ASL, APL, and RAL.
  • Frequency/confidence modulation: CB, DB, MFM, and PGL.
  • Within-label ranking: DR.

For each parameterized loss, they run a finite hyperparameter search on internal validation (using seed 42) and then train three random seeds per loss. Crucially, they evaluate six threshold policies: an untuned Fixed 0.5 baseline, plus five tuned policies (Global, Group, Global Micro-F1, Group Micro-F1, and Per-label) that exhaustively search validation score breakpoints. Thresholds are frozen on validation and evaluated unchanged on the test set. They also look beyond aggregate numbers to inspect finding-level changes, paired error trade-offs, and t-SNE feature spaces.

Datasets

All experiments use CXR-LT 2023 (PhysioNet v1.0.0), a large-scale, multi-label, long-tailed chest X-ray dataset with 26 report-derived findings and patient-disjoint splits:

  • Internal training: 238,006 images
  • Internal validation: 26,843 images (split from the 264,849 released training images)
  • Development: 36,769 images
  • Test: 75,492 images

Following the challenge convention, the 26 labels are grouped by training prevalence into Head (>10%, 9 labels), Medium (1–10%, 11 labels), and Tail (<1%, 6 labels).

Key Insights and Ideas

  • The 0.5 cutoff is a misleading benchmark. At a fixed 0.5 threshold, specialized losses look dramatically better than BCE—not necessarily because they rank rare cases better, but because they shift raw probability scores relative to 0.5. (In the extreme case of DR, nearly all scores sit below 0.5, giving it a Tail F1 of 0.15% at 0.5, which shoots up to 28.73% once tuned.)
  • Group averages hide finding-level whiplash. Even when a loss improves average Tail performance, it rarely helps every rare finding. Across the six Tail findings, average precision (AP) rises for Pneumomediastinum under every loss, yet falls for Subcutaneous Emphysema under every loss.
Test Tail AP and F1 differences from same-seed BCE across the six Tail findings
  • Higher F1 doesn't mean more detections. In a post-hoc look at Lung Lesion (seed 42), APL beats BCE in F1 (8.10% vs. 7.66%) despite having lower AP. Paired raw scores show why: APL actually misses more true positives (106 down to 82) but slashes false alarms (2,114 down to 1,394). Its higher F1 comes from a different error trade-off, not better rare-case recovery.
Paired raw scores for Lung Lesion positives under BCE vs APL

Key Results

  • Threshold tuning erases most of the gap: At Fixed 0.5, MFM leads BCE in mean Tail F1 by 9.11 percentage points (pp) (26.32% vs. 17.21%). Under Per-label threshold tuning, BCE's Tail F1 jumps to 28.48% (+11.27 pp), shrinking the largest remaining advantage to just 1.21 pp (PGL at 29.70%, APL at 29.68%).
  • Seed-wise consistency is mixed: Four losses (APL, RAL, DB, and PGL) beat BCE in per-label Tail F1 across all three seeds. However, no loss consistently beats BCE in Tail mean average precision (mAP) across all three seeds (even though DB has the highest three-seed mean at 22.10% vs. BCE's 21.31%).
  • Statistical uncertainty remains: All pointwise 95% patient-cluster bootstrap confidence intervals for differences from BCE in per-label Tail F1 and Tail mAP include zero—establishing neither superiority nor equivalence.

Limitations and Future Work

The authors note several boundaries on these findings:

  • Results are tied to CXR-LT 2023, a single model architecture (ConvNeXt-Small + ML-Decoder), report-derived labels, three training seeds, and finite hyperparameter searches. Independently optimized pipelines might behave differently.
  • F1-optimal thresholds are convenient evaluation operating points, not clinically validated cutoffs; real-world deployment requires thresholds calibrated to the actual clinical costs of missed findings versus false alarms.

Going forward, the authors recommend using threshold-tuned BCE as a standard reference baseline, and evaluating new losses using both ranking and threshold-dependent metrics, finding-level breakdowns, and seed-wise consistency.

Summary updated

BibTeX
@inproceedings{choi2026hardly,
  author = {Seunghun Choi and Hyunwon Lee and Minkyu Kim and Hyun-Soo Choi},
  title = {{Hardly Better Than Binary Cross-Entropy: Imbalance-Aware Losses under Tuned Thresholds in Long-Tailed Chest X-Ray Classification}},
  booktitle = {ML4H 2026 Poster},
  year = {2026},
  url = {https://openreview.net/forum?id=0Rtj4OqLxf},
}
Figure