mlsanityData to 13 Oct 2026

Understanding writing style in social media with a supervised contrastively pre-trained transformer

arXiv 2310.11081 ↗First posted 17 Oct 2023cs.CL cs.SIcited by 12

Not on the map. Why?

Abstract (arXiv)

Online Social Networks serve as fertile ground for harmful behavior, ranging from hate speech to the dissemination of disinformation. Malicious actors now have unprecedented freedom to misbehave, leading to severe societal unrest and dire consequences, as exemplified by events such as the Capitol assault during the US presidential election and the Antivaxx movement during the COVID-19 pandemic. Understanding online language has become more pressing than ever. While existing works predominantly focus on content analysis, we aim to shift the focus towards understanding harmful behaviors by relating content to their respective authors. Numerous novel approaches attempt to learn the stylistic features of authors in texts, but many of these approaches are constrained by small datasets or sub-optimal training losses. To overcome these limitations, we introduce the Style Transformer for Authorship Representations (STAR), trained on a large corpus derived from public sources of 4.5 x 106 authored texts involving 70k heterogeneous authors. Our model leverages Supervised Contrastive Loss to teach the model to minimize the distance between texts authored by the same individual. This author pretext pre-training task yields competitive performance at zero-shot with PAN challenges on attribution and clustering. Additionally, we attain promising results on PAN verification challenges using a single dense layer, with our model serving as an embedding encoder. Finally, we present results from our test partition on Reddit. Using a support base of 8 documents of 512 tokens, we can discern authors from sets of up to 1616 authors with at least 80% accuracy. We share our pre-trained model at huggingface (https://huggingface.co/AIDA-UPM/star) and our code is available at (https://github.com/jahuerta92/star)

Key facts. Cited by 12 papers in the map (data through 13 Oct 2026). Builds on 22 of its 64 references that are in the map. First posted on arXiv 17 Oct 2023.

Builds on

22 of 64 references.

References · 22

  1. 2017Attention Is All You Needcited by 60,106
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,588
  4. 2020Language Models are Few-Shot Learnerscited by 32,320
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
  7. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,107
  8. 2020Supervised Contrastive Learningcited by 2,811
  9. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,170
  10. 2022Same Author or Just Same Topic? Towards Content-Independent Style Representationscited by 85
  11. 2023Spanish Pre-trained BERT Model and Evaluation Datacited by 81
  12. 2018A standardized Project Gutenberg corpus for statistical analysis of natural language and quantitative linguisticscited by 64
10 more
  1. 2019Encoding Musical Style with Transformer Autoencoderscited by 35
  2. 2021Styleformer: Transformer based Generative Adversarial Networks with Style Vectorcited by 27
  3. 2016Task-Guided and Path-Augmented Heterogeneous Network Embedding for Author Identificationcited by 18
  4. 2021The Topic Confusion Task: A Novel Scenario for Authorship Attributioncited by 17
  5. 2022Whodunit? Learning to Contrast for Authorship Attributioncited by 17
  6. 2022Pair-Level Supervised Contrastive Learning for Natural Language Inferencecited by 12
  7. 2021DeepStyle: User Style Embedding for Authorship Attribution of Short Textscited by 10
  8. 2020A Self-supervised Representation Learning of Sentence Structure for Authorship Attributioncited by 6
  9. 2021Unified and Multilingual Author Profiling for Detecting Haterscited by 4
  10. 2022Can You Fool AI by Doing a 180? unicodex2013 A Case Study on Authorship Analysis of Texts by Arata Osadacited by 2

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2024: 2; 2025: 3; 2026: 7.

12 papers.