VeriMig:一种验证门控的 LLM 框架,用于 Sybase ASE 到 SQL Server 迁移
VeriMig: A Verification-Gated LLM Framework for Sybase ASE to SQL Server Migration
AI 导读
VeriMig 框架通过部署、ASE 遗留结构 lint、与参考翻译的差分执行和数据核对四道门,校验 LLM 将 SAP ASE Transact-SQL 迁移到 Microsoft SQL Server 的翻译结果。
正文 · 原文
Abstract:Large language models (LLMs) can translate SAP Adaptive Server Enterprise (ASE) Transact-SQL to Microsoft SQL Server, but a translation that compiles may still behave differently. We present VeriMig, a framework that checks each translation with four gates: deployment, a lint for remaining ASE constructs, differential execution against a reviewed reference translation, and data reconciliation. Only the first two gates give feedback to the model's repair loop, so the references never shape the translations they score. We contribute a taxonomy of 15 categories of dialect differences, a corpus of 46 development cases and 6 held-out procedures, and an evaluation of 5 locally hosted code models. Without an ASE server, expected behaviour comes from reference translations; 14 rely on documented, not executed, ASE semantics. For the strongest local model, agreement with the references rises from 53.0% with a plain prompt to 81.1% with a checklist of known dialect differences and 87.9% with the repair loop. The checklist improves all five local models; the further gain from repair is not significant. Of the plain-prompt translations, 40.2% compile and pass the lint yet disagree with the reference, and on the held-out procedures agreement is 33.3% with the plain prompt and 66.7% with the repair loop. A hosted reference model reaches 97.0% with the plain prompt and 100.0% with the checklist, so these failures are mainly a property of smaller local models. A fault-injection study shows that only a per-row hash over an unambiguous row encoding detects every tested data fault. All artifacts are released.
| Comments: | Accepted for publication in the 2026 International Conference on Artificial Intelligence Centric Systems, Services, and Applications (AISSA). 8 pages, 4 figures, 6 tables |
| Subjects: | Databases (cs.DB); Artificial Intelligence (cs.AI); Software Engineering (cs.SE) |
| Cite as: | arXiv:2612.04670 [cs.DB] |
| (or arXiv:2612.04670v1 [cs.DB] for this version) | |
| https://doi.org/10.48550/arXiv.2612.04670 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Sharath Chandra Kampili [view email]
[v1]
Wed, 2 Dec 2026 21:51:27 UTC (468 KB)
来源:arXiv cs.AI · arxiv.org