Pith. sign in

REVIEW 1 cited by

Training LLMs for Generating IEC 61131-3 Structured Text with Online Feedback

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2410.22159 v3 pith:SEGNGX62 submitted 2024-10-29 cs.SE

classification cs.SE
keywords codellmstrainingapproachautomationcompilerfeedbackframework
verification ladder T0 review T1 audit T2 compute T3 formal

Signed reviews

No signed human review yet.

0 comments
read the original abstract

IEC 61131-3 Structured Text (ST) is a widely used programming language for programmable logic controllers (PLCs) in automation systems. However, generating ST code with LLMs poses unique challenges due to limited data in public training datasets and the complexity of ST language syntax. This paper proposes an approach to fine-tune LLMs for the generation of ST code that leverages a preference-based learning method through an online process involving compiler feedback and evaluation from an LLM-based ST expert. In this framework, the model is iteratively refined and generates new training samples, which are subsequently evaluated by a compiler for syntactical correctness and by a specialized LLM that excels at assessing semantic accuracy, though it is not optimized for code generation itself. This approach results in marked improvements for the trained LLM, leading to higher compilation success rates and better semantic precision. As a result, the framework proves highly suitable for industrial automation applications and outperforms state-of-the-art models.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. AutoPLC: Generating Vendor-Aware Structured Text for Programmable Logic Controllers

    cs.SE 2024-12 conditional novelty 6.0 of 10

    AutoPLC combines retrieval from vendor-specific code libraries, LLM-based planning and API recommendation, and compiler feedback from real PLC IDEs to generate compilable Structured Text code for Siemens SCL and CODES...

Pith tools