---
title: "Learning to Split for Automatic Bias Detection — Bao 2022"
description: "Learning to Split finds hidden weaknesses in labeled datasets by learning where predictors trained on one subset fail on another."
canonical: "https://research.elamur.ai/free/en/papers/bao-2022-learning-split-automatic-bias-detection/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bao-2022-learning-split-automatic-bias-detection/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Learning to Split for Automatic Bias Detection

# Learning to Split for Automatic Bias Detection

Paper · 2022 · Yujia Bao and Regina Barzilay

**Authors:** [Yujia Bao](https://md.research.elamur.ai/free/en/authors/yujia-bao/) and [Regina Barzilay](https://md.research.elamur.ai/free/en/authors/regina-barzilay/) · **Year:** 2022 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**0** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4225313328) · [Cited by **3** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/bao-2022-learning-split-automatic-bias-detection/cited-by/) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/2204.13749)
- [arXiv 2204.13749](https://arxiv.org/abs/2204.13749)
- [OpenAlex](https://openalex.org/W4225313328)

Citations: OpenAlex, 2026-10-14.

## Summary

A classifier can do well on a random test split while making systematic mistakes on examples that are uncommon in its training data. In a bird classification task, for example, the background can be an accurate clue whenever waterbirds typically appear near water. The same clue can lead to errors when a bird appears against a less typical background. Learning to Split searches for these vulnerabilities using the examples and their task labels. It learns a partition in which a predictor trained on one side struggles on the other. The resulting gap gives the investigator a place to look for potential bias, even when nobody has annotated the attribute responsible for it.

The method alternates between a Splitter, which assigns examples to subsets, and a Predictor, which learns the original classification task from the current training subset. The Predictor starts afresh for each partition. Its successes and errors on the current test subset guide the Splitter toward a harder partition. The procedure also penalizes splits that provide too little training data or shift the overall mix of labels, since either effect could create a misleadingly difficult test. Similar label mixes still leave room for changes in which features accompany each label. That distinction lets the method expose a shortcut such as treating negation as a sign of contradiction in natural language inference.

The authors find larger gaps with learned partitions than with random ones on tasks involving reviews, sentence pairs, images, and chemical compounds. On the MNLI sentence-pair task, a BERT-based predictor obtains 79.4% test accuracy with random splitting and 27.8% on the learned test split. Several partitions also line up with attributes examined separately by the authors, including scene backgrounds in Waterbirds and negation in MNLI. The molecular experiment finds an analogous pattern in the allocation of compounds with particular combinations of assay outcomes.

The partitions can also guide a separate training procedure. The authors combine split assignments with task labels to define groups, then train a classifier to reduce the loss of its worst-performing group. When bias annotations are unavailable for both training and validation, the paper reports an average improvement of 23.4% over previous methods in worst-group test performance across Waterbirds, CelebA, and MNLI. The result concerns the benchmark groups used for evaluation. A learned split can also concentrate mislabeled examples, as a separate digit experiment shows, and its reach depends on which examples the dataset contains.

## Deep dive: Learning to Split for Automatic Bias Detection

Learning to Split finds hidden weaknesses in labeled datasets by learning where predictors trained on one subset fail on another. · about 36 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### When a random test hides a shortcut

The question is what a collection of labeled examples can reveal about the behavior of a classifier outside its usual conditions. The paper uses classification to make that question concrete. Each example pairs an input with a target label. The input might be a photograph, a review, or a pair of sentences. Training rewards agreement with the recorded labels. A recurring feature of the inputs can become useful to a classifier whenever it helps reach that objective, even if the feature is incidental to what a person intended the task to measure.

Consider the paper's illustrative distinction between samoyeds and polar bears. An image collection could associate samoyeds with grass and polar bears with snow. A predictor can exploit that pattern because it helps on the available examples. A randomly chosen subset will generally contain a similar mixture of common and uncommon combinations. Its accuracy can therefore look satisfactory even if the predictor has trouble identifying polar bears on grass. A test with more of those images asks a different question about the same predictor. The collection may already contain the evidence needed for that test, scattered among many images that pose little difficulty.

This is a problem of generalization, the ability to maintain performance on examples outside the data used to fit the predictor. A random split estimates generalization under approximately the same mixture of examples. In the paper's setting, the investigator also wants to know what happens when that mixture changes. An underrepresented combination can make a small contribution to an average over a random split. Giving the combination greater weight can substantially change the picture of performance, even when every example still comes from the same original collection. This is the role of the learned partition in evaluation. [Evaluation & benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/)

The distinction between a label and an attribute matters throughout. In the animal example, the species is the label. The background is an attribute that may correlate with it. A dataset could contain similar proportions of each species on both sides of a partition while placing most snowy polar bear images on one side and many grassy polar bear images on the other. Counting species alone would miss the change. Conversely, a partition that allocates almost all instances of a species to its test side would be difficult for a more immediate reason. The paper tries to expose changes of the former kind by guarding against the latter.

The word *bias* in this setting covers patterns that can undermine prediction across subsets. Some involve attributes people already consider important. Others result from how examples were assembled or annotated. A large accuracy gap can bring an unexpected pattern to light, but interpreting the pattern requires a task-specific judgment about what counts as appropriate evidence. The paper locates automatic splitting within that larger problem. [Bias, fairness & safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/)

#### What earlier approaches could use

The authors describe several lines of work that begin with a recognized source of bias. Once an attribute or a shortcut has been specified, a training procedure can use that information directly. For example, known groups can be given explicit attention in the loss, or another predictor can be built around the shortcut so that a more robust learner has a signal about which examples it should emphasize. These approaches benefit from advance knowledge of the attribute, the annotation artifact, or the way it can be identified. The paper cites work on [avoiding known dataset biases with ensembles](https://md.research.elamur.ai/free/en/papers/clark-2019-don-t-take-easy-way/) and [fitting residuals in natural language inference](https://md.research.elamur.ai/free/en/papers/he-2019-unlearn-dataset-bias-natural-language/).

Sentence-pair inference illustrates how the mechanism of data collection can matter. A classifier is meant to judge the relationship between the sentences. If an annotation practice makes certain words especially common with one label, those words can acquire predictive value apart from the relationship. Identifying a particular artifact can require familiarity with how the task was designed and how people composed or labeled the examples. The authors cite earlier studies of these problems in inference and of methods intended to expose or mitigate them. [Annotation Artifacts in Natural Language Inference](https://md.research.elamur.ai/free/en/papers/gururangan-2018-annotation-artifacts-natural-language-inference/)

When the attribute is unknown, another approach is to inspect a conventional predictor trained by empirical risk minimization, or ERM. Empirical risk is average loss over the examples used in fitting, and the loss measures disagreement between predictions and labels. Some earlier methods take examples misclassified during training as places to concentrate a subsequent learner's attention. Others inspect hidden activations, the internal responses that a predictor computes on its way to a decision, to infer groups that might be poorly represented. The paper places its own approach alongside these attempts to learn about bias from observed behavior. [Towards Debiasing NLU Models from Unknown Biases](https://md.research.elamur.ai/free/en/papers/utama-2020-debiasing-nlu-models-unknown-biases/)

A training error can have several explanations. The authors point to the predictor's initialization, its capacity to represent the task, and the supply of annotated examples. A limited predictor can fit common and uncommon examples poorly alike. Measuring the contrast between subsets gives a way to ask whether some difficulties become especially pronounced after training on a particular part of the data. In the authors' argument, underfitting that affects both sides similarly can leave the gap small. The diagnostic depends on how a predictor trained under one set of conditions behaves under another.

Other fields deliberately split data using outside knowledge of the conditions under which predictions must generalize. The paper mentions splitting molecules by scaffold and grouping cell examples by experimental batch. A scaffold split uses shared molecular structure to decide which examples stay together. A batch split uses the circumstances of data production. Such partitions can test a specific kind of change when the relevant information is available. Learning to Split takes the partition itself as something to infer when investigators lack a suitable rule or suspect that a known rule covers only part of the problem. [WILDS](https://md.research.elamur.ai/free/en/papers/koh-2020-wilds-benchmark-wild-distribution-shifts/)

#### A training problem inside a search problem

The method belongs to a family of problems with an inner and an outer optimization. In the inner problem, a predictor fits a training subset. In the outer problem, the Splitter changes the assignment of examples after seeing what the inner training run could generalize to. Earlier work cited by the authors uses this arrangement to learn things such as starting parameters or example weights that help a learner. Here the two jobs pull in opposite directions. The Predictor tries to learn the task from the data it receives, and the Splitter seeks conditions under which that learning transfers poorly. The authors connect these ingredients to earlier work on [fast adaptation through meta-learning](https://md.research.elamur.ai/free/en/papers/finn-2017-model-agnostic-meta-learning-fast/), [sample weighting](https://md.research.elamur.ai/free/en/papers/shu-2019-meta-weight-net-learning-explicit/), and [adversarial training](https://md.research.elamur.ai/free/en/papers/goodfellow-2014-generative-adversarial-nets/).

The outer problem needs constraints because an adversary has easy ways to manufacture a failure. It can deprive the Predictor of examples or arrange for the Predictor to see only some of the target labels. Such partitions would tell an investigator little about how common and uncommon kinds of evidence are distributed within each label. The challenge is to keep the training subset substantial, preserve the broad mix of task labels, and let the learning procedure find which combinations of input and label can expose a gap under those conditions.

### The method, step by step

#### How a partition becomes a training signal

Learning to Split starts with labeled examples and a Splitter that can assign a probability to either destination for each example. The Splitter sees the input together with its recorded label. The label is useful because a feature can have a different meaning for splitting depending on the class it accompanies. Snow beside a polar bear might be a common pairing, while snow beside a samoyed could be a rarer pairing. The Predictor has a separate job. It sees the input and tries to recover the label, using labels as supervision for training and as an answer key when its performance is measured.

In an outer iteration, the authors sample a partition using the Splitter's current probabilities. They initialize a new Predictor and fit it to the training side. Within that side they reserve a random 1/3 for early stopping, which means choosing when to stop fitting by watching accuracy on examples withheld from the Predictor's parameter updates. The reserved portion stays conceptually inside the learned training side. The learned test side is the source of feedback for changing the split.

The Predictor then classifies the examples assigned to the test side. Correct examples supply a signal to make training membership more likely, and errors supply a signal to favor test membership. If a test subset contains both easy and hard examples, shifting the easy ones out can concentrate the errors. This creates weak supervision for the Splitter. Every test example generates a local target, though there is no direct annotation saying that the example belongs to an underrepresented group.

The Splitter learns a rule from that feedback and from the constraints on its assignments. The rule can generalize across inputs as well. For instance, a feature and label combination associated with errors on the test side can influence how the Splitter treats similar examples that happened to be on the training side. The assignments for those training examples were absent from the current error calculation. The learning step can still affect their probabilities because the same parameters process every example.

After the Splitter has changed, the old Predictor has already seen examples from a potentially different training subset. Starting a new Predictor preserves the meaning of the comparison. The next round measures what can be learned from the current training side, using the same initialization procedure without carrying forward task training from the previous partition. Where the authors use pretrained weights, this means returning to those weights and fitting again. [Fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/)

One iteration of Learning to Split The steps in order.

The cycle matters because difficulty depends on the training data. An example the Predictor gets wrong in the current round might become easy after related examples enter training. Another example can become harder when the evidence for its class changes. The Splitter's targets therefore come from a particular Predictor fitted to a particular partition. Resampling and refitting let the procedure search for a partition whose difficulty persists when the Predictor learns under the new conditions.

#### The assignment probabilities

```
P(z⃗ ∣ Dᵗᵒᵗᵃˡ) = ∏ᵢ₌₁ⁿ Pₛ(zᵢ ∣ xᵢ, yᵢ)
```

Here `Dᵗᵒᵗᵃˡ` is the entire collection, `n` is the number of labeled examples, and `i` indexes those examples from `1` through `n`. The input and label at position `i` are `xᵢ` and `yᵢ`. The variable `zᵢ` is the membership decision, with `1` denoting training and `0` denoting testing. The vector `z⃗` collects all these decisions. `Pₛ` is the probability assigned by the Splitter, and `P` on the left is the probability of the complete assignment. The vertical bar indicates conditioning, and `∏` multiplies the individual probabilities.

The product expresses the authors' simplifying assumption that draws for individual examples are independent given their scores. Sampling uses each example's own probability. The quality of a split still depends on the joint outcome. The examples collectively determine what the Predictor can learn, and the regularizers aggregate the Splitter's scores across examples. Independent draws can therefore produce a partition shaped by evidence from the dataset as a whole.

The Predictor uses a different conditional distribution. It assigns probabilities to task labels given inputs alone. Its prediction for an example is the label with the highest probability.

```
ŷᵢ = argmaxᵧ Pₚ(y ∣ xᵢ)
```

In this expression, `xᵢ` is the example's input and `y` ranges over the possible labels. `Pₚ` is the fitted Predictor's distribution over those labels, and the conditioning bar marks its dependence on the input. `argmax` returns the label at which the probability is greatest. The hat in `ŷᵢ` marks the predicted label and distinguishes it from the recorded label `yᵢ`.

#### Keeping the partition informative

The Splitter's objective includes a penalty on the expected sizes of the subsets. To compute it, the authors first average the assignment probabilities over the dataset.

```
P(z) = (1 / n) ∑ᵢ₌₁ⁿ Pₛ(zᵢ = z ∣ xᵢ, yᵢ)
```

The symbol `z` is a possible destination, with `1` for training and `0` for testing. `P(z)` is the resulting marginal probability of that destination across the dataset. The sum `∑` adds the Splitter probabilities for indices `i` from `1` to `n`, and division by `n` turns the sum into an average. `Pₛ(zᵢ = z ∣ xᵢ, yᵢ)` is the probability of drawing that destination for example `i`, given its input and label.

This marginal describes the expected fraction assigned to each side. A draw of the whole partition can differ from its expected size. Keeping the calculation in terms of probabilities also gives the Splitter a smooth quantity to optimize as its output scores change.

```
Ω₁ = Dₖₗ(P(z) ∥ Bernoulli(δ))
```

`Ω₁` is the size penalty. `Dₖₗ` is Kullback–Leibler divergence, which measures how far one probability distribution departs from a reference distribution. The double bar `∥` separates the distribution being compared from the reference. `P(z)` is the Splitter's destination marginal, and `Bernoulli(δ)` is the reference distribution for the binary assignment. Its parameter `δ` gives the target probability of destination `1`, the training side.

The authors fix `δ` at `0.75` in the experiments. They motivate this setting with earlier work they cite in connection with minority groups of 25 percent. The value expresses a preference in the objective. Its influence competes with the other terms, so it should be read as a target for the allocation probabilities rather than a measurement of how many examples any actual test split contained.

The second penalty concerns the distribution of labels. It compares the expected label mixture of each side with the label mixture of the whole collection. To compute the training-side mixture, the method adds up the assignment probabilities contributed by examples of a given label and divides by the total probability mass going to training.

```
P(y ∣ z = 1) = (∑ᵢ 𝟙ᵧ(yᵢ) Pₛ(zᵢ = 1 ∣ xᵢ, yᵢ)) / (∑ᵢ Pₛ(zᵢ = 1 ∣ xᵢ, yᵢ))
```

`P(y ∣ z = 1)` is the expected share of label `y` among examples assigned to training. The indicator `𝟙ᵧ(yᵢ)` has value `1` when the recorded label `yᵢ` equals `y` and `0` otherwise. Each `∑ᵢ` runs over the dataset. In the numerator, the indicator retains the contribution of examples with the chosen label. In the denominator, the entire sum of training probabilities contributes. `Pₛ` uses the input `xᵢ` and its label `yᵢ` to give the probability of the training assignment, denoted by `zᵢ = 1`.

```
P(y ∣ z = 0) = (∑ᵢ 𝟙ᵧ(yᵢ) Pₛ(zᵢ = 0 ∣ xᵢ, yᵢ)) / (∑ᵢ Pₛ(zᵢ = 0 ∣ xᵢ, yᵢ))
```

The destination in this expression is `0`, the test side. `P(y ∣ z = 0)` is the expected share of label `y` there. Each `∑ᵢ` again covers the dataset, `𝟙ᵧ(yᵢ)` selects the recorded labels equal to `y`, and `Pₛ(zᵢ = 0 ∣ xᵢ, yᵢ)` supplies the expected test membership of input `xᵢ` with label `yᵢ`. The denominator now contains the total probability mass going to testing.

```
Ω₂ = Dₖₗ(P(y ∣ z = 1) ∥ P(y)) + Dₖₗ(P(y ∣ z = 0) ∥ P(y))
```

`Ω₂` is the label-mixture penalty. Each `Dₖₗ` compares a split's expected distribution of labels with the same reference, `P(y)`, the empirical label distribution of the full dataset. `P(y ∣ z = 1)` and `P(y ∣ z = 0)` respectively describe training and testing membership, and `+` adds the penalties for the two destinations. The common reference makes a split costly if either destination has an unusual balance of the classes.

The second term constrains the label frequencies. It leaves room for the relationship between labels and features to change. A test side can have an ordinary share of contradiction labels while containing many negated examples labeled as entailment or neutral. The training side can have a similar share of contradictions while making negation a dependable sign of that class. This is how the regularities leave space for the type of shift the authors are looking for.

#### Learning from individual errors

```
Lᵍᵃᵖ = (1 / |Dᵗᵉˢᵗ|) ∑₍ₓᵢ, ᵧᵢ₎ ∈ Dᵗᵉˢᵗ CE(Pₛ(zᵢ ∣ xᵢ, yᵢ), 𝟙ᵧᵢ(ŷᵢ))
```

`Lᵍᵃᵖ` is the Splitter loss based on the Predictor's test behavior. `Dᵗᵉˢᵗ` is the sampled test subset, and `|Dᵗᵉˢᵗ|` is its number of examples. `∈` marks the pairs included in the sum, which averages the loss over that subset. `CE` is cross-entropy, a loss that decreases as the Splitter assigns more probability to the target destination. Its first argument is the distribution `Pₛ` for the decision `zᵢ` given input `xᵢ` and label `yᵢ`. Its second argument is the correctness indicator, which equals `1` when `ŷᵢ`, the Predictor's answer, matches `yᵢ`, and `0` when the two differ. Those indicator values match the codes for training and testing membership.

The name of the loss refers to the gap the authors want to induce. The expression itself uses a separate outcome for each current test example. It rewards a greater training probability for correctly classified items and a greater test probability for incorrectly classified ones. A confidently wrong prediction and a narrowly wrong prediction supply the same target. The ordinary classification labels are still essential, since correctness can be established only by comparing the predicted class with a recorded one.

```
Lᵗᵒᵗᵃˡ = Lᵍᵃᵖ + Ω₁ + Ω₂
```

`Lᵗᵒᵗᵃˡ` is the objective minimized by the Splitter. `Lᵍᵃᵖ` comes from the per-example correctness feedback, `Ω₁` encourages a substantial training subset, and `Ω₂` encourages a comparable label mixture on both sides. The plus signs indicate the unweighted addition the authors use in their experiments. The paper leaves different weights as a possibility.

Using correctness gives the algorithm a way to avoid differentiating through a full Predictor training run. The authors discuss taking gradients through the inner optimization, which would require more expensive higher-order calculations. Fitting the Predictor in smaller episodes could reduce that cost, but the authors point out that the size of an episode would shape the feedback received by the Splitter. They also considered a reinforcement-learning formulation, in which a reward scores the split as a whole. In their preliminary experiments, the resulting scalar feedback was too sparse to produce meaningful partitions. The classification outcomes used in the final procedure give the Splitter one target for each example it currently tests. [Matching Networks for One Shot Learning](https://md.research.elamur.ai/free/en/papers/vinyals-2016-matching-networks-one-shot-learning/)

Suppose the authors had used these targets as the partition itself. The number of errors would then decide the size of the test side, and classes that the Predictor found especially difficult could become disproportionately common there. Also, examples already assigned to training would have escaped the test-side assessment. A learned Splitter can update its treatment of those examples through the shared assignment rule and trade the correctness signal against both penalties. The result depends on the patterns the Splitter can represent and on how the Predictor behaves after the data are reassigned.

#### Implementations across input types

The architecture follows the data. For reviews, the paper uses pretrained FastText word representations and a text convolutional network. Convolution applies the same filters across local spans of a review. The filters cover spans of sizes `3, 4, 5`, with `50` filters for each size. Max pooling keeps each filter's strongest response and forms a `150`-dimensional review representation. The classification head is a multilayer perceptron, a stack of learned transformations, with `150` hidden units and a dropout rate of `0.1`. Dropout is a training regularizer that temporarily suppresses some activations. The Splitter uses the same kind of head with the binary label appended to its review representation. Its encoder has separate parameters from the Predictor's. [Word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/)

For Tox21, the input representation is an existing description of each molecule. It combines `801` dense features, which include quantities such as molecular weight and solubility, with `272,776` sparse features describing chemical substructures. The authors center and scale the features before fitting. Each network has `1024` units per hidden layer and uses dropout at `0.3`. The Predictor operates on the molecular features, while the Splitter also receives the observed class. Nothing in the core assignment rule requires that the feature vector come from text or images.

For CelebA and Waterbirds, the authors start with ResNet-50 weights pretrained on ImageNet. The image encoder produces a `2048`-dimensional representation. The Predictor maps that representation to the label scores through a linear layer and uses softmax to turn the scores into probabilities. The Splitter appends the image label and uses a separate encoder of the same architecture. Resetting the Predictor at the start of a round returns it to the pretrained ResNet-50 starting point, which is independent of the task-specific training on earlier partitions.

For MNLI, the authors start with bert-base-uncased. The Predictor takes the final-layer representation associated with the `[CLS]` token and uses it to classify the pair. The Splitter adds the observed label as a one-hot vector, a representation with one active position identifying the class. The BERT encoders of the two components have separate parameters. The division of roles is the same as in the image experiments even though the encoders work on a different kind of evidence. [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/)

The review and molecule experiments use a batch size of `200` and Adam without weight decay. Waterbirds and CelebA use Adam with batches of `100` and weight decay. Weight decay regularizes the fit by discouraging large weights. MNLI uses AdamW with batches of `100` and a learning rate that starts at `0.0002` and decreases linearly. The authors update the Splitter using mini-batches, which are subsets of the available examples used for an optimization step. [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/) and [AdamW](https://md.research.elamur.ai/free/en/papers/loshchilov-2017-decoupled-weight-decay-regularization/)

Within each round, the Predictor's early-stopping rule monitors accuracy on the reserved portion of the learned training side. The rule checks whether accuracy has improved in the past `5` epochs, where an epoch is a pass through the relevant training examples. The Splitter has a separate stopping criterion based on improvement in its total loss relative to the preceding `5` epochs. These procedures govern different parts of the process. One controls how far the Predictor fits a fixed partition, and the other controls how far the Splitter fits the feedback it has received.

#### Turning the partition into groups for robust training

The paper's second procedure takes the learned Splitter and uses it to train a separate classifier. Each labeled example gets a sampled assignment from the Splitter.

```
ẑᵢ ∼ Pₛ(zᵢ ∣ xᵢ, yᵢ)
```

`ẑᵢ` is the sampled assignment for example `i`, and `∼` means it is drawn from the distribution on the right. `Pₛ` is the learned Splitter's distribution over `zᵢ`, the possible membership decisions, conditional on input `xᵢ` and label `yᵢ`. The two possible assignments preserve the distinctions the Splitter learned during its search.

The authors cross this assignment with the target label. For instance, the Waterbirds grouping has separate groups for waterbirds with each assignment and landbirds with each assignment. At this stage, calling one assignment “test” describes its origin. Both assignments supply examples to the robust classifier's training set. The role of the assignment is now to distinguish subsets whose predictive characteristics might differ within a class.

The robust procedure is group distributionally robust optimization, abbreviated group DRO. At training time it aims to reduce the largest loss across the supplied groups. At validation time the authors measure accuracy for each analogous learned group and select using the least accurate group. They apply the Splitter to the labeled validation examples to obtain the assignments. Early stopping for this stage uses a window of `10` epochs without improvement in the validation metric. The authors also search over weight decay because group-based optimization can still produce classifiers that memorize training data.

At final test time, the experiments measure accuracy on benchmark groups defined using the known bias attributes. For CelebA, these groups cross hair color with the recorded gender attribute. The Splitter's groups were proxies for training and selection, whereas the test outcome measures whether the improvement reaches the groups the researchers set out to evaluate. Keeping the roles of the learned grouping and the benchmark grouping clear is essential to interpreting the robustness claim.

### Experiments and results

#### The discovery datasets

The discovery experiment begins with a comparison against a random partition. If learning a split has found a change in which features predict a label, a Predictor can perform well on the training side yet lose accuracy on the test side. A random split gives an estimate of the gap ordinarily seen with the same task and representation. For both splitting approaches the authors reserve `1/3` of the corresponding training side for early stopping. They also inspect label frequencies to check that the reported failures occur while the label mixtures stay similar.

The beer-review data come from BeerAdvocate. A single review can describe the appearance, smell, and other aspects of a beer, and an aspect label expresses sentiment about the corresponding property. The main dataset discussion names look and aroma. The appendix also describes a palate task. For each sampled aspect task, the paper gives `2,500` positive and `2,500` negative reviews, with an average length of `128.5` words per review. The appendix reports an average correlation of `0.635` between ratings of different aspects. That association can support shortcuts when a review's ratings agree and lead to errors when one aspect departs from the others. The aspect-based setup follows earlier work on [Rationalizing Neural Predictions](https://md.research.elamur.ai/free/en/papers/lei-2016-rationalizing-neural-predictions/).

Tox21 supplies `12,707` chemical compounds. The chosen target is the outcome for the androgen receptor, abbreviated AR, with active and inactive as the labels. The collection records other binary assay outcomes for the compounds. These additional outcomes give the authors a way to examine the resulting partition after training. The Splitter uses the molecular input and the AR label. The analysis asks whether compounds sharing the same AR label are allocated differently depending on an additional assay outcome.

The Waterbirds dataset places cropped bird images against land or water backgrounds. The label identifies a waterbird or a landbird. In the official training data, `95%` of the waterbirds have water backgrounds, and `95%` of the landbirds have land backgrounds. The official validation and test sets use an even allocation of background types within each bird category. The authors pool the official training and validation data for split discovery, giving `5994` examples according to the main dataset description. For the robustness experiment, the official test set supplies groups defined jointly by species category and background.

CelebA supplies face images with annotated attributes. The target is whether the hair is blond. The official training set contains `162,770` examples, and `0.85%` of that set consists of examples labeled both male and blond-haired. As the paper explains, a classifier can treat cues to the recorded gender attribute as evidence about hair color. The official test set permits direct measurement of accuracy for each combination of the target and gender. The main dataset description identifies the official training set for discovery, while the appendix describes discovery using the training and validation sets.

MNLI presents a premise and a hypothesis and asks the classifier to judge their relationship. Entailment means that the premise supports the hypothesis, contradiction means it conflicts with it, and neutral covers pairs for which the premise leaves the hypothesis open. The corpus contains `433k` sentence pairs. The paper works with benchmark partitions created by regrouping the original training and validation examples into a `50/20/30` training, validation, and test split. Its main dataset section names `206,175` training examples for discovery, and its appendix also mentions validation data in the discovery pool. [MultiNLI](https://md.research.elamur.ai/free/en/papers/williams-2018-broad-coverage-challenge-corpus-sentence/)

Negation gives the MNLI analysis a concrete attribute to examine. Examples with words such as *nobody* or *never* frequently carry the contradiction label in the source dataset, according to earlier work cited in the paper. But deciding whether the premise contradicts the hypothesis depends on what both sentences say. The paper also identifies lexical overlap as an existing artifact associated with entailment. The benchmark group evaluation in this study uses negation, with groups defined by the task label and the presence or absence of the relevant words.

The appendix gives the dataset locations for these experiments and the digit experiment. The authors also identify a repository for the code and data accompanying Learning to Split.

#### How difficult the learned tests are

The authors report larger train-to-test accuracy gaps for the learned partitions across all `6` tasks in their discovery comparison. They also observe similar label distributions on the two sides of those partitions. Together these observations matter because a comparison based solely on test accuracy could favor a partition that simply withholds an entire class. The reported similarity in label frequencies supports the intended interpretation that predictors are having difficulty transferring across different kinds of examples within the labels.

The paper gives a numerical illustration for MNLI. A BERT-based predictor reaches `79.4%` on the random test split and `27.8%` on the learned test split. Each result comes from fitting to the corresponding training subset. The learned training side reaches `93.6%` accuracy in the comparison reported in the figure caption, where the authors give a learned-split generalization gap of `65.8%`. The training and test accuracies help clarify what the method induced. The Predictor could learn a rule that worked well within its training side and still make many mistakes under the learned test conditions.

BERT-based Predictor test accuracy on MNLI by splitting method The learned partition creates a harder test for the Predictor.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Random split | 79.4 |
| Learning to Split (this paper) | 27.8 |

Lower accuracy is the desired outcome for the Splitter in this comparison. The two bars measure how difficult the constructed tests are for their respective Predictors. In the robustness experiment that follows, better performance means higher accuracy on the test groups. These experiments use opposite directions of improvement because the learned partition first serves as a diagnostic and then as information for making a separate classifier more reliable.

The paper reports the pattern across the discovery tasks using a cross-task figure. MNLI supplies the printed accuracy example. The cross-task conclusion is about the relative size of the generalization gaps and the similarity of the label mixtures. The authors then examine selected attributes to explain why the learned tests might be difficult. That additional analysis supplies evidence a gap alone cannot supply about the identity of the feature involved.

#### How the robustness comparison is organized

The automatic debiasing experiment compares classifiers on Waterbirds, CelebA, and MNLI. It reports average accuracy across the held-out test examples and worst-group test accuracy. To obtain the latter, the researchers measure accuracy separately for each benchmark group and report the lowest score. In Waterbirds the groups distinguish label and scene background. In CelebA they distinguish label and recorded gender. In MNLI they distinguish label and negation. The test groups can vary in how many examples they contain, so a high test average can coexist with a low accuracy for one of them.

A conventional ERM classifier provides the average-loss baseline. Group DRO with known attributes offers a reference for the setting in which group membership is supplied directly. The paper also discusses methods that infer how to reweight or group data without using bias annotations at training time. CVaR DRO gives greater influence to examples with the highest training losses. LfF and JTT use the mistakes of an initially biased predictor to guide a separate training procedure. EIIL infers environments from an ERM predictor and applies group DRO to those environments.

A significant part of the comparison concerns validation. A method can omit bias annotations from fitting the final classifier and still need them to choose its settings or stop training. If the validation set carries group labels, the researcher can use group accuracy directly to make those choices. The paper asks what happens when that information is available and what happens when it is absent. It reports using matched representation backbones and a common hyper-parameter search space for the methods it compares, with ResNet-50 for the image tasks and bert-base-uncased for MNLI.

When validation examples carry bias annotations, the authors introduce a baseline that learns to predict the bias attribute from those examples. It then predicts the attribute on the training data, where the outputs can be crossed with the task labels to form groups for group DRO. The proposed baseline turns a resource already available for validation into direct supervision for a useful intermediate task. The reported validation collection sizes are `1199` examples for Waterbirds, `19867` for CelebA, and `82462` for MNLI. The authors use these counts to explain why fitting an attribute predictor is a substantial option in this setting.

The paper reports `94.8%` accuracy for the supervised Waterbirds background predictor, `97.7%` for the CelebA gender-attribute predictor, and `99.9%` for the MNLI negation predictor. These are accuracies on the respective auxiliary attribute-prediction tasks. The downstream finding is that group DRO using those predictions outperforms the earlier debiasing methods by `4.8%` on average in worst-group performance across the benchmarks when validation annotations are allowed. The attribute accuracy and the classifier's group accuracy measure different stages in this pipeline.

The condition with unknown bias at both stages removes the supervision on which that baseline depends. For Learning to Split, it leaves ordinary task labels for training and validation, with the learned assignments furnishing the proxy groups. According to the authors, earlier methods did not outperform the ERM baseline under this condition. Group DRO with learned assignments gives the best worst-group accuracy on each of the three benchmarks in this comparison. The reported advantage over the previous methods is `23.4%` on average in worst-group test performance.

The two aggregate improvements describe different annotation regimes. The `4.8%` result concerns a method that learns the known bias attribute using validation annotations. The `23.4%` result concerns learning with proxy groups when those annotations are withheld throughout fitting and selection. The standard test annotations remain available to the researchers to score both comparisons. This design tests whether the information available at training and validation can improve performance on a separately defined evaluation criterion.

### What the ablations show

#### What the controlled comparisons can establish

The paper reports no formal component-removal ablation. Its analyses compare random and learned partitions, track the search through training, examine known attributes within the resulting splits, vary the availability of validation bias annotations, and test the method on deliberately corrupted labels. These comparisons answer different questions about the diagnostic. The random split establishes how much harder the constructed test can be. The attribute analyses indicate which regularities may contribute to that difficulty. The corrupted-label experiment shows that the same search objective can respond to a different source of prediction failure.

The main comparison keeps the broad label mixtures similar while changing how examples are allocated. It shows that the assignment search can produce a large gap under those conditions. The paper does not report a separate run with the size penalty removed or one with the label penalty removed. The motivation for those terms comes from clear ways a split could become trivial, and the observed label frequencies confirm that the final partitions satisfy the intended qualitative behavior. The share of the final performance change attributable to either penalty remains unmeasured.

The learning curve tracks the train-to-test gap over outer iterations. Its error bars represent standard deviation across `5` random seeds, so the curve gives some information about how the gap varies with repeated runs. The authors observe a generally increasing gap as the Splitter is refined and report that the procedure typically converges within `50` outer-loop iterations. Because each round fits a new Predictor, the trend means that later partitions tend to remain harder after a fresh fit. It also indicates the cost of this analysis relative to fitting a single ERM classifier. A learning curve under the chosen procedure does not isolate the contribution of reinitialization.

#### Checking what the partition separates

For Waterbirds, the learned training side strengthens the association between landbirds and land backgrounds. The test side weakens that association. A Predictor that assigns weight to the scenery can therefore be accurate on much of the training side and encounter cases on the test side where the background points the wrong way. This result connects the induced difficulty to an attribute the benchmark designers intentionally varied. The scene labels are used afterwards to characterize the split.

The MNLI analysis likewise compares a known attribute across subsets. On the learned training side, negation tends to accompany contradiction. On the learned test side, negated examples tend to carry the entailment or neutral label. An overall count of contradictions would give little information about that change. Looking within the negated examples reveals a different relationship between words and labels. This supports the authors' account of why the test split is hard for a class of rules that work on the training side.

Tox21 gives a more specific conditional comparison. Across compounds labeled active for AR, the learned assignment puts `58%` in training and `42%` in testing. Among compounds active for both AR and ATAD5, the allocation is `17%` to training and `83%` to testing. In both cases the target label is AR active. The comparison indicates that the test side disproportionately contains the subset with the additional activity. The authors also identify AhR as associated with the split. These properties were available for examination afterwards and were outside the information supplied as labels to the splitting procedure.

These are association checks. They establish that the learned assignments track particular recorded attributes under the conditions examined. The mechanism can still involve correlated features, and a partition can reflect several regularities at once. The Waterbirds example is especially easy to interpret because the benchmark has a deliberate background construction. In the molecular result, the allocation shows a pattern associated with assay outcomes and leaves the predictive role of individual molecular features unresolved.

#### Testing what happens when validation annotations disappear

The annotation comparison exposes how much of a debiasing evaluation can depend on model selection. A validation score can favor classifiers that do well on a named group only when that group can be identified in the validation examples. The supervised bias-prediction baseline shows a second use for the same information, supplying inferred group memberships in training. Its strength gives the authors a reason to distinguish the setting in which validation annotations are allowed from the setting in which all development stages operate without them.

Learning to Split uses its own group scores during validation. A classifier that performs adequately across the inferred groups can then be selected without direct access to the benchmark attribute. The paper's additional analysis describes the induced worst-group score as a surrogate for the benchmark criterion. The held-out results test the consequence of using that surrogate. The outcome supports its use on these tasks, while its reliability depends on whether the inferred grouping captures difficulties that matter for the final evaluation.

#### Distinguishing a hard example from a corrupted label

The authors use the official MNIST training collection, with `60,000` examples and `10` digit classes, to examine label noise separately. They deliberately corrupt labels at several rates. Because the researchers control the corruption, they know which recorded labels have changed, even though the Splitter sees the data in their corrupted form. This gives the analysis an independent answer key for a task that looks, to the splitting procedure, like another search for a difficult test subset.

```
P(ỹ ∣ y) = { 1 − η if ỹ = y; η / 9 if ỹ ≠ y }
```

`P(ỹ ∣ y)` is the probability of the resulting label `ỹ` given the original clean label `y`. The noise ratio `η` is the probability of replacing the original class. The expression `1 − η` gives the probability of leaving it intact. The alternative probability `η / 9` applies to each different class, with `9` denoting the number of classes other than the original one. The symbols `=` and `≠` distinguish the two possibilities for the recorded label.

The authors use the same size target, `δ = 0.75`, throughout the noise experiment. They assess whether the learned test subset can recover the corrupted examples. For this purpose an example assigned to testing counts as flagged. The two metrics describe how cleanly the flag identifies corruption and how much corruption the flag captures.

```
precision = Cᵗᵉˢᵗ / Nᵗᵉˢᵗ
```

`Cᵗᵉˢᵗ` is the number of deliberately corrupted examples assigned to the learned test side. `Nᵗᵉˢᵗ` is the total number of examples assigned to that side. Precision is the fraction of flagged examples whose labels were corrupted.

```
recall = Cᵗᵉˢᵗ / Cᵗᵒᵗᵃˡ
```

`Cᵗᵉˢᵗ` again counts corrupted labels on the test side. `Cᵗᵒᵗᵃˡ` counts corrupted labels anywhere in the dataset. Recall is the fraction of all corruption concentrated in the flagged subset.

The authors compare with an oracle that knows exactly which labels were changed. The comparison uses the test size produced by Learning to Split at each corruption rate. When the number of corrupted examples fits within that size, the oracle can recover all of them. Its recall is then `100%`, and its precision is the number of corrupted examples divided by the test size. When there are more corrupted examples than the test side can hold, the oracle can fill it exclusively with those examples. Its precision is then `100%`, and its recall is the test size divided by the total number corrupted. This capacity constraint gives the comparison meaning even when the learned split sizes vary.

The authors report that Learning to Split approaches the oracle across the tested noise rates. At `η = 0.1` and `η = 0.2`, it puts `>99%` of the corrupted annotations on the learned test side. These settings concern recall. There is still room on that side for some clean examples, which reduces precision. At `η = 0.7` and `η = 0.8`, more than `99%` of the learned test side is corrupted, reported as `>99%` in the paper. These settings concern precision. The chosen test subset has insufficient capacity to include all the corruption, which reduces recall.

This experiment explains why an apparently successful search for a hard split can need further investigation. When a test subset mainly contains valid but uncommon examples, group-based training can help the classifier handle those cases. When the subset concentrates incorrect annotations, lowering its loss can put pressure on the classifier to fit those annotations. Learning to Split exposes a structured failure of prediction under either condition. The intervention depends on understanding which condition produced the failure.

### Limitations

#### Limits the authors identify

The authors describe the partition as a way to investigate potential bias. Its output is an assignment of examples, and its main diagnostic is a change in accuracy. A judgment about fairness requires deciding which distinctions are relevant, which people or situations a system should serve, and what failures matter for that use. Group DRO can improve measured performance across the designated benchmark groups. The paper's evaluation gives that claim a specific scope.

The method also depends on the support of the dataset, the kinds of examples actually represented in the collection. If every samoyed appears on grass and every polar bear appears on snow, no internal partition can create polar bears on grass. The dataset can contain a strong association between the background and species while lacking the combinations needed to demonstrate transfer failure. The authors' example distinguishes a rare group, for which the search may uncover evidence, from an absent group, for which the experiment has no relevant observations.

The authors explicitly warn about label noise. A Splitter that sees an input together with its recorded label can learn that combinations inconsistent with the predominant labeling pattern make good test examples. The digit experiment deliberately creates that situation and confirms that the algorithm can recover many of those examples. In naturally collected data, the investigator generally lacks the original clean labels used to score the experiment. A large gap leaves open whether the learned test subset contains valuable exceptions, recording errors, or a mixture of the two.

Another limit is the treatment of several independent sources of bias. The algorithm as evaluated produces a partition. A dataset may have distinct sources of difficulty that would be easier to see in different partitions. Finding a particularly strong split can make one pattern prominent while giving little insight into other ones. The authors identify the search for diverse splits as future work and use gender and race as examples of attributes that could contribute separately.

The paper formulates and evaluates the main procedure for classification. The authors outline a regression extension that would rank test examples by squared prediction error to generate feedback. A continuous target has no simple equality-based correctness indicator like the one used in classification. The suggested extension gives an idea of how the signal could change. The reported experiments establish the behavior of the classification procedure.

#### Further limits of the experimental setup

The difficulty of a partition is measured using a particular Predictor. Its representation affects which features it can learn, and its training procedure affects which regularities it is likely to exploit. Reinitialization gives a fresh measurement under the specified fitting conditions. It leaves open how readily a different architecture or representation could learn from the same training subset. The experiments establish that the search works with several task-specific architectures, while each reported gap remains tied to its task and fitting procedure.

Both regularity terms are soft penalties. They operate on the assignment probabilities and admit tradeoffs with the correctness loss. The method can therefore favor expected sizes and label margins without enforcing exact values in a sampled realization. Similar label frequencies also allow many kinds of shift besides the attributes discussed in the paper. The constraints make two trivial explanations less plausible, while interpreting the remaining difference requires examining the composition of the subsets.

The learned test side participates in the fitting of the Splitter through Predictor feedback. It is a stress test developed from the available labeled collection. Its accuracy characterizes a partition that the algorithm sought out, so the reported gap does not estimate how frequently or how severely the same failure will arise in an independently collected population. The robustness experiment uses a separate benchmark test for a related but distinct claim, namely whether training with the learned groups improves the measured outcome on known groups.

Group DRO can only optimize the groups it receives. Crossing predicted split membership with the label can gather useful examples in a common group, but a proxy group may mix several mechanisms or distribute members of one benchmark group across destinations. The benchmark robustness results indicate that the proxy is effective on the reported tasks. They leave open how well its validation score tracks other definitions of worst-group performance, particularly when the most consequential group has very few examples.

There are also ambiguities in the paper's descriptions of the discovery pools. For CelebA and MNLI, the main dataset descriptions refer to training data, while the appendix says that the authors apply the discovery procedure to training and validation data. The review discussion in the main text names look and aroma, while the appendix also lists palate. These distinctions matter when reproducing the exact pools and task count. They do not change what the reported MNLI accuracy comparison measures or the distinction between proxy groups used for selection and benchmark groups used for scoring.

Finally, the convergence observation describes the runs in the paper. An outer iteration requires fitting a Predictor and updating a Splitter, so the search has costs beyond an ordinary training run. The curve shows the gap developing over repeated iterations. It leaves open whether a cheaper approximation would find equally informative partitions, or whether any particular run has found the hardest possible partition subject to the intended constraints.

### What came after

The later work *Improving the OOD Performance of Closed-Source LLMs on NLI Through Strategic Data Selection* cites Learning to Split and addresses generalization in natural language inference through data selection. Its title identifies the setting and the objective. OOD means out of distribution, referring to evaluation under conditions that differ from those represented in the data used for learning or selection. Learning to Split shows how selecting which sentence pairs go together can expose sensitivity to such a change. The later work names improved performance under distribution shift as the goal of its data selection. [Improving OOD Performance Through Strategic Data Selection](https://md.research.elamur.ai/free/en/papers/stacey-2026-improving-ood-performance-closed-source/)

The connection is clearest at the level of the experimental question. In Learning to Split, the MNLI experiment shows that the distribution of sentence pairs matters even when the overall balance of inference labels stays similar. A selection rule can change how strongly negation supports a particular label, and a classifier's measured performance changes with it. The later study's title places the selection of data at the center of another investigation of inference under distribution shift. The citation establishes that it engages with Learning to Split. Whether it uses the Splitter itself, adopts the learned partitions, or draws on the earlier result when motivating a different selection procedure remains unspecified.

## Cite

Cite as Yujia Bao and Regina Barzilay. 2022. Learning to Split for Automatic Bias Detection. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2204.13749](https://doi.org/10.48550/arxiv.2204.13749) · [arXiv 2204.13749](https://arxiv.org/abs/2204.13749)

```bibtex
@misc{bao2022learning,
  title = {{Learning to Split for Automatic Bias Detection}},
  author = {Yujia Bao and Regina Barzilay},
  year = {2022},
  doi = {10.48550/arxiv.2204.13749},
  eprint = {2204.13749},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2204.13749}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
