Elamur Research

On the Interplay between Fairness and Explainability

Paper · 2024 · Stephanie Brandl, Emanuele Bugliarello and Ilias Chalkidis

Summary

An occupation classifier can perform well overall while struggling to recognize male nurses or female surgeons. It can also highlight words that a reader would consider relevant while making more errors for people in an underrepresented group. Brandl and colleagues ask whether progress on either problem tends to help with the other. They compare changes to the way a classifier learns with changes to the way it selects evidence, then measure both group performance and explanation quality for each approach.

The study uses two English text classification tasks. BIOS assigns medical occupations to short biographies and allows comparisons by gender. ECtHR uses the facts of court cases to forecast which human rights provision was violated and allows comparisons by the defendant state’s region. The authors measure fairness through the scores of each group, the score of the worse-performing group, and the gap between groups. For interpretability, they ask how much useful evidence a selected passage preserves and how closely the selection matches a reference rationale. In BIOS, the references are words selected by people. In ECtHR, the references are automatically extracted paragraphs.

The results depend on what is measured. In the ECtHR test set, Spectral Decoupling raises the lower of the two group macro-F1 scores from 83.1 to 84.2, while the reported gap grows from 0.2 to 2.9. Training a classifier to predict from selected paragraphs can bring its selections closer to the reference rationale. The strongest ECtHR result for reference overlap is 57.1, compared with 48.8 for the ordinary classifier, but the worse-performing group also loses ground in that comparison. In BIOS, the ordinary classifier has higher reference overlap and higher overall macro-F1 than any of the classifiers trained to predict from selected words.

The authors also test whether reducing signs of bias improves performance across groups. Removing overt gender cues helps substantially when the BIOS training biographies have been deliberately chosen to make gender a shortcut for occupation. On ordinary BIOS, the same intervention makes gender harder to predict from the learned text representations, yet yields a lower worst-group score and a larger gap than ordinary training. Across the settings studied, the authors find no consistent transfer between gains in empirical fairness and gains in explanation quality. The results also show why the measures within each of those goals need to be read together.

Deep dive: On the Interplay between Fairness and Explainability

This study tests whether fairer text classification leads to better explanations, using occupation labels and human rights cases. · about 35 minutes to read

The problem and its context

What it means for a classifier to work across groups

A classifier trained on biographies is rewarded for assigning the correct occupation. The training objective gives it no direct reason to prefer a description of someone’s professional responsibilities over a pronoun that happens to be associated with the occupation in its training examples. Both can inform a prediction. The practical difference appears when the association changes. A system that treats gender as evidence of an occupation may have particular difficulty on biographies from a group that is uncommon in that occupation. The paper uses this kind of failure to ask what performance looks like once the examples are separated by group and label.

The authors call their target empirical fairness. It concerns how well the classifier performs for different groups on the task it was trained to solve. They distinguish it from representational fairness, which concerns how groups or attributes are represented in the data or in learned representations. Making training examples more evenly distributed is a change to the learning conditions. Whether male and female biographies then receive equally accurate occupation predictions is a question about the resulting classifier. The paper draws on earlier work that had already questioned whether better data parity or weaker associations would reliably produce better downstream parity. Its performance-centered approach follows prior work on fairness through group performance or risk. Fairness Without Demographics in Repeated Loss Minimization

The distinction matters because there are several ways to obtain a smaller performance gap. The group with the lower score might improve, the group with the higher score might decline, or both scores might move. A gap on its own cannot distinguish those cases. Conversely, both groups might improve while the gap grows. The authors therefore examine whether the group with the lowest score gains ground and whether the groups move closer together. Their empirical definition gives each question its own measure. It does not require the two measures to rank classifiers in the same order.

The paper situates these questions in applications such as medical text processing, algorithmic hiring, and legal AI. Its experiments use occupation classification and judgment forecasting, where there is a clear target to score and a defined grouping against which to inspect errors. The authors also point to governance efforts as part of the motivation for asking how the properties of these systems can be evaluated together. A method advertised as reducing bias needs evidence about its effects on the people or entities represented by the evaluation groups. A method that makes a prediction easier to inspect needs a separate test of whether the prediction is reliable across those groups.

What an explanation can establish

The explanations in the paper take the form of rationales. A rationale points to parts of the original input that are treated as evidence for a prediction. Depending on the task and the method, those parts can be words in a biography or paragraphs in a court case. A system can assign continuous importance scores to the input or select a definite subset. A reference annotation identifies the parts judged relevant under the annotation procedure. Putting both into a form that can be located in the input makes it possible to compare their selections.

Earlier research described in the paper offers several ways to explain a prediction after it has been made. Attention weights can indicate which representations receive greater weight. Gradients can indicate where a score is sensitive to changes in internal representations or inputs. Perturbation methods examine how a prediction changes when parts of the input are altered. Each produces evidence about the behavior of an existing classifier on an example. The authors describe these as approximations to the features the classifier used and draw on earlier work that considers when such evidence warrants a claim about faithfulness. Quantifying Attention Flow in Transformers · Why Should I Trust You? · Towards Faithfully Interpretable NLP Systems

A faithful explanation reflects the basis for the classifier’s decision. The paper describes two useful tests from earlier work. Sufficiency asks whether the selected material carries enough information to support the prediction. Comprehensiveness asks whether the selection covers the material that matters. A biography may contain several independent clues to an occupation. Highlighting one of them can leave enough evidence for a convincing prediction while omitting the rest. A rationale can therefore fare differently on the two tests. The study uses a sufficiency measure for its main comparisons. ERASER

Plausibility introduces a different question. If a person marks professional activities in a biography and the classifier highlights the same words, there is agreement about where to look. That agreement is evidence of alignment with the annotation. Establishing faithfulness also requires considering what information actually reached the predictor or how its output responds to changes in the text. A perfectly plausible passage can be supplied after a decision made from a broader input. Conversely, a classifier required to use only a selected passage can base its decision on text that a reader would find unpersuasive.

An earlier response to the faithfulness problem was to build the explanation into the prediction procedure. A selector picks part of the input and a separate predictor receives that selection. Lei and colleagues introduced a framework of this kind with penalties for selections that were too long or scattered. The aim was to produce brief, coherent evidence while maintaining useful classification performance. The restriction on what the predictor sees gives the selected text a direct role in the decision. Later variants described by the paper add auxiliary predictors, for example to put pressure on the selector to capture relevant material that might otherwise be left behind. Rationalizing Neural Predictions · Learning to Faithfully Rationalize by Construction

How earlier work brought the questions together

The authors report that earlier work often used explanations to investigate fairness. An explanation can help identify a word associated with a demographic attribute, or indicate which part of a system takes part in producing biased behavior. Other studies examined whether explanations alter a user’s perception of fairness. These lines of work connect the topics in distinct ways. Finding a suspicious feature helps formulate a diagnosis. Changing people’s judgments about a system concerns their interaction with it. Neither observation by itself determines whether the underlying task scores are more evenly distributed.

The paper also describes work that evaluated both properties. In hate speech detection, Mathew and colleagues incorporated human annotations and examined both the faithfulness of explanations and performance differences across affected communities. He and colleagues used a rationale selector first to find tokens indicative of a bias attribute, then used those selections in a procedure for reducing bias in the task prediction. In the latter design, a rationale about gender can be useful because it shows which material to suppress when predicting an occupation. That role differs from offering a rationale that supports the occupation prediction itself.

Brandl and colleagues start with interventions designed for either fairness or rationale extraction and run the same set of evaluations across them. A classifier trained with balanced groups still has its explanations examined. A classifier trained to work from selected evidence still has its errors broken down by group. This design turns a general question about trustworthiness into a comparison of observable outcomes. Its central question is whether a change that improves one measured outcome also moves the other outcomes in a favorable direction.

The method, step by step

A common starting point

All of the comparisons begin with RoBERTa-base. The authors use fine-tuning to adapt a pretrained encoder to each classification task. An encoder converts text into numerical representations that a classifier can use. A classification head takes those representations and assigns a score, called a logit, to each possible label. In BIOS, the label is a medical occupation. In ECtHR, it is the provision associated with the case. The starting architecture uses a Transformer, whose contextual representations allow the interpretation of a part of the input to depend on other parts. Attention Is All You Need

For the ordinary classifier, the authors train the encoder and classification head using cross-entropy against the gold labels, the recorded answers for the task. Cross-entropy gives a larger penalty when the classifier puts less probability on the correct label. The baseline learns from the available task text and labels. It has no extra objective for changing the relative scores of demographic groups and no selector that limits prediction to a rationale. It supplies a common comparison for the interventions. BERT

The format of the input changes between tasks. A biography is short enough for the study to treat individual tokens as possible evidence. Tokens are the units into which the text is divided for processing. Court documents are long and already organized as factual paragraphs. For ECtHR, the authors use a hierarchical RoBERTa classifier and select evidence at the paragraph level. The hierarchy allows the experiment to treat a paragraph as an input unit when it searches for relevant parts of a case. The unit of the reference rationale changes along with the unit of selection. LexGLUE · Paragraph-level Rationale Extraction through Regularization

From this starting point the study follows different training paths. Fairness-oriented methods change the examples, how the examples contribute to the loss, or the incentive to make confident predictions. These classifiers yield explanations after training. The rationale extraction methods instead make selection part of classification. They learn to retain only some parts of the input for the main predictor. The authors then score the predictions and explanations from the different paths on common criteria.

Training and evaluating the text classifiers

The steps in order.

Training and evaluating the text classifiersStep 1: Prepare task labels, group attributes, and rationale references1. Prepare task labels, group attributes, and rationale referencesStep 2: Encode biographies or factual paragraphs2. Encode biographies or factual paragraphsStep 3: Train baseline, fairness, or rationale-selection variants3. Train baseline, fairness, or rationale-selection variantsStep 4: Predict labels from full text or selected evidence4. Predict labels from full text or selected evidenceStep 5: Obtain rationales from attribution scores or learned selection5. Obtain rationales from attribution scores or learned selectionStep 6: Score task performance, group differences, and rationales6. Score task performance, group differences, and rationales

Changing which examples and cues matter

Group Parity, called FAIR-GP, changes the frequency of examples presented in training. The authors identify the smaller group within each label and oversample its examples until both groups have equal representation for that label. On BIOS, this increases the contribution of biographies of male nurses and female surgeons relative to the original distribution. Doing this within each occupation matters. A dataset can have fairly similar overall totals for men and women while giving the classifier few examples of men in nursing or women in surgery. Balancing across the entire dataset would leave that problem unaddressed.

Oversampling exposes the classifier more frequently to texts it could otherwise mostly ignore. It also works with the evidence already present in the training data. A repeated biography carries the same language on each presentation, and an occupation–group combination with no examples offers nothing to repeat. That distinction becomes important in the deliberate BIOS stress test. The principle of equalizing frequencies and the practical availability of examples are separate conditions of the intervention.

Group Robust Optimization, or FAIR-DRO, adds a change to the learning objective. It also uses upsampling to provide group-balanced batches. Within training, it adapts weights for group losses to account for disparities in performance. Balancing the batches changes which examples the classifier sees together. Weighting changes how much the losses from different groups influence the update. A comparison of FAIR-GP and FAIR-DRO is therefore informative about the behavior of adding adaptive weighting to a training procedure that already includes group balancing, although the result remains a comparison of the complete implementations.

Group Neutralization, or FAIR-GN, edits the text. In BIOS, the authors replace gendered pronouns and titles with neutral forms and replace personal names with a common placeholder. Examples include using they forms for gendered pronouns and Mx for gendered titles. The revised biographies still have occupation labels. The purpose is to weaken a shortcut through conspicuous gender cues while keeping the evidence needed to recognize the occupation. Name substitution follows earlier work that used names in counterfactual data preparation. It’s All in the Name

Neutralization and parity intervene at different points. A repeated biography still contains its original pronouns and names. An edited biography can occur at the same frequency as before while changing the evidence available in its text. FAIR-GN is particularly relevant to a training set in which those cues are overwhelmingly predictive. It is also more dependent on the form that the protected information takes. The authors apply it to BIOS and leave it out of ECtHR. The defendant state can be apparent through many kinds of mentions, including places and organizations, and the authors found no straightforward corresponding normalization.

Changing the incentive for confidence

The other fairness-oriented methods do not require demographic labels during training. They start from the idea that a classifier can become very confident by relying on a feature that is easy to learn. If such features dominate learning, the classifier may have little incentive to pick up additional evidence that would help when the easy association fails. The paper connects this motivation to earlier work on spurious correlations and artifacts in language datasets. It tests the idea through changes to the training objective and still uses demographic labels to evaluate performance across groups. Competency Problems

Spectral Decoupling, called FAIR-SD, adds a penalty based on the L₂ norm of the classification logits. This norm measures the magnitude of the vector of label scores. The task loss rewards giving the correct label a favorable score. The added penalty makes large logit magnitudes costly. The authors describe the motivation in terms of gradient starvation, where early reliance on a limited collection of features leaves other potentially useful features with a smaller influence on training. The penalty operates on the output scores and does not identify which particular words produced them.

Debiased Focal Loss, called FAIR-DFL, uses an auxiliary classifier to estimate whether the main prediction is likely to succeed. It then uses a focal-loss adjustment when success is highly predictable. The idea is to reduce the influence of examples that the auxiliary classifier expects the system to handle easily. The intervention targets predictability of success, whereas Spectral Decoupling targets the magnitude of the main classifier’s own scores. Both approaches can alter what the classifier learns without requiring a list of attribute-bearing words or balanced batches. End-to-End Bias Mitigation by Modelling Biases in Corpora

For these training paths, the explanation is obtained after classification by layer-wise relevance propagation, abbreviated LRP. LRP assigns relevance scores to parts of an input in relation to the classifier’s output. The authors can rank words or paragraphs by relevance and use those rankings for comparison with the rationales produced directly by the other training path. An LRP ranking describes a decision made by a full-input classifier. Its highest-ranked items did not define what input the classifier was permitted to see.

Restricting the evidence during prediction

The rationale extraction frameworks, abbreviated REF, give separate roles to selection and prediction. The selector reads the input in context and scores its parts for usefulness. A hard selection keeps the highest-scoring units. The predictor then receives the selected material and produces the task scores. A reader can inspect that selection as the text on which the predictor had to work. During evaluation, the rationale can also be compared with reference selections or passed to a common classifier to test whether it preserves useful evidence.

The authors use implementations that select a fixed number of high-scoring units through a top-k operation. The older baseline framework used penalties to encourage shorter and more contiguous selections. Here the top-k operation directly controls how many units pass through. For a biography, a high-scoring item is a token. For the hierarchical court classifier, the corresponding selection operates on paragraphs. The quantities in the paper’s formulas describe the token case, with the same roles applying to paragraph representations in ECtHR.

S = Wₕₓ₁ ∗ TokenScorer(X)

X is the ordered input sequence, whose items are the tokens denoted by x with position indices through n, the number of tokens. TokenScorer is the Transformer encoder in the selector. It produces a contextual representation for each token. Wₕₓ₁ is the learned projection that maps a representation of width H to a single score. Here ∗ means applying that projection to the representations. S is the resulting sequence of token importance scores, one for each input position.

Z = TopK(X, S, k)

TopK is the hard selection operation. It uses S, the scores assigned to the positions in X, to choose the k highest-scoring positions. k is the number of units to retain. Z is a binary mask aligned with the input positions. The mask records which units pass through to the predictor. The selection used during training is distinct from the reference length used in the agreement metric, where the evaluators use the size of the annotated rationale to set the comparison budget.

R = Z ∗ X

R is the rationale, the input after selection. Z is the binary mask and X is the original ordered text input. In this formula ∗ means masking the input according to the selection. The scoring stage can use context from the entire input to decide what to keep. The main predictor receives the material retained by the mask.

L = Predictor(R)

Predictor is the Transformer-based classifier for the task. It encodes R, the selected evidence, and returns L, the vector of logits for the possible labels. It is this restricted path to the task output that the authors describe as faithful by design. The full input is available when deciding where to look. The text actually passed to the predictor is available for inspection.

The hard top-k decision creates a training problem. Small changes in scores can leave the selection exactly as it was, until their order changes and a different position enters the mask. The operation does not supply the ordinary gradient needed to train the selector. The authors detach it and use a straight-through procedure to pass gradients back to the scorer. The predictor can thus train with hard selections in the forward direction, while the scorer can still receive updates from the task during learning.

Giving the selector additional objectives

The simplest rationale extractor is REF-BASE. It trains the selector and the main predictor to support the task with the retained text. If the selected words of a biography allow the predictor to recover the occupation, the training objective can reward that selection. Useful evidence might still be left in the rest of the biography. The basic architecture ensures that the predictor uses the selected portion, but the classification objective can be satisfied by a portion containing only some of the relevant material.

REF-3P introduces an adversarial predictor that reads the complement of the selection, the parts of the input the main predictor did not receive. The complement predictor tries to solve the task from what remains. Its performance gives the training procedure feedback about how much predictive information the selector has left outside the rationale. The authors describe this as a minimax arrangement with a main predictor, a selector, and an opposing predictor. Earlier work had reported more complete rationales with this approach. That earlier result motivates its inclusion in the comparison, where agreement and group performance are evaluated anew.

Rationale to Attention, or REF-R2A, uses an additional predictor with soft selection during training. Softmax normalization turns the scorer’s outputs into weights that vary across the input. The auxiliary predictor uses those weights to emphasize some units and downweight others. Training seeks to reduce the performance disparity between this soft-attention predictor and the predictor that uses the hard selection. Earlier work reported better alignment with human rationales from this approach. The hard-selection path is still the one that supplies the main prediction and its associated rationale in the study.

The two auxiliary designs put pressure on different aspects of evidence selection. Complement control asks what can still be inferred from the omitted material. The attention comparison asks whether the compact rationale supports performance comparable to an input weighted more gradually. Both are intended to improve what the selector learns. Whether they also close performance gaps across social groups is an empirical question, since group disparity is outside the objectives described for these rationale extractors.

Training and selecting the runs

The authors search learning rates of 1e−5, 3e−5, and 5e−5. The learning rate controls the size of a parameter update. The schedule starts with a warm-up of 10% and then follows cosine decay, using AdamW. The batch size is fixed at 32 examples. Fine-tuning can last up to 30 epochs, with early stopping determined by validation performance. An epoch is a pass through the training data. Early stopping lets validation behavior decide whether to continue that process. Decoupled Weight Decay Regularization

The authors begin with 5 different random seeds and select the top-3 runs by overall validation macro-F1. A seed controls sources of randomness in training. The reported metrics are averaged over the selected runs. Selection by overall classification performance gives the comparison a common rule. It also matters for interpreting the final rankings. A run can be retained because it predicts task labels well on validation without being the strongest run for worst-group performance or rationale agreement.

Experiments and results

The datasets and comparison groups

The BIOS experiment uses 10,000 biographies, with 8K for training, 1K for validation, and 1K for testing. Each biography carries an occupation label and a binary gender attribute. The occupations in this subset are psychologist, surgeon, nurse, dentist, and physician. A subset of 100 biographies has human rationale annotations. Those annotations make it possible to assess overlap with selected words on some examples, while task predictions and group performance can be scored with the occupation and gender labels.

The gender distribution differs sharply by occupation. In the BIOS training set, female biographies account for 91% of nurses, while male biographies account for 85% of surgeons. At the level of the whole training set, the proportions are 46% male and 54% female. The overall balance therefore gives little indication of how different the evidence available for particular occupations can be. The reported F1 comparisons for nurses and surgeons make those combinations explicit. The authors also create intentionally biased and intentionally balanced versions of BIOS to examine how the fairness methods behave under more controlled distributions.

The ECtHR dataset contains 11K English-language cases. The study selects 4,500 cases, divided into 3.5K training cases, 500 validation cases, and 500 test cases. It uses cases with a single supported label in the study’s set of provisions. Each example offers factual paragraphs from the case description. The target is the provision recorded as violated, and the group attribute is derived from the defendant state. The authors group Eastern European states together and call the other group the Rest. The rationale references are silver annotations, meaning that they were extracted automatically.

The group proportions in the ECtHR training set are 80% Eastern European and 20% Rest. Article 8 has a more even breakdown of 55% and 45%. Article 6 supplies many more cases than the other provisions, with 1776 training cases in the Eastern European group and 454 in the Rest. In this experiment, label imbalance and group imbalance can therefore coexist. A technique that helps with a large difference in support between provisions may affect overall macro-F1 and demographic scores in different ways.

The main comparisons use the ordinary full-input classifier as the baseline. The rationale extractor called REF-BASE is a different baseline within the family of selection-based classifiers. Comparing REF-BASE with the ordinary classifier asks what happens when prediction is restricted to a learned rationale. Comparing it with the other rationale extractors asks what happens when the selector is trained with a different auxiliary objective. The fairness interventions are compared with ordinary training on each dataset for which they are applicable.

How the scores answer different questions

The principal task metric is macro-F1, written mF1. F1 combines precision and recall. Precision asks how frequently a predicted label is correct among predictions of that label. Recall asks how frequently examples with the label are successfully found. For macro-F1, each class contributes its F1 score equally to the average. This prevents large classes from dominating the final score simply because they supply many examples. The same idea applies when computing macro-F1 within a group, using the predictions and labels for that group.

The group disparity is the absolute difference between the group macro-F1 scores. The worst-group score is the lower of those group scores. The authors regard improvement in the weaker group and a smaller disparity as desirable. A single method can improve one of those measures and worsen the other. Inspecting the class scores within each group provides a finer view, since errors on an occupation like nursing or surgery can be obscured even by a group-level average.

The explanation evaluation uses both a perturbation-based sufficiency score and an overlap score. The former is reported as Area Over the Perturbation Curve, or AOPC, for sufficiency. It evaluates how well the evidence retained under a rationale preserves the relevant prediction behavior. The authors use the same large RoBERTa classifier as the reference for the sufficiency comparison, so rationales from different methods are judged against a common predictor. The resulting score is a proxy for the explanatory value of the selection. It measures a different relationship from the direct role the selection plays in an REF’s own prediction path.

Agreement is measured by recall at the reference length, written R@k. The evaluator counts how many units the reference rationale identifies, ranks the classifier’s evidence, and checks how much of the reference appears among that many top-ranked units. If the reference rationale is short, the evidence receives a correspondingly short comparison budget. This rules out improving recall simply by highlighting more text. The metric gives the evaluator access to the reference length. It measures the ranking of evidence under a common budget and leaves open how long a rationale a classifier would choose to present on its own.

Occupation classification on BIOS

For the ordinary BIOS test split, the full-input baseline leads on overall macro-F1 with 88.1. FAIR-SD is close at 87.9. FAIR-GP and FAIR-GN each score 87.8, while FAIR-DRO and FAIR-DFL each score 87.6. These overall results are close compared with some of the changes experienced by individual groups. FAIR-GP, for instance, has a male-group score of 83.8 and a female-group score of 87.5, whereas the baseline scores 85.5 and 87.5 for the same groups. Increasing minority representation within each occupation did not improve the lower group score on this split.

FAIR-SD gives the most favorable BIOS comparison with the baseline on the two reported fairness measures together. Its male-group macro-F1 is 85.6 and its female-group macro-F1 is 86.6. The baseline has 85.5 and 87.5. Consequently, the reported gap moves from 2.0 to 1.0. The smaller gap accompanies a small improvement for the worse-performing group and a decline for the higher-scoring group. FAIR-DFL also has a slightly smaller gap, 1.9, but its scores of 84.5 and 86.4 put both groups below the corresponding baseline scores. These comparisons give different accounts of what a gain in parity entails.

FAIR-GN has the largest BIOS gap among the fairness methods, at 4.2. Its test macro-F1 is 82.5 for men and 86.8 for women. FAIR-DRO reports 84.2 and 86.4, with a gap of 2.2. These outcomes show how an intervention can be well targeted at a distributional property of the training data while leaving the test scores less favorable. Neither the success of text editing in removing particular cues nor the use of group loss weights answers the empirical question about errors on the test split.

For the rationale extractors, overall BIOS test macro-F1 is 85.3 for REF-BASE, 86.4 for REF-3P, and 86.1 for REF-R2A. The full-input comparator retains an overall advantage. REF-BASE has a group gap of 1.7, narrower than the ordinary baseline’s 2.0, together with lower male and female scores of 82.2 and 83.9. The other rationale extractors have wider gaps, 3.1 for REF-3P and 3.0 for REF-R2A. All of them have a lower worst-group score than the ordinary baseline. The distinction between the gap and the score it contains is especially important for interpreting REF-BASE.

The BIOS rationale results also favor ordinary training in the reported test comparison. The baseline obtains 52.0 for R@k. Among the fairness interventions, FAIR-SD has the highest R@k at 49.4. REF-R2A leads the rationale extractors at 50.7, with REF-BASE at 45.7 and REF-3P at 44.3. The reported AOPC sufficiency figures for those extractors are 78.1, 79.6, and 82.9, respectively, compared with 88.5 for the full-input baseline. Within the rationale-extraction family, REF-R2A gives the strongest reported BIOS results on both explanation measures, while REF-3P has the better overall task score. The objectives yield different rankings even before group performance enters the comparison.

Class-level results show how much a moderate group-level gap can conceal. The paper reports an F1 drop of up to 25% for the underrepresented group in the comparisons for nurses and surgeons. Male nurses and female surgeons are the underrepresented groups in those occupations. The appendix breaks down precision, recall, and F1 by gender for the other occupations as well. These views matter because all men or all women receive a single summary score in the headline comparison. The label-specific view exposes which combinations account for difficult recognition problems.

Judgment forecasting on ECtHR

On ECtHR, the fairness interventions improve overall macro-F1 relative to the ordinary classifier in the main test table. Spectral Decoupling gives the highest result, and Debiased Focal Loss also improves on ordinary training. The authors suggest that the stronger effect of these approaches in the legal task may partly reflect imbalance between labels, given the many Article 6 cases compared with other provisions. This is an interpretation of the observed pattern. The experiment does not separately vary the number of examples per article to establish the cause.

ECtHR test overall macro-F1 across training methods

Spectral Decoupling leads the comparison, while all rationale extractors score below ordinary training.

ECtHR test overall macro-F1 across training methodsOrdinary baseline: 83.5Ordinary baseline83.5Group Parity: 83.9Group Parity83.9Group Robust Optimization: 83.9Group Robust Optimization83.9Spectral Decoupling (this paper): 84.9Spectral Decoupling (this paper)84.9Debiased Focal Loss: 84.3Debiased Focal Loss84.3Baseline rationale extractor: 81.8Baseline rationale extractor81.8Complement rationale extractor: 83.1Complement rationale extractor83.1Rationale to Attention: 82.8Rationale to Attention82.8
The numbers
System or settingmacro-F1
Ordinary baseline83.5
Group Parity83.9
Group Robust Optimization83.9
Spectral Decoupling (this paper)84.9
Debiased Focal Loss84.3
Baseline rationale extractor81.8
Complement rationale extractor83.1
Rationale to Attention82.8

The overall gains need to be separated from effects on the two groups. FAIR-GP has a test macro-F1 of 83.5 for Eastern European states and 81.8 for the Rest. FAIR-DRO has 83.6 and 80.6. The corresponding baseline values are 83.1 and 83.3. Each intervention increases the Eastern European score and decreases the Rest score. This leaves the weaker group below the baseline. Looking only at overall performance would miss that redistribution of errors.

The confidence-oriented interventions improve both group scores on the reported test averages. FAIR-SD records 84.2 for Eastern European states and 87.1 for the Rest. Its gap is 2.9, against 0.2 for the baseline. FAIR-DFL records 84.1 and 83.6, with a gap of 0.5. The baseline begins with nearly equal group scores, so even a method that improves both groups can widen the gap. FAIR-SD gives the highest floor in this comparison, whereas FAIR-DFL keeps the groups closer together than FAIR-SD. The fairness measure chosen for comparison changes which result looks preferable.

For FAIR-SD, ECtHR reference overlap is 49.9 and AOPC is 78.8. For FAIR-DFL, the values are 49.2 and 78.2. The baseline values are 48.8 and 77.4. The averages show modest numerical shifts alongside the task and group changes. The BIOS numbers provide a useful cross-check of the broader claim. There, FAIR-SD gives the most favorable fairness comparison without better agreement with the references, and its AOPC equals the baseline’s 88.5. The evidence across tasks gives no consistent relation in which a gain in worst-group performance brings a substantial gain in rationale quality.

When paragraph selections match the references

On ECtHR, all the rationale extractors improve R@k compared with the full-input baseline. REF-BASE gives the highest overlap, followed by REF-3P and REF-R2A. This is a reversal of what happens in BIOS, where the baseline exceeds all the rationale extractors on the same type of overlap comparison. It is also a reversal within the REF family. The approach that performs best for overlap in one task has the weakest overlap of the rationale extractors in the other. The references and the units of selection differ between these experiments, so the contrast establishes the dependence on the experimental setting.

ECtHR test reference rationale overlap across selection methods

Each learned rationale extractor has higher reference overlap than the full-input baseline.

ECtHR test reference rationale overlap across selection methodsOrdinary baseline: 48.8Ordinary baseline48.8Baseline rationale extractor (this paper): 57.1Baseline rationale extractor (thispaper)57.1Complement rationale extractor: 54.0Complement rationale extractor54.0Rationale to Attention: 50.9Rationale to Attention50.9
The numbers
System or settingR@k
Ordinary baseline48.8
Baseline rationale extractor (this paper)57.1
Complement rationale extractor54.0
Rationale to Attention50.9

The rationale extractor with the strongest paragraph overlap has a test macro-F1 of 81.9 for Eastern European states and 81.3 for the Rest, with a gap of 0.6. The ordinary baseline has higher scores for both groups and a smaller gap. REF-3P reaches 83.3 for Eastern European states and 80.8 for the Rest, with a gap of 2.5. REF-R2A gives 82.6 and 83.4, with a gap of 0.8. It improves the score for the Rest slightly and gives up performance for Eastern European states. In each case the lower group score is below the baseline’s lower group score, even though reference overlap improves.

The sufficiency results for the ECtHR rationale extractors also move differently from overlap. The main test table gives AOPC values of 73.2 for REF-BASE, 73.3 for REF-3P, and 74.5 for REF-R2A, compared with 77.4 for the full-input comparator. The appendix gives 74.9 ± 1.0 for the REF-R2A entry, so the two reports differ on that value. Both put REF-R2A below the baseline on the reported AOPC scale and above the other rationale extractors. The highest reference overlap thus belongs to a method with a lower reported sufficiency figure than the full-input baseline. Matching reference paragraphs and preserving evidence according to a common predictor provide different comparisons.

What the ablations show

When gender becomes a near-perfect shortcut in training

The paper’s most direct controls alter the composition of BIOS before training. In the artificially biased version, the authors keep female biographies for psychologists and nurses, and male biographies for surgeons, dentists, and physicians. They make this change to the training and validation data, then examine performance on test combinations that training excluded. A system can look successful on the altered distribution by learning which occupations are associated with each gender. Saying whether it has learned the occupation more generally requires observing what it predicts for the missing combinations.

The ordinary baseline has a male-group macro-F1 of 45.9 and a female-group macro-F1 of 34.6, with a group gap of 11.3. Its F1 for male nurses is 0.0, and its F1 for female surgeons is 14.8. These specific scores show the effect of an absent combination more directly than the overall group scores. The female group contains more than the profession of surgeon, and the male group includes occupations for which male biographies were available. Group averages can therefore register some ability even while the classifier fails on an occupation for a particular group.

Group Neutralization substantially changes the outcome. It yields male and female group macro-F1 scores of 81.7 and 82.1 and a gap of 0.4. On the two underrepresented occupation–gender combinations, it gives an F1 of 61.5 for male nurses and 69.1 for female surgeons. In this setting the authors neutralize gender cues during both training and testing. A pronoun or title that would have served as a reliable shortcut under the altered training distribution is changed before the classifier can use it. The result is consistent with the classifier making better use of occupation evidence that applies across genders.

Other fairness-oriented runs in the biased control can yield better group averages than the baseline while failing on the same difficult combinations. FAIR-DRO gives the male and female groups macro-F1 scores of 53.5 and 60.6. It still produces 0.0 for male nurses, although its female-surgeon F1 is 48.5. FAIR-SD also gives 0.0 for male nurses, with 38.7 for female surgeons. FAIR-DFL has 0.0 and 14.8 for the same combinations. Those outcomes show why a claim of improvement in worst-group performance can coexist with persistent failures on a label inside the group. The synthetic results table reports these variants and FAIR-GN, with no separate FAIR-GP row.

This stress test also clarifies the difference between missing support and low support. If a training group has some examples of nurses, oversampling can change how often the classifier encounters them. In the biased control, the training data supply no male nurses to repeat. A group-aware loss can change how hard the classifier works to fit examples that exist. It cannot supply examples of the omitted combination. Text neutralization has a different effect because it weakens a cue that links all the examples of an occupation to the same gender. The result establishes the practical importance of that intervention in this deliberately extreme setting.

How the attributed words support the diagnosis

The authors examine words with strong positive or negative LRP scores for nurses and surgeons in the biased BIOS control. They normalize the positive and negative scores separately and aggregate across test examples. This gives a view of the words associated with evidence for or against a label within each gender. Useful occupational words appear in the results, but the rankings also reveal words that track the imposed training associations.

For women labeled as nurses, feminine pronouns and titles receive strong positive attributions in several runs. For men in the same occupation, he can receive a negative attribution. In the surgical cases, feminine pronouns can attract negative scores for women. The direction of the relevance scores is consistent with how the training subset was prepared. The data repeatedly pair nursing with women and surgery with men. Evidence of the opposite pairing is consequently difficult for some classifiers to use at test time, even when words referring to the occupation are present.

For FAIR-GN, the prominently attributed terms for nurses include words for nursing, while the lists for surgeons feature words referring to surgery and its specialties. The removed gender markers are absent from the attribution lists in the way the intervention predicts. Together with the class-level F1 improvements, the pattern supports the explanation that removing overt markers can prevent exploitation of those particular shortcuts. The evidence combines a deliberate intervention and an attribution analysis. It remains at the level of a treatment that changes several sets of expressions at once, instead of identifying the individual causal contribution of each word.

The result also shows how an explanation can serve an investigative purpose even when explanation scores and fairness scores do not improve together. An attribution list can help an investigator connect a documented feature of the training data with a failure on the test split. The reference-overlap evaluation asks another question. It counts agreement with annotators’ selections under a fixed budget. A diagnostic attribution for he can be informative about the error precisely because a human would give that pronoun little weight when judging occupation.

What changes when the occupations are balanced

The second BIOS control uses downsampling to provide equal representation for men and women within each profession. It asks how the methods behave after the most direct occupation-by-gender frequency imbalance has been removed from the examples used for learning. This change discards examples from groups that supplied more biographies. The balance of the resulting data and the change in the amount of training evidence are both part of the comparison.

The ordinary baseline reaches group macro-F1 of 83.6 for men and 84.4 for women, giving a gap of 0.8. FAIR-GN gives 84.8 and 84.2, with a gap of 0.6. FAIR-DRO gives 84.8 and 85.0, with a gap of 0.2. These outcomes show that the adaptations can coexist with closely matched group scores when the training distribution already provides coverage for both genders in every occupation. FAIR-DRO also places both group scores above the corresponding baseline values in this control.

The confidence-based interventions give different patterns on balanced BIOS. FAIR-SD has 83.5 for men and 86.2 for women, with a reported gap of 2.6. FAIR-DFL has 82.6 and 85.8, with a gap of 3.2. Balancing the number of biographies per occupation does not force each trained classifier to perform equally on the groups. Their language and the evidence available in individual examples can still differ, and the learning objectives respond to the examples in different ways. The data intervention removes the specified frequency association while leaving room for those other differences.

The authors observe that overall macro-F1 on balanced BIOS is around 3% lower than in their main results. They attribute this chiefly to the smaller training set and suggest that losing reliance on gender bias may account for a smaller share. The control tests the combined effect of balancing through downsampling. It leaves the relative contribution of the smaller sample and the changed occupation–gender association unresolved. Its clearest comparison is between methods trained under the same balancing procedure.

Probing what the encoder still represents

The authors also ask how easy it is to recover the protected attribute from an encoder after task training. They freeze an encoder previously trained on occupation or legal provision prediction and fit a fresh classification head to predict the group. The probe therefore measures the information a new head can extract from fixed representations. The authors use data outside the original target labels to reduce the chance that the probe is simply recovering the task label and using its group association. For BIOS, this means training the gender probe on 3K biographies from 5 non-medical professions.

The probe results on BIOS show a sharp distinction between attribute recovery and task performance across groups. The baseline gives gender accuracy of 93.2. FAIR-GN brings that value to 65.4, the lowest of the fairness-oriented alternatives. Yet FAIR-GN also has the lowest worst-group test macro-F1 among those alternatives, at 82.5, and the largest disparity, at 4.2. The results support the claim that neutralization reduces access to gender information under this probing procedure. They give a less favorable assessment of its performance across genders on ordinary occupation classification.

For the other BIOS fairness methods, gender accuracy is above 95% in the paper’s probe analysis. FAIR-SD, for example, has a probe accuracy of 96.0 alongside a worst-group score of 85.6 and a gap of 1.0. Its classification logits have a much smaller reported norm than those of the ordinary baseline, yet the probe can still recover gender with high accuracy. The penalty acts directly on the magnitude of the task scores, and the probe looks for information elsewhere, in the encoder’s representations. There is no requirement that both quantities change together.

On ECtHR, group accuracy under the probe is 75.0 for the ordinary baseline. FAIR-DFL brings it to 63.0, and FAIR-SD to 72.4. Both improve the worst-group task score while increasing the reported disparity compared with ordinary training. FAIR-GP gives probe accuracy of 69.6 while placing the weaker group below the baseline on the task. Lower accuracy for attribute recovery therefore accompanies different downstream consequences depending on the method. The logit norm adds another perspective on bias, but it is a proxy for confidence and has a direct dependence on the Spectral Decoupling objective.

These are controlled diagnostics of associations and errors, along with comparisons among whole training methods. The rationale-extractor comparison, for instance, does not independently vary every part of the selector or predictor. It shows what happens when complement control or an attention comparison is used in the tested implementation. The BIOS controls provide more direct evidence about a change in the training distribution. The probes provide evidence about access to demographic information after that kind of training. Reading them together puts the paper’s conclusions at the scale of the interventions it actually tested.

Limitations

Limits the authors identify

The authors restrict their conclusions to the English classification tasks they studied. Both tasks work with a defined set of labels and group attributes. A broader claim about the relationship between fairness and explainability would require work across more datasets, languages, and tasks. The authors report finding few datasets with both demographic information and rationale annotations. They set aside a candidate whose demographic attributes described the annotators, because their study needed group information about the people or entities implicated by the task.

The authors also limit the scope of the grouping. BIOS uses a binary gender attribute. ECtHR uses a binary division of defendant states into Eastern European and Rest. These choices support a specific comparison of group performance. They cannot establish parity for groups outside those definitions, or among the countries combined within a regional category. The paper also leaves generative systems and explanations written as new text for future work. Its measures apply to decisions among fixed labels and explanations located in the source input.

The authors report no direct human evaluation of the explanations’ usability or plausibility. Human annotations on some biographies make it possible to count overlap with evidence selected beforehand. A user study would involve a different question, such as whether a person can understand, verify, or make effective use of the rationale in context. On ECtHR, agreement is with automatically extracted references. The numerical overlap results characterize alignment with those references and cannot stand in for an assessment by court users or legal readers.

Limits that follow from the setup

The paper describes the measured properties as orthogonal. Its experiments support the more specific claim that improvements did not reliably travel together across the tested interventions. The evidence comes from comparisons within two tasks using a common pretrained architecture and particular fairness and rationale procedures. A proof of statistical independence or a general claim that the properties cannot be improved jointly would need a different design. Here the study primarily trains methods for one objective at a time and then measures the other, so the result leaves open what a joint training objective might achieve.

Some group comparisons are also narrow relative to variation across selected runs. For example, ECtHR test disparity is reported as 0.2 ± 0.7 for the baseline and 0.5 ± 1.8 for FAIR-DFL. The appendix gives group-specific variation as well, including 83.6 ± 4.2 for the Rest under FAIR-DFL on the test split. The average values describe the selected runs, and the reported standard deviations indicate the spread among them. Close average rankings deserve particular care because the runs were chosen for overall validation macro-F1, and group scores were evaluated afterward.

There is also a limit to attributing different results across datasets to one feature of the task. BIOS and ECtHR differ in text length, classification labels, group definitions, evidence granularity, and how the rationale references were obtained. The contrast in R@k shows that the benefit of learned rationale selection varies between the studied settings. It cannot isolate whether the difference follows from selecting paragraphs instead of tokens, using automatic instead of human references, or differences in the underlying classification problem. A controlled comparison would have to vary those features independently.

Faithfulness by construction gives a precise guarantee about the main predictor’s access to text. A selector still reads the whole input, and the rationale test asks how well a selection functions when evaluated by a common reference classifier. These are related but distinct properties. The selected text can faithfully describe the predictor’s input and still leave out useful evidence. The main comparisons emphasize sufficiency and reference overlap, so they cannot establish full coverage of the relevant evidence, even for a selector trained with a complement predictor.

Finally, the bias probes measure what a newly trained head can extract under particular conditions. They cannot determine by themselves whether the main predictor relied on the attribute for a particular decision. The norm of the logits measures score magnitude and is directly targeted by one objective. The synthetic BIOS control and the attributed words make a stronger case about the role of overt gender cues in that specific intervention. On ordinary data, demographic recoverability, confidence, and performance disparity are best interpreted as distinct observations about the trained classifier.

What came after

No subsequent study is documented as extending this paper’s experiments. The authors leave open whether the observed relationships persist beyond English classification and whether a method designed to improve fairness and rationale quality together can succeed on both measures.

Cite

Cite as Stephanie Brandl, Emanuele Bugliarello and Ilias Chalkidis. 2024. On the Interplay between Fairness and Explainability. Proceedings of the 4th Workshop on Trustworthy Natural Language Processing (TrustNLP 2024).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.trustnlp-1.10

@inproceedings{brandl2024interplay,
  title = {{On the Interplay between Fairness and Explainability}},
  author = {Stephanie Brandl, Emanuele Bugliarello and Ilias Chalkidis},
  booktitle = {Proceedings of the 4th Workshop on Trustworthy Natural Language Processing (TrustNLP 2024)},
  year = {2024},
  doi = {10.18653/v1/2024.trustnlp-1.10},
  url = {https://doi.org/10.18653/v1/2024.trustnlp-1.10}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/brandl-2024-interplay-between-fairness-explainability/