REVIEW 3 major objections 6 minor 22 references
Detec\c{c}\~ao de Conflitos Sem\^anticos com Testes Gerados por LLM
T0 review · 3 major / 6 minor · reviewed 2026-08-06 · deepseek-v4-flash
Pith's one-line read Code Llama 70B's generated tests detect five semantic merge conflicts, including one that prior tools missed, with no false positives.
desk verdict A transparent, careful empirical study with a promising complementarity result; the novel conflict claim needs a contamination check and a baseline rerun. 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 load-bearing mechanism is the SMAT conflict-detection heuristic combined with a new LLM test-generation pipeline. SMAT takes a merge scenario as a quadruple of commits (Base, Left, Right, Merge), compiles and runs generated unit tests on all four versions, and signals a semantic conflict when a test fails on Base and Merge but passes on only one parent branch. The new pipeline builds prompts from Tree-sitter-extracted class fields, constructors, target-method bodies, and optional textual summaries of the Left/Right changes; sends them zero-shot or 1-shot to Code Llama 70B at controlled temperatures and seeds; and cleans the model's output into individual @Test methods that SMAT then executes and evaluates with the same heuristics.
What would settle it
Settle it by running the zero-shot, temperature-0.0 configuration on merge scenarios from Java projects released after Code Llama 70B's training cutoff; if the tool no longer reproduces the novel getAllEventTypes conflict, contamination is the likely explanation.
Extended reading notes
Core claim
The paper's central claim is that a Code Llama 70B-based test generator, integrated into SMAT, can detect semantic merge conflicts that established generators miss, without raising false alarms. Across eight prompt/temperature/seed configurations on a 79-scenario subset of the mergedataset (29 conflicts), the union of all runs detected five distinct conflicts, matching EvoSuite and exceeding both Randoop variants; the zero-shot, temperature-0.0 configuration alone found three conflicts in a single run. One of the five—the cloud-slang getAllEventTypes size inconsistency, where the Left and Right branches added different numbers of elements to the same list—had not been detected by EvoSuite, Differential EvoSuite, Randoop, or Randoop Clean in the prior evaluation. The paper also reports that different configurations find different conflicts, so no single prompt setting is sufficient.
Load-bearing premise
The evaluation assumes Code Llama 70B's generated tests reflect reasoning from the prompt context, not memorization of the open-source projects in its training data; if contamination occurred, the reported detections—especially the novel getAllEventTypes conflict—would be inflated.
Editorial extensions
If this is right
- Combining LLM-generated tests with EvoSuite and Differential EvoSuite would detect more distinct semantic conflicts than any single generator, because the tools' detections are largely complementary.
- Running multiple LLM configurations—zero-shot at temperature 0.0 and 1-shot at temperature 0.7—covers conflict types that no single configuration finds, so parameter diversity should be part of any practical LLM-based detection strategy.
- The absence of false positives suggests the SMAT heuristic on LLM-generated tests is selective enough to be used as a complement to, not a replacement for, existing detectors.
- The observed 20–80× slowdown relative to EvoSuite-based tools means that, if the approach is adopted, merge scenarios must be prioritized so LLM generation is spent only where cheaper tools come up empty.
Reading between the lines
- If Code Llama 70B's training data includes the mergedataset repositories, the novel getAllEventTypes detection could reflect memorized assertions rather than merge-aware reasoning; the paper does not control for this, so testing on projects released after the model's cutoff would be the cleanest check.
- The sharp compilation-rate gap between the mergedataset and the simpler ASTER projects suggests that code complexity, not just prompt quality, drives LLM test failures; feeding the model method slices instead of full method bodies is a testable way to recover compilation in complex systems.
- Because configurations detect disjoint conflicts (zero-shot/temperature 0.0 catches antlr4; 1-shot/temperature 0.7 catches spring-boot), a small ensemble chosen per project or per conflict type could approach the recall of the full 132-hour union at a fraction of the cost.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper extends SMAT, a unit-test-based semantic conflict detection tool, with a new test generation module based on Code Llama 70B. It evaluates eight configurations (zero-shot and 1-shot prompts, temperatures 0.0 and 0.7, seeds 42 and 123) on 79 Java merge scenarios from the mergedataset and on two simpler projects from the ASTER dataset. The key reported results are: the zero-shot temperature-0.0 configuration detects up to three semantic conflicts in a single execution; the union of all configurations detects five conflicts, including getAllEventTypes in cloud-slang, which is claimed to be novel and not found by EvoSuite, Differential EvoSuite, Randoop, or Randoop Clean; no false positives are reported; and compile rates are much higher on the simpler ASTER projects. The paper discusses threats to validity, including training-data contamination and small sample size.
Significance. If the novel getAllEventTypes detection is the result of reasoning rather than memorization, the result is a meaningful complement to existing test-generation tools for semantic conflict detection, and the modular SMAT integration is a reusable contribution. The paper is transparent in reporting per-configuration results (Table 2), manually verifying detected conflicts, and making code and artifacts available. However, the significance is tempered by the small number of detected conflicts (5), the lack of a contamination control for the headline novel detection, and the overstatement in the RQ2 answer relative to Table 4.
major comments (3)
- [Section 4.2, Listing 2, Section 5] The central claim of a novel conflict detection rests on the test in Listing 2, which asserts assertEquals(23, eventTypes.size()). The paper does not show the actual prompt used for cloud-slang::SlangImpl::getAllEventTypes, nor that the value 23 is inferable from the provided context (for example, a change summary listing the added elements). Since cloud-slang is a public repository and Code Llama 70B was trained on public GitHub data, the hard-coded 23 may be memorized rather than derived. Section 5 acknowledges the contamination risk but offers no control. To establish the headline contribution, please provide the exact prompt for this scenario, or add a post-training-cutoff held-out project or a membership probe, and discuss the outcome; without this, the novel-conflict claim is not fully supported.
- [Section 4.3, RQ2 answer] The RQ2 answer says the Code Llama tool 'supera ferramentas tradicionais como Randoop e EvoSuite', but Table 4 shows that the union of Code Llama configurations detects 5 conflicts, the same number as EvoSuite (5), and only more than Randoop (2). The surrounding text in Section 4.3 correctly describes the result as 'desempenho comparável ao da EvoSuite'. Please correct the RQ2 answer to avoid overclaiming; the appropriate claim is that the tool is comparable to EvoSuite and superior to Randoop, with one novel conflict, rather than superior to EvoSuite.
- [Section 3.2, Table 4] The comparison in Table 4 uses baseline tool counts from Da Silva et al. [4]'s 85-scenario dataset, while Code Llama is evaluated on 79 scenarios after dropping 6. The paper should state explicitly that the 6 dropped scenarios contain no semantic conflict, so that the comparison over the 29 conflict scenarios is fair. If any of the dropped scenarios were conflict scenarios, the counts are not comparable and Table 4 would need to be recomputed on the same 79 scenarios. Currently the reader must infer this from the sentence that the subset includes 29 conflicts and 50 non-conflicts.
minor comments (6)
- [Throughout] Several symbols and words are garbled or incorrectly spaced (for example, 'PALA VRAS-CHA VE', 'CITYW ALK', 'GMERGE'); please fix all spacing and accent artifacts.
- [Table 1] The table header 'Temperatura 0 Temperatura 0.7 1S ZS 1S ZS' is ambiguous because the column order is not explicit; please add clear column labels such as 'T0, 1S', 'T0, ZS', 'T0.7, 1S', 'T0.7, ZS'.
- [Table 3] The footnote uses a single asterisk on counts such as '2*' without clarifying whether it marks 'at least one novel conflict among the detected ones' or 'the number of novel conflicts'; please clarify the notation.
- [Section 3.3] The text reports 1264 model calls per execution; please show the arithmetic (number of scenarios, branches, prompts, and target methods) so readers can reproduce the cost calculation.
- [Section 7] The conclusion uses 'demonstrou' where the acknowledged limitations in Section 5 warrant a more cautious wording such as 'indicates' or 'suggests'; please soften the conclusion accordingly.
- [Section 3.1] Please state the exact version of Code Llama 70B and the quantization/parameters used through Ollama, since these details affect reproducibility.
Circularity Check
No material circularity: the central evidence consists of new LLM-generated tests, compile rates, and manual validation; only minor self-citation appears in the novelty baseline against the authors' prior SMAT results.
full rationale
The paper's derivation chain is: extract target methods and change summaries -> build prompts -> invoke Code Llama 70B -> clean, compile, and execute the generated tests through SMAT's existing heuristics -> report conflicts. Each of these steps is an independent, new artifact: the generated tests, the compile rates, and the manual validation are not defined in terms of the paper's conclusions. The headline novelty, the getAllEventTypes conflict, is evidenced by a concrete generated test (Listing 2) that asserts a specific list size; this is an empirical output of the LLM pipeline, not an input. The novelty claim that this conflict was 'not previously detected by other SMAT tools' does rest on Table 4 data extracted from Da Silva et al. [4], a paper sharing authors, so the provenance of the uniqueness claim is self-referential. However, [4] is a published, externally falsifiable evaluation rather than an imported uniqueness theorem, and the present paper's contribution does not reduce to that citation: the test-generation, compilation, and detection results are newly produced. Section 5 explicitly acknowledges the training-data contamination risk and other threats, and while no contamination control is provided, that is an external-validity and correctness concern, not a circularity of derivation. The paper also avoids the 'fitted input called prediction' pattern by openly reporting that no single configuration detects all conflicts and by disclaiming any causal relation between prompt context and detection counts (Section 4.2, Table 3). Overall, no equation, definition, or fitted value makes the detected conflicts equivalent to the input by construction.
Assumptions & free parameters
assumptions (3)
- domain assumption The mergedataset ground-truth labels, 29 of 79 scenarios containing semantic conflicts, are correct.
- domain assumption SMAT's execution pattern heuristics correctly map test outcomes across Base, Left, Right, and Merge to semantic conflicts.
- domain assumption Code Llama 70B's pretraining did not memorize the evaluated open-source projects.
Cite this review
Pith. "Pith review of Detec\c{c}\~ao de Conflitos Sem\^anticos com Testes Gerados por LLM." pith.science (2026). https://pith.science/paper/PZF6AEG2
@misc{pith2026250706762,
author = {Pith},
title = {Pith review of: Detec\cc\~ao de Conflitos Sem\^anticos com Testes Gerados por LLM},
year = {2026},
howpublished = {\url{https://pith.science/paper/PZF6AEG2}},
note = {Machine review of arXiv:2507.06762}
}
read the original abstract
Semantic conflicts arise when a developer introduces changes to a codebase that unintentionally affect the behavior of changes integrated in parallel by other developers. Traditional merge tools are unable to detect such conflicts, so complementary tools like SMAT have been proposed. SMAT relies on generating and executing unit tests: if a test fails on the base version, passes on a developer's modified version, but fails again after merging with another developer's changes, a semantic conflict is indicated. While SMAT is effective at detecting conflicts, it suffers from a high rate of false negatives, partly due to the limitations of unit test generation tools such as Randoop and Evosuite. To investigate whether large language models (LLMs) can overcome these limitations, we propose and integrate a new test generation tool based on Code Llama 70B into SMAT. We explore the model's ability to generate tests using different interaction strategies, prompt contents, and parameter configurations. Our evaluation uses two samples: a benchmark with simpler systems from related work, and a more significant sample based on complex, real-world systems. We assess the effectiveness of the new SMAT extension in detecting conflicts. Results indicate that, although LLM-based test generation remains challenging and computationally expensive in complex scenarios, there is promising potential for improving semantic conflict detection.
Reference graph
Works this paper leans on
- [4]
-
[1]
Nathalia Barbosa. 2025. Apêndice Online. https://github.com/nathaliafab/smat- codellama-artifacts
work page 2025
-
[2]
Nathalia Barbosa. 2025. SMAT com integração Code Llama. https://github.com/ nathaliafab/SMAT/tree/codellama-integration
work page 2025
-
[3]
Yuriy Brun, Reid Holmes, Michael D. Ernst, and David Notkin. 2011. Crystal: pre- cise and unobtrusive conflict warnings. In Proceedings of the 19th ACM SIGSOFT Symposium and the 13th European Conference on Foundations of Software Engine- ering (Szeged, Hungary) (ESEC/FSE ’11). Association for Computing Machinery, New York, NY, USA, 444–447. https://doi.or...
arXiv 2011
-
[5]
Eclipse Foundation. 2020. Eclipse Cargo Tracker: Applied Domain-Driven Design Blueprints for Jakarta EE. https://github.com/eclipse-ee4j/cargotracker Acessado em: 13 jun. 2025
work page 2020
-
[6]
Gordon Fraser and Andrea Arcuri. 2011. Evosuite: automatic test suite generation for object-oriented software. In Proceedings of the 19th ACM SIGSOFT symposium and the 13th European conference on Foundations of software engineering. 416–419
2011
-
[7]
Chandra Maddila, Nachiappan Nagappan, Christian Bird, Georgios Gousios, and Arie van Deursen. 2021. ConE: A Concurrent Edit Detection Tool for Large-scale Software Development. ACM Trans. Softw. Eng. Methodol. 31, 2, Article 22 (Dec. 2021), 26 pages. https://doi.org/10.1145/3478019
-
[8]
Meta AI. 2023. Introducing Code Llama, a State-of-the-Art Large Language Model for Coding. https://ai.meta.com/blog/code-llama-large-language-model-coding/ Accessed: 2025-05-10
work page 2023
Show all 22 references
-
[9]
Ollama. 2023. Ollama - Run large language models locally. https://ollama.com/ Acesso em: 12 jun. 2025
2023
-
[10]
OpenLiberty. 2018. DayTrader8 Sample. https://github.com/OpenLiberty/sample. daytrader8 Acessado em: 13 jun. 2025
2018
-
[11]
Carlos Pacheco and Michael D Ernst. 2007. Randoop: feedback-directed random testing for Java. In Companion to the 22nd ACM SIGPLAN conference on Object- oriented programming systems and applications companion . 815–816
2007
-
[12]
Rangeet Pan, Myeongsoo Kim, Rahul Krishna, Raju Pavuluri, and Saurabh Sinha
-
[13]
Redmiles, and André van der Hoek
Anita Sarma, David F. Redmiles, and André van der Hoek. 2012. Palantir: Early Detection of Development Conflicts Arising from Parallel Code Changes. IEEE Transactions on Software Engineering 38, 4 (2012), 889–908. https://doi.org/10. 1109/TSE.2011.64
2012
-
[14]
Max Schäfer, Sarah Nadi, Aryaz Eghbali, and Frank Tip. 2024. An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generation. IEEE Transactions on Software Engineering 50, 1 (2024), 85–105. https://doi.org/ 10.1109/TSE.2023.3334955
2024
-
[15]
Leuson Da Silva, Paulo Borba, Wardah Mahmood, Thorsten Berger, and João Moisakis. 2020. Detecting Semantic Conflicts via Automated Behavior Change Detection. In 2020 IEEE International Conference on Software Maintenance and Evolution (ICSME). 174–184. https://doi.org/10.1109/I...
2020
-
[16]
Marcelo Sousa, Isil Dillig, and Shuvendu K. Lahiri. 2018. Verified three-way program merge. Proc. ACM Program. Lang. 2, OOPSLA, Article 165 (Oct. 2018), 29 pages. https://doi.org/10.1145/3276535
2018 doi
-
[17]
Tree-sitter. 2024. Tree-sitter - A parser generator tool and incremental parsing library. https://tree-sitter.github.io/tree-sitter/ Acesso em: 12 jun. 2025
2024
-
[18]
Zejun Wang, Kaibo Liu, Ge Li, and Zhi Jin. 2024. HITS: High-coverage LLM-based Unit Test Generation via Method Slicing. In 2024 39th IEEE/ACM International Conference on Automated Software Engineering (ASE) . 1258–1268
2024
-
[19]
Jules White, Quchen Fu, Sam Hays, Michael Sandborn, Carlos Olea, Henry Gil- bert, Ashraf Elnashar, Jesse Spencer-Smith, and Douglas C. Schmidt. 2023. A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT. ar- Xiv:cs.SE/2302.11382 https://arxiv.org/abs/2302.11382
2023 arXiv
-
[20]
Jialu Zhang, Mike Kaufman, Todd Mytkowicz, Ruzica Piskac, and Shuvendu Lahiri. 2022. Using Pre-trained Language Models to Resolve Textual and Semantic Merge Conflicts (Experience Paper). In ISSTA 2022: Proceedings of the 31st ACM SIGSOFT International Symposium on Software Tes...
2022
-
[21]
Yuwei Zhang, Qingyuan Lu, Kai Liu, Wensheng Dou, Jiaxin Zhu, Li Qian, Chunxi Zhang, Zheng Lin, and Jun Wei. 2025. CITYWALK: Enhancing LLM-Based C++ Unit Test Generation via Project-Dependency Awareness and Language-Specific Knowledge. arXiv:cs.SE/2501.16155 https://arxiv.org/a...
2025 arXiv
-
[2025]
arXiv:cs.SE/2409.03093 https://arxiv.org/abs/2409.03093
ASTER: Natural and Multi-language Unit Test Generation with LLMs. arXiv:cs.SE/2409.03093 https://arxiv.org/abs/2409.03093
Reviewed August 6, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.