Improving LLM-Generated Process Model Quality Through Reinforcement Learning: The Role of Reward Function Design

Alexander Rombach, Chantale Lauer, Nijat Mehdiyev
7/7/2026
cs.CLcs.AIcs.LG
rl

Official code: chlauer99/RL_for_process_modeling (0 stars, last commit 2026-05-29).

Abstract

Large language models (LLMs) can generate BPMN process models from natural-language descriptions, yet supervised fine-tuning (SFT) limits their output quality to the patterns present in the training data. Reinforcement learning (RL) can optimize beyond this ceiling using external quality measures, but how the reward function should be designed when quality is multi-dimensional remains unexplored. We present a systematic investigation of reward function design for RL-based process model generation, training two LLM families (Llama~3.1 8B, Qwen~2.5 14B) under 48 configurations using Group Sequence Policy Optimization with rewards derived from an automated evaluation framework comprising 38 metrics across syntactic, pragmatic, and semantic quality. Three findings emerge. First, RL significantly improves pragmatic and syntactic quality while preserving semantic fidelity, reducing output variability by more than sixfold. Second, equal reward weighting consistently outperforms targeted weighting: emphasizing a specific dimension fails to improve it and can collapse the model into a low-quality mode. Third, design choices interact with model architecture in non-trivial ways: the invalidity penalty is essential for one model but irrelevant for the other, and SFT initialization is indispensable for one architecture but counterproductive for another. These results demonstrate that reward composition is a primary determinant of optimization outcomes, with effects as large as the decision to apply RL itself. The findings generalize to any structured generation task where quality is assessed along multiple automated dimensions. We release our implementation and experimental code at https://github.com/chlauer99/RL_for_process_modeling.

View on arXivView PDF

Code Implementations(1)

00Shell, PythonMay 28, 20264 months ago

Similar Papers

Cite this paper

@article{rombach2026improving,
  title  = {Improving LLM-Generated Process Model Quality Through Reinforcement Learning: The Role of Reward Function Design},
  author = {Alexander Rombach and Chantale Lauer and Nijat Mehdiyev},
  year   = {2026},
  eprint = {2607.06175},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.06175v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.06175.svg)](https://codeofpaper.com/paper/2607.06175)

Discussion