Utiliser l'explicabilité des modèles pour mettre en évidence les expressions genrées dans la parole

François Buet, Camille Guinaudeau, Cyril Grouin, Sahar Ghannay, Shin'ichi SatohTALN 2024

Introduction

While quantitative studies frequently highlight the under-representation of women in global media, a deeper qualitative question remains: do men and women speak differently on air? Beyond mere airtime, researchers are increasingly interested in whether female speakers are confined to specific topics or styles of speech that reinforce societal stereotypes. Analyzing thousands of hours of broadcast media manually is a Herculean task. This study addresses this challenge by applying Explainable AI (XAI) to gender detection models, aiming to "peek under the hood" of machine learning to identify the lexical patterns and thematic asymmetries that characterize gendered discourse in French and Japanese media.

Methodology: Beyond the Black Box

The researchers treat gender detection as a text classification task. Crucially, they use automatic speech recognition (ASR) transcripts rather than raw audio. This design choice forces the models to ignore acoustic cues—such as pitch or timbre—and focus exclusively on vocabulary, syntax, and discourse structure.

The study fine-tuned several BERT-based architectures, including CamemBERT and FlauBERT (specifically versions pre-trained on oral French transcripts) for French, and bert-japanese for Japanese. To understand the logic behind the models' predictions, three interpretability methods were compared:

  • Occlusion: Systematically masking individual words to measure their impact on the prediction.
  • LIME (Local Interpretable Model-Agnostic Explanations): Approximating the complex model with a simpler linear model locally.
  • LIG (Layer Integrated Gradients): A gradient-based approach attributing predictions to specific input tokens.

To ensure these XAI methods were truly capturing the model's logic, the team introduced "pseudo-predictions"—recalculating the gender classification based solely on the attribution scores.

Datasets

The research utilizes two distinct corpora representing authentic media speech across different cultural contexts. The French corpus includes news broadcasts, thematic radio (covering sports and economy), and reality TV from 2018–2021. The Japanese corpus consists of transcripts from NHK News 7 spanning two decades (2001–2022).

Table 1: Statistics for the French and Japanese datasets used in the study, showing duration, number of examples, and gender distribution.

As shown in Figure 2, the datasets maintain a balanced gender distribution (50% women) in most training sets to prevent the models from learning simple frequency biases, though some test sets reflect the real-world imbalances found in specific media genres.

Key Insights: Sociolinguistic Markers and Domain Expertise

A primary finding was that domain matters. Models pre-trained on "oral" data—transcripts of actual spoken language—significantly outperformed those trained on formal written text like Wikipedia. Spoken language contains unique structures and disfluencies (e.g., "euh," "bah" in French) that standard NLP models often fail to leverage.

Among the XAI methods, Layer Integrated Gradients (LIG) proved most coherent. When the model exhibited high confidence in a prediction, the tokens highlighted by LIG provided a clear explanation of the choice. This allowed the researchers to extract "gendered lexicons":

  • French Reality TV: Women were found to use personal pronouns and affective language (e.g., "amour," "vie") more frequently than men.
  • Japanese News: Gendered discourse was heavily tied to topical biases. Men were associated with "hard" news topics like politics (Diet/Parliament) and the economy (Market), while women were frequently associated with weather reporting (Snow, Sunny).

Experimental Results

The classification performance, measured by the P4 score (the harmonic mean of F1-scores for both genders), reflects the difficulty of the task given the short sequence lengths (30-40 words) and the absence of acoustic data.

Table 2: Performance metrics (P4 and F1 scores) for various French models across different media categories.

As detailed in Figure 3, the best-performing French model, FBO-asr_nb (a FlauBERT model fine-tuned on oral transcripts), achieved a P4 score of 55.0 for news and 57.2 for reality TV. Despite these modest overall accuracy scores, the XAI techniques successfully extracted statistically significant lexical markers for each gender. The study also observed that once a model's confidence threshold exceeded 0.7, the "pseudo-predictions" based on XAI attributions matched the actual predictions perfectly, validating the interpretability of the results.

Limitations and Future Outlook

The researchers identified several constraints. The use of short text segments often results in "gender-neutral" snippets that are inherently difficult to classify. Furthermore, by excluding audio data, the models miss prosodic and tonal cues that are central to gendered performance.

Future work will focus on more complex XAI attributions, moving from single tokens to groups of words. Additionally, the team plans to investigate how discourse changes based on the gender of the interlocutor, exploring the dynamics of mixed-gender versus same-gender interactions in media settings.

Summary updated

BibTeX
@inproceedings{buet2024utiliser,
  author = {François Buet and Camille Guinaudeau and Cyril Grouin and Sahar Ghannay and Shin'ichi Satoh},
  title = {{Utiliser l'explicabilité des modèles pour mettre en évidence les expressions genrées dans la parole}},
  booktitle = {TALN},
  year = {2024},
}
Figure