Natural Language to Code: Improving Semantic Reasoning in Code Generation Models

S P, Pawanraj and P K, Udayaprasad and P, Amulya and V Hunashikatti, Sanjana (2025) Natural Language to Code: Improving Semantic Reasoning in Code Generation Models. International Journal of Innovative Science and Research Technology, 10 (7): 25jul573. pp. 825-834. ISSN 2456-2165

Abstract

Creating code from human-readable instructions is becoming a major area of research as artificial intelligence is used more and more into software engineering procedures. This paper explores techniques to enhance semantic understanding in AI-based code generation models to improve their ability to interpret human intent and produce accurate, executable code. We investigate the performance of state-of-the-art models such as CodeT5 and PLBART, and propose strategies including prompt engineering, domain-specific fine-tuning and execution-aware evaluation metrics. Our experiments are conducted on datasets like MBPP and APPS, where we evaluate both syntactic correctness and functional accuracy of generated code. Results show that incorporating contextual awareness and structured prompting significantly improves code quality and reduces semantic misinterpretation errors. The findings contribute to the ongoing effort to build more intelligent, reliable and context-aware coding assistants.

Documents
1786:10697
[thumbnail of IJISRT25JUL573 (1).pdf]
Preview
IJISRT25JUL573 (1).pdf - Published Version

Download (793kB) | Preview
Information
Library
Metrics

Altmetric Metrics

Dimensions Matrics

Statistics

Downloads

Downloads per month over past year

View Item