Vibeleaderboard
← All Intel
Intel / article

Compound Prompt Constraints in LLM Code Generation: A Factorial Study of Format, Persona, and Urgency

Source
arxiv.org
Author
Shrenik Jadhav, Nickalsa LaPlaca, Caleb Stone, Ashok Raja, Omar Ochoa, Vidhyashree Nagaraju
Date

Context

Instructions that work individually can interfere when combined in a coding . Researchers tested 27 combinations of output format, assigned persona, and urgency across 164 programming problems and five OpenAI models. For the GPT-4o family, combined constraints reduced first-attempt success by more than the individual effects predicted. The GPT-4.1 family was largely resistant, while sometimes helped o3-mini. The study separated failures to follow the requested format from failures to solve the programming problem. Its results support testing the complete production prompt, because isolated prompt experiments can miss interactions that depend on the . Study abstract.

Terms in this piece · Glossary
  • Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.
  • structured output — Forcing a model's response to match a schema, so downstream code can parse it instead of guessing at prose.
  • Model — A computational system that uses learned patterns to produce an output from information supplied to it.
  • Constraint — A requirement a setup must meet regardless of how well it performs otherwise, such as where documents may be sent or a date by which the work must be done.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Recommended reads