HAVE AI NEWS HAVE AI NEWS
tg subscribe
Research

Experiment: Can AI Models Catch All Bugs and Merge External Code into a Flawless Solution?

Experiment: Can AI Models Catch All Bugs and Merge External Code into a Flawless Solution?

A practical test demonstrated why developers shouldn't blindly trust a single language model: four LLMs searched for seven bugs in a script, while seven others attempted to assemble a flawless version from external fixes.

When developers turn to neural networks for help with refactoring or debugging, a dilemma often arises: should you trust a single top-tier model, test several independent alternatives simultaneously, or task another LLM with merging the outputs of its peers into a unified codebase? To test these approaches in practice, a two-stage experiment was conducted on a real-world, buggy Bash script.

Anatomy of the Test Script

The subject of the test was a utility script named run-code.sh, designed for batch testing LLMs via an external Python script and generating a summary table. The code intentionally contained seven defects of varying severity:

  • Corrupted preset data: missing delimiters and empty rayrate parameters causing warnings in stderr.
  • Lack of defensive parsing: the assumption that input data would always contain valid integers.
  • Missing pre-execution file check: the script launched the benchmark loop even if the executable file was missing.
  • Critical status accounting failure: the summary table looked for non-existent keys, causing statistics to always output zeros regardless of test results.
  • False crash reporting: the script failed to differentiate between a fatal crash and a scenario where a model passed only a portion of the tests.
  • Fragile JSON parsing: a complete crash of the summary generation if even a single report was corrupted.
  • Outdated documentation: obsolete filenames mentioned in comments and help text.

Round 1: Blind Solo Repair

In the first stage, four models—Sonnet 5, HY3, Qwen3-Max, and DeepSeek-V4-Flash—received the source file without prompts or hints and worked in complete isolation.

Bug / IssueSonnet 5HY3Qwen3-MaxDeepSeek-V4-Flash
1. Preset errorsFixed point-by-pointMissedFixed via guardNeutralized via defaults
2. Limit parser guardNot requiredMissedFull protectionPartial protection
3. File existence checkMissedFixedMissedMissed
4. Correct status keysMissedFull categorizationDetailed breakdownPartial (pass/fail only)
5. Crash vs. degradation splitMissedFixedStrict validationMissed
6. JSON parser protectionFull try/exceptPartialPartialPartial
7. Documentation updatesPartialMissedMissedMissed

The primary takeaway from the first round: not a single model resolved all bugs on its own. Sonnet 5 prioritized code cleanliness and exception handling, but overlooked the critical statistics collection bug. HY3 brilliantly rewrote the accounting logic and was the only model to notice the missing file check, but ignored the corrupted preset data. Qwen3-Max delivered the most balanced output, closing the majority of functional gaps.

Round 2: Merging Third-Party Solutions

In the second stage, seven models (including the first-round participants, along with Mistral-Medium-3.5, Nemotron-3-Super-120B, Gemini Pro, and dots-studio-3-note) were provided with all four sets of fixes and tasked with assembling the best possible final version.

Aggregator ModelCritical Bugs (1–5)Parser Protection (6)Doc Cleanup (7)Source AttributionFinal Result
Qwen3-MaxAddressedYesYesFull changelog table1st place
Gemini ProAddressedYesYesNone2nd place
DeepSeek-V4-FlashAddressedYesYesPartial3rd place
Mistral-Medium-3.5AddressedYesLostNone4th–5th place
dots-studio-3-noteAddressedYesLostNone4th–5th place
ling-3.0-flashAddressedNoLostNone6th place
Nemotron-3-Super-120BAddressedNoLostNone7th place

All aggregator models produced functional code that passed basic execution. However, differences emerged in their attention to detail: most models quietly stripped out less obvious fixes (such as Sonnet 5's documentation updates). The clear winner was Qwen3-Max, which not only retained all useful changes but also attached a detailed changelog attributing the source of each modification.

Key Takeaways

  • No universal model exists: even flagship solutions have blind spots, and each neural network has its own.
  • Rankings do not guarantee completeness: underdogs from the first round caught unique bugs that the round winner completely overlooked.
  • Merging requires verification: when combining code, AI models tend to discard changes whose importance they fail to grasp.
  • Transparency matters: a code aggregator is valuable not just for delivering working code, but also for explaining the provenance of every single line.

Author: Renatk

Source: habr.com

Thomson Reuters Spent 40 Million Dollars on a Model That Surpassed Claude Sonnet
Models

Thomson Reuters Spent 40 Million Dollars on a Model That Surpassed Claude Sonnet

Large media holding Thomson Reuters built its own AI model Thomson based on Qwen, which scored 78.5% on aggregated benchmarks and surpassed Claude Sonnet 5. Development took 3 months and 368 GPU B200, total cost — 40 million dollars.

Google introduces Gemini 4 Neon for fast, complex AI workflows
Models

Google introduces Gemini 4 Neon for fast, complex AI workflows

Gemini 4 Neon is Google’s new frontier-level model for software engineering, enterprise analysis, science, cybersecurity and long-running agent tasks. It offers a one-million-token context window, flexible reasoning levels and lower per-task costs, with access beginning across Google AI Studio, Gemini for business, Antigravity and the Gemini app.

Watermelon Breakthrough: Meta Unveils Muse Wonder Flagship AI Models
Models

Watermelon Breakthrough: Meta Unveils Muse Wonder Flagship AI Models

Meta Superintelligence Labs has introduced its closed Muse Wonder model family. The flagship Wonder Full outperformed OpenAI’s models and trails only Claude Opus 5.5.

Google Unveils Gemini 4 Argon: A Return to the Race for Advanced AI Models
Models

Google Unveils Gemini 4 Argon: A Return to the Race for Advanced AI Models

The new flagship Gemini 4 Argon neural network outperformed leading competitors in most tests, although access will be limited at launch.

Anthropic Unveils Claude Fable 5.2 and Mythos 5.2: Record Performance with a 20% Price Cut
Models

Anthropic Unveils Claude Fable 5.2 and Mythos 5.2: Record Performance with a 20% Price Cut

Anthropic has released its flagship Fable 5.2 and Mythos 5.2 models. They outperform Opus 5.5 in most benchmarks, cost less than their predecessors, and are capable of solving complex scientific problems in just a few hours.

Google Pulls Ahead: Gemini 4 Carbon Model Unveiled with Record-Breaking Performance
Models

Google Pulls Ahead: Gemini 4 Carbon Model Unveiled with Record-Breaking Performance

Google has announced Gemini 4 Carbon, a specialized AI model for coding and cybersecurity that has outperformed competitors in most industry benchmarks.