ImmigrationQA: 一个基于来源的数据集及面向美国移民法的小型模型适配
ImmigrationQA: A Source-Grounded Dataset and Small-Model Adaptation for U.S. Immigration Law
AI总结:
本文构建了基于来源的问答数据集ImmigrationQA(17,058对,覆盖13个移民子领域),并通过参数高效LoRA微调Llama 3.2 3B Instruct模型,在程序性子领域取得显著提升,但复杂法律推理仍较弱。
摘要:
美国移民法涵盖数千页的官方政策、联邦法规和程序指南,这些内容频繁变化,且对缺乏法律代表的申请人影响重大。我们描述了ImmigrationQA的构建过程,这是一个基于来源的问答数据集,包含13个移民子领域的17,058对问答,以及使用参数高效LoRA对Llama 3.2 3B Instruct模型在该数据集上的微调。语料库来自11个主要和次要来源——包括USCIS政策手册、8 CFR、BIA先例决定和社区问答——产生了10,056份经过验证的规范文档和18,308个文本块。使用Claude Sonnet 4.6通过五种模式特定提示从这些文本块生成结构化问答对,其中22对因来源跨度重叠不足被拒绝。微调模型在993对的保留测试集上使用LLM-as-judge评分进行评估,基于101个示例的分层样本。微调模型平均得分为1.08/3.0(16.8%完全正确;101示例分层评估),而Llama 3 8B基础模型得分为0.85/3.0(4%完全正确),平均分相对提升27%;零样本Claude Sonnet基线得分为1.52/3.0(25%完全正确)。微调模型在程序性子领域(旅行证件、身份调整、非移民签证)表现出集中改进,但在复杂法律推理和时效性统计方面仍然较弱。整个流程的云计算成本约为29美元。所有工件——数据集、模型、代码和提示模板——均已公开发布。该系统不能替代法律咨询,且不反映语料库抓取日期后的法规变化。
英文摘要:
U.S. immigration law spans thousands of pages of official policy, federal regulations, and procedural guidance that change frequently and carry high stakes for petitioners who lack legal representation. We describe the construction of ImmigrationQA, a source-grounded question-answering dataset of 17,058 pairs across 13 immigration subdomains, and the fine-tuning of a Llama 3.2 3B Instruct model on that dataset using parameter-efficient LoRA. The corpus was assembled from 11 primary and secondary sources -- including the USCIS Policy Manual, 8 CFR, BIA precedent decisions, and community Q&A -- yielding 10,056 validated canonical documents and 18,308 text chunks. Structured QA pairs were generated from these chunks using Claude Sonnet 4.6 via five mode-specific prompts, with 22 pairs rejected for insufficient source-span overlap. The fine-tuned model was evaluated against a held-out split of 993 pairs using LLM-as-judge scoring on a 101-example stratified sample. The fine-tuned model scored a mean of 1.08/3.0 (16.8% fully correct; 101-example stratified eval) versus the Llama 3 8B base model at 0.85/3.0 (4% fully correct), a relative improvement of 27% in mean score; a zero-shot Claude Sonnet baseline scored 1.52/3.0 (25% fully correct). The fine-tuned model shows concentrated improvement in procedural subdomains (travel documents, adjustment of status, nonimmigrant visas) while remaining weak on complex legal reasoning and time-sensitive statistics. The full pipeline ran for approximately $29 in cloud compute. All artifacts -- dataset, model, code, and prompt templates -- are publicly released. The system is not a substitute for legal counsel and does not reflect regulatory changes after the corpus crawl date.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。