{"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/on-extending-direct-preference-optimization","title":"On Extending Direct Preference Optimization to Accommodate Ties","arxiv_id":"2409.17431","date":"2024-09-25","proceeding":null,"authors":["Jinghong Chen","Guangyu Yang","Weizhe Lin","Jingbiao Mei","Bill Byrne"],"abstract":"We derive and investigate two DPO variants that explicitly model the possibility of declaring a tie in pair-wise comparisons. We replace the Bradley-Terry model in DPO with two well-known modeling extensions, by Rao and Kupper and by Davidson, that assign probability to ties as alternatives to clear preferences. Our experiments in neural machine translation and summarization show that explicitly labeled ties can be added to the datasets for these DPO variants without the degradation in task performance that is observed when the same tied pairs are presented to DPO. We find empirically that the inclusion of ties leads to stronger regularization with respect to the reference policy as measured by KL divergence, and we see this even for DPO in its original form. These findings motivate and enable the inclusion of tied pairs in preference optimization as opposed to simply discarding them.","url_abs":"https://arxiv.org/abs/2409.17431v1","url_pdf":"https://arxiv.org/pdf/2409.17431v1.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":[],"tasks":[{"task_slug":"machine-translation","task_name":"Machine Translation"}],"methods":[{"method_slug":"dpo","method_name":"DPO"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2409.17431","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.17431"}},"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/eric-mitchell/direct-preference-optimization","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":1,"ran":1,"ran_fixture":1,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":5,"ran":3,"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":"12f6803880f9b17e","entry":"extract_anthropic_prompt","repo":"eric-mitchell/direct-preference-optimization","repo_kind":"found_in_text","path":"preference_datasets.py","file_url":"https://github.com/eric-mitchell/direct-preference-optimization/blob/HEAD/preference_datasets.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"12f6803880f9b17e"}},{"code_sha256_prefix":"10ab71f27ffd7de8","entry":"get_local_run_dir","repo":"eric-mitchell/direct-preference-optimization","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/eric-mitchell/direct-preference-optimization/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"10ab71f27ffd7de8"}},{"code_sha256_prefix":"c79211fc0225a27f","entry":"preference_loss","repo":"eric-mitchell/direct-preference-optimization","repo_kind":"found_in_text","path":"trainers.py","file_url":"https://github.com/eric-mitchell/direct-preference-optimization/blob/HEAD/trainers.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c79211fc0225a27f"}},{"code_sha256_prefix":"8ab43db002bf984d","entry":"get_local_dir","repo":"eric-mitchell/direct-preference-optimization","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/eric-mitchell/direct-preference-optimization/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8ab43db002bf984d"}},{"code_sha256_prefix":"e7ce4c19888c6df6","entry":"get_remote_file","repo":"eric-mitchell/direct-preference-optimization","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/eric-mitchell/direct-preference-optimization/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e7ce4c19888c6df6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}