Metraipolis › archive › dc_d289a16590a7

Why Do LLMs Fail at OCL Generation? A Graph Reasoning Perspective — arXiv:2609.26122

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.26122
License (as archived)
CC0-1.0
Archived
2026-10-08T15:16:11.255Z
SHA-256 of the archived text
029c0fa60ac1666041974771b67d23e9a076fe4cdc75f2568aed8f7b4b08931a
Stable URL of this page
https://metraipolis.com/documento/dc_d289a16590a7

How to cite

Why Do LLMs Fail at OCL Generation? A Graph Reasoning Perspective — arXiv:2609.26122 — arXiv (en), https://arxiv.org/abs/2609.26122 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d289a16590a7 (Metraipolis archive dc_d289a16590a7, sha256 029c0fa60ac1666041974771b67d23e9a076fe4cdc75f2568aed8f7b4b08931a)
BibTeX
@misc{dcd289a16590a7,
  title = {Why Do LLMs Fail at OCL Generation? A Graph Reasoning Perspective — arXiv:2609.26122},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.26122},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d289a16590a7; sha256 029c0fa60ac1666041974771b67d23e9a076fe4cdc75f2568aed8f7b4b08931a},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.26122. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Large Language Models (LLMs) are increasingly used to generate Object Constraint Language (OCL) constraints from natural language specifications and UML class diagrams. However, existing work mainly focuses on improving accuracy, with limited understanding of why these models fail. Aims. This study investigates the underlying causes of LLM failures in OCL generation, framing the task as a graph reasoning problem over UML class diagrams. Method. We conduct an empirical evaluation using the PathOCL dataset across six state-of-the-art LLMs. We analyze the impact of UML structural properties (e.g., navigation depth and model complexity), lexical similarity, prompt ordering strategies, and graph-aware prompting on OCL correctness. Results. We find that OCL generation performance significantly degrades with increasing navigation depth and structural complexity. Lexical similarity has limited influence, while textual ordering of UML elements affects performance. Graph-based prompting yields partial improvements but does not eliminate structural reasoning errors. Conclusions. OCL generation is primarily constrained by graph reasoning limitations rather than purely linguistic factors. These results highlight structural reasoning as a key bottleneck for current LLMs in model-driven engineering tasks.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-23 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE) ; Programming Languages (cs.PL).
Pagina del lavoro: https://arxiv.org/abs/2609.26122 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-08T14:42:48.177Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-23?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).