TIPS: A Prompt Engineering Framework for Code Classification and Generation on Resource-Constrained Systems

1Citations
Citations of this article
16Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

Recent advances in AI-assisted programming have demonstrated the potential of Large Language Models (LLMs) in complex code classification and generation. However, their high computational demands and reliance on large-scale datasets limit deployment in resource-constrained environments such as educational tools, edge devices, and small-scale development settings. To address these challenges, this paper introduces the Template-Integrated Prompting System (TIPS), a modular prompt engineering framework designed for lightweight and efficient code analysis. TIPS integrates small-model training, semantically guided demonstration selection, and structured prompt templates to construct an interpretable reasoning pipeline that combines few-shot learning with Chain-of-Thought (CoT) reasoning. Experiments on a benchmark dataset of multithreaded Pthread programs show that TIPS achieves higher precision, recall, and F1-scores than traditional classifiers and prompt-based baselines, even under class imbalance. These results demonstrate that model effectiveness depends not only on scale but also on semantic guidance and structured reasoning. TIPS provides a scalable and interpretable solution, with potential applications in education, software development, and intelligent assistance systems, particularly in resource-constrained environments.

Cite

CITATION STYLE

APA

Chen, W. C., & Chen, S. Y. (2026). TIPS: A Prompt Engineering Framework for Code Classification and Generation on Resource-Constrained Systems. IEEE Access, 14, 15723–15735. https://doi.org/10.1109/ACCESS.2026.3658502

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free