{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/reformulating-unsupervised-style-transfer-as","title":"Reformulating Unsupervised Style Transfer as Paraphrase Generation","arxiv_id":"2010.05700","date":"2020-10-12","proceeding":"EMNLP 2020 11","authors":["Kalpesh Krishna","John Wieting","Mohit Iyyer"],"abstract":"Modern NLP defines the task of style transfer as modifying the style of a given sentence without appreciably changing its semantics, which implies that the outputs of style transfer systems should be paraphrases of their inputs. However, many existing systems purportedly designed for style transfer inherently warp the input's meaning through attribute transfer, which changes semantic properties such as sentiment. In this paper, we reformulate unsupervised style transfer as a paraphrase generation problem, and present a simple methodology based on fine-tuning pretrained language models on automatically generated paraphrase data. Despite its simplicity, our method significantly outperforms state-of-the-art style transfer systems on both human and automatic evaluations. We also survey 23 style transfer papers and discover that existing automatic metrics can be easily gamed and propose fixed variants. Finally, we pivot to a more real-world style transfer setting by collecting a large dataset of 15M sentences in 11 diverse styles, which we use for an in-depth analysis of our system.","url_abs":"https://arxiv.org/abs/2010.05700v1","url_pdf":"https://arxiv.org/pdf/2010.05700v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"reformulating-unsupervised-style-transfer-as","repo_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"reformulating-unsupervised-style-transfer-as","repo_url":"https://github.com/yyhappier/shortcutsuite","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}}],"tasks":[{"task_slug":"attribute","task_name":"Attribute"},{"task_slug":"paraphrase-generation","task_name":"Paraphrase Generation"},{"task_slug":"sentence","task_name":"Sentence"},{"task_slug":"style-transfer","task_name":"Style Transfer"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2010.05700","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2010.05700"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/Mimino666/langdetect","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yyhappier/shortcutsuite","reach":{"status":"ok"}}],"summary":{"ran":3,"ran_draft_wrong":3,"ran_fixture":2,"ran_honours":1,"unverified":10},"by_repo_kind":{"official":{"samples":19,"ran":9,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"6a7861df4980b949","entry":"Instance","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6a7861df4980b949"}},{"code_sha256_prefix":"da737618d1e1daf8","entry":"InverseInstance","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"da737618d1e1daf8"}},{"code_sha256_prefix":"00fe2bc10e1c057f","entry":"datum_to_dict","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"00fe2bc10e1c057f"}},{"code_sha256_prefix":"2bbb692e4df7275d","entry":"get_label_dict","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2bbb692e4df7275d"}},{"code_sha256_prefix":"0f4714b5270ebbcb","entry":"left_padding","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0f4714b5270ebbcb"}},{"code_sha256_prefix":"0c411c0cbc455a4f","entry":"limit_dataset_size","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0c411c0cbc455a4f"}},{"code_sha256_prefix":"edd024a002d4a67a","entry":"limit_styles","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"edd024a002d4a67a"}},{"code_sha256_prefix":"9649a6762f963f5f","entry":"right_padding","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9649a6762f963f5f"}},{"code_sha256_prefix":"b7409c44eb4a2139","entry":"string_to_ids","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b7409c44eb4a2139"}},{"code_sha256_prefix":"e7079d8451ccc4d5","entry":"InverseParaphraseDatasetText","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e7079d8451ccc4d5"}},{"code_sha256_prefix":"da589bfb4f6b001e","entry":"ParaphraseDatasetText","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"da589bfb4f6b001e"}},{"code_sha256_prefix":"dccd30ac77058a66","entry":"_rotate_checkpoints","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dccd30ac77058a66"}},{"code_sha256_prefix":"ac6daf9ad34bb23b","entry":"evaluate","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ac6daf9ad34bb23b"}},{"code_sha256_prefix":"a7dee514f4d344df","entry":"get_global_dense_features","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a7dee514f4d344df"}},{"code_sha256_prefix":"f9b01438cd540c30","entry":"load_and_cache_examples","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f9b01438cd540c30"}},{"code_sha256_prefix":"aae21f24cb4514be","entry":"save_model","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aae21f24cb4514be"}},{"code_sha256_prefix":"6f807f86c26692bd","entry":"set_seed","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6f807f86c26692bd"}},{"code_sha256_prefix":"dc55a6c3d8f5d0f0","entry":"train","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dc55a6c3d8f5d0f0"}},{"code_sha256_prefix":"7c7abf4a7961c307","entry":"update_config","repo":"martiansideofthemoon/style-transfer-paraphrase","repo_kind":"official","path":"style_paraphrase/run_lm_finetuning.py","file_url":"https://github.com/martiansideofthemoon/style-transfer-paraphrase/blob/HEAD/style_paraphrase/run_lm_finetuning.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7c7abf4a7961c307"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}