← Latest papers
💬 NLP

Graph-Augmented LLMs for Swiss MP Ideology Prediction

This paper introduces PG-RAG, a retrieval-augmented generation framework that integrates political knowledge graphs with Large Language Models to significantly improve the accuracy of predicting Swiss Members of Parliament's ideological positions by leveraging both textual semantics and inter-actor relationships.

Original authors: Yifei Yuan, Luis Salamanca, Sophia Schlosser, Laurence Brandenberger

Published 2026-05-07
📖 4 min read☕ Coffee break read

Original authors: Yifei Yuan, Luis Salamanca, Sophia Schlosser, Laurence Brandenberger

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine trying to guess a politician's true political "flavor" (whether they lean left, right, or somewhere in the middle) just by reading their speeches. It's like trying to guess a person's personality by only reading their diary entries. You get some clues, but you miss the bigger picture: who they hang out with, which clubs they join, and what projects they actually sign up for.

This paper introduces a new tool called PG-RAG that acts like a super-smart detective. Instead of just reading the politician's diary (their speeches), it also checks their "social network" and "resume" stored in a giant digital map called a Knowledge Graph.

Here is how the paper breaks it down, using simple analogies:

1. The Problem: Reading Only the Script

Traditionally, researchers tried to guess a politician's ideology by feeding their speeches into AI models (Large Language Models).

  • The Flaw: This is like trying to understand a student's grades just by reading their homework, ignoring who their friends are, which sports teams they play on, or which teachers they work with.
  • The Reality: In a parliament, politicians don't act alone. They form groups, join committees, and co-sponsor laws. The paper argues that ignoring these connections makes the AI's guess less accurate.

2. The Solution: The "Digital Map" (PG-RAG)

The authors built a system that treats the parliament like a massive, interconnected web. They created a Knowledge Graph—think of it as a giant family tree mixed with a subway map.

  • The Nodes (Stops): These are the politicians, the parties, the committees, and the laws.
  • The Edges (Tracks): These are the connections, like "Member of Committee X," "Co-sponsored Law Y," or "Friend of Party Z."

When the AI needs to guess a politician's ideology, it doesn't just look at the politician in isolation. It queries this map to pull up a "subgraph" (a small, relevant piece of the map) surrounding that specific person.

3. The Three Ways to Look at the Map

The researchers tested three different ways to gather information from this map, like looking at a person through different lenses:

  • The "Speech" Lens (SP): This is the old way. It only looks at the text of the speeches the politician gave. It's like reading only their diary.
  • The "Person" Lens (MP): This looks at the politician's immediate circle. It asks: "Who is this person? What party do they belong to? Which committees are they on? Which city do they represent?" This is like looking at their LinkedIn profile and their high school yearbook.
  • The "Project" Lens (PR): This looks at the laws the politician proposed or supported. It asks: "What specific bills did they champion?" This is like looking at their portfolio of completed projects.

4. How the AI Uses the Info

Once the system pulls this extra data from the map, it has to explain it to the AI. They tried two methods:

  • The "Summary" Method: The AI reads the map data and writes a short, natural-language biography (e.g., "This person is a Liberal who sits on the Education Committee...").
  • The "Raw" Method: The AI is given the raw list of connections and facts, like a messy spreadsheet, and has to figure out the pattern itself.

5. What They Found

The researchers tested this on Swiss politicians using real voting records as the "ground truth" (the actual answer key).

  • Better Accuracy: Adding the "map" information made the AI much better at guessing. It was like giving the detective a map of the suspect's friends; the guess became much sharper.
  • The "Small Model" Boost: Interestingly, smaller, less powerful AI models benefited the most from this extra map data. It's like a student who needs a study guide to ace the test, whereas a genius student might have figured it out without one.
  • The "Left-Wing" Struggle: The AI still struggled a bit with politicians from the Social Democratic (left-leaning) parties. It tended to guess they were slightly more "right" than they actually were. The paper suggests this might be because these politicians have complex internal differences that are hard to pin down, or perhaps the AI has a built-in bias toward moderation.

The Bottom Line

The paper claims that to truly understand a politician's ideology, you can't just listen to what they say. You have to look at who they are connected to and what they do within the system. By feeding this "relational" data into AI, the predictions become significantly more accurate, turning a simple text analysis into a full-spectrum political profile.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →