Manuscript Offprint

arXiv:2609.11109

How AI Coders Discuss, Disagree, and Reach Consensus: Challenges and Opportunities for LLM-Based Qualitative Coding

Jeongyeon Kim, John Mitchell

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

JEONGYEON KIM, Stanford University, USA

JOHN MITCHELL, Stanford University, USA

The utility of AI in multi-coder qualitative coding has been widely discussed, yet little empirical evidence exists to delineate the contexts in which it performs reliably. We address this gap by quantifying the effectiveness of multi-agent LLM coding across varied qualitative datasets, revealing key contextual and structural factors that mediate coding outcomes. We developed a literature-informed baseline pipeline that enables AI agents to independently code, debate, and reconcile disagreements. Results revealed that coding accuracy depends on factors such as codebook length, qualitative data similarity, and agent disagreement. Notably, intense and unresolved debates between agents led to higher accuracy. Our analysis showed that while LLMs emulate many human discussion behaviors, they lack adaptive responsiveness to context. From these findings, we offer design recommendations for building automated coding systems. Our open-source AI discussion dataset and methodological framework lay the groundwork for advancing the design of AI-mediated automated thematic analysis.

CCS Concepts: • Human-centered computing → Collaborative and social computing systems and tools; HCI design and evaluation methods; • Computing methodologies → Discourse, dialogue and pragmatics.

1 Introduction

Deductive qualitative coding is the process of applying predefined frameworks to categorize and interpret qualitative data. It is a time-consuming and labor-intensive task even for experts, demanding meticulous examination and contextual understanding of nuanced data [77, 80]. The central role of qualitative coding in social science has led to a growing body of recent work on automating qualitative coding through artificial intelligence (AI) and natural language processing (NLP) techniques. Motivated by our own interest in qualitative research with large amounts of data, we investigate AI-based coding methods modeled on human practices, such as multi-coder comparison and consensus. Our study quantifies the effectiveness of multi-agent Large Language Model (LLM) coding across varied qualitative datasets, revealing key contextual and structural factors that mediate coding outcomes.

In leveraging AI for multi-coder qualitative coding, we investigate how effectively AI can engage with the complexities of data, identifying specific conditions — when and in which contexts — AI demonstrates consistent reliability. Our analysis is intended to help researchers using our methods avoid both over-reliance that can amplify automation bias by sidelining necessary human interpretation and under-trust that could preclude their potential utility. Although AI tools may perform adequately in structured cases, they often falter in interpreting the nuanced subtleties of qualitative data like interview transcripts. This form of data may resist rigid categorization, requiring interpretive judgment that extends beyond mechanical rule-based classification. Even among experienced human coders, variability in interpretation is common, which is why measures like intra-rater reliability and consensus-building are indispensable. Qualitative coding is thus not merely a technical task but a deeply interpretive practice grounded in human insight.

Despite these inherent complexities of qualitative coding, recent advancements in LLMs have accelerated efforts to automate this process. They explored prompt engineering [31, 183] and incorporated human feedback loops into the automation process [14, 179]. However, these efforts remain confined to narrowly defined contexts, addressing limited or domain-specific datasets. Moreover, the prevailing focus on coding accuracy marginalizes user-centered

Authors' Contact Information: Jeongyeon Kim, jeongyeon.kim@stanford.edu, Stanford University, Stanford, CA, USA; John Mitchell, John.Mitchell@stanford.edu, Stanford University, Stanford, CA, USA.

Trovato et al.

considerations and broader system design concerns, such as transparency and interpretability. As a result, system designers are left without comprehensive, practically grounded frameworks to guide the development of automated systems that align with the needs and expectations of end users. Our research bridges these gaps by (1) investigating user needs with automated coding systems through conducting an exploratory literature review, (2) evaluating LLM capabilities across diverse datasets, and (3) proposing actionable design guidelines for future systems.

The findings of the exploratory literature review emphasize the significance of transparency and reliability in automated coding systems. The reviewed studies demonstrate that users seek to understand the underlying coding process, including why codes are assigned and how disagreements among coders are resolved. The literature also stresses the necessity of communicating system reliability, allowing users to set realistic expectations about system outputs. Another recurrent theme across the literature is a lack of explicit optimization strategies or actionable guidance to enhance system performance, which often leads to user frustration. Drawing upon the findings from the literature review, we proposed a set of design goals aimed at improving the transparency and reliability of automated qualitative coding systems.

Following a synthesis of user needs derived from our review, we investigated the capacity of LLMs with the aim of translating identified user needs into actionable design recommendations. Based on the extracted design goals, we developed a baseline pipeline for qualitative coding, which was applied across four distinct qualitative datasets. This pipeline adopts a multi-agent architecture where AI agents simulate the collaborative coding process of human coders. The experiment results demonstrated how factors such as dataset characteristics, labeling uncertainty, and coder consensus levels influence the effectiveness of LLM-based systems. For example, coding accuracy improves when the codebook is more concise and when AI coders engage in more intense disagreements during the coding process. Additionally, by analyzing and comparing the behaviors of LLMs and human coders, we identified strategies for developers and designers to adjust LLMs for automated coding tasks. The analysis revealed that while LLMs replicate basic human interaction patterns, such as acknowledging other discussants' perspectives and proposing alternatives, they fall short in nuances, such as questioning to clarify uncertainties or drawing on personal experiences.

These findings culminated in a set of design recommendations for creating LLM-based qualitative coding systems. The recommendations introduce strategies for designers, including guiding users of systems through data preprocessing, leveraging uncertainty and conflict as diagnostic signals for accuracy, and tuning agent discussion styles based on task ambiguity. These recommendations serve as a conceptual toolkit that helps users better understand and interact with model outputs. To advance the field, we made our baseline pipeline and the LLM agents' discussion dataset publicly available.

The contributions of our work can be summarized as below:

• Design goals for automated qualitative coding systems based on exploratory literature review

• Design of baseline pipeline for LLM-based qualitative coding

• Discussion dataset of LLM coders across four qualitative coding tasks

• Data analysis of LLM capabilities and factors influencing coding accuracy

• Design recommendations for LLM-based qualitative coding systems

References (48)