NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions
Matthias Grabmair

Matthias Grabmair

Technical University of Munich
5 previous affiliations
11Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Matthias Grabmair focuses on Legal Natural Language Processing (Legal NLP), with a particular emphasis on the intersection of machine learning, legal reasoning, and human-centric AI. His work addresses the challenges of Cross-Jurisdictional Generalizability in Legal AI, specifically investigating how large language models (LLMs) can be calibrated to handle the inherent complexity, disagreement, and value pluralism found in legal systems. His recent research explores the nuances of human label variation in legal datasets, the explainability of automated judgment prediction, and the political leanings embedded within the training data of foundation models.

Research Trajectory

The evolution of Grabmair’s research reflects a transition from general natural language understanding and dialogue systems toward specialized applications in the legal domain. In 2017, his work contributed to the development of methodologies for eliciting lexically diverse queries for semantic parsing, addressing the bias inherent in grammar-generated canonical utterances. This early interest in linguistic diversity and data elicitation laid the groundwork for his later investigations into how variety in human expression and interpretation affects machine learning performance.

By 2021, Grabmair’s focus shifted decisively toward Legal NLP, specifically the application of deep learning to legal citation recommendation. This period marked the beginning of his leadership in developing tools that assist legal professionals in navigating complex case law. As the field moved toward more sophisticated generative models, his work evolved to address the critical need for transparency in high-stakes decision-making. This led to a sustained focus on Self-Explainable Neural Networks without Performance Loss within the legal context, where accuracy must be balanced with the ability of legal experts to trust and verify model outputs.

From 2023 onward, Grabmair’s research has increasingly centered on the phenomenon of human label variation (HLV). Recognizing that legal experts often disagree on the interpretation of facts and the construction of rationales, he has pioneered methods to study these disagreements rather than treating them as noise. This trajectory has expanded to include the study of "split votes" in judicial decisions, using them as a lens to evaluate model calibration and the alignment between AI-perceived difficulty and human judicial disagreement. Most recently, his work has extended into the socio-political dimensions of AI, examining how the values embedded in pretraining corpora influence the political leanings of LLMs when applied to constitutional law.

Current Directions

Grabmair’s current research agenda is defined by three primary pillars: the modeling of expert disagreement, the multilingual adaptation of legal models, and the optimization of retrieval mechanisms for foundation models.

A central theme in his recent work is the move beyond majority-class labels in Legal Judgment Prediction (LJP). By collecting and analyzing datasets that capture the variation in how experts construct rationales, Grabmair seeks to build systems that are not only more accurate but also more reflective of the deliberative nature of law. This involves developing taxonomies for human disagreement and exploring how these variations can be used to improve model trustworthiness.

In the realm of multilingualism, Grabmair has participated in efforts toward Linguistic Interference in Shared Multilingual Parameter Spaces, specifically through the lens of Swiss Judgment Prediction. This work addresses the "curse of multilinguality" by benchmarking explainability and fairness across datasets involving German, French, and Italian, ensuring that legal AI tools remain robust across diverse linguistic and jurisdictional boundaries.

Finally, Grabmair is increasingly focused on the technical mechanisms of information retrieval within LLM workflows. This includes exploring Determinantal Point Processes for Diverse Subset Selection and Diverse Set Selection for Retrieval Augmented Generation. By implementing Diversity-Aware Retrieval for In-Context Learning, his work aims to mitigate the "redundancy trap" in RAG systems, ensuring that the limited context window of an LLM is populated with a broad spectrum of relevant legal perspectives rather than repetitive information.

Representative Work

How Would You Say It? Eliciting Lexically Diverse Dialogue for Supervised Semantic Parsing In this 2017 study, Grabmair participated in developing a methodology to elicit diverse and meaningful queries from users for semantic parsing tasks. The work addressed a common limitation in building dialogue interfaces: the bias introduced when crowdworkers paraphrase canonical utterances. By focusing on lexical diversity, the research provided a framework for creating more realistic and robust training datasets for dialogue systems.

Context-aware legal citation recommendation using deep learning Serving as senior author, Grabmair led this 2021 investigation into deep learning architectures for legal citation. The research focused on context-aware recommendation, moving beyond simple keyword matching to understand the semantic relationship between a legal text and the citations it requires. This work established a foundation for more complex legal reasoning tasks in his subsequent research.

From Dissonance to Insights: Dissecting Disagreements in Rationale Construction for Case Outcome Classification In this senior-authored paper, Grabmair introduced the RAVE (Rationale Variation in ECHR) dataset, which captures the disagreements between legal experts in international human rights law. The study argues that human label variation is a critical feature of legal data rather than an error to be smoothed over. By building a taxonomy of these disagreements, the work provides a new path for developing explainable and trustworthy Case Outcome Classification (COC) systems.

Through the Lens of Split Vote: Exploring Disagreement, Difficulty and Calibration in Legal Case Outcome Classification Continuing the focus on judicial disagreement, this 2024 paper examines "split votes" in the European Court of Human Rights. Grabmair and his colleagues explored how these naturally occurring disagreements serve as a proxy for case difficulty. The research evaluates whether AI systems are properly calibrated to these difficulties, highlighting the importance of aligning machine confidence with the inherent value pluralism found in human judicial panels.

Towards Explainability and Fairness in Swiss Judgement Prediction: Benchmarking on a Multilingual Dataset Grabmair participated in this benchmarking study of the Swiss Judgement Prediction (SJP) dataset, the only available multilingual LJP dataset. The research utilized an occlusion-based explainability approach to evaluate how models handle rationales in German, French, and Italian. The study is a significant contribution to understanding how fairness and transparency can be maintained in multilingual legal environments.

Better Aligned with Survey Respondents or Training Data? Unveiling Political Leanings of LLMs on U.S. Supreme Court Cases In this 2025 senior-authored work, Grabmair investigated the underlying causes of political bias in LLMs. By quantitatively evaluating the political leanings embedded in large pretraining corpora and comparing them to model outputs on U.S. Supreme Court cases, the research examines whether LLMs align more closely with their training data or with human survey respondents. This work is critical for understanding the potential of foundation models to shape or reflect public opinion in legal and political contexts.

Profile updated

See something wrong? Report a mistake