Papers › A Probabilistic Formulation of Unsupervised Text Style Transfer

A Probabilistic Formulation of Unsupervised Text Style Transfer

10 Feb 2020ICLR 2020 1arXiv:2002.03912archive 2025-07-28

Junxian He, Xinyi Wang, Graham Neubig, Taylor Berg-Kirkpatrick

We present a deep generative model for unsupervised text style transfer that unifies previously proposed non-generative techniques. Our probabilistic approach models non-parallel data from two domains as a partially observed parallel corpus. By hypothesizing a parallel latent sequence that generates each observed sequence, our model learns to transform sequences from one domain to another in a completely unsupervised fashion. In contrast with traditional generative sequence models (e.g. the HMM), our model makes few assumptions about the data it generates: it uses a recurrent language model as a prior and an encoder-decoder as a transduction distribution. While computation of marginal data likelihood is intractable in this model class, we show that amortized variational inference admits a practical surrogate. Further, by drawing connections between our variational objective and other recent unsupervised style transfer and machine translation techniques, we show how our probabilistic view can unify some known non-generative objectives such as backtranslation and adversarial loss. Finally, we demonstrate the effectiveness of our method on a wide range of unsupervised style transfer tasks, including sentiment transfer, formality transfer, word decipherment, author imitation, and related language translation. Across all style transfer tasks, our approach yields substantial gains over state-of-the-art non-generative baselines, including the state-of-the-art unsupervised machine translation techniques that our approach generalizes. Further, we conduct experiments on a standard unsupervised machine translation task and find that our unified approach matches the current state-of-the-art.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2002.03912")

Code

Syntology Ran 18 of 25 code samples harvested from 2 repositories linked to this paper; 7 have no recorded run. Of those that ran: 5 ran · our draft was wrong; 2 ran · fixture could not drive it; 11 ran with no contract checked.

By repository: community (archive-listed): 22 samples from 2 repositories, 15 ran; 3 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

cindyxinyiwang/deep-latent-sequence-model officialmentioned in papermentioned on GitHubpytorch report
cindyxinyiwang/TextStyleTransfer mentioned on GitHubpytorch report
kaletap/nlp-experiments mentioned on GitHubpytorch report
thu-coai/NAST mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

25 samples harvested; 18 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran · our draft was wrong
2ran · fixture could not drive it
11ran
7unverified

Licence: 12 of the 25 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Beam cindyxinyiwang/TextStyleTransfer/src/transformer.py community (archive-listed) ran no licence file found · pointer only · 2a0fe14622f8497d · report
DecoderLayer thu-coai/NAST/styletransformer/transformer.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · f62647ab841d8eac · report
EmbeddingLayer thu-coai/NAST/styletransformer/transformer.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · fd281e0df749b749 · report
Encoder thu-coai/NAST/styletransformer/transformer.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · ac16887aad3c401d · report
EncoderLayer thu-coai/NAST/styletransformer/transformer.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · fe38343a20d6cec6 · report
Generator thu-coai/NAST/styletransformer/transformer.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 31ab6deda5fe5457 · report
Hyp cindyxinyiwang/TextStyleTransfer/src/transformer.py community (archive-listed) ran no licence file found · pointer only · 9f75aa33a1ccdc32 · report
LayerNorm thu-coai/NAST/styletransformer/transformer.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 244df97d092c7e06 · report
MultiHeadAttention thu-coai/NAST/styletransformer/transformer.py community (archive-listed) ran MIT (permissive) · b9a5bb409e08cbc8 · report
PolyNorm cindyxinyiwang/TextStyleTransfer/src/transformer.py community (archive-listed) ran no licence file found · pointer only · e2b9062d0b945f4b · report
PositionwiseFeedForward thu-coai/NAST/styletransformer/transformer.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 94350806140c9d40 · report
SublayerConnection thu-coai/NAST/styletransformer/transformer.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 3e2638d464cbc25c · report
advcance_ens_beam cindyxinyiwang/TextStyleTransfer/src/transformer.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · 7a943e0929e23b36 · report
select_active_enc_info cindyxinyiwang/TextStyleTransfer/src/transformer.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · ca8292bfcf4d9b5a · report
select_active_enc_mask cindyxinyiwang/TextStyleTransfer/src/transformer.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · a97450c4460623c1 · report
Decoder thu-coai/NAST/styletransformer/transformer.py community (archive-listed) unverified MIT (permissive) · dbea3ea139953d0c · report
Decoder cindyxinyiwang/TextStyleTransfer/src/transformer.py community (archive-listed) unverified no licence file found · pointer only · 7a121f5925381565 · report
Encoder cindyxinyiwang/TextStyleTransfer/src/transformer.py community (archive-listed) unverified no licence file found · pointer only · 4e9d07e2d5cbf009 · report
HiddenDecoder thu-coai/NAST/styletransformer/transformer.py community (archive-listed) unverified MIT (permissive) · 159a44511500802f · report
LengthPredictor thu-coai/NAST/styletransformer/transformer.py community (archive-listed) unverified MIT (permissive) · 6d9d8f5da460708b · report
StyleTransformer thu-coai/NAST/styletransformer/transformer.py community (archive-listed) unverified MIT (permissive) · e73587b60482cbcc · report
Transformer cindyxinyiwang/TextStyleTransfer/src/transformer.py community (archive-listed) unverified no licence file found · pointer only · 30cf69b3b879a328 · report
Embedding identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · cc6417e762730325 · report
Linear identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 01f0f6d4a6e475b1 · report
scaled_attention identical code first harvested elsewhere ran · fixture could not drive it licence of this copy not recorded · 97bd0c0f69d68e77 · report

Tasks

DeciphermentLanguage ModellingMachine TranslationStyle TransferText Style TransferTranslationUnsupervised Machine TranslationUnsupervised Text Style TransferVariational Inference

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections