Isolating authorship from content with semantic embeddings and contrastive learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Huertas-Tato, Javier, Girón-Jiménez, Adrián, Martín, Alejandro, Camacho, David
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909406512283648
author Huertas-Tato, Javier
Girón-Jiménez, Adrián
Martín, Alejandro
Camacho, David
author_facet Huertas-Tato, Javier
Girón-Jiménez, Adrián
Martín, Alejandro
Camacho, David
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2411_18472
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Isolating authorship from content with semantic embeddings and contrastive learning
Huertas-Tato, Javier
Girón-Jiménez, Adrián
Martín, Alejandro
Camacho, David
Computation and Language
Machine Learning
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.
title Isolating authorship from content with semantic embeddings and contrastive learning
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2411.18472