Improving Code Generation and Migration Performance for Low-Resource Programming Languages
Performance analysis of GPT-6 models enhancing code generation and migration for low-resource languages, detailing accuracy gains and cost reductions in legacy modernization.
OpenAI released new models enhancing coding and migration capabilities for low-resource languages like COBOL and Fortran. GPT-6 Astra and GPT-6.1 Sol significantly increased accuracy in multilingual benchmarks and COBOL migration while substantially reducing API costs.
Executive Key Takeaways
- 1 1. [Key Achievement] Significantly improved the implementation and migration accuracy of low-resource languages such as COBOL, Fortran, and Visual Basic through the GPT-6 series.
- 2 2. [Design Strategy] Presented an efficient enterprise modernization path through a hierarchical approach that adjusts accuracy and cost based on the level of Reasoning Effort.
- 3 3. [Implementation Consideration] In situations where legacy system business logic exists only in code, how will the byte-for-byte parity of AI migration be verified?
Strengthening Low-Resource Language Coding Capabilities for Legacy System Modernization
Low-resource programming languages—such as COBOL, which supports over 40% of global financial systems, or Fortran, used in weather forecasting and nuclear safety analysis—suffer from a severe scarcity of code and documentation required for training. Consequently, existing coding models have exhibited limitations in accurately reflecting the specific characteristics of these languages.
In enterprise environments, critical business rules often exist solely within the code due to the departure of original developers or a total lack of documentation. In such contexts, preserving the exact behavior of the existing system when fixing bugs or migrating to other languages is a critical challenge for service continuity.
To resolve these issues, OpenAI has implemented enhanced model capabilities to build software from scratch or safely migrate existing code to other languages, even for low-resource languages. This aims to alleviate the technical challenges enterprises face during the maintenance and modernization of core infrastructure.

Two Evaluation Frameworks for Validating Construction and Migration Capabilities
First, MultiLangBench, a multilingual benchmark, was introduced. This evaluation measures whether a model can build an SQLite-compatible database engine from scratch using 20 different programming languages. It comprehensively assesses codebase organization, state management, error handling, and the ability to add features; to enable cross-language comparison, database files are used as a common interface, and outputs are contrasted against a reference SQLite implementation.
Second, a COBOL migration evaluation was conducted. This measures whether the original behavior is preserved when migrating COBOL programs to C++, Java, Kotlin, Python, and Rust. Specifically, to verify that COBOL-specific behaviors—such as fixed-point arithmetic, which is critical in financial transactions—are maintained after migration, a hidden test set requiring byte-for-byte parity of observable output values was utilized.
These evaluation frameworks are designed not merely to assess grammatical accuracy, but to validate two complementary technical skills: the preservation of business logic and the construction of actually functional software.
Exploring the Optimal Balance Between Reasoning Effort and Cost
A key design choice in this update is the granularization of Reasoning Effort levels, providing users with a tradeoff between performance and cost. This allows for the selection of the optimal model by distinguishing between complex migration tasks requiring high reasoning capabilities and relatively simple code generation tasks.
While GPT-6 Astra provides the highest level of accuracy at maximum reasoning effort, GPT-6 Luna is designed as a low-cost option that significantly reduces API costs, albeit with slightly lower accuracy. This reflects a practical judgment that deploying the highest-specification model for every enterprise task is inefficient.
Furthermore, safety was ensured by pursuing complete parity of output values rather than simply producing code that compiles without errors. This choice reflects the characteristics of enterprise modernization, where system stability is prioritized over development speed. While such rigorous verification may lower success rates on benchmarks, it represents the most conservative and secure approach in practice.
The 97.9% migration accuracy reported in the source paper is a result from a controlled test environment. Actual enterprise systems are entwined with decades of accumulated technical debt and complex interdependencies; therefore, the successful conversion of a single file does not guarantee the normal operation of the entire system.
As seen in the example of COBOL’s fixed-point arithmetic, a minute difference in rounding rules can lead to massive financial losses in financial systems. Increasing the level of automation based solely on AI model performance gains is a high-risk decision. Human expert review and rigorous integration testing must be performed in parallel.
Performance and Cost Efficiency Proven via Benchmarks
- MultiLangBench Average Pass Rate: GPT-6 Astra 87.4% (up from GPT-5.6 Sol’s 26.8%)
- Pass Rate by Low-Resource Language (Astra): COBOL 72.1%, OCaml 85.8%, Fortran 83.5%, Visual Basic 89.4% (significant increase compared to 10–20% range in previous models)
- GPT-6 Luna Average Pass Rate: 40.3% (API costs reduced by approximately 78%)
- COBOL Migration Accuracy (GPT-6.1 Sol): 86.6% at low reasoning effort, 97.9% at high reasoning effort (leap from GPT-5.6 Sol’s 5.4%)
- Migration Cost: API costs reduced by 39% based on GPT-6.1 Sol
While the figures presented by the original researchers are encouraging, MultiLangBench is limited to building an engine in the specific domain of SQLite, which may not fully represent the complexity of general enterprise business applications. Regarding COBOL migration, while byte-for-byte parity was measured via ‘hidden tests,’ operation within the external dependencies and system integration environments of actual production was not reported.
MultiLangBench: SQLite Interface Design for Language-Independent Evaluation
MultiLangBench is designed to quantitatively measure a model’s ability to design and implement functional software, moving beyond grammatical proficiency in a specific language. The SQLite engine build task described above requires complex software engineering capabilities—structural organization of the codebase, state management, error handling, and adding new features while maintaining existing ones—rather than simple code snippet generation.
To objectively compare performance across various programming languages, a normalized evaluation framework that does not succumb to the idiosyncrasies of each language is essential. For this, the original researchers adopted a methodology using database files as a shared interface. Initial databases and SQL queries are provided as input to the model-generated program, and the resulting modified database file is compared against the output of a reference SQLite implementation. This design enables the verification of functional identity through the final output state, regardless of the implementation language.
To increase the precision of the evaluation process, researchers adapted SQLite’s existing test suite to fit this format. This allows the measurement of how many functional features are stably built during an extended coding session, using two key metrics: test pass rate and API cost. These metrics serve as a criterion for gauging practical deployability by simultaneously analyzing intellectual capability and economic efficiency.
Analysis shows that GPT-6 Astra, at maximum reasoning effort, recorded an average pass rate of 87.4% across 20 languages, overwhelmingly surpassing the 26.8% of the previous model, GPT-5.6 Sol. The increase is particularly prominent in low-resource languages: COBOL surged from 10.9% to 72.1%, OCaml from 25.6% to 85.8%, Fortran from 21.4% to 83.5%, and Visual Basic from 27.5% to 89.4%. This suggests a dramatic improvement in the model’s ability to transfer learn or reason through common logical structures across languages, even in sparse training data environments.
Conversely, while GPT-6 Luna’s absolute accuracy is lower than Astra’s, it recorded an average pass rate of 40.3% while reducing API costs by approximately 78% (0.77 USD per sample) compared to GPT-5.6 Sol. This proves that a strategic choice can be made to apply a tiered model system based on required precision and budget, rather than deploying the highest-spec model for all enterprise tasks.
Consequently, the interface design of MultiLangBench presents a new standard for evaluating AI coding capabilities by stripping away the superficial shell of ‘language’ and measuring the completeness of the essential logical structure of ‘engine implementation.’ However, it is an overstatement to conclude that the ability to build an engine in the specific domain of SQLite fully represents the ability to implement all forms of enterprise business logic. Actual complex corporate systems involve multifaceted external dependencies and domain-specific rules beyond those of a database engine.
Review Checklist for Legacy Modernization Project Implementation
Legacy code migration using AI is not simple language translation, but a process of extracting and re-validating business rules embedded in code. Recognizing that high benchmark accuracy does not immediately translate to production success, a rigorous regression testing framework must be established first.
-
Explicitization of Business Rules: Have implicit rules existing only in code been extracted into explicit documentation?
-
Byte-for-Byte Verification Design: Has a test dataset been secured to verify complete parity between input and output?
-
Reasoning Cost Optimization: Have appropriate model systems (Astra, Luna, etc.) been mapped according to task complexity?
-
Edge Case Definition: Has the impact of language-specific behaviors, such as fixed-point arithmetic, on result values been defined?
-
Expert Review Process: Is a final review stage by domain experts for AI-generated code included in the pipeline?
-
Incremental Migration: Has a phased migration strategy by module, rather than for the entire system, been established?
-
Performance Degradation Measurement: Is there a plan to measure runtime performance changes in the target language (Java, Rust, etc.) after migration?
-
Dependency Map Creation: Has the impact analysis of external APIs and DB schemas connected to the migration target code been completed?
Further reading
- Building Safety Cases for Frontier AI Training
- The Practices and Politics of Machine Learning: A Field Guide for Analyzing Artificial Intelligence
- Optimizing Labeling Efficiency for Architecture Technical Debt Detection via Active Learning and Explainable AI
References and Original Analysis Data
This tech blog review was written from the source post with the help of AI tools (AI Research Agent · MLOps, AI Research Agent · Strategy). Reviewed by Jay PARK, who is responsible for it.
Read more

Papers & Reports ·
Working with AI: AI Adoption Strategies and Organizational Restructuring Based on Anthropic Enterprise Customer Interviews

Papers & Reports ·
How to Outcompete Your Client's AI

Papers & Reports ·
Risks of Governance Absence: Lessons from AI Adoption at the U.S. Small Business Administration (SBA)

Papers & Reports ·
Data and Methods for Identifying Artificial Intelligence-Related Patents