Using cross-encoders to measure the similarity of short texts in political science

IF 4.7 1区 社会学 Q1 POLITICAL SCIENCE
Gechun Lin
{"title":"Using cross-encoders to measure the similarity of short texts in political science","authors":"Gechun Lin","doi":"10.1111/ajps.12956","DOIUrl":null,"url":null,"abstract":"<p>In many settings, scholars wish to estimate the similarity of political texts. However, the most commonly used methods in political science struggle to identify when two texts convey the same <i>meaning</i> as they rely too heavily on identifying words that appear in both documents. This limitation is especially salient when the underlying documents are short, an increasingly prevalent form of textual data in modern political research. Building on recent advances in computer science, I introduce to political science cross-encoders for precise estimates of <i>semantic</i> similarity in short texts. Scholars can use either off-the-shelf versions or build a customized model. I illustrate this approach in three examples applied to social messages generated in a telephone game, news headlines about US Supreme Court decisions, and Facebook posts from members of Congress. I show that cross-encoders, which utilize <i>pair-</i>level embeddings, offer superior performance across tasks relative to word-based and sentence-level embedding approaches.</p>","PeriodicalId":48447,"journal":{"name":"American Journal of Political Science","volume":"69 4","pages":"1600-1616"},"PeriodicalIF":4.7000,"publicationDate":"2025-03-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"American Journal of Political Science","FirstCategoryId":"90","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1111/ajps.12956","RegionNum":1,"RegionCategory":"社会学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"POLITICAL SCIENCE","Score":null,"Total":0}
引用次数: 0

Abstract

In many settings, scholars wish to estimate the similarity of political texts. However, the most commonly used methods in political science struggle to identify when two texts convey the same meaning as they rely too heavily on identifying words that appear in both documents. This limitation is especially salient when the underlying documents are short, an increasingly prevalent form of textual data in modern political research. Building on recent advances in computer science, I introduce to political science cross-encoders for precise estimates of semantic similarity in short texts. Scholars can use either off-the-shelf versions or build a customized model. I illustrate this approach in three examples applied to social messages generated in a telephone game, news headlines about US Supreme Court decisions, and Facebook posts from members of Congress. I show that cross-encoders, which utilize pair-level embeddings, offer superior performance across tasks relative to word-based and sentence-level embedding approaches.

用交叉编码器测量政治学短文本的相似度
在许多情况下,学者希望估计政治文本的相似性。然而,政治学中最常用的方法很难识别两篇文章何时传达了相同的意思,因为它们过于依赖于识别两篇文章中出现的单词。当基础文件很短时,这种限制尤其突出,这是现代政治研究中越来越普遍的文本数据形式。基于计算机科学的最新进展,我向政治学介绍了用于精确估计短文本语义相似性的交叉编码器。学者们既可以使用现成的版本,也可以建立定制的模型。我用三个例子来说明这种方法,这些例子分别是手机游戏产生的社交信息、美国最高法院判决的新闻标题和国会议员在Facebook上的帖子。我展示了使用对级嵌入的交叉编码器,相对于基于单词和句子级嵌入方法,在跨任务方面提供了更好的性能。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
9.30
自引率
2.40%
发文量
61
期刊介绍: The American Journal of Political Science (AJPS) publishes research in all major areas of political science including American politics, public policy, international relations, comparative politics, political methodology, and political theory. Founded in 1956, the AJPS publishes articles that make outstanding contributions to scholarly knowledge about notable theoretical concerns, puzzles or controversies in any subfield of political science.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书