Towards algorithmic framing analysis: expanding the scope by using LLMs

Xianwen Kuang, Jun Liu, Haiyang Zhang, Simon Schweighofer

Abstract

Traditional framing analysis in social sciences is a labor-intensive manual process that often limits research to small-scale datasets. This study explores the use of Large Language Models (LLMs) and Natural Language Inference (NLI) to automate the identification of media frames. By implementing text chunking and multi-hypothesis testing, the researchers achieved "fair" agreement with human coders in a zero-shot setting, suggesting a scalable solution for processing millions of documents that were previously too labor-intensive to analyze.

Introduction

Framing analysis examines how media outlets emphasize specific aspects of reality to promote particular interpretations (e.g., focusing on "economic consequences" versus "human interest"). While traditional Natural Language Processing (NLP) excels at identifying topics, identifying abstract frames—which often lack specific keywords—remains challenging. As digital media generates millions of documents daily, manual coding by human experts has become a significant bottleneck. This paper investigates whether LLMs can bridge this gap without requiring massive amounts of task-specific training data.

Methodology: NLI and Text Chunking

The researchers utilized BERT-NLI, a model fine-tuned for Natural Language Inference. NLI determines if a "premise" (text snippet) entails, contradicts, or is neutral toward a "hypothesis" (statement). To adapt this for complex media texts, two primary innovations were introduced:

  1. Text Chunking: Because BERT has a 512-token limit and many news articles are significantly longer, the authors segmented articles into smaller chunks (ranging from 1 to 15 sentences). Aggregating results across these chunks (using the maximum probability found) significantly improved performance.
  2. Multi-Hypothesis Statements: Instead of a single prompt, three distinct "everyday language" hypotheses were used for each of the seven generic frames. For instance, the Human Interest frame included the hypothesis: "The quote tells a person’s story." This approach mimics the multi-item questionnaires used by human researchers to measure abstract concepts.
Distribution of article lengths in tokens, illustrating the necessity of chunking due to the 512-token limit of BERT models.

Experimental Datasets

The model was evaluated on two pre-coded datasets with distinct characteristics:

  • TCM Dataset: 253 articles on Traditional Chinese Medicine (multi-class task where raters chose exactly one dominant frame).
  • UKR Dataset: 100 articles on the Russia-Ukraine war (multi-label task where raters could select multiple frames).

Both datasets exhibited "unbalanced" distributions, where certain frames were much more prevalent than others, reflecting the realistic challenges of media analysis.

Prevalence of different frames across the UKR and TCM datasets, showing significant class imbalance.

Key Insights

  • Contextual Sensitivity: Model reliability varied by topic. "Economic Consequences" was easily identified in the Ukraine dataset due to specific macro-economic vocabulary but proved harder in the TCM context.
  • Conceptual Overlap: The model often struggled to distinguish between "Conflict" and "Responsibility" frames. The authors note these are conceptually related in political discourse, and the zero-shot LLM often perceived them as the same signal.
  • Optimal Chunk Size: Performance peaked when using 1-sentence chunks for TCM and 4-sentence chunks for UKR, suggesting that frames are often localized within specific sections of an article rather than spread evenly throughout.
  • Zero-Shot Viability: The model achieved "fair agreement" (Cohen’s Kappa ~0.3–0.4) without any fine-tuning, demonstrating its potential as a powerful labor-saving tool for initial large-scale screenings.

Results and Performance

The model achieved a global Cohen’s Kappa of 0.31 for TCM and a weighted average of 0.36 for UKR. In the UKR dataset, average accuracy reached 75.1%. Frames like "Human Interest" and "Economic Consequences" were the most reliably detected (Kappa 0.5–0.6), while "Factual Information" remained the most challenging for the model to identify reliably.

Limitations and Future Directions

The study highlights that while zero-shot LLMs are promising, they are not yet a complete replacement for human coders. Attempting to fine-tune on small chunked datasets actually decreased performance by causing the model to "over-diagnose" frames. Future work will focus on refining hypothesis statements and optimizing thresholds for specific contexts. Researchers conclude that maintaining a human-annotated test set remains essential to validate automated results in any new domain.

Summary updated

BibTeX
@article{kuang2025towards,
  author = {Xianwen Kuang and Jun Liu and Haiyang Zhang and Simon Schweighofer},
  title = {{Towards algorithmic framing analysis: expanding the scope by using LLMs}},
  journal = {J. big Data},
  year = {2025},
  doi = {10.1186/s40537-025-01092-y},
}
Figure