passdrill
AI & LLM Engineering · Prompt Engineering · Card 014/024 medium

Zhou et al. (2022/2023), "Large Language Models Are Human-Level Prompt Engineers," propose Automatic Prompt Engineer (APE). How does APE generate and select an effective task instruction, according to the paper?

  1. It treats the instruction itself as a "program": an LLM proposes a pool of candidate instructions from a handful of input-output demonstrations, and each candidate is scored (for example, by how well it reproduces the demonstrations when used as a prompt) so the highest-scoring instruction can be selected or further refined
  2. It requires a human panel to write hundreds of candidate instructions, which the LLM then simply ranks by fluency without regard to task performance
  3. It fine-tunes the model's weights on many instruction/response pairs and treats the resulting model checkpoint itself as the "instruction"
  4. It works only for classification tasks with a fixed label set and cannot generate free-form instructions for open-ended tasks
Next card → Shuffle