{"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/arxiv-2602-02258","title":"Alignment-Aware Model Adaptation via Feedback-Guided Optimization","arxiv_id":"2602.02258","date":"2026-02-02","proceeding":null,"authors":["Gaurav Bhatt","Aditya Chinchure","Jiawei Zhou","Leonid Sigal"],"abstract":"Fine-tuning is the primary mechanism for adapting foundation models to downstream tasks; however, standard approaches largely optimize task objectives in isolation and do not account for secondary yet critical alignment objectives (e.g., safety and hallucination avoidance). As a result, downstream fine-tuning can degrade alignment and fail to correct pre-existing misaligned behavior. We propose an alignment-aware fine-tuning framework that integrates feedback from an external alignment signal through policy-gradient-based regularization. Our method introduces an adaptive gating mechanism that dynamically balances supervised and alignment-driven gradients on a per-sample basis, prioritizing uncertain or misaligned cases while allowing well-aligned examples to follow standard supervised updates. The framework further learns abstention behavior for fully misaligned inputs, incorporating conservative responses directly into the fine-tuned model. Experiments on general and domain-specific instruction-tuning benchmarks demonstrate consistent reductions in harmful and hallucinated outputs without sacrificing downstream task performance. Additional analyses show robustness to adversarial fine-tuning, prompt-based attacks, and unsafe initializations, establishing adaptively gated alignment optimization as an effective approach for alignment-preserving and alignment-recovering model adaptation.","url_abs":"https://arxiv.org/abs/2602.02258","url_pdf":"https://arxiv.org/pdf/2602.02258","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2602.02258","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2602.02258"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/facebookresearch/TruthRL","reach":null}],"summary":{"ran_honours":1,"ran":3,"ran_draft_wrong":1,"unverified":6},"by_repo_kind":{"found_in_text":{"samples":11,"ran":5,"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":11,"samples":[{"code_sha256_prefix":"f8ea5de03c824510","entry":"em_check","repo":"facebookresearch/TruthRL","repo_kind":"found_in_text","path":"training/verl/verl/utils/reward_score/truthrl_qa.py","file_url":"https://github.com/facebookresearch/TruthRL/blob/HEAD/training/verl/verl/utils/reward_score/truthrl_qa.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f8ea5de03c824510"}},{"code_sha256_prefix":"ce353d566f3f2c9f","entry":"format_reward","repo":"facebookresearch/TruthRL","repo_kind":"found_in_text","path":"training/open-r1/src/open_r1/rewards.py","file_url":"https://github.com/facebookresearch/TruthRL/blob/HEAD/training/open-r1/src/open_r1/rewards.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ce353d566f3f2c9f"}},{"code_sha256_prefix":"dae7ab386661a4f4","entry":"normalize_answer","repo":"facebookresearch/TruthRL","repo_kind":"found_in_text","path":"evaluation/evaluate.py","file_url":"https://github.com/facebookresearch/TruthRL/blob/HEAD/evaluation/evaluate.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dae7ab386661a4f4"}},{"code_sha256_prefix":"eb94037d0866de26","entry":"subem_check","repo":"facebookresearch/TruthRL","repo_kind":"found_in_text","path":"training/verl/verl/utils/reward_score/truthrl_qa.py","file_url":"https://github.com/facebookresearch/TruthRL/blob/HEAD/training/verl/verl/utils/reward_score/truthrl_qa.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"eb94037d0866de26"}},{"code_sha256_prefix":"0a5673b11c91e69d","entry":"tag_count_reward","repo":"facebookresearch/TruthRL","repo_kind":"found_in_text","path":"training/open-r1/src/open_r1/rewards.py","file_url":"https://github.com/facebookresearch/TruthRL/blob/HEAD/training/open-r1/src/open_r1/rewards.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0a5673b11c91e69d"}},{"code_sha256_prefix":"26c2b136346eb478","entry":"find_OOK_questions","repo":"facebookresearch/TruthRL","repo_kind":"found_in_text","path":"data_utils/find_OOK_questions.py","file_url":"https://github.com/facebookresearch/TruthRL/blob/HEAD/data_utils/find_OOK_questions.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"26c2b136346eb478"}},{"code_sha256_prefix":"38fb2b7a0a23bbe3","entry":"load_docs","repo":"facebookresearch/TruthRL","repo_kind":"found_in_text","path":"data_utils/retrieval.py","file_url":"https://github.com/facebookresearch/TruthRL/blob/HEAD/data_utils/retrieval.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"38fb2b7a0a23bbe3"}},{"code_sha256_prefix":"0a937568fc0b343b","entry":"load_results","repo":"facebookresearch/TruthRL","repo_kind":"found_in_text","path":"data_utils/find_OOK_questions.py","file_url":"https://github.com/facebookresearch/TruthRL/blob/HEAD/data_utils/find_OOK_questions.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"0a937568fc0b343b"}},{"code_sha256_prefix":"21fa52735b227537","entry":"parse_response","repo":"facebookresearch/TruthRL","repo_kind":"found_in_text","path":"evaluation/evaluate.py","file_url":"https://github.com/facebookresearch/TruthRL/blob/HEAD/evaluation/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"21fa52735b227537"}},{"code_sha256_prefix":"e50ece300cf79a17","entry":"read_jsonl","repo":"facebookresearch/TruthRL","repo_kind":"found_in_text","path":"data_utils/retrieval.py","file_url":"https://github.com/facebookresearch/TruthRL/blob/HEAD/data_utils/retrieval.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e50ece300cf79a17"}},{"code_sha256_prefix":"801fe22f00cc39bd","entry":"truncate_prompt","repo":"facebookresearch/TruthRL","repo_kind":"found_in_text","path":"training/open-r1/src/open_r1/sft.py","file_url":"https://github.com/facebookresearch/TruthRL/blob/HEAD/training/open-r1/src/open_r1/sft.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"801fe22f00cc39bd"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}