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
- Patrick Y. Wu (ORCID: https://orcid.org/0000-0001-6060-2562)
Institutions
- American University (US)
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
- American Political Science Association
- York University