← News

ResearchSources: arXiv · 4 Dec 2026

VeriMig gates LLM database translations with verification checks

Researchers describe a framework that verifies large language model translations of Sybase ASE code to SQL Server, after finding many compiled outputs still behave differently from reviewed references.

In plain words

A team built VeriMig, a system that checks whether AI-translated database code really matches the original, not just whether it runs. Translations pass through four checks, including side-by-side execution and data comparison. In their tests, giving the AI a checklist of known dialect differences helped most.

What was announced

The paper's authors note that a translation from SAP ASE's Transact-SQL to Microsoft SQL Server can compile yet still behave differently. VeriMig therefore applies four gates: deployment, a lint that flags leftover ASE constructs, differential execution against a reviewed reference translation, and data reconciliation. Only the first two gates feed the model's repair loop, so the references never shape the translations they score.

The team also contributes a taxonomy of 15 dialect-difference categories, a corpus of 46 development cases plus 6 held-out procedures, and tests of 5 locally hosted code models. For the strongest local model, agreement with references rose from 53.0% with a plain prompt to 81.1% with a dialect checklist and 87.9% with the repair loop; the authors report the repair gain was not significant. Notably, 40.2% of plain-prompt translations compiled and passed the lint yet still disagreed with the reference. A hosted reference model reached 100.0% with the checklist, which the authors say shows the failures mainly reflect smaller local models. Their fault-injection study found only a per-row hash over an unambiguous row encoding caught every tested data fault. Artifacts are released.

What it does not show

  • The source is an abstract, so methods and results are not independently verifiable from this excerpt.
  • Without an ASE server, expected behaviour came from reference translations, and 14 relied on documented rather than executed ASE semantics.
  • The reported repair-loop gain over the checklist was not significant for the strongest local model.
  • Held-out procedure agreement was low (33.3% plain prompt, 66.7% with repair), per the authors.

For security and IT teams

Scope
The framework targets SAP ASE Transact-SQL to Microsoft SQL Server translation and was evaluated with locally hosted code models plus one hosted reference model; all artifacts are released per the authors.

Sources

Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 4 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.