SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.02309 · NAACL · 2022

Towards Robust and Semantically Organised Latent Representations for Unsupervised Text Style Transfer

Maunendra Sankar Desarkar, Sharan Narasimhan, Suvodip Dey

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 14 functions out of this paper's own repositories and ran 11 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
sharan21/EPAAE — 11 of 14
FunctionStatusWhere it lives
TextModel Ran sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("bb9989b32e830301")
get_anneal_weight Ran sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("fde366f6463eb000")
get_glove Ran sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("2c5ac586d6bbd26e")
load_glove Ran sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("f33b25fbebcd0a54")
log_prob Ran sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("4ebc241db4d9569d")
noisy Ran sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("804024b3e7ec5ab5")
reparameterize Ran sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("447585e6fedec167")
word_blank Ran sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("17919456d86a482f")
word_drop Ran sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("29cab3c8d0e924a4")
word_shuffle Ran sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("bcb6a0a9acc041dd")
word_substitute Ran sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("e8d1d1068d437816")
AAE Not yet run sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("ea8ebd56c7715792")
DAE Not yet run sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("82c5126ce64df11b")
embd_noise Not yet run sharan21/EPAAE/model.py
pointer only (licence: NONE) · get_code("7870307065180eaa")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent studies show that auto-encoder based approaches successfully perform language generation, smooth sentence interpolation, and style transfer over unseen attributes using unlabelled datasets in a zero-shot manner. The latent space geometry of such models is organised well enough to perform on datasets where the style is "coarse-grained" i.e. a small fraction of words alone in a sentence are enough to determine the overall style label. A recent study uses a discrete token-based perturbation approach to map "similar" sentences ("similar" defined by low Levenshtein distance/ high word overlap) close by in latent space. This definition of "similarity" does not look into the underlying nuances of the constituent words while mapping latent space neighbourhoods and therefore fails to recognise sentences with different style-based semantics while mapping latent neighbourhoods. We introduce EPAAEs (Embedding Perturbed Adversarial AutoEncoders) which completes this perturbation model, by adding a finely adjustable noise component on the continuous embeddings space. We empirically show that this (a) produces a better organised latent space that clusters stylistically similar sentences together, (b) performs best on a diverse set of text style transfer tasks than similar denoising-inspired baselines, and (c) is capable of fine-grained control of Style Transfer strength. We also extend the text style transfer tasks to NLI datasets and show that these more complex definitions of style are learned best by EPAAE. To the best of our knowledge, extending style transfer to NLI tasks has not been explored before. * * Our code, data and outputs are available at https:// github.com/sharan21/EPAAE

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2205.02309")
get_code_for_paper("2205.02309")
have("2205.02309")

Connect an agent — have() is free.