Ideology Prediction of German Political Texts

· Source: Computation and Language · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, quick

Summary

Researchers propose a transformer-based model to project the political orientation of German texts onto a continuous left-to-right spectrum, represented by a normalized scalar d between -1 and 1. This model allows analysts to focus on specific political segments, which is challenging for traditional multiclass classifiers. The study evaluated 13 candidate transformer models using four distinct German corpora: annotated plenary notes from the Bundestag, data from the Wahl-O-Mat decision tool, articles from 33 politically oriented newspapers, and 535,200 tweets from 597 German Bundestag members. To prevent overfitting, two corpora were used for training and two for testing. DeBERTa-large achieved the highest in-domain F1 score of 0.844 and an out-of-domain Twitter accuracy of 0.864, while Gemma2-2B excelled on the newspaper out-of-domain test with a Mean Absolute Error (MAE) of 0.172. The findings indicate that model architecture and domain-specific training data are as crucial as model size for estimating political bias.

Key takeaway

For NLP Engineers developing political text analysis tools, this research highlights the effectiveness of transformer models for nuanced ideological mapping. You should prioritize domain-specific training data and carefully select model architecture, as these factors significantly influence the accuracy of political bias estimation. Consider DeBERTa-large for social media text and Gemma2-2B for news articles to achieve optimal performance in German political contexts.

Key insights

Transformer models can effectively map German political texts to a continuous ideological spectrum.

Principles

Method

A transformer-based model projects text onto a -1 to 1 political spectrum, trained and tested on distinct German political corpora including Bundestag notes, Wahl-O-Mat data, newspaper articles, and tweets.

In practice

Topics

Best for: AI Scientist, NLP Engineer, Research Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Computation and Language.