arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.10341cs.AI
收藏

VeriTrans:通过确定性神经符号流水线进行细调的LLM辅助自然语言到形式语言翻译

VeriTrans: Fine-Tuned LLM-Assisted NL-to-PL Translation via a Deterministic Neuro-Symbolic Pipeline

The Pennsylvania State University(宾夕法尼亚州立大学)

Xuan Liu, Dheeraj Kodakandla, Kushagra Srivastva, Mahfuza Farooque

AI总结:

VeriTrans通过确定性神经符号流水线,利用细调的LLM辅助自然语言到形式语言翻译,提升翻译准确性和可靠性,同时通过高精度回环验证和日志记录支持审计和调试。

摘要:

VeriTrans是一种以可靠性优先的机器学习系统,能够将自然语言要求编译成求解器准备的逻辑,通过验证器门控的可靠性。该流水线集成了经过指令微调的自然语言到形式语言(PL)翻译器、用于高精度接受门的回环重建(PL→NL),以及标准的PL→CNF编译,均通过固定的API配置(温度=0;微调运行使用种子=42)和每项物品的艺术品日志记录(提示、输出、哈希)来支持可审计性和基于回放的调试。在SatBench(2,100个规范)上,VeriTrans实现了94.46%的SAT/UNSAT正确性和87.73%的中位回环相似性。在100-150个精选示例上进行紧凑的微调可提高精度约1-1.5个百分点,而无需增加延迟(平均25.8秒/规范在我们的201规范运行子集上)。基于回环得分的阈值接受策略暴露了可靠性与覆盖范围的调节器:在τ=75时,大约68%的项目被保留,接受集上的正确性约为94%。验证器开销贡献了总运行时间的不到15%,所有提示/响应和时间元数据都被记录,以启用基于回放的调试和回归测试。通过将学习的翻译与符号验证分离,并强制执行确定性和验证器门控的接受,VeriTrans将自然语言到逻辑前端转换为可审计、可重复使用的组件,用于可靠性关键的工作流程。

英文摘要:

\textbf{VeriTrans} is a reliability-first ML system that compiles natural-language requirements into solver-ready logic with validator-gated reliability. The pipeline integrates an instruction-tuned NL$\!\to\!$PL translator, round-trip reconstruction (PL$\!\to\!$NL) used as a high-precision acceptance gate, and canonical PL$\!\to\!$CNF compilation, all executed via fixed API configuration (temperature$=0$; fine-tuning runs use seed$=42$) and per-item artifact logging (prompts, outputs, hashes) to support auditability and replay-driven debugging. On \textbf{SatBench} (2{,}100 specifications), VeriTrans achieves 94.46\% SAT/UNSAT correctness and 87.73\% median round-trip similarity. Compact fine-tuning on 100--150 curated examples improves fidelity by about 1--1.5\,pp without increasing latency (mean 25.8\,s/spec on our 201-spec runtime subset). A thresholded acceptance policy on the round-trip score exposes a reliability--coverage knob: at $τ{=}75$, roughly 68\% of items are retained with $\sim$94\% correctness on the accepted set. Validator overhead contributes $<15\%$ of end-to-end runtime, and all prompts/responses and timing metadata are logged to enable replay-driven debugging and regression testing. By separating learned translation from symbolic verification and enforcing deterministic, validator-gated acceptance, VeriTrans turns NL$\!\to\!$logic front-ends into auditable, reproducible components for reliability-critical workflows.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑