Isolating authorship from content with semantic embeddings and contrastive learning

Javier Huertas-Tato, Adrián Girón-Jiménez, Alejandro Martín, David Camacho
11/27/2024
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Authorship has entangled style and content inside. Authors frequently write about the same topics in the same style, so when different authors write about the exact same topic the easiest way out to distinguish them is by understanding the nuances of their style. Modern neural models for authorship can pick up these features using contrastive learning, however, some amount of content leakage is always present. Our aim is to reduce the inevitable impact and correlation between content and authorship. We present a technique to use contrastive learning (InfoNCE) with additional hard negatives synthetically created using a semantic similarity model. This disentanglement technique aims to distance the content embedding space from the style embedding space, leading to embeddings more informed by style. We demonstrate the performance with ablations on two different datasets and compare them on out-of-domain challenges. Improvements are clearly shown on challenging evaluations on prolific authors with up to a 10% increase in accuracy when the settings are particularly hard. Trials on challenges also demonstrate the preservation of zero-shot capabilities of this method as fine tuning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huertastato2024isolating,
  title  = {Isolating authorship from content with semantic embeddings and contrastive learning},
  author = {Javier Huertas-Tato and Adrián Girón-Jiménez and Alejandro Martín and David Camacho},
  year   = {2024},
  eprint = {2411.18472},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.18472v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.18472.svg)](https://codeofpaper.com/paper/2411.18472)

Discussion