{"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/fr-folded-rationalization-with-a-unified","title":"FR: Folded Rationalization with a Unified Encoder","arxiv_id":"2209.08285","date":"2022-09-17","proceeding":null,"authors":["Wei Liu","Haozhao Wang","Jun Wang","Ruixuan Li","Chao Yue","Yuankai Zhang"],"abstract":"Conventional works generally employ a two-phase model in which a generator selects the most important pieces, followed by a predictor that makes predictions based on the selected pieces. However, such a two-phase model may incur the degeneration problem where the predictor overfits to the noise generated by a not yet well-trained generator and in turn, leads the generator to converge to a sub-optimal model that tends to select senseless pieces. To tackle this challenge, we propose Folded Rationalization (FR) that folds the two phases of the rationale model into one from the perspective of text semantic extraction. The key idea of FR is to employ a unified encoder between the generator and predictor, based on which FR can facilitate a better predictor by access to valuable information blocked by the generator in the traditional two-phase model and thus bring a better generator. Empirically, we show that FR improves the F1 score by up to 10.3% as compared to state-of-the-art methods.","url_abs":"https://arxiv.org/abs/2209.08285v2","url_pdf":"https://arxiv.org/pdf/2209.08285v2.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":"fr-folded-rationalization-with-a-unified","repo_url":"https://github.com/jugechengzi/fr","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2209.08285","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2209.08285"}},"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/jugechengzi/FR","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/kochsnow/distribution-matching-rationality","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jugechengzi/fr","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":2,"unverified":4},"by_repo_kind":{"official":{"samples":3,"ran":2,"repositories":1},"found_in_text":{"samples":3,"ran":0,"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":"2d69b548b68473d8","entry":"Embedding","repo":"jugechengzi/fr","repo_kind":"official","path":"code/model.py","file_url":"https://github.com/jugechengzi/fr/blob/HEAD/code/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2d69b548b68473d8"}},{"code_sha256_prefix":"a15f3f880dc015cb","entry":"Rnn","repo":"jugechengzi/fr","repo_kind":"official","path":"code/model.py","file_url":"https://github.com/jugechengzi/fr/blob/HEAD/code/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a15f3f880dc015cb"}},{"code_sha256_prefix":"0ecca65553fc73fc","entry":"Embedding","repo":"kochsnow/distribution-matching-rationality","repo_kind":"found_in_text","path":"core/model.py","file_url":"https://github.com/kochsnow/distribution-matching-rationality/blob/HEAD/core/model.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":"0ecca65553fc73fc"}},{"code_sha256_prefix":"8f2c103a7213c94d","entry":"GenEncShareModel","repo":"jugechengzi/fr","repo_kind":"official","path":"code/model.py","file_url":"https://github.com/jugechengzi/fr/blob/HEAD/code/model.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":"8f2c103a7213c94d"}},{"code_sha256_prefix":"cea6a2e603a0cd85","entry":"RNN","repo":"kochsnow/distribution-matching-rationality","repo_kind":"found_in_text","path":"core/model.py","file_url":"https://github.com/kochsnow/distribution-matching-rationality/blob/HEAD/core/model.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":"cea6a2e603a0cd85"}},{"code_sha256_prefix":"8e7154e1c58e042f","entry":"TargetRNN","repo":"kochsnow/distribution-matching-rationality","repo_kind":"found_in_text","path":"core/model.py","file_url":"https://github.com/kochsnow/distribution-matching-rationality/blob/HEAD/core/model.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":"8e7154e1c58e042f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}