SEAug 4

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

arXiv:2608.0419515.3
Predicted impact top 18% in SE · last 90 daysOriginality Highly original
AI Analysis

This work addresses the problem of evaluating code summaries for LLM consumers, providing a new perspective that diverges from human-centric evaluation, which is important for developers building LLM-based software engineering tools.

The paper introduces SONAR, a reference-free framework for evaluating source code summaries based on their utility for LLM-based tools in software engineering tasks. It found that Correctness and Abstraction significantly correlate with LLM performance, with correlations up to 14X higher than baselines, while Conciseness and Fluency were largely insignificant for LLM consumers.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes