Back to search

The University of Texas at Austin

Toxic language and target detection under sparsity by modeling group-specific representations

Abstract

dc:description.abstract

In the natural language processing (NLP) domain of modeling and mitigating toxic language, it is common to encounter scenarios where multiple tasks and/or objectives are of interest. Multi-Task Learning (MTL) and Multi objective Optimization (MOO) are well-established approaches that have seen increasing use with toxic language modeling in recent years [69, 86, 110, 129, 152]. My dissertation consists of two lines of related work on toxic language modeling in NLP based on MTL (Problem 1 below) and MOO (Problem 2 below). While my application and experiments focus exclusively on toxic language modeling in NLP, my modeling approaches are more general and could potentially have broader applicability. PROBLEM 1: MULTI-TASK LEARNING. In developing NLP models for toxicity detection [4, 131, 143], it is often assumed that toxic language manifests similarly across different demographic targeted groups. This typically leads to pooling of data from all groups in model training to learn general patterns of toxicity. However, toxic language directed at different groups can vary quite markedly. Furthermore, an imbalanced group distribution in datasets risks over-fitting to majority groups, potentially at the expense of systematically weaker model performance on minority group(s). Thus, a “one-size-fits-all” modeling approach maybe sub-optimal, raising concerns of algorithmic fairness [4, 110, 129]. At the same time, radically siloing off datasets for each target group would prevent models from learning broader linguistic patterns of toxicity across different groups being targeted. To characterize this phenomenon where toxic language exhibits both important commonalities and important differences, we borrow the popular phrase of “same same, but different” [153]. To address the above issues, we develop a Conditional MTL (CondMTL) framework (Chapter 3), which combines shared and task-specific layers, allowing the model to specialize in detecting toxic language for different target groups while leveraging shared patterns across groups. In this setting, each MTL task corresponds to detecting toxic language targeting a specific group. Shared layers benefit from cross-group training, while task-specific layers are trained only on group-specific posts. Given the challenge of sparse labeling for each task i.e., only a small fraction of the data is labeled for each task, the CondMTL framework is specifically designed to operate under such setting. We also extend CondMTL to the SAJ-MTL (Stakeholder-Aware Joint MTL) framework (Chapter 4), that accounts for the interaction of multiple stakeholder groups, i.e., annotators and target, to better model the perceived toxicity directed at varied groups. Additionally, the model accounts for inter-group and intra-group disagreements between annotators. Furthermore, the framework is optimized for scalable computational efficiency w.r.t. increasing group cardinality. The results show improved predictive performance, fairness across target groups, and scalability compared to the latest SoA baselines. PROBLEM 2: BALANCING COMPETING OBJECTIVES. In parallel to Problem 1, accurately detecting the demographic group targeted by toxic language is crucial, since the expression of toxic language varies by target group. A fair detection system should consider the risks of disparate impact of groups. Unlike traditional fairness tasks (e.g., college admissions) that assume asymmetric error costs, errors in target detection are symmetric. For example, we assume that misclassifying a post targeting group-Black as group-Latinx is just as problematic as the reverse. This calls for a fairness objective based on equal accuracy across all groups, i.e., Accuracy Parity (AP) [160]. However, platforms with skewed user demographics face a trade-off: enforcing equal accuracy for every demographic group may may reduce accuracy for dominant group(s). Just as democratic governance must balance majority rule vs. minority rights, platforms may need to strike a balance between maximizing absolute fairness for all user groups vs. ensuring sufficient service for the majority user group(s) so that the platform can remain in business to serve everyone. Given this setting, we develop a fairness loss function and a MOO framework. While AP is often mentioned as a fairness metric of potential interest [9, 61, 100], there has been scant research to actually operationalize it. To address this, we propose a new fairness measure, Group Accuracy Parity (GAP) (Chapter 6), which is differentiable and equivalent to AP, under a binary group setting. To balance this fairness measure vs. overall accuracy (driven by the majority group(s)), we develop a multi-objective optimization (MOO) framework HNPF [135] with numerical correctness checks [53]. We further extend HNPF to a scalable SUHNPF [54] frameowrk (Chapter 5) that can act as hypernetworks for training large scale neural models. This enables us to learn the full trade-off space between GAP vs. Overall Accuracy during training, which the user could then flexibly browse at run-time. We conduct experiments and report results for the task of toxic language detection across two demographic groups. We also make extensions to the GAP measure (Chapter 7) to account for multiple demographic groups, and conduct different experiments for the task of target-group detection, where we argue for the importance of symmetric error costs. Additionally, we show an incompatibility result between the Accuracy Parity and Equalized Odds measures, addressing a common misconception that balancing equalized odds across groups automatically leads to balanced accuracy across groups.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy
Discipline thesis:degree_discipline
Computer Science
Department thesis:degree_department
Computer Science
Grantor
The University of Texas at Austin
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Gupta, Soumyajit
Advisors dc:contributor.advisor
  • Lease, Matthew A.
  • De-Arteaga, Maria
Committee members dc:contributor.committeemember
  • Qiang Liu
  • Joydeep Ghosh

Subjects

dc:subject × 4

Rights

Language dc:language.iso
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
University of Texas
Base URL
repositories.lib.utexas.edu/server/oai/request
Last updated
2026-11-20
Source record
OAI-PMH GetRecord
citation

Gupta, Soumyajit. Toxic language and target detection under sparsity by modeling group-specific representations. The University of Texas at Austin, 2025. https://doi.org/10.26153/tsw/61314