Code Generation Using LLMs

Code generation using Large Language Models has brought a significant change in the software industry helping people in various things like understanding the code, writing a code, completion of the code. The main challenge that the Code Generation Models are facing is Hallucinations wherein the given code may not satisfy the users requirements completely or might deviate from the user’s requirements. There are many kinds of hallucinations and are divided into different types like the intent conflicting which consists of semantic conflicts, context deviation which includes inconsistency, repetition, dead code. So, to help with the problem of code repetition type of hallucination we proposed a solution that is fine-tuning a pre-trained model on a specific dataset to help in code generation and to reduce the repetition type hallucination. Repetitive code hallucinations occur when the model generates redundant lines increasing complexity and confusing developers. Repetitive code hallucinations remain a key challenge for LLMs. To address this, we curated a dataset of Python code snippets extracted from GitHub repositories. We have also created a User Interface for efficient usability. We made a comparative study with different models and their results. This can further be improvised using prompt engineering, using more vast datasets for finetuning the model for different languages and can be trained to give more accurate and efficient results.

Authors

Publication Details

Journal
International Journal of Future Engineering Innovations
Published
2025-01-01
DOI
https://doi.org/10.54660/ijfei.2025.2.2.16-22
Primary Topic
Mathematics, Computing, and Information Processing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Code Generation Using LLMs

Mrs Chandra Prabha, Tenneti Lekhya Sri Durga, Mallak Keshava Gayatri, D Shravani
International Journal of Future Engineering Innovations
Mathematics, Computing, and Information Processing
article

Code Generation Using LLMs

Mrs Chandra Prabha, Tenneti Lekhya Sri Durga, Mallak Keshava Gayatri, D Shravani
article en

Abstract

Code generation using Large Language Models has brought a significant change in the software industry helping people in various things like understanding the code, writing a code, completion of the code. The main challenge that the Code Generation Models are facing is Hallucinations wherein the given code may not satisfy the users requirements completely or might deviate from the user’s requirements. There are many kinds of hallucinations and are divided into different types like the intent conflicting which consists of semantic conflicts, context deviation which includes inconsistency, repetition, dead code. So, to help with the problem of code repetition type of hallucination we proposed a solution that is fine-tuning a pre-trained model on a specific dataset to help in code generation and to reduce the repetition type hallucination. Repetitive code hallucinations occur when the model generates redundant lines increasing complexity and confusing developers. Repetitive code hallucinations remain a key challenge for LLMs. To address this, we curated a dataset of Python code snippets extracted from GitHub repositories. We have also created a User Interface for efficient usability. We made a comparative study with different models and their results. This can further be improvised using prompt engineering, using more vast datasets for finetuning the model for different languages and can be trained to give more accurate and efficient results.

International Journal of Future Engineering InnovationsVol. 2(2)
Openalex Percentile: Top 94%
Mathematics, Computing, and Information Processing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.