Demo-Craft: Using In-Context Learning to Improve Code Generation in Large Language Models

October 30, 2024 Β· Declared Dead Β· πŸ› 2025 International Conference on Intelligent and Innovative Technologies in Computing, Electrical and Electronics (IITCEE)

πŸ‘» CAUSE OF DEATH: Ghosted
No code link whatsoever

"No code URL or promise found in abstract"

Evidence collected by the PWNC Scanner

Authors Nirmal Joshua Kapu, Mihit Sreejith arXiv ID 2411.00865 Category cs.SE: Software Engineering Cross-listed cs.AI, cs.CL Citations 2 Venue 2025 International Conference on Intelligent and Innovative Technologies in Computing, Electrical and Electronics (IITCEE) Last Checked 4 months ago
Abstract
Generating executable code from natural language instructions using Large Language Models (LLMs) poses challenges such as semantic ambiguity and understanding taskspecific contexts. To address these issues, we propose a system called DemoCraft, which enhances code generation by leveraging in-context learning and demonstration selection, combined with latent concept learning. Latent concept learning introduces additional concept tokens, which are trainable embeddings that capture task-specific knowledge. We then test our system on two major datasets: MBPP and Humaneval. Our experimental results demonstrate that the proposed system achieves an approximate 2x increase in the pass@k metric compared to baseline models. Furthermore, we introduce two novel evaluation metrics: correctness@k and similarity@k. Our empirical studies indicate that our system attains nearly a 3x improvement in these metrics as well.
Community shame:
Not yet rated
Community Contributions

Found the code? Know the venue? Think something is wrong? Let us know!

πŸ“œ Similar Papers

In the same crypt β€” Software Engineering

Died the same way β€” πŸ‘» Ghosted