Abstract
The quantitative analysis of political ideological positions is a difficult task. In the past, various literature focused on parliamentary voting data of politicians, party manifestos and parliamentary speech to estimate political disagreement and polarization in various political systems. However previous methods of quantitative political analysis suffered from a common challenge which was the amount of data available for analysis. Also previous methods frequently focused on a more general analysis of politics such as overall polarization of the parliament or party-wide political ideological positions. In this paper, we present a method to analyze ideological positions of individual parliamentary representatives by leveraging the latent knowledge of LLMs. The method allows us to evaluate the stance of politicians on an axis of our choice allowing us to flexibly measure the stance of politicians in regards to a topic/controversy of our choice. We achieve this by using a fine-tuned BERT classifier to extract the opinion-based sentences from the speeches of representatives and projecting the average BERT embeddings for each representative on a pair of reference seeds. These reference seeds are either manually chosen representatives known to have opposing views on a particular topic or they are generated sentences which where created using the GPT-4 model of OpenAI. We created the sentences by prompting the GPT-4 model to generate a speech that would come from a politician defending a particular position.
Introduction
In quantitative political science, "scaling"—the process of placing politicians on a spectrum from liberal to conservative—is a foundational challenge. Traditionally, researchers have relied on roll-call voting records or word-frequency models like Wordscores. However, these methods face significant hurdles, particularly "data sparsity." In many legislative bodies, such as the Japanese Diet, individual roll-call votes are not always recorded, or only final results are documented.
Furthermore, standard models often collapse all political views into a single left-right dimension, failing to capture how a politician might be liberal on social issues but conservative on defense. Finally, older text-based methods suffer from "semantic blindness"; they count words but lack the context to distinguish between a politician mentioning a topic to support it versus mentioning it to condemn it.
Methodology
To address these issues, we propose L(u)PIN (LLM-based Political Ideology Nowcasting), a framework that utilizes Large Language Models to map the ideological positions of individual politicians on specific, granular issues.
The L(u)PIN pipeline involves a multi-step process to move from raw text to a nuanced ideological map:
- Filtering with BERT: We fine-tuned a Japanese BERT classifier to identify "opinion-based" sentences within thousands of parliamentary speeches, filtering out purely factual or descriptive filler.
- Embedding: These opinion sentences are converted into high-dimensional vectors (embeddings) using SBERT, capturing the latent semantic meaning of the speech.
- The Reference Axis: To turn these vectors into a 1D "pro-vs-contra" score, we project them onto a reference axis.
The core innovation of our approach lies in the creation of this ideological yardstick. We explore two distinct methods for defining the axis:
- Method 1 (Manual Reference Representatives): Using the difference between the average embeddings of two known opposing politicians on a specific topic.
- Method 2 (Generated References): Prompting GPT-4 to write "ideal" speeches for and against a specific topic (e.g., "Write a speech in favor of restarting nuclear plants"). The vector between these two synthetic speeches becomes the ideological axis.
Datasets and Validation
Our study utilized speeches from 464 representatives in the Japanese lower house (as of May 2023) via the Japanese Legislative Speech API. We trained our opinion/fact classifier on a custom dataset of 1,439 manually labeled segments. For ground truth validation, we compared our results against expert human estimations from Mielka, a Japanese NPO that analyzes party manifestos.
Key Results and Insights
L(u)PIN demonstrated high alignment with expert ratings. For example, on the topic of Japan Self-Defense Forces (JSDF) acknowledgement, the model correctly placed the Japanese Communist Party (JCP) and Constitutional Democratic Party (CDP) on the "anti" side, while the Liberal Democratic Party (LDP) was placed on the "pro" side.
One of the most powerful findings is that synthetic anchors work: GPT-4 generated "seed" speeches are just as effective at defining an ideological axis as real-world politicians. This allows researchers to "nowcast" stances on brand-new controversies where "extreme" examples might not yet be obvious. Additionally, the method allows for topic-specific scaling, measuring a politician's position specifically on "Nuclear Power" or "Constitutional Reform" rather than a generic left/right bucket.
We noted a slight discrepancy between our results and Mielka expert ratings, which we attribute to the difference between official party manifestos (what parties say they want) and floor speeches (what politicians actually say in debate).
Limitations and Future Work
While effective, the current model averages a politician's speeches over time, which may mask sudden shifts in opinion ("flip-flopping"). Future iterations could weight recent speeches more heavily. Additionally, using third-party LLMs introduces potential biases from the model's training data. We also recognize that party leaders often have more influence than backbenchers, a hierarchy not currently reflected in our equal-weighting approach. Finally, testing this framework on other parliamentary systems (e.g., the UK or Canada) is a necessary next step to prove its universality.
Summary updated