Richard Bonneau, Patrick Wu, Joshua Tucker, Jonathan Nagler
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Text analysis in the social sciences often involves using specialized dictionaries to reason with abstract concepts, such as perceptions about the economy or abuse on social media. These dictionaries allow researchers to impart domain knowledge and note subtle usages of words relating to a concept(s) of interest. We introduce the dictionary-assisted supervised contrastive learning (DASCL) objective, allowing researchers to leverage specialized dictionaries when fine-tuning pretrained language models. The text is first keyword simplified: a common, fixed token replaces any word in the corpus that appears in the dictionary(ies) relevant to the concept of interest. During fine-tuning, a supervised contrastive objective draws closer the embeddings of the original and keyword-simplified texts of the same class while pushing further apart the embeddings of different classes. The keyword-simplified texts of the same class are more textually similar than their original text counterparts, which additionally draws the embeddings of the same class closer together. Combining DASCL and crossentropy improves classification performance metrics in few-shot learning settings and social science applications compared to using crossentropy alone and alternative contrastive and data augmentation methods. 1
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2210.15172")
get_code_for_paper("2210.15172")
have("2210.15172")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2210.15172.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2210.15172)
Connect an agent — have() is free.