REVIEW 2 major objections 1 minor 18 references
A composite Quantitative Readability Score guides LLM agents to refine decompiled C code for better readability while preserving functional correctness.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · grok-4.3
2026-06-27 21:36 UTC pith:DJKRRQBL
load-bearing objection QRS tries to fix LLM agents gaming readability metrics in decompilation but supplies no data showing the composite actually works. the 2 major comments →
LLM Agent-Assisted Reverse Engineering with Quantitative Readability Metrics
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The Quantitative Readability Score (QRS) framework, built from a structural similarity gate plus three independent sub-metrics, lets LLM agents execute readability refinements on decompiled code that raise human legibility without sacrificing correctness or allowing metric gaming.
What carries the argument
The Quantitative Readability Score (QRS) framework, a composite metric that gates refinements on structural similarity while scoring lexical surprisal, structural simplicity, and idiomatic quality to direct LLM agent changes.
Load-bearing premise
The three sub-metrics plus the structural similarity gate together produce a signal that blocks unintended optimizations and aligns with actual human readability judgments in reverse engineering.
What would settle it
A blind human rating study in which reverse engineers judge QRS-refined samples as no more readable than the original decompiled code or as less readable than phase-2 outputs while still scoring high on QRS.
If this is right
- LLM agents produce decompiled code that is both functionally equivalent and easier for humans to follow.
- Reverse engineering workflows gain an automated step that reduces manual cleanup effort after decompilation.
- Agents avoid the structural-similarity-only pitfall of generating equivalent but less readable variants.
- The same guided-refinement stage can be inserted into existing decompiler pipelines such as Ghidra.
Where Pith is reading between the lines
- The QRS approach could be tested on decompiled output from languages other than C to check transferability.
- Further human studies might identify additional sub-metrics that strengthen the correlation with readability.
- Embedding QRS scoring inside decompilers could provide live feedback during the initial lifting stage.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper outlines a three-phase evolution in using LLM agents to improve readability of automatically decompiled C code. Phase 1 uses Ghidra MCP for tool-driven steering but suffers from incomplete coverage; Phase 2 adds structural similarity validation but reveals unintended optimizations producing less readable yet equivalent code; the contribution is the Quantitative Readability Score (QRS) composite metric that adds a structural similarity gate to three sub-metrics (Lexical Surprisal, Structural Simplicity, Idiomatic Quality). The central claim is that QRS guidance enables targeted readability improvements without sacrificing correctness, with broader workflow context provided but declared out of scope.
Significance. If the QRS sub-metrics are shown to track human reverse-engineer comprehension and block the metric-gaming behavior identified in Phase 2, the framework could supply a practical quantitative steering signal for LLM-assisted decompilation cleanup, a recurring bottleneck in binary analysis. The phased narrative usefully documents pitfalls in metric-only optimization.
major comments (2)
- [Abstract / QRS framework] Abstract (final paragraph) and QRS framework description: the claim that QRS 'enables LLM agents to make targeted readability improvements without sacrificing correctness' is presented as demonstrated, yet the manuscript supplies no experimental results, before/after metrics, ablation studies, or human-expert ratings on decompiled functions to establish that the composite tracks actual readability or prevents the unintended optimizations of Phase 2.
- [QRS framework description] QRS framework description (paragraph 3): the three sub-metrics are named but their exact computation, weighting, or combination into the composite score is not specified, nor are any correlation coefficients or validation results against human readability judgments in reverse-engineering contexts reported; this leaves the signal strength of QRS unverified and is load-bearing for the central claim.
minor comments (1)
- [Abstract] The final sentence of the abstract could more explicitly list which workflow stages (binary lifting, functional equivalence verification) remain out of scope to avoid reader confusion about the paper's boundaries.
Simulated Author's Rebuttal
We thank the referee for the constructive comments identifying areas where the manuscript's claims and technical details require clarification. We address each point below and will revise the manuscript to present the QRS framework more accurately as a proposed approach emerging from the observed limitations in Phases 1 and 2.
read point-by-point responses
-
Referee: [Abstract / QRS framework] Abstract (final paragraph) and QRS framework description: the claim that QRS 'enables LLM agents to make targeted readability improvements without sacrificing correctness' is presented as demonstrated, yet the manuscript supplies no experimental results, before/after metrics, ablation studies, or human-expert ratings on decompiled functions to establish that the composite tracks actual readability or prevents the unintended optimizations of Phase 2.
Authors: We agree that the current wording overstates the contribution. The manuscript describes the three-phase evolution and introduces QRS as the response to the metric-gaming behavior observed in Phase 2, but does not include new experimental validation, quantitative before/after results, or human ratings. We will revise the abstract and framework sections to replace the claim of demonstration with language indicating that QRS is proposed to address the identified issues, with empirical evaluation left as future work. revision: yes
-
Referee: [QRS framework description] QRS framework description (paragraph 3): the three sub-metrics are named but their exact computation, weighting, or combination into the composite score is not specified, nor are any correlation coefficients or validation results against human readability judgments in reverse-engineering contexts reported; this leaves the signal strength of QRS unverified and is load-bearing for the central claim.
Authors: We acknowledge that the manuscript names the sub-metrics (Lexical Surprisal, Structural Simplicity, and Idiomatic Quality) without providing their precise formulas, weighting scheme, or aggregation method into QRS. We will expand the QRS framework section in the revision to include the exact computation details for each sub-metric and the structural similarity gate, along with the composite formulation. As the current work focuses on framework definition rather than validation, we do not report correlation coefficients or human judgment studies; we will explicitly note this as a limitation and direction for future validation. revision: yes
Circularity Check
No circularity detected; derivation is self-contained
full rationale
The paper defines QRS explicitly as a composite of a structural similarity gate plus three author-specified sub-metrics and then reports an empirical demonstration that agents guided by this composite produce readability gains. No equations, derivations, fitted parameters renamed as predictions, or self-citation chains appear in the supplied text. The central claim therefore rests on the empirical outcome of applying the defined metric rather than reducing to its own inputs by construction.
Axiom & Free-Parameter Ledger
invented entities (1)
-
Quantitative Readability Score (QRS)
no independent evidence
read the original abstract
Automatic decompilers produce functionally correct but often unreadable C code. This paper addresses one stage of the reverse engineering workflow: improving the readability of decompiled code using LLM agents guided by quantitative metrics. We present a three-phase research evolution. Phase 1 (tool-driven steering via Ghidra MCP) suffered from incomplete coverage and inconsistent improvements due to lack of quantitative guidance. Phase 2 (structural similarity validation alone) revealed that agents optimize for metrics in unintended ways, producing structurally equivalent but less readable code. Our contribution is the Quantitative Readability Score (QRS) framework, a composite metric combining a structural similarity gate with three independent readability sub-metrics (Lexical Surprisal, Structural Simplicity, and Idiomatic Quality). We demonstrate that QRS-guided refinement enables LLM agents to make targeted readability improvements without sacrificing correctness. We provide a discussion of the broader reverse engineering workflow (binary lifting, decompilation cleanup, and achieving functional equivalence) as context, however, it remains out of scope.
Figures
Reference graph
Works this paper leans on
-
[1]
s = similarity(compile(C), B) // typically 0.5-0.7
-
[2]
while s < threshold do
-
[3]
scores = function_similarities(C, B)
-
[4]
targets = low_similarity_funcs(scores)
-
[5]
C' = agent_refine(C, scores, targets)
-
[6]
s' = similarity(compile(C'), B)
-
[7]
improved
return C 3.2 The Gamification Problem The similarity loop initially worked. Scores climbed from 0.5–0.7 to 0.85–0.95 within a few iterations. However, exam- ining the “improved” code revealed a problem: readability was degrading. Code that had been partially reverse-engineered into read- able form was regressing toward low-level complexity: // Before refi...
-
[8]
if binary_similarity >= 0.85 then
-
[9]
return 1.0 // Allow QRS score
-
[10]
return 0.1 // Reject: functionally incorrect
-
[11]
surprise
end if This binary equivalence gate penalises agents for producing source code that fails to compile or diverges (15%+) from the original binary. This is critical and prevents agents from over-optimising for readability at the cost of the original functionality. Note:The threshold of 0.85 was determined based on em- pirical testing and includes a buffer f...
-
[12]
if, switch, loops)
Cyclomatic complexity (cc): the number of indepen- dent control-flow paths induced by branching constructs (e.g. if, switch, loops)
-
[13]
nested ifs, loops)
Nesting depth (nd): the depth of nested control struc- tures (e.g. nested ifs, loops)
-
[14]
Function length (fl): the total number of lines of code (LOC) in the function Mathematical Definition: SS = 1−(W cc ·n cc +W nd ·n nd +W f l ·n f l) whereW cc = 0.50,W nd = 0.30,W f l = 0.20, and: •n cc = min(cc/20,1.0) •n nd = min(nd/8,1.0) •n f l = min(fl/200,1.0) Thresholds and Rationale: •Cyclomatic complexity<= 20: Research shows complex- ity>10-15 s...
-
[15]
Determine the structural similarity score using the ‘function-level similarity analysis using radare2’s control- flow graph (CFG) comparison functionality’ strategy
-
[16]
Calculate each individual QRS sub-metric (Lexical Sur- prise, Structural Simplicity, and Idiomatic Quality) and the overall QRS score
-
[17]
Generate improvement guidance based on the lowest scoring sub-metric(s)
-
[18]
Start a refinement iteration where the agent (ClaudeAgentSDK) is issued a prompt containing: •The QRS, structural similarity score, and the values for the QRS sub-metrics (Lexical Surprise, Structural Simplicity, and Idiomatic Quality) •List of critical constraints (i.e. “preserve functional- ity”, “target weak metrics”, “make incremental im- provements”)...
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.