arrow
Return

Semantic architectures for domain-specific programming AI agents: lessons from a JavaScript semantic assistant

delete2026-05-26
delete0
delete
OA
AI
M
Muhammad Ishaq *
M
Muhammad Sarmad
M
Muhammad Asim
K
Korhan Cengiz
N
Nikola Ivković
DOI:10.1038/s41598-026-55094-8delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
This work proposes a semantic ontology-based dataset leveraging fine tuning large language model to facilitate JavaScript debugging and domain-specific code generation. Ontology is used to train the model with a dataset that has an exact or logical relationship between JavaScript syntax elements. The system gains deep subject knowledge with the help of a formal linked database, producing a high-quality QandA dataset from it, and employing parameter-efficient fine-tuning of a base LLM (LLaMA-3B). The fine-tuned model is assessed through a strict framework for domain competency. Code correctness, logical consistency, adaptability, and error detection efficiency metrics were used for evaluation. Experimental results show that the ontology-augmented model performs much better across all measures than baseline generic LLaMA model. Baseline here refers to a model refined on non-ontology data, and retrieval-based techniques. Logical verification and comparisons of fine-tuning techniques (BitFit, LoRA, and standard tuning) is provided. For performance contextualization, an additional benchmark against a cutting-edge code model (CodeLlama) is provided. The enhanced outcomes show that using ontologies to incorporate structured semantic knowledge can result in significant improvements in domain-specific code comprehension, providing a repeatable route for creating specialized programming AI systems. For reproducibility, the implementation and resources (ontology, SPARQL queries, code) are made publicly accessible.
Keywords:
JavaScript
ontology
fine-tuning
code generation
programming AI
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Scientific Reports cover
Scientific Reports
IF:
3.9
Papers:
28.2W
Citations:
83.5W

Organization

U
university of agriculture
Scholars:
420
Papers: 197
Citations: 0
U
University of Khorfakkan
Scholars:
30
Papers: 31
Citations: 0
U
university of zagreb
Scholars:
3.8K
Papers: 1.6K
Citations: 0
researcher View more organizations
Cited Papers

Cited Papers

No cited papers available