OceanCoder: A Verification-Guided Large Language Model for Automated Simulation Modelling in Ocean Engineering
Can Xue, Changhong He, Ziyi Sun, Anliang Ge, Shimin Yu, Bingchen Liang
Abstract
Numerical simulation is important in ocean engineering, but model construction requires expert knowledge. Large language models support automated modelling, but code syntax and successful execution alone do not establish whether generated models and results meet engineering requirements. We present OceanCoder, a Qwen3-8B-based large language model for automated simulation modelling in ocean engineering. To address specialised programming requirements and scarce training data, we develop an extensible data construction pipeline producing 12,000 verified supervised fine-tuning (SFT) examples across 12 engineering task categories. A three-layer verification framework checks model inputs against engineering parameters and task constraints, verifies completion of required simulation analyses, and assesses the engineering plausibility of computed outputs. Its outcomes provide graded rewards for group relative policy optimisation (GRPO), guiding the model towards engineering task completion. We also construct the first benchmark for automated modelling in ocean engineering, covering out-of-distribution tasks and real-world engineering cases. Experiments and ablation studies demonstrate the effectiveness of the data pipeline, verification framework and reward design. OceanCoder outperforms both base models and the closed-source comparison, with Pass@1 increasing from 0% for the base model to 46.77% after SFT and 51.43% after GRPO. These results support engineering verification as a training signal for automated simulation modelling.
Create a lesson
Related papers
Goal-Guided Reinforcement Learning via Fine-Tuning Vision-Language Models
Shared title terminology · Yajie Qi, Wei Wei, Lin Li et al.
THRIFTY: Cost-Constrained Reasoning-Data Synthesis for Small Language Models
Shared title terminology · Aasheesh Singh, Vishal Vaddina
Degradation of Language Models under Controlled Load: Synchronization, Rule Execution and Misfires on the Background
Shared title terminology · Hennadii Kutomanov
JevRisk: Zero-Shot Financial Risk Assessment with a Language Decision Model
Shared title terminology · Yaodong Yang, Li Huang, Junpeng Liang et al.
Affine-Image Propagation for Tight and Scalable Neural Network Verification
Shared title terminology · Hong-Ming Chiu, Haoyu Li, Huan Zhang et al.
Large Reported CHB-MIT Adaptation Gains Disappear with Pretrained Encoders and Matched Probes
Shared title terminology · Joseph Sankoorikal Johny, Antony J. Sankoorikal