Zero-shot prompting evaluation reveals optimal strategies for LLM-based programming feedback
Simple prompts beat complex ones: LLMs give better coding feedback with less explicit instructions
-----
https://arxiv.org/abs/2412.15702
Original Problem π:
Insufficient research exists on optimizing LLM prompts for programming feedback. Current evaluations show contradictory results about prompt engineering's impact across different tasks.
-----
Solution in this Paper π οΈ:
β Developed an evaluation framework to assess different zero-shot prompting methods systematically.
β Tested Chain of Thought, Prompt Chaining, Tree of Thought, and ReAct prompting against a vanilla model.
β Used five common R programming errors as test cases: directory issues, missing packages, unexecuted code, typos, and naming inconsistencies.
β Applied Ryan's feedback framework to evaluate response quality across detection, description, explanation, and solution aspects.
-----
Key Insights from this Paper:
β Stepwise procedure prompts increase precision in feedback
β Omitting explicit data specifications improves error identification
β Trade-off exists between precision and error detection capabilities
-----
Results π:
β All prompts achieved performance ratings above 0.85
β Chain of Thought excelled in precision without explicit specifications
β Variable naming and directory errors showed consistent performance across methods
β Typos and unexecuted code detection varied significantly between methods










