LLM Analysis of 150+ Years of German Parliamentary Debates on Migration Reveals a Shift from Post-War Solidarity to Anti-Solidarity in the Last Decade

llm-analysis-of-150+-years-of-german-parliamentary-debates-on-migration-reveals-a-shift-from-post-war-solidarity-to-anti-solidarity-in-the-last-decade

LLM Analysis of 150+ Years of German Parliamentary Debates on Migration Reveals a Shift from Post-War Solidarity to Anti-Solidarity in the Last Decade

[Submitted on 8 Sep 2025 (v1), last revised 2 Nov 2026 (this version, v5)]

View PDF HTML (experimental)

Abstract:Migration has been a core topic in German political debate, from postwar expellee displacement to labor migration and recent refugee movements. Large-scale analysis of such political discourse has traditionally required extensive manual annotation, limiting coverage. Large language models (LLMs) offer a scalable alternative. Using a theory-driven annotation scheme, we examine how well LLMs annotate subtypes of solidarity and anti-solidarity in German parliamentary debates and whether the resulting labels support valid downstream inference. We first evaluate multiple LLMs across model size, prompting strategies, fine-tuning, historical versus contemporary data, and systematic errors. The strongest models, especially GPT-5 and gpt-oss-120B, achieve macro-F1 scores comparable to human agreement, although their systematic errors can bias downstream results. We therefore combine soft-label model outputs with Design-based Supervised Learning (DSL) to reduce bias in long-term trend estimates. Beyond the methodological evaluation, we interpret the resulting annotations from a social-scientific perspective across the Reichstag (1867-1933), West German Bundestag (1949-1990) and Re-Unified German Bundestag (1990-2025) corpus to trace trends in solidarity and anti-solidarity toward migrants, with detailed analysis of postwar Germany (1949-1957) and contemporary Germany (2009-2025). We find relatively high levels of solidarity in the postwar period, especially in group-based and compassionate forms, and a marked rise in anti-solidarity since 2015. We argue that LLMs can support large-scale social-scientific text analysis, but their outputs require rigorous validation and, where systematic errors are present, statistical correction.

Submission history

From: Aida Kostikova [view email]
[v1] Mon, 8 Sep 2025 23:16:03 UTC (2,167 KB)
[v2] Thu, 2 Apr 2026 09:43:57 UTC (3,091 KB)
[v3] Fri, 3 Apr 2026 07:30:26 UTC (3,091 KB)
[v4] Thu, 27 Aug 2026 13:31:30 UTC (3,167 KB)
[v5] Mon, 2 Nov 2026 20:26:15 UTC (3,167 KB)