Mining Counterexamples from Disagreement Between Platforms

Classifiers trained on web data take shortcuts. They learn that a demographic marker, a background, or a stock phrase predicts the label, and then fail on the rare examples where that link breaks. Researchers call those rare examples bias-conflicting samples. Current methods for finding them without labels train a deliberately biased "auxiliary" model and treat the examples it gets wrong as the counterexamples. This works on benchmarks where the shortcut is dense and easy to learn. It breaks on real data, where shortcuts are sparse and the auxiliary model ends up learning the actual task instead. Web data has a structure these methods ignore: it arrives from several platforms, and each platform attracts a different population. Reddit skews young, male and Western. Conceptual Captions over-represents light-skinned men. Gender-split subreddits even reverse the meaning of the same phrase.

We propose to use that heterogeneity as the detector. We train one biased model per platform and score each example by how much these models disagree about its true label. The task signal is shared across platforms, so it cancels out in the disagreement. Platform-specific shortcuts do not cancel. We then retrain only the classifier's last layer, upweighting the high-disagreement examples, and we need no demographic labels to do it. The central claim can be tested directly. At a fixed number of counterexamples, robustness should depend on how differently the platforms are skewed, not on how much data they hold. When all platforms share the same skew, the method should reduce to existing single-dataset mining.

Core Claim

Single-dataset bias mining fails under sparse shortcuts for a specific reason. The auxiliary model cannot tell "hard because the shortcut misleads" apart from "hard because the task is hard." A second source of evidence fixes this: a different population in which the shortcut has a different strength or sign. Let $E$ be the set of platforms and $f_e$ a model trained on platform $e$ alone with a shortcut-amplifying loss. We score each training example $(x, y)$ as

$$s(x,y) = \mathrm{Var}_{e \in E}\big[p_e(y \mid x)\big]\cdot\big(1 - \bar p(y \mid x)\big).$$

Here $p_e(y \mid x)$ is the probability that $f_e$ assigns to the true label, $\bar p$ is the mean of these probabilities over platforms, and the shortcut-amplifying loss is the generalized cross-entropy used by Learning from Failure. The variance term is near zero when every platform model predicts the same way, which is what happens when predictions are driven by the shared task. The second factor keeps only examples that are, on average, mispredicted.

This score should be most useful exactly where existing methods are weakest. When a feature's sign flips across populations, the variance is at its maximum. Loveys et al. found this case in Reddit depression data: "my mum" signals depression for men, and "my son" does so for women. Standard reweighting assumes a shortcut points the same way everywhere, so it cannot handle a sign flip.

Where This Sits

Three papers supply the starting point and the failure we target. Learning from Failure introduced the biased-model trick. ECS+GA refines it with peer models that are pushed to "forget" counterexamples, combined with gradient rebalancing. Dropout Disagreement finds minority examples where a model and its dropout-perturbed copy disagree, then retrains the last layer.

All three mine one pooled dataset, and all three rely on the auxiliary model latching onto the shortcut. Wang et al. and Du et al. show that this assumption breaks when biases are sparse. That is the motivating gap. Our method keeps their machinery but changes where the disagreement comes from: separate populations rather than model noise. The ablations below test whether that change matters or whether any ensemble disagreement would do.

The theory that constrains the design is Is Spurious Correlation Removal Always Learnable?. It proves that the sample threshold for efficiently learning invariant features scales as $k(d-k)/(|\mathcal{E}|\gamma^2)$. Here $\gamma$ is how much environments differ in their shortcut–label correlation, $|\mathcal{E}|$ is the number of environments, and $k$ and $d$ are the invariant and total feature dimensions. The paper leaves open whether real platforms supply a large $\gamma$, and we test that question directly. The theory also warns that two similarly skewed platforms should give no benefit, and we treat that as a prediction to confirm, not a weakness to hide.

On the platform side, PHASE documents the skews in Google Conceptual Captions: 63.6% men, 62.5% White, and nearly 80% light skin tones. RedCaps documents a young, male, Western skew in Reddit image–caption pairs. OpinionGPT shows that subreddit-specific fine-tuning reproduces subculture viewpoints. It also names a constraint we take seriously: on platforms, demographic, regional and ideological markers are entangled. Platform disagreement may therefore flag a bundle of correlated attributes rather than one shortcut.

Bias in Gender Bias Benchmarks shows that perturbing backgrounds and objects shifts measured gender bias by up to 175%. That paper constrains our evaluation: any claimed fairness gain must survive its perturbation protocol.

Research Program

The first component is a controlled testbed that separates how scarce counterexamples are from how diverse the platforms are. We split CelebA (blond-hair classification, with gender as the shortcut) and Waterbirds into two to four synthetic "platforms." Each platform gets a different bias ratio, and the pooled bias ratio is held fixed at 0.99. Every condition therefore contains the same total number of bias-conflicting examples. Only their distribution across platforms changes, from identical skews ($\gamma \approx 0$) to opposed skews where one platform has a weak or reversed correlation. Ground-truth groups are known in this testbed, so we can measure the precision and recall of the mined counterexample set directly, not only downstream accuracy.

The second component is a real text setting with sign-flipping shortcuts: the Reddit depression corpus of Loveys et al., drawn from r/AskMen, r/AskWomen and r/depression. We use the gender-defined source communities as environments. Here the environment coincides with the demographic group. This deliberately makes life easy for group-aware baselines, so it is a hard test for us. We replace the paper's logistic regression with a fine-tuned text encoder plus last-layer retraining, and report per-gender and worst-gender AUC.

The third component is a real image–caption setting with two genuine platforms. We train on person crops from Conceptual Captions and from RedCaps. Activity labels are derived from captions. Evaluation uses PHASE's perceived age, gender and skin-tone annotations on Conceptual Captions. We will also annotate a held-out RedCaps sample of a few thousand person regions with the PHASE protocol, so that we can evaluate in both directions. This is the costliest component, and it is the one most exposed to the attribute entanglement that OpinionGPT warns about.

The pipeline is the same in all three settings. We train a biased model per platform, compute $s$, and treat the top-scoring examples as the balanced retraining set for last-layer reweighting in the style of Dropout Disagreement. No group labels are used anywhere in training or model selection.

Baselines

The naive reference point is pooled ERM (empirical risk minimization: standard training on all platforms mixed together). We also run platform-balanced sampling, which draws equally from each platform and is the cheapest way to exploit platform structure.

The strongest existing unsupervised competitor is DD-DFR from Dropout Disagreement, run on the pooled data. It shares our last-layer retraining stage, so the comparison isolates the discovery step. On the standard benchmarks it reports 91.6% worst-group accuracy (WGA) on Waterbirds with 48 class annotations. On CelebA it reports 83.0% WGA with 472 annotations, against 85.1% for fully labeled DFR using 9,933 annotations. Our split testbed differs from the standard splits, so we will rerun DD-DFR rather than quote these numbers. Beating it means higher WGA at equal annotation count in the high-$\gamma$ conditions, and statistically indistinguishable WGA at $\gamma \approx 0$.

We also run Learning from Failure and ECS+GA on pooled data. ECS+GA reports 89.5% unbiased accuracy on CelebA against 77.4% vanilla, and 41.8% against LfF's 33.4% on Corrupted CIFAR-10 at 99.5% bias.

The most dangerous competitor is Group DRO (distributionally robust optimization: minimizing the loss of the worst group), using platform as the group label. It uses the same side information we do, at almost no cost.

As an upper reference we run Group DRO with oracle demographic groups. On CivilComments-WILDS, WILDS reports that oracle groups raise worst-group accuracy from 56.0% to 70.0%. On the Reddit task, the reference to beat is Loveys et al.'s cross-gender AUC of 0.702, from the male-trained model evaluated on female users. The female-trained, female-tested model reaches 0.707.

Two ablations isolate the key ingredient. In the first, we replace the platform split with a random split of the pooled data into equally sized pseudo-platforms. If that works just as well, the gain comes from ensembling, not from platform heterogeneity. In the second, we drop the variance term and keep only $1-\bar p$, which turns the method into averaged LfF.

Every method uses the same pretrained backbone and the same number of hyperparameter trials. All unsupervised methods select models by the same group-label-free criterion: worst-class accuracy on a held-out split. Model selection with hidden group labels can silently inflate unsupervised methods, and this rule prevents that.

Why not just…?

Why not just run Group DRO with platform as the group? This is a real threat. Group DRO protects whichever platform is worst. A minority demographic can still be a small slice within every platform, and the shortcut-aligned majority then dominates each group's loss. Our method works at the level of individual examples, so it can isolate that slice. The test is the controlled testbed in conditions where each platform has the same within-platform minority fraction but a different skew direction. If platform-group DRO matches us there, the scoring step adds nothing, and we will report it that way.

Why not just pool everything and run dropout disagreement or LfF? Pooling erases the very signal we rely on. The sparse-bias results of Wang et al. show that pooled auxiliary models drift toward learning the task. The random-split ablation answers this question exactly. If pseudo-platforms do as well as real ones, the alternative wins.

Why not just scrape more data or rebalance across platforms? Zhou et al. show that diversity enters the sample requirement quadratically through $\gamma$, while sample volume enters only linearly. PHASE shows that larger uncurated scrapes keep the same skews. Platform-balanced sampling is included as a baseline. The fixed-count, varying-$\gamma$ sweep shows directly whether volume or diversity drives the gain.

Why not just synthesize the missing counterexamples with a diffusion model? Clustered DreamBooth from Basu et al. reaches 84.2% WGA on Waterbirds at a 0.999 bias ratio, compared with 23.5% for Group DRO. That is a strong result, but it requires a fine-tuning pipeline for each group. Generation also risks the problems PHASE documents: stereotyped defaults, and a safety filter that flags "woman" prompts 51.6% of the time. Generation and mining are complementary, not exclusive. We report the published number as a ceiling on Waterbirds, and we test whether mined examples make better seeds for generation than random minority examples.

Decisive Experiments

The idea stands or falls on four results. First, on the controlled testbed with the counterexample count fixed, the WGA gain over DD-DFR should rise with $\gamma$ and vanish at $\gamma \approx 0$. The precision of the mined set should follow the same pattern. Second, real platforms must beat random pseudo-platforms of the same size. Third, we must beat platform-group DRO under equal tuning on at least the sign-flip conditions and the Reddit task. On Reddit, worst-gender AUC should clear 0.702 and approach the oracle-group result. Fourth, on the Conceptual Captions/RedCaps image task, gains in worst demographic-group accuracy must survive the background and object perturbations of Bias in Gender Bias Benchmarks.

There is also an informative negative case. If the method helps on the controlled testbed but not on Conceptual Captions/RedCaps, that would suggest the two platforms differ mainly in entangled bundles of attributes, not in the label-relevant shortcut. That result would answer, against the method, the question Zhou et al. left open about whether real platforms are diverse enough.