Abstract
While Explainable AI (XAI) has made significant strides in identifying which input features are important for a model's prediction, it often fails to explain why a model chose one specific output over a near-identical alternative. This is particularly salient in Speech-to-Text (S2T) tasks, where subtle acoustic cues can determine gendered translations or grammatical choices. This paper introduces a novel method for generating contrastive explanations in S2T models by utilizing a relative scorer and a principled word-boundary aggregation technique. Our findings reveal that these contrastive maps isolate specific acoustic features—such as pitch—that standard saliency maps overlook, providing a deeper diagnostic tool for model bias and decision-making.
Introduction
In human reasoning, we rarely explain a decision in a vacuum. Instead, we explain it contrastively: "I chose X instead of Y because of Z." However, current XAI methods for speech models are largely "holistic." If a model translates the English phrase "I am curious" into the Italian feminine curiosa, standard saliency maps can highlight which segments of the audio were influential. Yet, they fail to explain why the model rejected the masculine curioso.
This lack of contrastive explanation is a significant hurdle for diagnosing model behavior, especially regarding gender bias. Because S2T models process multidimensional signals (time and frequency) and generate text in subword units, isolating the specific features that drive a choice between two alternatives is technically challenging. This research addresses these challenges by proposing a framework to generate precise, word-level contrastive explanations.
Methodology
The researchers built their approach on SPES, a perturbation-based attribution method that masks random segments of an input spectrogram to observe changes in output probability. To adapt this for contrastive, word-level analysis, two primary innovations were introduced:
1. The Relative Scorer ($S_{CR}$)
Traditional contrastive methods often use a "difference scorer," which simply subtracts the probability of the alternative (the "foil") from the target. However, when a model is highly confident in its prediction (e.g., $p(target) = 0.99$ and $p(foil) = 0.01$), the difference scorer becomes indistinguishable from a standard non-contrastive explanation. The authors' relative scorer normalizes these probabilities. This allows the method to filter out general "word-building" features—the acoustic information needed to recognize any word—and isolate only the specific features that distinguish the target from the foil.
2. Word Boundary Aggregation
Modern S2T models predict subwords (e.g., _studente + ssa) rather than whole words. Simply averaging the probabilities of these subwords can lead to misleading explanations. The authors implemented a "Word Boundary" method that calculates the probability of a sequence forming a complete, intended word. This ensures that the resulting saliency map is explaining the choice of the specific lexical item rather than just a prefix.
Experimental Setup and Datasets
The study utilized MuST-SHE, a benchmark designed to test gender bias in speech translation. The dataset contains English-to-French, Italian, and Spanish pairs where the source English is gender-neutral (e.g., "I am a teacher"), but the target language requires a gendered choice based on the speaker's voice. The method was tested across various architectures, including standard Transformers and Conformer-based models, to ensure generalizability.
Key Insights
The "Confidence Trap" in XAI
The research demonstrates that high model confidence often blinds standard XAI tools. By using the relative scorer, the authors were able to find the "aha moment" where the model distinguishes between two choices. The resulting contrastive maps showed a low correlation (approximately 0.33) with standard maps, proving that the method successfully isolates unique acoustic cues that standard methods ignore.
The Masculine Default
A significant finding of the study is the asymmetry in model behavior. The researchers found it was significantly easier to "flip" a feminine prediction to a masculine one by removing specific audio features than it was to do the reverse. This suggests that many S2T models treat masculine forms as a "default" state, only switching to feminine when they detect a strong, specific signal in the audio signal. This "defaulting" behavior makes it harder to explain masculine choices, as they are often the result of an absence of feminine evidence rather than the presence of masculine evidence.
Results
- High Faithfulness: The method proved highly accurate in identifying critical features. In English-to-French translations, occluding just the top 5% of audio features identified by the relative scorer caused the model to flip its prediction from feminine to masculine in over 70% of cases.
- Cross-Lingual Robustness: The relative scoring approach remained effective across Italian, French, and Spanish, regardless of the model size or architecture.
- Visual Precision: Unlike older difference scorers, which produced maps 93% correlated with non-contrastive ones, the relative scorer produced highly targeted saliency maps that were visually and statistically distinct.
Conclusion and Future Work
This research provides the first viable tool for generating contrastive explanations in the speech domain. By isolating the specific acoustic features that drive model decisions, researchers can better diagnose and mitigate biases in S2T systems.
However, limitations remain. The current study is constrained to binary gender contrasts due to the limitations of the MuST-SHE dataset. Future work is needed to expand this method to non-binary gender identities and other linguistic phenomena, such as homophone disambiguation (e.g., "plain" vs. "plane"). Additionally, addressing the "masculine default" problem remains a priority for creating truly transparent and equitable speech models.
Summary updated