用真实上下文提升社交媒体立场检测准确率
Contextualized Prompting For Stance Detection On Social Media

- 在零样本提示中加入用户背景、政党归属等上下文信息
- LLM生成的目标描述能稳定提升准确率,其他元数据效果不一
- 同一用户历史推文反而因噪声降低性能,适合研究上下文筛选
社交媒体立场检测因语言短小、嘈杂且依赖上下文而具挑战性。尽管大语言模型(LLMs)具备零样本泛化能力,但通常未引入上下文信息,限制其对模糊推文的理解。本文系统研究了将真实世界(如用户简介)、派生(如政党归属)及LLM生成(如目标描述)的上下文特征融入零样本提示对推特立场检测的影响。评估涵盖四个基准数据集,包括一个新的高质量德语推特立场数据集。在多个LLM上,我们发现整合上下文信息可提升性能,但仅在特定条件下成立。LLM生成的目标描述始终增强准确性,而其他用户元数据效果混合甚至有害。值得注意的是,同一用户的历史推文虽在监督学习中常有益,但在本设置中因输入噪声导致性能下降。定性分析显示,LLMs难以区分任务相关的有用信息与无关上下文。研究揭示了在嘈杂现实场景中使用上下文提示的潜力与挑战。代码与数据已公开于该链接。
原文摘要 · Abstract (English)
Stance detection on social media is challenging due to short, noisy, and context-dependent language. While large language models (LLMs) show zero-shot generalization, they are typically prompted without contextual information, which limits their ability to interpret ambiguous posts. In this work, we systematically investigate the impact of incorporating real-world (e.g., user biographies), derived (e.g., political party), and LLM-generated (e.g., target descriptions) contextual features into zero-shot prompting for stance detection on Twitter. Our evaluation spans four benchmark datasets, including a new high-quality German Twitter stance dataset. Across multiple LLMs, we find that integrating contextual information improves performance, but only under specific conditions. LLM-generated target descriptions consistently enhance accuracy, while other user metadata has mixed or even detrimental effects. Notably, we show that the inclusion of other tweets by the same user, often beneficial in supervised learning, can impair performance due to input noise. Our qualitative analysis reveals that LLMs struggle to distinguish task-specific useful information from irrelevant context. Our findings highlight both the promise and challenges of prompting with context information in noisy real-world settings. We publish code and data at this \href{https://github.com/tilmanbeck/stance-context-twitter}{page}.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。