Models

OpenAI reports big gains for its models on COBOL, Fortran and Visual Basic

On OpenAI's new MultiLangBench, GPT-6 Astra averages 87.4% across 20 languages, and GPT-6.1 Sol reaches 86.6% on a COBOL migration test at low effort.

Published Updated

Grayscale stack of old punched cards with one red card
AI-generated image

TL;DR

  • On MultiLangBench, which asks models to build a SQLite-compatible engine, GPT-6 Astra averages 87.4% across 20 languages, up from 26.8% for GPT-5.6 Sol [1].
  • On a COBOL migration test, GPT-6.1 Sol scores 86.6% at low reasoning effort, versus 5.4% for GPT-5.6 Sol [1].
  • OpenAI is releasing the MultiLangBench setup and test suite on GitHub [1].

OpenAI published results on 19 October 2026 showing that its latest models are much better at building and migrating software in low-resource programming languages such as COBOL, Fortran and Visual Basic [1]. These languages have less code and documentation for models to learn from than Python or JavaScript [1].

Why it matters

These languages still run critical systems [1]. OpenAI cites figures that COBOL supports more than 40% of online banking systems and 95% of ATM transactions, and notes that Fortran is used in weather forecasting [1]. Developers and enterprise customers told OpenAI that coding models often struggle with these languages [1].

MultiLangBench

MultiLangBench asks a model to build a SQLite-compatible database engine from scratch in one of 20 programming languages [1]. Tests adapted from SQLite’s own test suite check the resulting database files against the reference SQLite implementation [1].

At maximum reasoning effort, GPT-6 Astra reaches an average test pass rate of 87.4%, up from 26.8% for GPT-5.6 Sol [1]. Examples include COBOL (10.9% to 72.1%), Fortran (21.4% to 83.5%) and Visual Basic (27.5% to 89.4%) [1]. Astra scores above 83% in 19 of the 20 languages, with COBOL the hardest [1].

GPT-6 Luna, the lower-cost option, averages 40.3% at an estimated $0.77 per sample, compared with $3.48 for GPT-5.6 Sol [1].

COBOL migration

The second test asks models to migrate COBOL programs to C++, Java, Kotlin, Python or Rust while keeping their behaviour [1]. Hidden tests require byte-for-byte matching outputs, and a migration counts only if all tests pass [1]. OpenAI gives an example of the difficulty: COBOL’s fixed-point arithmetic drops extra decimal digits unless rounding is requested, so a rewrite that rounds can give different financial results [1].

GPT-6.1 Sol scores 86.6% at low reasoning effort, compared with 5.4% for GPT-5.6 Sol at the same setting, at 61% of the API cost [1]. At higher effort, it reaches 97.9% [1].

Limits

These are OpenAI’s own benchmarks [1]. OpenAI says applying these abilities to production software still needs expert review and testing against the system’s business rules and dependencies [1]. It is releasing the MultiLangBench setup, test suite and per-language results on GitHub [1].

Sources

Written and checked by AI from the sources below

  1. Advancing coding in low-resource programming languagesOpenAI ·

Fact-checked by gpt-6.1-sol on · Editorial policy