Using Semantically Unrelated and Opposite Terms for In-Context Learning: A Case Study in Identifying Political Aversion in Tweets

We investigate how semantic priors embedded in generative large language models (LLMs) interact with concept definitions in prompts, using political aversion detection as a case study.Through systematic variations in the wording of the definition of political aversion-replacing key words with opposite terms, semantically unrelated terms, or deliberately nonsensical strings-we examine how models process and apply these manipulated definitions in classification tasks.Our results show that certain LLMs maintain consistent performance across different prompt configurations, regardless of which terms are used or whether examples are included.Strong classification performances even with nonsensical definitions suggest these models may sometimes rely more on patterns in target content than definitions given in prompts.These findings challenge conventional assumptions about prompt engineering and raise important questions about how LLMs utilize information in prompts for classification decisions, while underscoring the need for careful validation when applying these methods to social and political science measurement tasks.

Authors

Institutions

Publication Details

Published
2025-05-19
DOI
https://doi.org/10.1145/3717867.3717913
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Using Semantically Unrelated and Opposite Terms for In-Context Learning: A Case Study in Identifying Political Aversion in Tweets

Patrick Y. Wu
Sentiment Analysis and Opinion Mining
article

Using Semantically Unrelated and Opposite Terms for In-Context Learning: A Case Study in Identifying Political Aversion in Tweets

Patrick Y. Wu
article en

Abstract

We investigate how semantic priors embedded in generative large language models (LLMs) interact with concept definitions in prompts, using political aversion detection as a case study.Through systematic variations in the wording of the definition of political aversion-replacing key words with opposite terms, semantically unrelated terms, or deliberately nonsensical strings-we examine how models process and apply these manipulated definitions in classification tasks.Our results show that certain LLMs maintain consistent performance across different prompt configurations, regardless of which terms are used or whether examples are included.Strong classification performances even with nonsensical definitions suggest these models may sometimes rely more on patterns in target content than definitions given in prompts.These findings challenge conventional assumptions about prompt engineering and raise important questions about how LLMs utilize information in prompts for classification decisions, while underscoring the need for careful validation when applying these methods to social and political science measurement tasks.

American University (US)
American Political Science Association, York University
Reduced inequalities
Openalex Percentile: Top 95%
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.