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
Key points
From the paper's conclusion- We present OceanCoder, a Qwen3-8B-based large language model for automated simulation modelling in ocean engineering.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Closed-loop AI achieves certifiable engineering designarXiv · 2026
- Language Models Meet Vibration Testing for LEO Constellation Satellites with Calibrated Response Prediction from Few-show SweepsarXiv · 2026
- From topology-optimization brief to solver-checked release: separating intent, admissibility and acceptance knowledge for language agentsarXiv · 2026
- Agent4FreeFem: A Verification-Guided Framework for Autonomous Topology OptimizationarXiv · 2026
- Knowledge boundary probing and demand-guided intervention for LLM-based power system code generationAdvanced Engineering Informatics · 2026
- Scientific Coding with Large Language Models: Evidence from Finite Element AnalysisarXiv · 2026