arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.26489cs.CL
收藏

比较BERT句子对分类与少样本LLM提示在检测德国气候新闻中的威胁和解决方案框架

Comparing BERT Sentence-Pair Classification and Few-Shot LLM Prompting for Detecting Threat and Solution Framing in German Climate News

University of Graz(格拉茨大学);Technical University of Graz(格拉茨技术大学)

Raven Adam, David Maier, Marie Kogler

AI总结:

针对德语气候新闻句子级框架检测,比较了微调BERT(句子对分类)与少样本LLM提示(Llama 4)方法,BERT在F1上达到0.83,优于LLM的0.78。

摘要:

新闻媒体在塑造公众对气候变化认知方面发挥核心作用,报道是强调威胁还是解决方案对受众参与和政策支持有可测量的影响。在句子层面自动检测这些框架模式,使研究人员能够分析手动编码不可行的大规模语料库。我们系统比较了两种方法,用于将德语气候新闻文章中的句子分类为威胁导向、解决方案导向、两者兼有或两者均无。第一种方法使用开放权重大型语言模型(Llama 4 Maverick)进行少样本提示,采用思维链推理和带置信度评分的结构化输出。第二种方法微调德语BERT模型(deepset/gbert-large)进行句子对分类,其中前一句为目标句子提供上下文信息。两种方法均实现两个独立的二元分类器,一个用于威胁框架,一个用于解决方案框架。我们在一个包含440篇奥地利报纸文章的语料库上评估两种方法,这些文章按照与领域专家共同制定的详细编码方案进行了手动编码。微调后的BERT分类器在威胁和解决方案任务上均达到0.83的F1分数,而基于LLM的分类器达到0.78。消融研究证实,与单句输入相比,提供前一句作为上下文显著提高了BERT分类性能。这些结果丰富了计算社会科学中比较微调编码器模型与提示生成模型进行文本分类的研究。

英文摘要:

News media play a central role in shaping public perceptions of climate change, and whether coverage emphasizes threats or solutions has measurable effects on audience engagement and policy support. Automated detection of these framing patterns at the sentence level would allow researchers to analyze large corpora that are infeasible to code manually. We present a systematic comparison of two approaches for classifying sentences from German-language climate news articles as threat-oriented, solution-oriented, both, or neither. The first approach uses few-shot prompting with an open-weights large language model (Llama 4 Maverick), employing chain-of-thought reasoning and structured output with confidence scoring. The second approach fine-tunes a German BERT model (deepset/gbert-large) for sentence-pair classification, where the preceding sentence provides contextual information for the target sentence. Both approaches implement two independent binary classifiers, one for threat framing and one for solution framing. We evaluate both methods on a corpus of 440 Austrian newspaper articles that were manually coded following a detailed coding scheme developed with domain experts. The fine-tuned BERT classifiers achieve an F1 score of 0.83 for both the threat and solution tasks, while the LLM-based classifiers reach an F1 of 0.78. An ablation study confirms that providing the preceding sentence as context improves BERT classification performance substantially compared to single-sentence input. These results contribute to the growing body of work comparing fine-tuned encoder models with prompted generative models for text classification in computational social science.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑