REVIEW 4 major objections 8 minor 16 references
Lachesis: Predicting LLM Inference Accuracy using Structural Properties of Reasoning Paths
T0 review · 4 major / 8 minor · reviewed 2026-08-11 · deepseek-v4-flash
Pith's one-line read Lachesis predicts whether an LLM-based fault localizer's self-consistency answer will be correct, reaching 0.8136 precision.
desk verdict Plausible and useful idea with genuinely new representations, but the headline numbers are inflated by test-set peeking and the early-termination use case is never actually measured. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The central objects are two representations of a set of reasoning paths. The LLM Inference Matrix (LIM) stacks R paths as columns, with rows holding the per-step embeddings of up to N function calls; the LLM Inference Graph (LIG) is a weighted directed graph whose nodes are specific reasoning steps (tool calls or answers) and whose edge weights count how many paths follow the same subsequence. Four embedding schemes control what a node carries: shape only (a constant vector), function type (one-hot over tool names), function type plus arguments (one-hot over code locations the tool inspected), and function type plus arguments plus answer (appending the voted buggy method). The models are a stacked LSTM that reads the matrix step-by-step across all paths, and a GCN with global mean pooling that reads the graph; both output a binary correctness prediction.
What would settle it
Run Lachesis on truncated reasoning paths (e.g., the first k function calls for k = 1,...,N, with the answer embedding removed) and compare its ROC-AUC against full-path predictions; a sharp drop would contradict the early-termination motivation and the claim that structural signal precedes the final answer.
Extended reading notes
Core claim
The central discovery is that the structural properties of multiple reasoning paths—how often the same tools are called, whether paths converge on the same code location, and whether the final answers agree—carry reusable signal about whether self-consistency will rank the true buggy method first. Lachesis encodes each AutoFL reasoning step as an embedding (shape-only, function type, function type plus arguments, or function type plus arguments plus answer), aggregates the R sampled paths into a matrix or a weighted directed graph, and classifies the whole set with an LSTM or GCN. With the fullest representation (F+A+A), the GCN achieves 0.8136 precision and 0.7454 accuracy; even the shape-only graph representation reaches 0.7791 ROC-AUC, showing that convergence structure alone is informative. The paper positions this as an empirical verification that the self-consistency hypothesis—multiple paths lead to the correct answer—leaves footprints in the reasoning process that are visible before the end.
Load-bearing premise
The paper assumes that predictions made from complete reasoning paths, including the final answer, will stay accurate when only a prefix of the reasoning is available, but it never tests partial-path prediction.
Editorial extensions
If this is right
- If the pattern holds for other self-consistency-based LLM agents, Lachesis-style classifiers could be attached to any tool-using agent to audit when voting is likely to mislead.
- The strong performance of the shape-only graph representation suggests that convergence of tool calls is a general proxy for confidence, independent of the specific domain.
- The fact that Lachesis approaches the AutoFL-confidence baseline without using the final voted answer (in F and F+A configurations) implies that correctness signal is present in intermediate tool calls, not just in the final vote.
- The precision improvement over the 'always correct' baseline (0.6732 accuracy) shows that the classifier is not just exploiting dataset imbalance; it genuinely separates correct from incorrect inference sets.
Reading between the lines
- A testable extension is to feed Lachesis only the first k of the N reasoning steps and measure how precision changes; if it holds at small k, early termination becomes practical, but the paper does not yet provide this evidence.
- The same structural representations could be used for other multi-sample decoding schemes, such as best-of-n or majority voting on code generation tasks, where tool calls are replaced by edit operations or test outcomes.
- Lachesis's precision-oriented objective suggests a direct use in cost budgeting: run Lachesis after a few samples, stop inferring when it predicts failure, and spend saved budget on harder bugs.
Signed reviews
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper introduces Lachesis, a classifier that predicts whether self-consistency voting in AutoFL will rank the true buggy method first, using structural representations of LLM reasoning paths. It proposes two representations: an LLM Inference Matrix (LIM) processed by an LSTM and an LLM Inference Graph (LIG) processed by a GCN. Four input variants are studied: shape only (S), function type only (F), function type plus arguments (F+A), and function type plus arguments plus the final answer (F+A+A). The models are evaluated on 456 bugs from BugsInPy and Defects4J using 10-fold cross-validation, with accuracy, ROC-AUC, precision, and recall reported. The best configuration (GCN with F+A+A) achieves precision 0.8136, while the AutoFL-confidence baseline achieves ROC-AUC 0.8193. The paper motivates early termination of LLM inferences as the intended use case.
Significance. If the results are validated, the paper would provide evidence that reasoning path structure contains reusable signal for forecasting self-consistency outcomes, which is a novel and potentially useful result for cost reduction in LLM-based agents. The paper contributes a new dataset of AutoFL reasoning traces, two structural representations, and an openly available implementation. The clean structural configurations (S, F, F+A) are self-contained in that they do not see the final answer, and the GCN-S result (AUC 0.7791) suggests that path shape alone carries signal. However, the current evaluation protocol is likely to overstate performance, and the headline F+A+A configuration includes the final answer as an input, weakening the claim that the prediction is based on structural properties. The early-termination motivation is not directly tested.
major comments (4)
- [Section III-A4, Table II] The evaluation protocol reports metrics from the epoch with the highest test accuracy within each fold of the 10-fold cross-validation. Because the test fold itself is used to select the reporting epoch, the accuracy, ROC-AUC, precision, and recall in Table II are optimistically biased; with roughly 45 bugs per fold and 50–100 epochs, the maximum over noisy epochs can be substantial. The manual hyperparameter tuning described in the same section also lacks a nested or held-out selection procedure. Please use an independent validation set (or nested cross-validation) for early stopping and hyperparameter selection, and then report test metrics from the selected epoch; without this correction, the reported numbers cannot be interpreted as unbiased estimates of generalization.
- [Section II-C4, Section II-D, Table II] The F+A+A representation includes the final answer of AutoFL as an input feature, while the label is whether that answer is correct. The headline result (GCN with F+A+A, precision 0.8136) therefore depends not only on the structure of reasoning paths but also on the identity of the voted answer, which is inconsistent with the paper's claim of predicting correctness from structural properties. Please make the structural configurations (S, F, F+A) the primary results, and report F+A+A as an ablation or upper bound that includes answer content. To quantify the contribution of answer identity, also report a model that receives only the answer vector.
- [Section III-B, final paragraph] The paper states that configurations such as F and F+A 'can perform well by leveraging limited information' and that 'predictions based on partial data may be possible,' using this to motivate early termination. However, all experiments are conducted on complete reasoning paths with R=10 and N=10; no experiment measures prediction performance from prefixes of the reasoning steps or from subsets of the R runs. Since the early-termination use case is a central motivation in Sections I and III-B, add experiments with partial traces (e.g., the first k steps, or k of R paths) or explicitly restrict the claims to future work.
- [Section III-B, Table II, Fig. 4] The comparison with AutoFL-confidence is presented as showing comparable performance, but AutoFL-confidence achieves a higher ROC-AUC (0.8193) than every Lachesis configuration (maximum 0.7866), and the fixed threshold of 0.5 used for AutoFL-confidence is acknowledged to be not specifically designed for binary classification. The claim of competitiveness is not supported by significance testing or confidence intervals for the metric differences. Please add statistical tests (e.g., paired tests across folds or bootstrap confidence intervals) to support any comparative claims.
minor comments (8)
- [Section II-B2] The text says 'Ans example is given in Fig. 2'; this should be 'An example is given in Fig. 2'.
- [Section III-A1] The sentence 'This results in a dataset of 456 bugs' would benefit from an explicit statement of the filtering criteria relative to the original 798 bugs, since only single-buggy-method versions and no Closure bugs are retained.
- [Section II-C4] The description 'The vector is then appended to the path of the function calls' is ambiguous; please clarify whether the answer embedding is concatenated to every node embedding, added as a separate graph-level feature, or appended in some other way.
- [Table II] Table II reports point estimates without standard deviations or confidence intervals; the ROC curves in Fig. 4 show standard deviation bands, but the table would benefit from the same information for all metrics.
- [Section III-A4] The phrase 'manually fine-tuned' does not specify the search ranges or the number of configurations explored; please add these details to support reproducibility.
- [Abstract and Conclusion] The phrase 'precision of up to 0.8136' should be qualified as coming from the GCN F+A+A configuration, which uses the final answer as input, so that readers do not attribute the number to the purely structural configurations.
- [Equation (1)] The score(m) in Equation (1) is not defined in the paper; please define the voting score or cite the AutoFL paper for its computation.
- [Fig. 4] The ROC curves are shown only for the F+A+A configuration; including ROC curves for the S, F, and F+A configurations would help the reader assess the structural signal independently of the answer input.
Circularity Check
Headline F+A+A precision is partially circular and reported metrics are selected on the test fold; clean F/F+A configurations remain independent.
-
self definitional
[Section II-C4 and Section II-D]
"Function Type, Arguments, and Answer (F+A+A): In addition to Function Type and Argument, this representation includes the final answer given by AutoFL. ... we define a set of reasoning paths to contain a correct answer if AutoFL ranks the faulty method at the top after it computes the ranking score by voting [6]. Consequently, we use the AutoFL results to label LIMs and LIGs."
In F+A+A, the input feature is the final answer that AutoFL's self-consistency voting produces, while the label is whether that same final answer is correct. The model is therefore asked to predict a property of the very object it is given as input. The reported headline precision of 0.8136 (Table II, GCN F+A+A) can be obtained by learning a mapping from answer patterns to correctness rather than by predicting the correctness from reasoning-path structure. This configuration cannot support the early-termination motivation, because the final answer is only available after inference has completed. The F and F+A configurations do not have this construction.
-
fitted input called prediction
[Section III-A4]
"Both LSTM and GCN models are trained for 50 and 100 epochs each with a learning rate of 0.001. We report test accuracy, ROC-AUC, precision, and recall from the epoch with the highest test accuracy."
The epoch is selected using the test fold's own accuracy. With 10-fold cross-validation, the reported test metrics are the maximum over the training epochs per fold, so the reported accuracies, AUCs, and precisions are not independent out-of-sample estimates; they are the result of fitting the reporting epoch to the test labels. The paper also states that hyperparameters were manually fine-tuned without a nested validation procedure, giving the model selection access to the full dataset. Thus Table II's numbers are optimistically biased for every configuration, including the otherwise clean F and F+A results.
full rationale
The paper's core idea, that the shape of reasoning paths contains signal about self-consistency correctness, is not inherently circular. The S, F, and F+A configurations do not use the final answer and still achieve ROC-AUC up to 0.7866 and precision up to 0.8022 (Table II), which is genuine evidence for the central claim. However, two constructions undermine the paper's headline numbers. First, the F+A+A configuration appends the final voted answer to every step's embedding while the label is whether that voted answer is correct, so that configuration partly classifies the answer rather than predicting from path structure. Second, Section III-A4 reports test metrics from the epoch with the highest test accuracy, so the test fold is used for model selection; the reported numbers are not unbiased predictions. The early-termination use case is also untested: no experiment uses partial reasoning paths, despite the conclusion suggesting partial-data predictions. The use of AutoFL [6] by the same authors is not itself load-bearing circularity, because AutoFL's ranking is a fixed target and labels come from ground-truth bug locations. These issues are evaluation and reporting circularities rather than a fully circular derivation; the clean configurations provide independent content, so the score is 6 rather than 8 or 10.
Assumptions & free parameters
free parameters (2)
- LSTM/GCN hyperparameters (layers, hidden dim, batch size, dropout) =
Table I, e.g., LSTM F: 1 layer/32 hidden/batch 64/dropout 0; GCN F+A+A: 3 layers/64 hidden/batch 16/dropout 0.8
- AutoFL-confidence threshold =
0.5
assumptions (3)
- domain assumption Self-consistency hypothesis: correct answers are more likely to be supported by multiple reasoning paths (from Wang et al. [8])
- domain assumption Reasoning path structure (function call sequence and arguments) is a sufficient signal to predict whether the self-consistency vote will be correct
- domain assumption The filtered dataset of 456 single-buggy-method bugs is representative of AutoFL's target use
Cite this review
Pith. "Pith review of Lachesis: Predicting LLM Inference Accuracy using Structural Properties of Reasoning Paths." pith.science (2026). https://pith.science/paper/SSIMGL6N
@misc{pith2026241208281,
author = {Pith},
title = {Pith review of: Lachesis: Predicting LLM Inference Accuracy using Structural Properties of Reasoning Paths},
year = {2026},
howpublished = {\url{https://pith.science/paper/SSIMGL6N}},
note = {Machine review of arXiv:2412.08281}
}
read the original abstract
Large Language Models are increasingly used to build agents to perform more complex tasks. As LLMs perform more complicated reasoning through longer interactions, self-consistency, i.e., the idea that the answer obtained from sampling and marginalising a number of multiple independent inferences is more likely to be correct, has received much attention as a simple validation technique. This paper aims to empirically verify this intuitive hypothesis by predicting the correctness of answers obtained using self-consistency from properties of the samples of reasoning paths. We introduce Lachesis, a predictive model for self-consistency based LLM inferences, and empirically evaluate it using AutoFL, a recently proposed LLM-based fault localisation technique, as the target technique that uses self-consistency. Lachesis converts collected reasoning paths from AutoFL using specifically designed reasoning path representations, and trains LSTM and GCN models to predict whether a given set of reasoning paths would result in a correct answer. The results suggest that Lachesis can predict the correctness of answers with a precision of up to 0.8136, highlighting the possibility of training a predictive model that can allow early termination of inferences that are not likely to be successful.
Figures
Reference graph
Works this paper leans on
-
[1]
Large language models for software engineering: Survey and open problems,
A. Fan, B. Gokkaya, M. Harman, M. Lyubarskiy, S. Sengupta, S. Yoo, and J. M. Zhang, “Large language models for software engineering: Survey and open problems,” in Proceedings of the 45th IEEE/ACM International Conference on Software Engineering: Future of Software Engineering, ser. ICSE-FoSE. IEEE, May 2023, pp. 31–53
work page 2023
-
[2]
Towards autonomous testing agents via conversational large language models,
R. Feldt, S. Kang, J. Yoon, and S. Yoo, “Towards autonomous testing agents via conversational large language models,” in Proceedings of the 38th IEEE/ACM International Conference on Automated Software Engineering (ASE), ser. ASE 2023, 2023, pp. 1688–1693
work page 2023
-
[3]
Explainable automated debugging via large language model-driven scientific debugging,
S. Kang, B. Chen, S. Yoo, and J.-G. Lou, “Explainable automated debugging via large language model-driven scientific debugging,” arXiv preprint arXiv:2304.02195, 2023
arXiv 2023
-
[4]
Swe-agent: Agent-computer interfaces enable automated software engineering,
J. Yang, C. E. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press, “Swe-agent: Agent-computer interfaces enable automated software engineering,” 2024
work page 2024
-
[5]
Intent-driven mobile gui testing with autonomous large language model agents,
J. Yoon, R. Feldt, and S. Yoo, “Intent-driven mobile gui testing with autonomous large language model agents,” in Proceedings of the 16th IEEE International Conference on Software Testing, Verification and Validation, ser. ICST 2024, 2024, pp. 129–139
work page 2024
-
[6]
A quantitative and qualitative evaluation of llm-based explainable fault localization,
S. Kang, G. An, and S. Yoo, “A quantitative and qualitative evaluation of llm-based explainable fault localization,” Proceedings of the ACM on Software Engineering, vol. 1, no. FSE, pp. 1424–1446, 2024
2024
-
[7]
Chain-of-thought prompting elicits reasoning in large language models,
J. Wei, X. Wang, D. Schuurmans, M. Bosma, F. Xia, E. Chi, Q. V . Le, D. Zhou et al. , “Chain-of-thought prompting elicits reasoning in large language models,” Advances in neural information processing systems , vol. 35, pp. 24 824–24 837, 2022
2022
-
[8]
Self-consistency improves chain of thought reasoning in language models,
X. Wang, J. Wei, D. Schuurmans, Q. Le, E. Chi, S. Narang, A. Chowdh- ery, and D. Zhou, “Self-consistency improves chain of thought reasoning in language models,” arXiv preprint arXiv:2203.11171 , 2022
arXiv 2022
Show all 16 references
-
[9]
React: Synergizing reasoning and acting in language models,
S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y . Cao, “React: Synergizing reasoning and acting in language models,” arXiv preprint arXiv:2210.03629, 2022
2022 arXiv
-
[10]
Better patching using llm prompting, via self-consistency,
T. Ahmed and P. Devanbu, “Better patching using llm prompting, via self-consistency,” in 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE) , 2023, pp. 1742–1746
2023
-
[11]
Energy and policy consid- erations for deep learning in NLP,
E. Strubell, A. Ganesh, and A. McCallum, “Energy and policy consid- erations for deep learning in NLP,” in Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics , A. Korhonen, D. Traum, and L. M `arquez, Eds. Florence, Italy: Association for C...
2019
-
[12]
W. B. Langdon and R. Poli, Foundations of Genetic Programming . Springer-Verlag, 2002
2002
-
[13]
Long short-term memory,
S. Hochreiter and J. Schmidhuber, “Long short-term memory,” Neural Computation, vol. 9, no. 8, pp. 1735–1780, 11 1997
1997
-
[14]
Semi-supervised classification with graph convolutional networks,
T. N. Kipf and M. Welling, “Semi-supervised classification with graph convolutional networks,” CoRR, vol. abs/1609.02907, 2016
2016 arXiv
-
[15]
Bugsinpy: a database of existing bugs in python programs to enable controlled testing and debugging studies,
R. Widyasari, S. Q. Sim, C. Lok, H. Qi, J. Phan, Q. Tay, C. Tan, F. Wee, J. E. Tan, Y . Yieh et al. , “Bugsinpy: a database of existing bugs in python programs to enable controlled testing and debugging studies,” in Proceedings of the 28th ACM joint meeting on european softwar...
2020
-
[16]
Defects4j: A database of existing faults to enable controlled testing studies for java programs,
R. Just, D. Jalali, and M. D. Ernst, “Defects4j: A database of existing faults to enable controlled testing studies for java programs,” in Pro- ceedings of the 2014 international symposium on software testing and analysis, 2014, pp. 437–440
2014
Reviewed August 11, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.