mStyleDistance: Multilingual Style Embeddings and their Evaluation
About
Style embeddings are useful for stylistic analysis and style transfer; however, only English style embeddings have been made available. We introduce Multilingual StyleDistance (mStyleDistance), a multilingual style embedding model trained using synthetic data and contrastive learning. We train the model on data from nine languages and create a multilingual STEL-or-Content benchmark (Wegmann et al., 2022) that serves to assess the embeddings' quality. We also employ our embeddings in an authorship verification task involving different languages. Our results show that mStyleDistance embeddings outperform existing models on these multilingual style benchmarks and generalize well to unseen features and languages. We make our model publicly available at https://huggingface.co/StyleDistance/mstyledistance .
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Style Representation Evaluation | STEL-or-Content Multilingual (averaged across languages) | Simplicity Score36 | 5 | |
| Style Representation Evaluation | STEL-or-Content Cross-lingual (averaged across languages) | Formality0.53 | 5 | |
| Authorship Verification | PAN AV 2015 (test) | ROC-AUC (Greek)0.58 | 4 | |
| Authorship Verification | PAN Average 2013-2015 (test) | Greek Avg ROC-AUC0.64 | 4 | |
| Authorship Verification | PAN AV 2014 (test) | ROC-AUC (Greek)0.53 | 4 | |
| Authorship Verification | PAN AV 2013 (test) | ROC-AUC (Greek)0.41 | 4 |