{"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/authorship-style-transfer-with-policy","title":"Authorship Style Transfer with Policy Optimization","arxiv_id":"2403.08043","date":"2024-03-12","proceeding":null,"authors":["Shuai Liu","Shantanu Agarwal","Jonathan May"],"abstract":"Authorship style transfer aims to rewrite a given text into a specified target while preserving the original meaning in the source. Existing approaches rely on the availability of a large number of target style exemplars for model training. However, these overlook cases where a limited number of target style examples are available. The development of parameter-efficient transfer learning techniques and policy optimization (PO) approaches suggest lightweight PO is a feasible approach to low-resource style transfer. In this work, we propose a simple two-stage tune-and-optimize technique for low-resource textual style transfer. We apply our technique to authorship transfer as well as a larger-data native language style task and in both cases find it outperforms state-of-the-art baseline models.","url_abs":"https://arxiv.org/abs/2403.08043v2","url_pdf":"https://arxiv.org/pdf/2403.08043v2.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":"authorship-style-transfer-with-policy","repo_url":"https://github.com/isi-nlp/astrapop","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"style-transfer","task_name":"Style Transfer"},{"task_slug":"transfer-learning","task_name":"Transfer Learning"}],"methods":[{"method_slug":"parrot-optimizer","method_name":"PO"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2403.08043","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2403.08043"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/isi-nlp/astrapop","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":12,"unverified":1},"by_repo_kind":{"official":{"samples":13,"ran":12,"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":"07603ec33561b4eb","entry":"encode_example","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/ets/train_classifier.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/ets/train_classifier.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":"07603ec33561b4eb"}},{"code_sha256_prefix":"8176a95ae3a201b8","entry":"encode_example_paraphrase","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/reddit/train_sft.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/reddit/train_sft.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":"8176a95ae3a201b8"}},{"code_sha256_prefix":"8910f4e5b5d4bbee","entry":"encode_paraphrase_example","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/ets/train_sft.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/ets/train_sft.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":"8910f4e5b5d4bbee"}},{"code_sha256_prefix":"f463ab3c42a28cb4","entry":"encode_transfer_example","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/ets/train_sft.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/ets/train_sft.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":"f463ab3c42a28cb4"}},{"code_sha256_prefix":"6c1788682bf64080","entry":"generate","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/ets/generate.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/ets/generate.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":"6c1788682bf64080"}},{"code_sha256_prefix":"4fef07692ec2e44f","entry":"generate","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/ets/generate_dpo_cpo_data.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/ets/generate_dpo_cpo_data.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":"4fef07692ec2e44f"}},{"code_sha256_prefix":"44f9b5a95924386d","entry":"get_concat_transfer_prompt","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/reddit/train_ppo.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/reddit/train_ppo.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"44f9b5a95924386d"}},{"code_sha256_prefix":"9cc59215e82b53ec","entry":"get_paraphrase_prompt","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/ets/generate.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/ets/generate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9cc59215e82b53ec"}},{"code_sha256_prefix":"9d3e98497d85a686","entry":"get_random_tgt_lang","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/ets/train_ppo.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/ets/train_ppo.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":"9d3e98497d85a686"}},{"code_sha256_prefix":"724242a144261aac","entry":"get_styll_prompt","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/reddit/train_sft.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/reddit/train_sft.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":"724242a144261aac"}},{"code_sha256_prefix":"af515ba22c9dfe28","entry":"get_transfer_prompt","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/ets/generate.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/ets/generate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"af515ba22c9dfe28"}},{"code_sha256_prefix":"ec477fe8b167e730","entry":"get_transfer_prompt","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/ets/generate_dpo_cpo_data.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/ets/generate_dpo_cpo_data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ec477fe8b167e730"}},{"code_sha256_prefix":"c42a75435bdfbae3","entry":"encode_example_transfer","repo":"isi-nlp/astrapop","repo_kind":"official","path":"src/reddit/train_sft.py","file_url":"https://github.com/isi-nlp/astrapop/blob/HEAD/src/reddit/train_sft.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":"c42a75435bdfbae3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}