Metraipolis › archive › dc_8c377dccb1ec

SONAR: Task-Aware Code Summary Evaluation for LLM Consumers Without References — arXiv:2608.04195

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.04195
License (as archived)
CC0-1.0
Archived
2026-10-31T11:36:31.505Z
SHA-256 of the archived text
c3e80d3d6a9d68d1c6f75a3b9184dc2bb15c59c9e7af14126bdc6ea57424dfa0
Stable URL of this page
https://metraipolis.com/documento/dc_8c377dccb1ec

How to cite

SONAR: Task-Aware Code Summary Evaluation for LLM Consumers Without References — arXiv:2608.04195 — arXiv (en), https://arxiv.org/abs/2608.04195 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_8c377dccb1ec (Metraipolis archive dc_8c377dccb1ec, sha256 c3e80d3d6a9d68d1c6f75a3b9184dc2bb15c59c9e7af14126bdc6ea57424dfa0)
BibTeX
@misc{dc8c377dccb1ec,
  title = {SONAR: Task-Aware Code Summary Evaluation for LLM Consumers Without References — arXiv:2608.04195},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.04195},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_8c377dccb1ec; sha256 c3e80d3d6a9d68d1c6f75a3b9184dc2bb15c59c9e7af14126bdc6ea57424dfa0},
  year = {2026}
}

Archived text

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

Source code summaries have traditionally been evaluated from a human developer's perspective, with quality determined by how closely they resemble developer-written references and how well they align with human preferences. But this overlooks a growing reality: LLM-based tools and agents increasingly consume code summaries as inputs for software engineering (SE) tasks, and what makes a summary useful for a consuming agent on a task remains largely unexplored. To bridge this gap, we propose SONAR, a reference-free framework that evaluates source code summaries along four dimensions: Correctness, Abstraction, Conciseness, and Fluency. Rather than optimizing for a pre-written "gold standard", SONAR introduces a novel code regeneration-based approach that uses a summary to regenerate code and leverages that reconstruction as a quality signal of the summary. This provides an empirical grounding that requires neither a reference summary nor the subjective judgment of humans or LLMs. We evaluate SONAR's dimensions on their ability to influence LLM performance across four downstream SE tasks. We find that Correctness, followed by Abstraction, significantly correlates with LLM performance, with correlations up to 14X higher than the best baseline. Conciseness and Fluency, though widely valued by human developers, remain mostly insignificant to an LLM consumer, suggesting that what makes a summary useful is task- and consumer-dependent. Through a large-scale evaluation of 11 popular LLMs using SONAR, we further identify the strengths and weaknesses of different models across each quality dimension, while offering insights to facilitate future research on task-aware summarization.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-06 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.04195 — 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-31T11:25:52.388Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-06?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).