{"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-2606-16074","title":"PVminerLLM2: Improving Structured Extraction of Patient Voice via Preference Optimization","arxiv_id":"2606.16074","date":"2026-06-15","proceeding":null,"authors":["Samah Fodeh","Linhai Ma","Ganesh Puthiaraju","Srivani Talakokkul","Afshan Khan","Elyas Irankhah","Sreeraj Ramachandran","Ashley Hagaman","Sarah Lowe","Aimee Roundtree"],"abstract":"Motivation: Patient-generated text contains critical information on patients' lived experiences, social context, and care engagement, but remains largely unstructured, limiting its use in patient-centered outcomes research. Prior work introduced the PV-Miner benchmark and PVMinerLLM models for structured extraction. However, supervised fine-tuning (SFT) alone struggles with rare, fine-grained, and unevenly distributed errors, particularly in token-critical structured outputs. Results: We present PVminerLLM2, an improved set of LLMs for structured patient voice extraction that applies preference optimization to address token-critical errors beyond the reach of supervised fine-tuning. Our method introduces (i) a preference objective with token-level gated stabilization term that prevents degradation of absolute token likelihood under preference optimization, and (ii) confusion-aware preference pair construction to better capture low-separation distinctions. We further incorporate token-importance weighting and inverse-frequency reweighing to address token imbalance and class skew. Across multiple model sizes, PVMinerLLM2 consistently outperforms strong baselines, achieving gains of up to 4.43% (Code), 3.50% (Sub-code), and 1.55% (Span), and outperforms baseline LLM trained with existing preference optimization methods. Availability and Implementation: The supplementary material, code, evaluation scripts, and trained models for PVminerLLM2 are publicly available at: https://github.com/Data-Mining-Lab-Yale/PVminerLLM2","url_abs":"https://arxiv.org/abs/2606.16074","url_pdf":"https://arxiv.org/pdf/2606.16074","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":{"atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.16074"}},"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/Data-Mining-Lab-Yale/PVminerLLM2","reach":null}],"summary":{"ran":10,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":11,"ran":10,"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":"bb3daf4a62f79db7","entry":"build_weighted_confusion_pairs","repo":"Data-Mining-Lab-Yale/PVminerLLM2","repo_kind":"found_in_text","path":"prepare_preference_data.py","file_url":"https://github.com/Data-Mining-Lab-Yale/PVminerLLM2/blob/HEAD/prepare_preference_data.py","link_basis":"first_harvest_node","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":"bb3daf4a62f79db7"}},{"code_sha256_prefix":"22bfc75618774b9b","entry":"canonicalize_label","repo":"Data-Mining-Lab-Yale/PVminerLLM2","repo_kind":"found_in_text","path":"infer_vllm_and_confusion.py","file_url":"https://github.com/Data-Mining-Lab-Yale/PVminerLLM2/blob/HEAD/infer_vllm_and_confusion.py","link_basis":"first_harvest_node","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":"22bfc75618774b9b"}},{"code_sha256_prefix":"620980a0063901f1","entry":"confusion_edges","repo":"Data-Mining-Lab-Yale/PVminerLLM2","repo_kind":"found_in_text","path":"infer_vllm_and_confusion.py","file_url":"https://github.com/Data-Mining-Lab-Yale/PVminerLLM2/blob/HEAD/infer_vllm_and_confusion.py","link_basis":"first_harvest_node","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":"620980a0063901f1"}},{"code_sha256_prefix":"fd2efcdaea7d114d","entry":"detect_model_source","repo":"Data-Mining-Lab-Yale/PVminerLLM2","repo_kind":"found_in_text","path":"train_preference.py","file_url":"https://github.com/Data-Mining-Lab-Yale/PVminerLLM2/blob/HEAD/train_preference.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fd2efcdaea7d114d"}},{"code_sha256_prefix":"2803725246e1a16a","entry":"extract_values_from_jsonish","repo":"Data-Mining-Lab-Yale/PVminerLLM2","repo_kind":"found_in_text","path":"train_preference.py","file_url":"https://github.com/Data-Mining-Lab-Yale/PVminerLLM2/blob/HEAD/train_preference.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2803725246e1a16a"}},{"code_sha256_prefix":"3e485f1f5ccdbc2d","entry":"fix_structure","repo":"Data-Mining-Lab-Yale/PVminerLLM2","repo_kind":"found_in_text","path":"pv_utils.py","file_url":"https://github.com/Data-Mining-Lab-Yale/PVminerLLM2/blob/HEAD/pv_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3e485f1f5ccdbc2d"}},{"code_sha256_prefix":"16a8104618eeca94","entry":"is_valid_code_subcode_pair","repo":"Data-Mining-Lab-Yale/PVminerLLM2","repo_kind":"found_in_text","path":"prepare_preference_data.py","file_url":"https://github.com/Data-Mining-Lab-Yale/PVminerLLM2/blob/HEAD/prepare_preference_data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"16a8104618eeca94"}},{"code_sha256_prefix":"13e8ee07f544ad48","entry":"is_valid_format","repo":"Data-Mining-Lab-Yale/PVminerLLM2","repo_kind":"found_in_text","path":"pv_utils.py","file_url":"https://github.com/Data-Mining-Lab-Yale/PVminerLLM2/blob/HEAD/pv_utils.py","link_basis":"first_harvest_node","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":"13e8ee07f544ad48"}},{"code_sha256_prefix":"2c95a5a54ae69351","entry":"load_confusion_matrix","repo":"Data-Mining-Lab-Yale/PVminerLLM2","repo_kind":"found_in_text","path":"prepare_preference_data.py","file_url":"https://github.com/Data-Mining-Lab-Yale/PVminerLLM2/blob/HEAD/prepare_preference_data.py","link_basis":"first_harvest_node","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":"2c95a5a54ae69351"}},{"code_sha256_prefix":"2253de0ae79ae8cb","entry":"safe_json_loads","repo":"Data-Mining-Lab-Yale/PVminerLLM2","repo_kind":"found_in_text","path":"pv_utils.py","file_url":"https://github.com/Data-Mining-Lab-Yale/PVminerLLM2/blob/HEAD/pv_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2253de0ae79ae8cb"}},{"code_sha256_prefix":"1bd593eef6a62f8d","entry":"weighted_sequence_logp","repo":"Data-Mining-Lab-Yale/PVminerLLM2","repo_kind":"found_in_text","path":"train_preference.py","file_url":"https://github.com/Data-Mining-Lab-Yale/PVminerLLM2/blob/HEAD/train_preference.py","link_basis":"first_harvest_node","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":"1bd593eef6a62f8d"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,264 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6264},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}