cs.CLAug 21, 2026

PromptResponse: Optimizing Prompts for LLM Coding Tasks

Authors: Erik Thureck, Robert Kühnen, Tim Jacobowitz

Organizations: HUMBOLDT-UNIVERSITÄT ZU BERLIN MATHEMATISCH-NATURWISSENSCHAFTLICHE FAKULTÄT INSTITUT FÜR INFORMATIK HUMAN-COMPUTER INTERACTION LAB

Abstract

Large language models (LLMs) are increasingly used in research workflows and software development pipelines, yet their output remains sensitive to input prompt variations. This paper presents \unicodex00AB\unicode{x00AB}PromptResponse\unicodex00BB\unicode{x00BB}, a controlled study examining how formatting and LLM-based tuning of coding task prompts affect the resulting code's performance, efficiency, and stability. Using five semantically identical yet syntactically distinct variants of the HumanEval dataset\unicodex2014\unicode{x2014}baseline, JSON, Markdown, YAML, and an LLM-tuned version\unicodex2014\unicode{x2014}we had GPT-4o solve its coding problems over 8200\unicodex00A0\unicode{x00A0}executions. Our results show that consistent formatting\unicodex2014\unicode{x2014}especially JSON\unicodex2014\unicode{x2014}improves generation efficiency and syntactic stability, with minor gains in task performance. Conversely, the LLM-tuned prompts resulted in significantly degraded task performance without significant improvements in any other dimension. These findings suggest that low-effort reformatting alone can yield measurable improvements, while tuning must account for model alignment. We conclude our work with providing a set of practical recommendations informed by our results as well as releasing our dataset variants and evaluation pipeline for future work.

Figures & tables

Explore similar work

CardsList
  1. Less Back-and-Forth: A Comparative Study of Structured Prompting

    May 19, 2026Saurav Ghosh, Gabriella Polach, Abdou SowLLM EvaluationStructured Prompting

  2. Do Influence Tactics Matter? Investigating Prompt Framing Effects in LLM Code Generation

    Aug 11, 2026Alex Deaconu, Anubhav Gupta, Manaal Basha +2LLM PromptingFraming Effects in Language Models

  3. Prompts in the Wild: A Large Analyzed Collection of Transactional Prompts in Code

    Aug 13, 2026Victoria Basmov, Yoav Goldberg, Reut TsarfatyLLM Prompting