Pith.
Menu

Databases · arXiv:2612.04670 v1 · submitted 2 Dec 2026 · 30 references

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

Prasad Manda, Sharath Chandra Kampili, Pramod Begur Nagaraj

The paper says

“The checklist improves all five local models; the further gain from repair is not significant.”

The 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.

from the abstract

Pith says

Holds up. VeriMig shows that LLM-translated SQL which compiles is often wrong, and provides a verified framework and benchmark for ASE-to-SQL Server migration.

Machine review · 4 Dec 2026 · Full text · 3 minor

Challenge this review Reply to this review
How this review was made

Machine review · deepseek-v4-flash · 4 Dec 2026 · read the full text (48,360 characters) · not checked by a person

The reviewer was given the whole text, 48,360 characters. Not checked: figures, code, what the 30 references say.

How the review went

5 passes by deepseek-v4-flash · 4 Dec 2026

  1. Reader holds up confidence high
  2. Skeptic concern withdrawn: the paper already says this 19 s · 16,973 tokens read, 1,591 written
  3. Referee 3 minor 32 s · 17,292 tokens read, 2,950 written
  4. Check against the paper kept 0 of 1 objection 31 s · 17,442 tokens read, 3,515 written
  5. Editor wrote the verdict above 10 s · 17,564 tokens read, 709 written

Not run on this paper: the simulated authors' defence.

Pith's passes raised 1 objection. A check against the paper's text kept 0 and withdrew 1 (1 the paper already says).

The test under “What would settle it” is from Pith's summary of the paper.

Fingerprints, costs and the commands that check them

What would settle it

Running the entire corpus on a live SAP ASE server with default settings and comparing the actual ASE behavior to the reference translations would settle whether the 14 cases that rely on documented semantics are correct. If the references are wrong, the measured agreement rates for all converters would be inaccurate.

3 minor objections

  1. VI Section VI, paragraph after Table II: the sentence 'The repair loop ran in 6.2% of repair-loop runs.' is confusing. It likely means that the repair loop was invoked (i.e., needed more than one attempt) in 6.2% of runs. Please rephrase for clarity, and consider stating the fraction of runs that required more than one attempt directly.
  2. V Section V (Experimental Setup) and Table II: the hosted model is referred to as 'claude sonnet 5 5'. Please use the correct product name (e.g., 'Claude Sonnet 5.5' or 'Claude 5.5 Sonnet') for consistency with standard naming.
  3. VI Table II: the column 'Attempts' for the repair loop shows average numbers (e.g., 1.07). The text could briefly explain that this is the average number of translation attempts per case, including the initial attempt.

A machine wrote this review. Check any line against the paper. If a line is wrong, say so, and the correction goes on the record.

Are you an author of this paper?

Reply on the record, clarify a point, or challenge an error.

A reply is published word for word beside the review once Pith has verified that the paper is yours.

The review in full

The review in brief

This paper tackles a practical problem: translating Sybase ASE stored procedures to SQL Server using local LLMs, where source code cannot leave the organisation. The central finding is that compilation and lint are weak acceptance checks—40% of plain-prompt translations that deploy still disagree with the reference. The paper contributes a taxonomy of 15 dialect differences, a corpus of 52 cases with reviewed reference translations, and the VeriMig framework that uses oracle-separated repair and four verification gates. The evaluation is thorough: five local model configurations, confidence intervals, mutation analysis, and a fault-injection study for data reconciliation. The checklist of dialect differences consistently improves every local model; the repair loop adds little. A hosted model reaches near-perfect agreement, confirming that the errors are mainly a property of smaller local models. The paper is honest about its limitations: 14 of 52 references rely on documented ASE semantics rather than execution, the corpus is synthetic and written by the authors, the held-out set is small, and SSMA was not evaluated. These are real gaps, but they are clearly stated and do not undermine the main result. The artifact is released. This paper deserves a serious referee and will be useful to both practitioners and researchers working on LLM-based code translation.

The stress test's concern

Withdrawn: the paper already says this.

The paper says

“For 14 cases the expected behaviour depends on ASE-specific semantics, which we checked against the official ASE manuals under default settings: a string concatenated with NULL keeps the string; with ansinull off, the default, = NULL is true for NULL values, also in IF statements; a *= join keeps the outer rows that meet the statement's restrictions; extended columns in GROUP BY and in scalar aggregates return every row; str\_replace with a NULL replacement deletes the pattern; and hextoint and inttohex behave as the references assume, except that the manuals do not state the letter case of inttohex output (C33 assumes upper case). The artifact links each case to the manual page it relies on. The check also showed that ASE stores an empty string as a single space; one input in C13 relied on that rule and was replaced. These cases were not executed on ASE, so for them the results show agreement with a documentation-checked reference, not demonstrated preservation of ASE behaviour.”

The referee's report

The paper addresses a practically important problem—migrating Sybase ASE code to SQL Server—and provides a systematic evaluation of LLM-based translation with verification gates. The key findings (that a checklist of dialect differences improves translation quality more than a repair loop, and that many errors pass compilation and lint) are useful for practitioners and researchers. The released corpus, taxonomy, and fault-injection study are valuable contributions. The evaluation is thorough, with multiple models, seeds, confidence intervals, and mutation analysis. The limitations are openly discussed.

Pith's reading

The paper studies how well locally hosted LLMs translate Sybase ASE Transact-SQL to SQL Server and which checks are needed before their output can be trusted. It introduces VeriMig, a framework with four verification gates: deployment, a lint for remaining ASE constructs, differential execution against a reviewed reference, and data reconciliation. The central finding is that an explicit checklist of 15 categories of dialect differences improves every local model substantially (e.g., from 53% to 81% agreement for the strongest model), while a repair loop that only sees deployment and lint feedback adds little. A hosted reference model achieves near-perfect agreement, showing that the failures are mainly a property of smaller local models. The paper also contributes a taxonomy of dialect differences, a corpus of 52 cases, and a fault-injection study showing that only per-row hashes over an unambiguous encoding detect every tested data fault.

What carries the argument. The VeriMig framework consists of four verification gates: G1 (deployment on SQL Server), G2 (residual lint for remaining ASE constructs), G3 (differential execution against a reviewed reference translation on multiple inputs), and G4 (data reconciliation with per-row hashes). The repair loop (Algorithm 1) receives feedback only from G1 and G2, never from G3, so the reference does not shape the translations it scores. The checklist is a prompt addition listing 15 categories of dialect differences, each labelled by how an unconverted construct shows up (compile error, silent behavior change, deprecation, or control).

Core claim. The paper argues that for locally hosted LLMs translating Sybase ASE Transact-SQL to SQL Server, a translation that compiles and passes a lint check is often still wrong in ways that only execution reveals. The central finding is that providing the model with an explicit checklist of 15 categories of dialect differences raises agreement with reviewed reference translations from 53.0% to 81.1% for the strongest local model (Qwen2.5C-32B-Q8), while a repair loop that receives only deployment and lint feedback adds only 6.8 points (to 87.9%). The checklist improves all five local models, but the repair loop's gain is not statistically significant. A hosted reference model reaches 97.0% with a plain prompt and 100.0% with the checklist, indicating that the failures are mainly a property of smaller local models. Of the plain-prompt translations, 40.2% compile and pass the lint yet disagree with the reference, and with the repair loop 100% of remaining failures are of this silent kind.

The premise it rests on. The correctness of the reference translations for 14 cases that rely on documented ASE semantics rather than execution on a live ASE server; if those references are wrong, the measured agreement rates are inaccurate.

If the paper is right

Organizations migrating from Sybase ASE to SQL Server should not rely on compilation and lint as acceptance checks for LLM-translated stored procedures; differential testing against a reference is necessary.

Providing an explicit checklist of known dialect differences to the LLM is more effective than using a larger model or a repair loop that only sees deployment and lint feedback.

The remaining errors after checklist prompting are concentrated in constructs that SQL Server rejects (compile-visible), where the model replaces them with code that compiles but changes behavior.

Data reconciliation during migration should use per-row SHA-256 hashes over an unambiguous row encoding; row counts, aggregate checksums, and naive hashes miss tested faults.

Local models (7B–32B) can translate a case in seconds on a single workstation, making the approach feasible for organizations that cannot send source code to external services.

The large improvement from the checklist (28 points) compared to the repair loop (6.8 points, not significant) suggests that LLMs can follow explicit rules but struggle to infer dialect differences from context or from coarse error signals.

The repair loop's limited gain may be because G1 and G2 feedback (deployment errors and lint findings) is too coarse to fix silent behavior changes; the model often rewrites a flagged construct into another that still changes behavior.

The hosted model's near-perfect performance raises the question of whether well-documented dialect differences appear in its training data, which would limit the benchmark's ability to separate model capability from memorization.

The corpus, being synthetic and authored by the same people who wrote the checklist, likely overestimates the checklist's benefit; independently written production procedures are needed to assess real-world effectiveness.

Check this review

What was read

The passes were given all 48,360 characters of the paper's LaTeX source.

Fingerprint of that text (SHA-256): 023ca1a8d4201f46da00db8f11299e664c152166fb1dbb62097886154af90912

Pith does not keep that text. Rebuilt from the paper's source or PDF by the same code, it has this fingerprint if it is the same text. From a copy of Pith's code:

PYTHONPATH=. python scripts/review_input_check.py 2612.04670

The passes, in the order they ran

  1. Reader deepseek-v4-flash · medium effort · $0.0025 · instructions of the Reader, fingerprint f9ead7300382…
  2. Skeptic deepseek-v4-flash · medium effort · $0.0016 · instructions of the Skeptic, fingerprint 8f88c0f61488…
  3. Referee deepseek-v4-flash · medium effort · $0.0018 · instructions of the Referee, fingerprint a852d99aea0d…
  4. Check against the paper deepseek-v4-flash · medium effort · $0.0019 · instructions of the Check against the paper, fingerprint 6c7a6883d551…
  5. Editor deepseek-v4-flash · medium effort · $0.0015 · instructions of the Editor, fingerprint e7211f6a3d27…
  6. Circularity check deepseek-v4-flash · medium effort · $0.0014 · instructions of the Circularity check, fingerprint e9946e39d67b…
  7. Summary for the page deepseek-v4-flash · medium effort · temperature 0.2 · $0.0018 · instructions of the Summary for the page, fingerprint e4f56bf568e7…

The passes cost $0.012 in model calls together.

Version stamped on this review: pith-pipeline@v1.4.1-daily-deepseek-or-medium+deepseek/deepseek-v4-flash+p.d60f54226f00

Each link opens a pass's instructions as plain text, the exact bytes its fingerprint was taken over. Every stored set of instructions.

curl -s https://pith.science/methodology/prompts/f9ead730038216984cfb56d7cb34332bdf691828296a1de4245f3d6667d4bf56 | sha256sum

prints the fingerprint of the reader's instructions. The same works for every pass.

The receipt

The review's fingerprint was taken on 4 Dec 2026. The review you are reading still matches it.

Fingerprint of the review (SHA-256): 58e8890ce2fdd433aa2df12458ba00f3a879ca26e79dd4c157f049144c8c859e

curl -s 'https://pith.science/api/v1/verdicts/2612.04670?form=canonical' | sha256sum

prints the fingerprint of the review as it stands now. The rule, in four steps.

A matching fingerprint shows the review has not changed since that date. It does not show that the review is right.

Reviews like this one: written by deepseek-v4-flash, from the paper's LaTeX source.

Every value above, in the review's public record (JSON)

No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and the review is published here whatever it concludes. Request a human review

How Pith checks papers · The full audit of this paper

The paper

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.

A classifier labelled each sentence of the abstract by the part it plays in the paper. The labels are kept beside the review and separate from it: the review read the paper's text, and these labels cover the abstract only. Every quoted sentence is the authors' own. No sentence in this record was written by a model.

abstract compiled · 4 Dec 2026

The main claim

“The checklist improves all five local models; the further gain from repair is not significant.”

Stated as asserted.

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
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. background 0.84 0.09 0.06 hedged possibility 0.75
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. method 0.67 0.92 0.10 asserted 1.00
Only the first two gates give feedback to the model's repair loop, so the references never shape the translations they score. limitation 0.53 0.83 0.13 asserted 1.00
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. contribution 1.00 0.96 0.05 asserted 1.00
Without an ASE server, expected behaviour comes from reference translations; 14 rely on documented, not executed, ASE semantics. limitation 0.74 0.77 0.07 asserted 1.00
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. result 1.00 0.95 0.18 asserted 1.00
The checklist improves all five local models; the further gain from repair is not significant. result 0.98 0.95 0.20 asserted 1.00
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. result 1.00 0.96 0.11 asserted 1.00
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. interpretation 0.68 0.91 0.11 asserted 0.90
A fault-injection study shows that only a per-row hash over an unambiguous row encoding detects every tested data fault. result 0.96 0.95 0.09 asserted 1.00
All artifacts are released. contribution 0.98 0.74 0.02 asserted 0.99

What kind of paper the classifier reports this is: method or tool 0.99 · evidence from observation or experiment 0.99

What was examined, and what was not

These lists are about the sentence labels. What the review read is said with the review.

Read

  • arXiv listing abstract v1

Not read

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Labelled

  • abstract

Not labelled

  • sections
  • body sentences
  • citations
  • cross-paper relations

The main claim, as probabilities

picked as the main claim 0.49 · how strongly it is stated 1.00

What the abstract itself states, as probabilities

claims first 0.04 · states limitation 0.95 · human participants 0.05 · controlled comparison 0.87 · randomized assignment 0.02 · states quantitative result 0.99 · compares with prior results 0.93 · mentions code or data availability 0.98

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-12-04: 1 request, 8,307 input tokens.

This record as JSON, with every label and the probability the classifier gave it.

Figures (4)
Figure 1 of the paper
Figure 1. A silent outer-join case (C02). behave the same but use features scheduled for removal, and control (K) cases contain portable code and measure harmful edits. Table I lists the categories. Corpus. Each case contains the ASE source object that a converter sees, a SQL Server setup script with tables and data, a reviewed reference translation, and two to four calls whose outcomes define the expected behaviour. The calls exercise NULL arguments, empty tables, missing keys, and edge values such as month-end dates. The development corpus has 46 cases, of which 11 are silent and 5 are cont
Figure 2 of the paper
Figure 2. VeriMig pipeline. Dashed arrows show the only feedback the repair
Figure 3 of the paper
Figure 3. Agreement with the references by category for the strongest model;
Figure 4 of the paper
Figure 4. Agreement versus mean model latency per case; labels mark the

Figures are the authors', reproduced from the paper.

References (30)
  1. [1] P. Manda, “Database modernization – Sybase to SQL Server migra- tion,”International Journal of Multidisciplinary Research in Science, Engineering and Technology, vol. 9, no. 2, pp. 1104–1121, Feb. 2026 on Pith
  2. [2] Microsoft Corporation, “SQL Server migration assistant for SAP ASE (SybaseToSQL),” Microsoft Learn documentation, accessed Oct on Pith
  3. [3] Amazon Web Services, “AWS Schema Conversion Tool user guide,” AWS documentation, accessed Oct. 2026. [Online]. Available: https:// docs.aws.amazon.com/SchemaConversionTool/latest/userguide/ on Pith
  4. [4] ——, “Working with Babelfish for Aurora PostgreSQL,” Amazon Au- rora User Guide, accessed Oct. 2026 on Pith
  5. [5] T. Maoet al., “SQLGlot: A no-dependency SQL parser, transpiler, optimizer, and engine,” https://github.com/tobymao/sqlglot, 2024 on Pith
  6. [6] W. Zhou, Y . Gao, X. Zhou, and G. Li, “Cracking SQL barriers: An LLM-based dialect translation system,”Proc. ACM Manag. Data, vol. 3, no. 3 (SIGMOD), pp. 141:1–141:26, 2025 on Pith
  7. [7] B. Rozi `ere, M.-A. Lachaux, L. Chanussot, and G. Lample, “Unsuper- vised translation of programming languages,” inAdvances in Neural Information Processing Systems (NeurIPS), 2020 on Pith
  8. [8] S. Ren, D. Guo, S. Lu, L. Zhou, S. Liu, D. Tang, N. Sundaresan, M. Zhou, A. Blanco, and S. Ma, “CodeBLEU: a method for automatic evaluation of code synthesis,” arXiv:2009.10297, 2020 on PithPith's reviewarXiv
  9. [9] R. Pan, A. R. Ibrahimzada, R. Krishna, D. Sankar, L. P. Wassi, M. Merler, B. Sobolev, R. Pavuluri, S. Sinha, and R. Jabbarvand, “Lost in translation: A study of bugs introduced by large language models while translating code,” inProc. IEEE/ACM 46th Int. Conf. Software Engineer... on Pith
  10. [10] B. Rozi `ereet al., “Code Llama: Open foundation models for code,” arXiv:2308.12950, 2023 on PithPith's reviewarXiv
  11. [11] D. Guoet al., “DeepSeek-Coder: When the large language model meets programming – the rise of code intelligence,” arXiv:2401.14196, 2024 on PithPith's reviewarXiv
  12. [12] B. Huiet al., “Qwen2.5-Coder technical report,” arXiv:2409.12186, 2024 on PithPith's reviewarXiv
  13. [13] E. Frantar, S. Ashkboos, T. Hoefler, and D. Alistarh, “GPTQ: Accurate post-training quantization for generative pre-trained transformers,” inInt. Conf. Learning Representations (ICLR), 2023 on Pith
  14. [14] G. Gerganovet al., “llama.cpp: LLM inference in C/C++,” https://github. com/ggml-org/llama.cpp, 2024 on Pith
  15. [15] X. Chen, M. Lin, N. Sch ¨arli, and D. Zhou, “Teaching large language models to self-debug,” inInt. Conf. Learning Representations (ICLR), 2024 on Pith
  16. [16] N. Shinn, F. Cassano, A. Gopinath, K. Narasimhan, and S. Yao, “Reflexion: Language agents with verbal reinforcement learning,” in Advances in Neural Information Processing Systems (NeurIPS), 2023 on Pith
  17. [17] A. Madaanet al., “Self-refine: Iterative refinement with self-feedback,” inAdvances in Neural Information Processing Systems (NeurIPS), 2023 on Pith
  18. [18] W. M. McKeeman, “Differential testing for software,”Digital Technical Journal, vol. 10, no. 1, pp. 100–107, 1998 on Pith
  19. [19] M. Rigger and Z. Su, “Testing database engines via pivoted query synthesis,” inProc. 14th USENIX Symp. Operating Systems Design and Implementation (OSDI), 2020, pp. 667–682 on Pith
  20. [20] ——, “Finding bugs in database systems via query partitioning,”Proc. ACM Program. Lang., vol. 4, no. OOPSLA, 2020 on Pith
show 10 more
  1. [21] S. Chu, C. Wang, K. Weitz, and A. Cheung, “Cosette: An automated prover for SQL,” inProc. 8th Biennial Conf. Innovative Data Systems Research (CIDR), 2017 on Pith
  2. [22] SAP SE, “SAP Adaptive Server Enterprise 16.0 reference manual: Building blocks and commands,” SAP Help Portal, accessed Oct. 2026 on Pith
  3. [23] Microsoft Corporation, “Transact-SQL reference: SET ANSI NULLS, SET QUOTED IDENTIFIER, SET CON- CAT NULL YIELDS NULL,” Microsoft Learn documentation, accessed Oct. 2026 on Pith
  4. [24] Sybase, Inc.,Adaptive Server Enterprise Transact-SQL User’s Guide, versions 12.5.1 and 15.7; chapters on outer joins,group byextensions, null values, and hexadecimal conversion. Sybase Infocenter, accessed Oct. 2026. [Online]. Available: https://infocenter.sybase.com/ on Pith
  5. [25] ——,Adaptive Server Enterprise Reference Manual: Building Blocks, versions 12.5.1 and 15.0; sections on the string concatenation operator andstr_replace. Sybase Infocenter, accessed Oct. 2026. [Online]. Available: https://infocenter.sybase.com/ on Pith
  6. [26] Ollama, “Ollama: run large language models locally,” https://github.com/ ollama/ollama, 2024 on Pith
  7. [27] DeepSeek-AI, “DeepSeek-Coder-V2: Breaking the barrier of closed- source models in code intelligence,” arXiv:2406.11931, 2024 on PithPith's reviewarXiv
  8. [28] B. Efron and R. J. Tibshirani,An Introduction to the Bootstrap. New York: Chapman & Hall/CRC, 1993 on Pith
  9. [29] Q. McNemar, “Note on the sampling error of the difference between correlated proportions or percentages,”Psychometrika, vol. 12, no. 2, pp. 153–157, 1947 on Pith
  10. [2026] [Online]. Available: https://learn.microsoft.com/sql/ssma/sybase/ sql-server-migration-assistant-for-sybase-sybasetosql on Pith

Challenges and discussion

Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.

No comments yet.

Sign in to comment