학술

VeriMig: A Verification-Gated LLM Framework for Sybase ASE to SQL Server Migration

arXiv CS.AI
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.

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.

관련 뉴스