Abstract
Qualitative content analysis is a cornerstone of social science research, yet its reliance on manual, iterative coding by human experts makes it difficult to scale to modern digital datasets. This paper introduces SCALE (Simulates Content Analysis via LLM agEnts), a multi-agent framework designed to automate the rigorous process of content analysis. By simulating independent coders, facilitating multi-round debates, and allowing for strategic human intervention, SCALE achieves high accuracy across diverse datasets. Our findings demonstrate that while autonomous LLM agents can effectively resolve ambiguities through discussion, human expertise remains vital for high-level theoretical restructuring of codebooks.
Introduction
Content analysis involves the systematic transformation of unstructured text—such as social media posts, interview transcripts, or news articles—into structured data based on theory-driven "codebooks." Traditionally, this process requires multiple human researchers to independently code data, resolve disagreements through deliberation, and iteratively refine the codebook to ensure reliability. This manual workflow is expensive, time-consuming, and increasingly impractical given the volume of contemporary data.
While Large Language Models (LLMs) have shown promise in text classification, standard zero-shot or few-shot prompting often fails to capture the nuanced, collaborative reasoning required for complex social science tasks. SCALE addresses this gap by mimicking the traditional human research pipeline using a multi-agent architecture.
The SCALE Framework
SCALE is structured to replicate the collaborative dynamics of a human research team through five distinct stages:
- Coder Simulation: To ensure a diversity of perspectives, multiple LLM agents are initialized with specific personas (e.g., a mid-career health communication researcher). This prevents the system from converging too quickly on a single, potentially biased interpretation.
- Bot Annotation: Agents independently apply an initial codebook to batches of text, providing labels for multi-class or multi-label tasks.
- Agent Discussion: When disagreements occur, agents enter a multi-round debate. They exchange reasoning and update their labels based on peer feedback. This phase is critical for resolving edge cases where the codebook might be ambiguous.
- Codebook Evolution: Following annotation, agents collaboratively review their performance to refine the codebook. This includes adding clarifying examples or tweaking rule definitions to reduce future errors.
- Human Intervention: SCALE incorporates a human-in-the-loop portal. Interventions are categorized by Scope (Targeted vs. Extensive) and Role (Collaborative vs. Directive). This allows experts to steer the model when it drifts from theoretical foundations.
Experimental Methodology
The framework was evaluated across five real-world social science datasets involving seven distinct classification tasks:
- Brand Consumer Dialogue (BCD): Topic and dialogue indicator identification.
- Cancer Emotional Support (CES): Classification of emotional support levels in social media comments.
- Cancer Narratives (CN): Identification of narrative sequences and perspectives.
- Flint Water Poisoning Emotion (FWPE): Multi-label detection of ten discrete emotions in tweets.
- Product Incidents Sentiment (PIS): Sentiment analysis regarding product recalls.
Experiments primarily utilized GPT-4o and GPT-4o-mini to assess the impact of model scale on reasoning capabilities.
Key Results and Insights
Autonomous Performance and the Power of Debate
In its fully autonomous mode (using GPT-4o), SCALE achieved an average accuracy of 0.701 across all tasks. A significant driver of this performance was the inter-agent discussion phase. Forcing agents to debate disagreements increased the inter-agent agreement rate by 41.1% and improved overall coding accuracy by 15.4% compared to initial independent outputs. This suggests that LLMs can effectively use peer reasoning to self-correct in ambiguous contexts.
The Impact of Human Intervention
Human expertise significantly boosted performance. The addition of human intervention raised the average accuracy to 0.872, representing a 12.6% relative improvement over the autonomous baseline. Notably, "Directive" interventions—where the human expert provides mandatory instructions—consistently outperformed "Collaborative" suggestions. This indicates that for theory-heavy tasks, LLMs perform best when following explicit expert constraints rather than attempting to negotiate them.
LLM Rigidity and Reasoning Pitfalls
While SCALE proved effective, the study revealed specific limitations in LLM reasoning:
- Codebook Restructuring: LLMs were proficient at adding examples to existing rules but struggled to fundamentally restructure a codebook (e.g., merging overlapping categories). They lacked the deep theoretical intuition required to redefine category boundaries.
- CoT Backfire: Interestingly, standard Chain-of-Thought (CoT) prompting occasionally hindered performance on highly subjective tasks. The authors hypothesize that step-by-step logic can lead LLMs into "rigid rabbit holes" in ambiguous contexts, whereas techniques like Tree-of-Thought (ToT) proved more robust.
Discussion and Limitations
Despite its success, SCALE faces challenges regarding compute overhead and the "human bottleneck." Multi-agent discussions are computationally intensive, and the most effective intervention strategies (Extensive-Directive) require significant expert time. Furthermore, the risk of algorithmic bias remains, as LLMs may mirror biases present in their training data despite persona diversification.
Conclusion
SCALE demonstrates that multi-agent frameworks can successfully simulate the collaborative rigor of social science content analysis. By integrating agent debate and structured human intervention, the framework provides a scalable path forward for analyzing large-scale qualitative data without sacrificing the nuanced reasoning essential to the field. Future work will focus on reducing compute costs and enabling agents to learn more effectively from human feedback over time.
Summary updated