elib
DLR-Header
DLR-Logo -> http://www.dlr.de
DLR Portal Home | Imprint | Privacy Policy | Accessibility | Contact | Deutsch
Fontsize: [-] Text [+]

Steering Large Language Models towards Political Ideologies on Prompt-Level

Markus, Jost (2024) Steering Large Language Models towards Political Ideologies on Prompt-Level. Master's, Bielefeld University.

[img] PDF - Only accessible within DLR
17MB

Abstract

Large Language Models (LLMs) achieve state-of-the-art performance on a variety of Natural Language Processing (NLP) tasks and are employed in a diverse range of applications. However, studies provide evidence that LLMs follow a particular political ideology. If the ideologies within these models can also be easily manipulated, there is a risk that LLMs will be used as a political tool to promote certain ideologies. In this thesis, we go one step further and investigate the extent to which LLMs are able to adopt ideological biases on prompt-level. The aim of this work is to demonstrate the robustness of LLMs against ideological manipulation. To achieve this, we employ cost-effective methods, namely Prompt Engineering and Retrieval Augmented Generation (RAG), to steer three LLMs (ChatGPT, Mixtral and Qwen1.5 ) towards a target ideology. Within these methods, we ask the LLM to answer various political statements from two multiple-choice ideology tests, the Wahl-O-Mat and the Political Compass Test (PCT). In order to demonstrate that the models are capable of adopting political views found in complex political systems that extend beyond those analyzed in existing work, we utilize a dataset of German manifestos from the most popular German political parties to inject biased contexts from four distinct ideologies. Our findings reveal that the tested models were able to adapt to even indirect, related ideological contexts without the necessity for model training. Nevertheless, the models demonstrated a limited susceptibility to ideologically-driven triggers that were randomly selected. The thesis identifies the risks associated with deliberate and unintentional introduction of political bias on prompt-level and provides future directions for the development of fair AI practices. Code for the framework built to measure political ideologies is available at: https://github.com/j0st/PoliticalLLM. For an online demo, please check out https://huggingface.co/spaces/jost/PoliticalLLM

Item URL in elib:https://elib.dlr.de/205192/
Document Type:Thesis (Master's)
Additional Information:Supervised by Roxanne El Baff and Oliver Bensch from IVS-ISS
Title:Steering Large Language Models towards Political Ideologies on Prompt-Level
Authors:
AuthorsInstitution or Email of AuthorsAuthor's ORCID iDORCID Put Code
Markus, JostBielefeld UniversityUNSPECIFIEDUNSPECIFIED
Date:April 2024
Journal or Publication Title:Steering Large Language Models towards Political Ideologies on Prompt-Level
Open Access:No
Number of Pages:78
Status:Published
Keywords:LLM, LLM-impersonation, RAG, prompt-engineering, LLM-ideology
Institution:Bielefeld University
Department:Interdisziplinäre Medienwissenschaft
HGF - Research field:other
HGF - Program:other
HGF - Program Themes:other
DLR - Research area:no assignment
DLR - Program:no assignment
DLR - Research theme (Project):no assignment
Location: Oberpfaffenhofen
Institutes and Institutions:Institute of Software Technology > Intelligent and Distributed Systems
Institute of Software Technology
Deposited By: El Baff, Roxanne
Deposited On:12 Sep 2024 08:39
Last Modified:16 Sep 2024 13:23

Repository Staff Only: item control page

Browse
Search
Help & Contact
Information
OpenAIRE Validator logo electronic library is running on EPrints
Website and database design: Copyright © German Aerospace Center (DLR). All rights reserved.