GLLM: Self-Corrective G-Code Generation using Large Language Models with User Feedback
Not on the map. Why?
Abstract (arXiv)
This paper introduces GLLM, an innovative tool that leverages Large Language Models (LLMs) to automatically generate G-code from natural language instructions for Computer Numerical Control (CNC) machining. GLLM addresses the challenges of manual G-code writing by bridging the gap between human-readable task descriptions and machine-executable code. The system incorporates a fine-tuned StarCoder-3B model, enhanced with domain-specific training data and a Retrieval-Augmented Generation (RAG) mechanism. GLLM employs advanced prompting strategies and a novel self-corrective code generation approach to ensure both syntactic and semantic correctness of the generated G-code. The architecture includes robust validation mechanisms, including syntax checks, G-code-specific verifications, and functional correctness evaluations using Hausdorff distance. By combining these techniques, GLLM aims to democratize CNC programming, making it more accessible to users without extensive programming experience while maintaining high accuracy and reliability in G-code generation.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). First posted on arXiv 29 Jan 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 2; 2026: 1.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2024CodeGRAG: Bridging the Gap between Natural Language and Programming Language via Graphical Retrieval Augmented Generation
- 2026LLM4RTL: Tool-Assisted LLM for RTL Generation
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligence
- 2025AdaptiveLLM: A Framework for Selecting Optimal Cost-Efficient LLM for Code-Generation Based on CoT Length
- 2025CWM: An Open-Weights LLM for Research on Code Generation with World Models
- 2024Evaluating and Aligning CodeLLMs on Human Preference
- 2024RGD: Multi-LLM Based Agent Debugger via Refinement and Generation Guidance
- 2025Increasing LLM Coding Capabilities through Diverse Synthetic Coding Tasks