← Lab /Software

Fine-tuning fails to improve pass@k for Dart decompilation and can cause regressions

Fine-tuning any of the tested models does not yield statistically significant pass@k gains and can significantly reduce pass@k performance

Software arXiv 7 Jul 2026 Measurement Prototype evidence

Published as “Evaluating Fine-Tuning and Metrics for Neural Decompilation of Dart AOT Binaries”

Why it matters

Practitioners should not assume that fine-tuning improves neural decompilation and must evaluate with functional correctness metrics rather than only surface similarity scores.

Summary

Metric divergence is the paper's strongest finding: surface metrics such as CodeBLEU and compile@k can improve while functional correctness (pass@k) regresses. Fine-tuning any of the six configurations does not yield a statistically significant pass@k gain, and for the strongest base model (Qwen3-8B) it causes a large, significant regression. Same-language synthetic augmentation outperforms cross-lingual transfer from Swift at the 4B scale, but this advantage disappears at larger scales. The study also introduces the first functional-correctness benchmark for Dart decompilation (HumanEval-Dart) and shows that prior evaluation practices miss critical failures.

What they found 2

  1. Surface metrics can move in the opposite direction from functional correctness.

    “RQ4’s hypothesis is rejected-constituting our strongest and most generalizable finding: surface metrics can move decisively in the opposite direction from functional correctness.”

  2. No fine-tuned variant shows a statistically significant pass@k improvement over its base.

    “No fine-tuned variant shows a statistically significant pass@k improvement over its base (see Table 5);”

Caveats 6

  • Fine-tuning leads to significant regressions for four of six configurations, including catastrophic drops for the Qwen3-8B variants (-5.65 pp and -5.26 pp pass@1, p<0.001).
  • Metric divergence shows that higher CodeBLEU or compile@k does not guarantee better functional correctness.
  • Optimization mismatch. Dart training data uses AOT-optimized binaries while Swift uses -O0 (unoptimized). This is the most significant internal validity concern for our cross-lingual findings:
  • Hyperparameter sensitivity. LoRA configuration (rank 32, α=32, dropout 0.09) was not exhaustively searched.
  • Architecture specificity. All experiments target x86-64 assembly. Results may differ for ARM64 or RISC-V architectures prevalent in mobile and embedded systems.
  • Benchmark representativeness. HumanEval-Dart contains algorithmic functions; real-world Flutter application functions may present different challenges.

What’s new here 4

  • First systematic evaluation of neural decompilation on Dart AOT binaries.
  • Creation of HumanEval-Dart, a functional-correctness benchmark with 154 unit-tested Dart functions.
  • Empirical analysis of fine-tuning effectiveness across model sizes and of cross-lingual transfer from Swift.
  • Demonstration that surface metrics can diverge from functional correctness, highlighting the need for pass@k evaluation.