REVIEW 3 major objections 5 minor 1 cited by
A Formalism-Aware Reward Loop for Handwritten UML-to-PlantUML Generation
T0 review · 3 major / 5 minor · reviewed 2026-08-03 · deepseek-v4-flash
Pith's one-line read Parsing generated UML into XMI and control-flow graphs gives a small open model trained with formalism-aware rewards a competitive edge on handwritten UML-to-PlantUML conversion.
desk verdict Honest, well-scoped worked example: small open VLM becomes competitive on handwritten UML-to-PlantUML, but the GRPO stage's contribution remains indistinguishable from SFT, and the headline metric is the training reward. 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 mechanism is the formalism-aware reward loop. Generated PlantUML is not scored as text; it is compiled and parsed into the formalism's canonical representation—XMI for class diagrams, a control-flow graph for activity diagrams—and compared with the reference in that representation. Class-diagram reward components cover compilation, classes, relationships, methods, and attributes; activity-diagram reward components cover compilation, CFG structure (via weighted Jaccard similarity and Hungarian-algorithm graph assignment), and label similarity (via TF-IDF). This same representation-based scoring is used both as the reinforcement-learning reward and as the automatic evaluation metri
What would settle it
Take the switch-branch example the paper reports (an if-branch rewritten as a switch-branch that renders identically). If a panel of UML practitioners judges the two outputs as equally good interpretations of the same handwritten sketch, yet the formalism-aware metric scores them substantially apart, that falsifies the metric's validity as a proxy for conversion quality—and since the same metric drives both training and evaluation, it would undermine the comparative claims. A quantitative version: on a set of meaning-preserving alternatives, compute the correlation between the metric and human
Extended reading notes
Core claim
Handwritten-UML-to-PlantUML should be treated as structured model generation, not image-to-text generation. The paper adapts a small open vision-language model via supervised fine-tuning plus group-relative policy optimisation, with rewards derived from parsing the generated PlantUML into XMI (class diagrams) or a control-flow graph (activity diagrams) and comparing those structures to the reference. On a held-out set of 30 sketches the adapted model compiles 100% of class and 86.7% of activity diagrams and moves from last to second in automatic and human rankings, ahead of one proprietary baseline and behind another. The reward stage's gain over fine-tuning alone is not statistically signif
Load-bearing premise
The load-bearing premise is that the formalism-aware scores—XMI structural comparison and CFG comparison with hand-chosen weights and edit costs—are a valid measure of conversion quality; the paper itself finds only moderate agreement with human rankings (rho=0.565) and shows the metric penalises meaning-preserving deviations, so if this metric is arbitrary, the comparative results are an artefact of the metric.
Editorial extensions
If this is right
- If the full pipeline is as competitive as reported, a small open model can serve as a practical sketch-to-model converter, reducing reliance on larger proprietary systems for this task.
- Compilability of generated class diagrams can reach 100% and activity diagrams 86.7% on this data, making the outputs usable in downstream model-analysis workflows without manual repair.
- Formalism-aware metrics capture compilability and recoverable structure but only moderately align with human judgement, so any evaluation of such models that relies solely on them will misrank acceptable alternative formulations.
- The reward-loop pattern provides a template for turning model analysis into training feedback, though each new formalism requires designing its own representation and comparison.
Reading between the lines
- Because the reward stage shows no significant gain over supervised fine-tuning on this held-out set, the strong results may be driven mostly by the supervised phase; the real test of formalism-aware rewards is whether they add value with larger datasets or with decoupled per-component normalisation.
- If a reward were designed to recognise semantic equivalence—e.g., treating a switch-branch and an if-branch as the same control flow—the metric-human correlation would likely rise, and the reward loop could become more effective as a training signal.
- The error analysis points to visual grounding, not PlantUML generation, as the bottleneck for remaining meaning-altering errors; improved fine-grained perception (reading multiplicities, arrowheads) may yield gains that compound with better reward design.
- A direct extension would apply the same loop to state machines or sequence diagrams; if the pattern transfers, it strengthens the claim that formalism-aware rewards are a general method rather than a two-diagram special case.
Signed reviews
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes a 'formalism-aware reward loop' for handwritten UML-to-PlantUML generation: rather than scoring generated PlantUML as text, the system compiles it into an analysable representation (XMI for class diagrams, a control-flow graph for activity diagrams) and computes rewards by structural comparison with a reference. A small open vision-language model (Qwen3.5-4B) is adapted with supervised fine-tuning followed by GRPO. On a held-out set of 30 diagrams, the paper reports that the full pipeline compiles 100% of class diagrams and 86.7% of activity diagrams, achieves content scores of 17.60 and 13.71, and is ranked second of four by human raters, behind Gemini 3 Flash and ahead of GPT-4.1 Mini. The SFT-only ablation is statistically indistinguishable from the full pipeline (p=0.94 class, p=0.64 activity), and the automatic content score correlates moderately with human rankings (rho=0.565). The paper carefully hedges most claims and frames the work as emerging evidence.
Significance. If the competitiveness result holds, the paper demonstrates that a small open VLM adapted with formalism-aware rewards can approach proprietary baselines on sketch-to-model conversion, a practically relevant task. The reusable pattern of parsing into a formalism-specific representation and comparing against a reference is a useful contribution, and the paper is unusually honest: it provides an explicit SFT ablation, a human ranking study with high inter-rater agreement, an error taxonomy including meaning-preserving deviations, and a public artifact repository. The main value is in the negative/qualified finding that the reward-guided stage does not yet show added value beyond SFT on this small set, which is itself an informative result for the NIER audience.
major comments (3)
- [§4.1–4.2, Tables 1–2] The central 'second of four' claim rests on point estimates from n=15 diagrams per type. Class content is 17.60 vs. 17.36 for Gemini; activity is 13.71 vs. 14.01; human Borda is 0.613 vs. 0.731 overall and 0.564 vs. 0.787 for activity. No confidence intervals, bootstrap intervals, or paired significance tests are reported for these comparisons; the only inferential statistics are the SFT-vs-full Wilcoxon tests (p=0.94, p=0.64). With 15 diagrams per type, gaps of 0.24 content points or 0.05–0.17 Borda units are plausibly sampling noise. Please add paired tests or bootstrap CIs for Ours-vs-Gemini and Ours-vs-GPT, or soften the ordering claim to 'not distinguishable from Gemini on class diagrams' and 'ahead of GPT-4.1 Mini' only where statistically supported.
- [§4.4 vs. Table 2] The paper credits the 'full adaptation pipeline' with moving the model from last to second, but Table 2 shows the SFT-only checkpoint is equal to the full pipeline on all class-diagram components (compilation 100 vs. 100; class-level 98.3 vs. 98.3; attributes 98.0 vs. 98.0; relationships 83.6 vs. 84.2; methods 91.2 vs. 90.9) and pointwise higher on every activity-diagram component (compilation 100 vs. 86.7; structural 86.0 vs. 73.4; label 78.6 vs. 69.2). Therefore the second-place result could be produced entirely by supervised fine-tuning, and the novel formalism-aware reward loop has no demonstrated positive effect. This is load-bearing for RO1. Either include the SFT-only checkpoint in the overall ranking/Borda analysis, or explicitly restate RO1 as 'SFT-based adaptation is competitive; the reward-stage contribution remains open' so that the headline does not attribute the ranking to
- [§4.1 and §3] The automatic evaluation reuses the formalism-aware reward functions of Section 3 as model-level metrics. Because GRPO is trained to maximize exactly those functions, the automatic score gains are partly a consequence of optimizing the metric itself, not independent evidence of conversion quality. The human ranking study is the genuinely independent check, but it is based on 30 sketches and its overall agreement with the automatic score is only moderate (rho=0.565). This circularity is acknowledged indirectly but should be stated more prominently; Table 1's 'automatic and human evaluation' side-by-side suggests two independent confirmations, whereas only the human Borda is independent of the training objective.
minor comments (5)
- [References [1] and [17]] The dataset is first cited as [1] ('Dataset Paper Accepted but Not Yet Publicly Available', anonymised), while [17] gives the actual CAS2UML reference. If the dataset paper is under double-anonymous review, unify the citations and state that the dataset will be made public; the current placeholder makes it hard to verify the data provenance.
- [§4.1, final paragraph] The sentence ending 'rather than imitation of reference text.Wh' contains a stray 'Wh' fragment. Please fix the typo.
- [§4.2, human study] The UML-knowledge test used for screening is described only as a 'competence threshold'. Provide the threshold or a supplementary description, and clarify how the 26 participants were distributed across the three blocks (a random assignment does not guarantee that every block received at least one rater, even though the design intends full coverage).
- [Figure 2] The caption says 'The two render to identical diagrams', but the two PlantUML snippets in (b) and (c) are syntactically different. I assume the rendered diagram images are visually identical; please phrase it as 'render to visually identical diagrams' to avoid ambiguity.
- [Tables 1–2] The tables would benefit from repeating the sample size (n=15 per diagram type) and explicitly noting that values are point estimates without error bars. This is especially important given the small n and the absence of confidence intervals.
Circularity Check
No significant circularity: the training-reward metric is transparently reused for automatic evaluation, but an independent human ranking study carries the headline claim.
full rationale
The paper explicitly reuses its formalism-aware reward functions as the automatic evaluation metric ('The automatic evaluation reuses the formalism-aware reward functions of Section 3 as model-level metrics'). This is self-referential in the sense that the training objective and one headline measure coincide, but it is not a circular derivation: the reward is not fitted to the held-out outputs, the automatic results are explicitly framed as emerging evidence on a small set, and the metric is validated against an independent human ranking study (rho=0.565, p<0.001; Kendall's W=0.80-0.91). The human Borda results independently reproduce the second-place ordering (Ours 0.613 vs Gemini 0.759, GPT-4.1 Mini 0.442, base 0.186), so the central competitiveness claim does not reduce to the reward by construction. The ablation honestly reports that GRPO is statistically indistinguishable from SFT alone (p=0.94 class, p=0.64 activity) and that 'the specific contribution of the reward-guided stage remains open'; this is a limitation statement, not a disguised prediction. Self-citations to the authors' dataset papers are data provenance, not load-bearing argument, and no uniqueness theorem or ansatz is imported from prior author work. Therefore no load-bearing circularity was found.
Assumptions & free parameters
free parameters (4)
- Class-diagram reward subscore weights =
compilation 1, classes 3, relationships 5, methods 5, attributes 5
- Activity-diagram reward subscore weights =
compilation 1, CFG structural 9, label 9
- CFG edit costs (Hungarian substitution costs, swimlane penalty, outgoing-edge costs) =
not specified in paper; deferred to artifact
- Format reward threshold (0-1) =
not specified beyond range
assumptions (5)
- domain assumption PlantUML-to-XMI conversion and the custom ANTLR4 CFG builder faithfully capture the intended UML model semantics.
- domain assumption The dataset's human-written PlantUML references correctly encode the intended model for each sketch.
- ad hoc to paper The hand-chosen reward functions are a valid proxy for modelling acceptability.
- domain assumption The human ranking study is a trustworthy ground truth for modelling quality.
- domain assumption Qwen3.5-4B base model is a representative small open vision-language model.
Cite this review
Pith. "Pith review of A Formalism-Aware Reward Loop for Handwritten UML-to-PlantUML Generation." pith.science (2026). https://pith.science/paper/5EEQRTGU
@misc{pith2026260728987,
author = {Pith},
title = {Pith review of: A Formalism-Aware Reward Loop for Handwritten UML-to-PlantUML Generation},
year = {2026},
howpublished = {\url{https://pith.science/paper/5EEQRTGU}},
note = {Machine review of arXiv:2607.28987}
}
read the original abstract
Handwritten UML sketches are common in early software design, but turning them into structured, analysable modelling artefacts still requires manual reconstruction. Vision-language models can generate PlantUML from diagram images, but prompt-based use treats this as image-to-text generation rather than structured model generation. We investigate formalism-aware rewards: feedback signals derived from analysable model representations rather than surface text. In a worked example, we adapt a vision-language model for handwritten UML-to-PlantUML generation using super-vised fine-tuning followed by Group Relative Policy Optimisation. Generated PlantUML is compared against target representations, using XMI for class diagrams and control-flow graphs for activity diagrams. Emerging results show that the adapted model improves compilability and conversion quality over the untuned open model and one proprietary baseline, while remaining competitive with a stronger proprietary baseline on class diagrams. The added benefit of the reward-guided stage remains open on the current held-out set. Error analysis and metric-validity results show that modelling acceptability is only partially captured, motivating rewards and evaluations that combine model analysis with human judgement.
Figures
Forward citations
Cited by 1 Pith paper
-
CAS2UML: A Handwritten Sketch-to-PlantUML Dataset for Class and Activity Diagrams
CAS2UML provides 557 hand-drawn class and activity UML diagrams with validated PlantUML ground truth, plus a validation tool and scripts for reproducible sketch-to-UML benchmarking.
Reference graph
Works this paper leans on
-
[1]
Anonymous. 2025. Dataset Paper Accepted but Not Yet Publicly Available. Anonymised reference. Full citation withheld for double-anonymous review and will be added in the camera-ready version
2025
-
[2]
Monique Axt. 2023. Transformation of sketchy UML Class Diagrams into for- malPlantUML models
2023
-
[3]
Sebastian Baltes and Stephan Diehl. 2014. Sketches and diagrams in practice. In Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering (SIGSOFT/FSE14). ACM, 530–541. doi:10.1145/2635868. 2635891
doi:10.1145/2635868 2014
-
[4]
Averi Bates, Ryan Vavricka, Shane Carleton, Ruosi Shao, and Chongle Pan. 2025. Unified modeling language code generation from diagram images using mul- timodal large language models.Machine Learning with Applications20 (2025), 100660. doi:10.1016/j.mlwa.2025.100660
arXiv 2025
-
[5]
Aaron Conrardy and Jordi Cabot. 2024. From Image to UML: First Results of Image Based UML Diagram Generation Using LLMs. arXiv:2404.11376 [cs.SE] https://arxiv.org/abs/2404.11376
arXiv 2024
-
[6]
Daniele De Bari, Giacomo Garaccione, Riccardo Coppola, Marco Torchiano, and Luca Ardito. 2024. Evaluating Large Language Models in Exercises of UML Class Diagram Modeling. InProceedings of the 18th ACM/IEEE International Symposium on Empirical Software Engineering and Measurement(Barcelona, Spain)(ESEM ’24). Association for Computing Machinery, New York, ...
arXiv 2024
-
[7]
2025.Harnessing Large Language Models for Automated Soft- ware Diagram Generation
Grant Guernsey. 2025.Harnessing Large Language Models for Automated Soft- ware Diagram Generation. Master’s thesis. University of Cincinnati. OhioLINK Electronic Theses and Dissertations Center. http://rave.ohiolink.edu/etdc/view? acc_num=ucin1746701542674719
2025
- [8]
Show all 21 references
-
[9]
Hatice Koç, Ali Mert Erdoğan, Yousef Barjakly, and Serhat Peker. 2021. UML Diagrams in Software Engineering Research: A Systematic Literature Review. Proceedings74, 1 (2021). doi:10.3390/proceedings2021074013
2021 doi
-
[10]
Jun Ling, Yao Qi, Tao Huang, Shibo Zhou, Yanqin Huang, Jiang Yang, Ziqi Song, Ying Zhou, Yang Yang, Heng Tao Shen, and Peng Wang. 2025. Table2LaTeX- RL: High-Fidelity LaTeX Code Generation from Table Images via Reinforced Multimodal Language Models. arXiv:2509.17589 [cs.AI] ht...
2025
-
[11]
Shih-Yang Liu, Xin Dong, Ximing Lu, Shizhe Diao, Peter Belcak, Mingjie Liu, Min-Hung Chen, Hongxu Yin, Yu-Chiang Frank Wang, Kwang-Ting Cheng, et al
-
[12]
Yuanqing Liu, Ziming Yang, Yulong Li, and Yue Yang. 2026. FloorplanVLM: A Vision-Language Model for Floorplan Vectorization. arXiv:2602.06507 [cs.CV] https://arxiv.org/abs/2602.06507
2026
-
[13]
Artem Naboichenko and René Peinl. 2026. Unlocking UML Class Diagram Understanding in Vision Language Models. arXiv:2605.11634 [cs.CV] https: //arxiv.org/abs/2605.11634
2026 arXiv
-
[14]
HG Ranjani and Rutuja Prabhudesai. 2025. Measuring Visual Understanding in Telecom domain: Performance Metrics for Image-to-UML conversion using VLMs. arXiv:2509.11667 [cs.LG] https://arxiv.org/abs/2509.11667
2025
-
[15]
Mantas Ražinskas, Benas Mili¯unas, Mantas Jurgelaitis, Lina Čeponien˙e, and Lina Bisikirskien˙e. 2024. Transforming Sketches of UML Use Case Diagrams to Models. IEEE Access12 (2024), 185826–185837. doi:10.1109/ACCESS.2024.3514455
2024
-
[16]
Gianna Reggio, Maurizio Leotta, Filippo Ricca, and Diego Clerissi. 2014. What are the used activity diagram constructs? a survey. In2014 2nd International Con- ference on Model-Driven Engineering and Software Development (MODELSW ARD). 87–98
2014
-
[17]
Simon Scholz and Mersedeh Sadeghi. 2026. CAS2UML: A Handwritten Sketch- to-PlantUML Dataset for Class and Activity Diagrams. InProceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering (ASE 2026). Accepted for publication
2026
-
[18]
Harald Störrle. 2017. How are Conceptual Models used in Industrial Software Development? A Descriptive Survey. InProceedings of the 21st International Conference on Evaluation and Assessment in Software Engineering(Karlskrona, Sweden)(EASE ’17). Association for Computing Machi...
2017
-
[19]
Jagoda Walny, Jonathan Haber, Marian Dörk, Jonathan Sillito, and Sheelagh Carpendale. 2011. Follow that sketch: Lifecycles of diagrams and sketches in software development. In2011 6th International Workshop on Visualizing Software for Understanding and Analysis (VISSOFT). 1–8....
2011
-
[20]
Zhenchang Xing and Eleni Stroulia. 2005. UMLDiff: an algorithm for object- oriented design differencing. InProceedings of the 20th IEEE/ACM international Conference on Automated software engineering. 54–65
2005
-
[2026]
Gdpo: Group reward-decoupled normalization policy optimization for multi-reward rl optimization.arXiv preprint arXiv:2601.05242(2026)
2026 arXiv
Reviewed August 3, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.