Metraipolis › archive › dc_814044aa27a6

Escaping the Self-Repair Trap: Improving Test Oracle Generation via Dual-Context Awareness — arXiv:2608.05917

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.05917
License (as archived)
CC0-1.0
Archived
2026-10-27T08:04:35.848Z
SHA-256 of the archived text
6fb6f6f222ba064dcc733a52ab139abe2cbce8aec71a99809a2efa884872ecc8
Stable URL of this page
https://metraipolis.com/documento/dc_814044aa27a6

How to cite

Escaping the Self-Repair Trap: Improving Test Oracle Generation via Dual-Context Awareness — arXiv:2608.05917 — arXiv (en), https://arxiv.org/abs/2608.05917 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_814044aa27a6 (Metraipolis archive dc_814044aa27a6, sha256 6fb6f6f222ba064dcc733a52ab139abe2cbce8aec71a99809a2efa884872ecc8)
BibTeX
@misc{dc814044aa27a6,
  title = {Escaping the Self-Repair Trap: Improving Test Oracle Generation via Dual-Context Awareness — arXiv:2608.05917},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.05917},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_814044aa27a6; sha256 6fb6f6f222ba064dcc733a52ab139abe2cbce8aec71a99809a2efa884872ecc8},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.05917. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Large Language Models (LLMs) have shown strong potential for regression-oracle completion, where a test prefix is given and the current program version is treated as expected behavior. Recent approaches increasingly rely on iterative self-repair and execution feedback, but optimizing execution success does not necessarily yield strong fault-revealing oracles. This objective, widely adopted in repair-based methods, serves only as a proxy and may be misaligned with the true goal of oracle generation. Such misalignment biases the repair process, giving rise to a feedback-driven degeneration that we term the Self-Repair Trap, where iterative repair progressively drives models toward assertions that are easier to satisfy but less effective at detecting faults. To address this issue, we propose DCAware, a computationally efficient, non-iterative framework that prioritizes high signal-to-noise contextual grounding over multi-round repair. DCAware integrates structured static context with selectively retrieved dynamic states, enabling precise and robust oracle generation without iterative feedback loops. Extensive experiments based on execution and mutation testing show that DCAware consistently improves fault-revealing effectiveness while maintaining high execution success, outperforming prior methods with substantially lower computational cost. Our results suggest that improving contextual quality is more effective than adding iterative repair complexity in the studied regression-oracle setting.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-07 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.05917 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-27T07:55:47.043Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-07?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).