Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

StyleDistance: Stronger Content-Independent Style Embeddings with Synthetic Parallel Examples

About

Style representations aim to embed texts with similar writing styles closely and texts with different styles far apart, regardless of content. However, the contrastive triplets often used for training these representations may vary in both style and content, leading to potential content leakage in the representations. We introduce StyleDistance, a novel approach to training stronger content-independent style embeddings. We use a large language model to create a synthetic dataset of near-exact paraphrases with controlled style variations, and produce positive and negative examples across 40 distinct style features for precise contrastive learning. We assess the quality of our synthetic data and embeddings through human and automatic evaluations. StyleDistance enhances the content-independence of style embeddings, which generalize to real-world benchmarks and outperform leading style representations in downstream applications. Our model can be found at https://huggingface.co/StyleDistance/styledistance .

Ajay Patel, Jiacheng Zhu, Justin Qiu, Zachary Horvitz, Marianna Apidianaki, Kathleen McKeown, Chris Callison-Burch• 2024

Related benchmarks

TaskDatasetResultRank
Authorship VerificationBBN Harder
AUC93.6
6
Authorship VerificationLDC Harder
AUC0.935
6
Authorship VerificationBBN Hard
AUC0.809
6
Authorship VerificationLDC Hard
AUC83
6
Authorship VerificationBBN Base
AUC68.9
6
Authorship VerificationLDC Base
AUC69.4
6
Style Representation EvaluationSTEL-or-Content Cross-lingual (averaged across languages)
Formality0.49
5
Style Representation EvaluationSTEL-or-Content Multilingual (averaged across languages)
Simplicity Score21
5
Authorship VerificationPAN AV 2013 (test)
ROC-AUC (Greek)0.61
4
Authorship VerificationPAN AV 2014 (test)
ROC-AUC (Greek)0.48
4
Showing 10 of 12 rows

Other info

Follow for update