Urja Khurana

Title: From Concept to Impact: Toward More Robust Language Model Deployment

Location: VU Auditorium, Main building (1st floor), De Boelelaan 1105 1081 HV Amsterdam

Time: 23 September 2025 15:45 – 17:15

Abstract: The rapid adoption of large language models in daily life can have a significant impact on society. For especially safety-critical applications, e.g., hate speech detection, misclassifications can be disastrous; calling for robust and reliable behavior in real-world conditions. Such applications also demand a shift from the conventional machine learning workflow for language models: data selection, model development, and evaluation. In most cases, the workflow does not reveal actual model behavior but mere general insights into performance through an aggregated score. Each stage of this workflow requires a deeper analysis to ensure that application-specific criteria are met when a model is deployed. In this thesis, I conduct such an end-to-end analysis and go on a journey through the machine learning workflow, with hate speech detection as a primary use case. In Part I / Chapter 2, I first aim to get a thorough understanding of the task of hate speech detection to guide data selection, which is influenced by deployment context. Through insights from social science and law, I propose a framework for hate speech practitioners that encapsulates the aspects essential for hate speech and can be used to create deployment-based hate speech definitions and annotation guidelines. In Part II, I revisit whether current model setups are suitable for tasks that go beyond a single notion of the ground truth. While it makes sense for a model to make a prediction when there is clear human consensus, it does not for cases with high subjectivity. In Chapter 3 I propose a subjectivity-informed method that allows a model to abstain when it estimates low crowd agreement. The results show that this method is especially beneficial for unseen data. In Part III, I discuss model evaluation; understanding its generalization capabilities. A robust model not only performs well on data it has seen during training but also on data in real-world conditions. This is especially essential for a task like hate speech detection. The phenomenon of underspecification can hamper this demand: models trained under the same circumstances and achieving similar scores can still show diverging behavior. Therefore, I focus on stability; exhibiting the same capabilities across different seeds. In Chapter 4 I start by measuring stability through model agreement on mistakes and aim to improve stability by using a cheap ensembling method that averages model weights across the gradient descent trajectory. As the technique does not appear to improve much in stability or performance, in Chapter 5 I take a data-centric perspective to investigate when this particular ensembling method could yield improved performance and stability. The hypotheses built around its effectiveness under different data properties are not supported by the results. As a next step, I conduct a preliminary study in Chapter 6 on the relationship between stability and the certainty of a model. The initial results on the task of question answering suggest a positive correlation between stability and certainty depending on the question type for each model, prompting a thorough investigation for the future. We then explicitly tie the three main components of the workflow together. It is important to verify whether the intentions (intended type of hate speech) are preserved throughout the workflow and is characterized by the model that will be deployed. In Chapter 7 I propose a framework to investigate whether the behavior of a model aligns with the intended definition of the hate speech dataset on which it was trained. When applied to hate speech datasets, the framework reveals gaps between the intended task definition and model behavior. The methodologies proposed across the workflow are a step toward more robust and reliable deployment of language models.

Publications

U.khurana - From concept to impact cover