Skip to content
Open access

Automating AUTOSAR BSW Configuration Generation with Fine-Tuned LLMs and a Compact Intermediate Representation

Aug 2026 · Applied Sciences · 0 citations · 7 references

TL;DR

A two-stage approach to automating BSW configuration generation that generalizes to any ECU Configuration (ECUC)-based module: a fine-tuned large language model (LLM) generates a compact JSON intermediate representation capturing only semantically meaningful parameters, which a deterministic expansion function reconstructs into schema-conformant ARXML.

Abstract

The configuration of AUTOSAR Basic Software (BSW) modules relies on verbose AUTOSAR XML (ARXML) files that are complex, error-prone, and costly to produce manually—particularly for safety-critical modules governed by ISO 26262. This paper presents a two-stage approach to automating BSW configuration generation that generalizes to any ECU Configuration (ECUC)-based module: a fine-tuned large language model (LLM) generates a compact JSON intermediate representation capturing only semantically meaningful parameters, which a deterministic expansion function reconstructs into schema-conformant ARXML. We fine-tune three open-weight models (Qwen3-8B, Ministral-3-8B-Instruct, Llama 3.1 8B) with Quantized Low-Rank Adaptation (QLoRA) on 6050 compositionally generated Watchdog Manager (WdgM) samples spanning five complexity tiers with 30+ prompt templates, and introduce a hierarchical evaluation pipeline combining schema validation with referential integrity, structural completeness, parameter accuracy, and semantic constraint satisfaction. The compact representation reduces output tokens by approximately 8–10× compared to full ARXML. All three models achieve closely comparable performance (0.815–0.836 overall score), with Llama 3.1 8B scoring highest (0.836) and every model reaching ≥93% schema validity and ≥72% parameter accuracy—an 8.4× improvement over zero-shot baselines. Decomposing generation into LLM-driven semantic capture and deterministic expansion is an effective strategy for verbose, schema-governed configuration formats, extensible to other AUTOSAR modules beyond WdgM.

Read PDF

Similar papers

Preprint Aug 2026

RAG-Based Auto-Configuration for Industrial Fieldbus Devices

SysName, a production-oriented pipeline that automates device configuration end-to-end for Modbus RTU, OPC-UA, Profibus DP, and CANopen, builds a hybrid dense-sparse retrieval index augmented by an ontology graph derived from ECLASS, AAS, and SOSA/SSN, using a BGE-M3 encoder with a cross-encoder reranker to surface rel...

A. Ganie, Saad Ezzini, Naveed Farooz Marazi · 0 citations
Open access Aug 2026

An LLM-Based Framework for the Automatic Generation of SysML Models

Running fully local without cloud data transmission, this pipeline offers a privacy-safe lightweight solution for SysML PlantUML modeling and does not support SysML-exclusive requirement or parametric diagrams.

Bao-Ran An, Tao Lei, Guangtai Tian · 0 citations

BashCoder-R1: Towards Robust and Explainable Bash Script Generation with Robustness-Aware Group Relative Policy Optimization

BashCoder-R1 is presented, a framework that tackles both problems jointly, treating explainability as a design goal rather than a byproduct of correctness, and directly refines the generation policy against a weighted reward combining syntax correctness, robustness as verified by the static analyzer shellcheck, and adh...

Li Yang, Fengjun Zhang, Lei Yu et al. · 0 citations
Jul 2026

Structural Validation of LLM-Generated Microservice Decompositions Using Source-Code Dependencies

The findings demonstrate that structural evaluations of LLM-generated decompositions should explicitly control for mapping coverage, as apparent differences between prompting strategies may otherwise reflect methodological bias rather than genuine architectural quality.

Daniel Silva, Renan Alves, Emanuel Dantas et al. · 0 citations
Preprint Aug 2026

YOLO-PEFT: Parameter-Efficient Fine-Tuning on YOLO Family

YOLO-PEFT is proposed, a structure-aware framework that formulates adapter placement as an auditable constraint-planning problem that replaces manual target-module trial and error with explicit, inspectable planning while preserving verified train-save-merge-export paths.

Xuchen Lin, Wenjie Nie, Jinlong Peng et al. · 0 citations
Book Open access Jul 2026

TSGen: Automated Troubleshooting Guide Generation

TSGen, an automated pipeline for generating high-quality, structured TSGs from historical incident reports using large language models (LLMs), consists of filtering and classifying incident data into diagnostically relevant categories and distilling core incidents to ensure diversity and generalizability.

Yi Xiao, Hongyu Zhang, Dr. I. I. Genkin et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.