TL;DR
How you write the base prompt matters more than popular add-on techniques. Researchers tested over a thousand prompt variants for text classification — from simple tasks (spotting gratitude) to hard ones (finding specific psychological patterns). They compared popular techniques: personas ("You are a psychologist"), chain-of-thought ("let's go step by step"), having the model auto-generate prompts, and few-shot examples.
Personas and CoT barely help. If the base prompt is poorly worded — a fuzzy definition, a vague task — no amount of "let's think step by step" or "you are an expert" will save it. By the authors' count, a well-chosen base prompt improved agreement with human coders by as much as 65% on a hard construct and 22% on an easy one. Meanwhile, personas added only about 0.01 F1 on average, and CoT and asking for explanations on average slightly lowered performance (by negligible amounts), with occasional small gains or losses.
What works is iterating over wordings and examples. The researchers wrote several hand-made versions of each prompt part (context, task instruction, construct definition, inclusion/exclusion guidance), combined them randomly into 50 prompts per construct, and picked the best on labeled data. Few-shot examples (4-10 per prompt) were the biggest driver of improvement: they raised F1 in every model-construct pair tested, by up to 0.26 on weak prompts and 0.01-0.06 on strong ones. Having the model auto-generate new variants helped weak prompts only sometimes and was mixed on strong ones. You can't predict the best wording in advance — only find it empirically.
Want this for your own case? Apply this study to your task: AI adapts its method to what you are working on and writes the prompt.
Method Blueprint
(Our lightweight adaptation of the paper's workflow)
STEP 1: Write 5-10 versions of the construct definition
→ Vary the wording, structure, emphasis
STEP 2: Test on 20-30 examples with known answers
→ Count the matches with the correct answers
STEP 3 (optional): Take the best version → ask the model to generate 10 more variants
→ "Rephrase this definition 10 different ways" (mixed results in the paper)
STEP 4: Test all the variants again
→ Pick the final winner
STEP 5: Add few-shot examples (the paper used 4-10)
→ The biggest single boost in the paper
Example
Task: You're pulling customer feedback on a product that contains specific improvement suggestions (not just "it's bad," but "add feature X" or "fix the bug with Y"). You need to filter hundreds of comments automatically.
Iteration 1 — A bad prompt:
Determine whether this review contains a constructive suggestion.
Text: [customer review]
Answer: Yes or No
Iteration 2 — Sharpened the definition:
A constructive suggestion is when the customer describes:
- A specific feature that should be added
- A specific bug or problem that should be fixed
- A specific change to the interface or how the product works
Does NOT count as a suggestion:
- General praise or criticism without details
- An emotional reaction without saying what to change
Does this review contain a constructive suggestion?
Text: [customer review]
Answer: Yes or No
Iteration 3 — Asked the model to rephrase the best version:
Here is my classification task. Generate 10 alternative wordings of the definition of a "constructive suggestion", varying the structure, emphasis and examples.
[paste the prompt from Iteration 2]
Result: The model gives you 10 variants. You test each one on your 20-30 reviews with known answers (that you labeled yourself), count the match rate and pick the best. In the paper, the F1 gap between the worst and best hand-built prompt ranged from about 0.06 to 0.28 depending on the construct, so expect the spread on your data to vary too.
Why It Works
An LLM doesn't understand the task "in general" — it looks for patterns in your words. If you write "constructive suggestion" without a definition, the model pulls the meaning from its training data — and there it could mean anything. If you define it precisely ("a specific feature" + "a specific bug"), the model knows what to look for.
Our interpretation: popular techniques work by amplifying the base prompt. A persona ("you are a product manager") or CoT ("think step by step") tries to activate extra context from the training data. But if the base definition is blurry, the extra context is blurry too. It's like trying to sharpen a blurry photo — doesn't work. First you need a sharp photo (the definition), then you can polish the details.
You can't predict the best wording because we don't know exactly which patterns the model latched onto in its training data (the authors suggest specialist terms may be rare in training data and understood only informally). The word "constructive" can activate one set of patterns, "actionable feedback" another. The only way to find out is to test on real examples.
Control knobs: - Definition structure (list of criteria vs description vs examples) → vary it and test what works - Negative examples ("Does NOT count") → sharpen the boundaries, especially for fuzzy concepts - Few-shot examples (0 vs 4-10) → add them to the final version; in the paper they raised F1 by 0.01-0.06 on strong prompts and up to 0.26 on weak ones - Number of test iterations (5 vs 50 variants) → more iterations = better odds of finding the best prompt
Practical Protocol
Step 1: Define the construct as concretely as possible
Instead of abstract words, give an operational definition — what specifically has to be present in the text.
❌ Bad: "toxic comment"
✅ Good: "the comment contains: an insult aimed at a specific person OR a call to violence OR discrimination based on a trait (gender, ethnicity, religion)"
Step 2: Build a test set
Label 20-50 examples by hand. This is your benchmark for comparing prompts. Without it you can't tell which prompt is better. (This size is our lightweight suggestion: the paper used a few hundred labeled texts per split and leaves minimum sample sizes to future work.)
Step 3: Write 5-10 prompt variants by hand
Vary: - The order of the criteria - The level of detail - Adding/removing negative examples - The format (list vs prose vs table)
Step 4: Test every variant
Run each prompt through your test set. Count the match rate against your labels.
Testing prompt:
Here is my classification prompt:
[your prompt]
Apply it to these texts and output the results as CSV:
Text 1: [text]
Text 2: [text]
...
Response format:
number,result
1,Yes
2,No
...
Step 5: Auto-generate variants of the best prompt
Optional. In the paper, auto-generated variants helped weak prompts only sometimes and gave small or even negative changes on strong ones, so treat this as an extra try, not the main step. Take the best version from Step 4:
You are helping optimize a text-classification prompt.
Here is the current prompt:
[best version]
It scored 75% accuracy on the test data.
Generate 10 alternative wordings:
- Keep the meaning and the criteria
- Vary the structure, order, examples
- Try different ways of explaining it
- You may add/remove details
Output each variant as a separate block, numbered.
Step 6: Test all the new variants again
Repeat the Step 4 process with the new prompts.
Step 7: Add few-shot examples to the final version
Take the winner and add examples with correct answers (the paper used 4-10, picked from a pool of 30, and recommends trying different numbers, positive/negative ratios and examples):
[your best prompt]
Examples:
Text: "Terrible product, everything is bad!"
Answer: No
Text: "Please add an Export to Excel button — right now I have to copy everything by hand"
Answer: Yes
Text: "Bug: clicking 'Save' throws a 404 error"
Answer: Yes
Now classify this text:
[new text]
Limitations
⚠️ You need a labeled dataset: Without 20-50 examples with correct answers you can't compare prompts. You'll have to label them by hand.
⚠️ Iteration takes effort: To find the best prompt you need to test dozens of variants. That takes time, though it's a one-time investment.
⚠️ Rare patterns were not tested: The rarest constructs in the study appeared in about a quarter of texts (meaning making 26%, negative core beliefs 25%). The authors flag class imbalance as a limitation and use F1 rather than plain accuracy because it is more useful for rare constructs. For very rare patterns, check your results carefully.
⚠️ Subjective constructs are harder: The more interpretive the task (not "is there a number" but "is there a deep psychological transformation"), the harder it is for the model and the more the precise definition matters.
How They Tested It
The team took three classification tasks with about 800 texts each, using two models (gpt-5.4 and llama3.3). Low-inference: find gratitude in Reddit posts (an emotion people recognize easily; inter-annotator kappa 0.75, half the posts positive). High-inference: find negative core beliefs in expressive-writing texts (e.g., "I'm worthless," "the world is dangerous" — our examples; kappa about 0.82, 25% positive), and find meaning making — when a person describes growth through a hard experience (e.g., "after my mom died I became stronger" — our example; kappa about 0.70, 26% positive).
Across the tasks they tested over a thousand prompts: base definitions (handwritten and model-generated), personas ("you are a psychologist"), chain-of-thought ("think step by step"), explanations inside few-shot examples, zero-shot vs few-shot. Everything was compared against human-coded labels, using F1 on a held-out test set.
The results were surprising: personas added about 0.01 F1 on average, and CoT and explanations on average slightly lowered performance (negligibly), with occasional small gains or losses. The biggest gains came from the base prompt composition (hand-written definitions, instructions and guidance, combined and tested) and from choosing few-shot examples. By the authors' count, a well-chosen prompt improved agreement by as much as 65% on a high-inference construct and 22% on the low-inference one.
Why: the model looks for patterns in the words of the prompt. Fuzzy words, fuzzy patterns. "Let's think" doesn't make up for "I don't know what to look for." Auto-generated prompts often improved weak starting prompts, but the gain was significant in only one case, and on strong prompts it was small or sometimes negative; the authors left it out of their recommended workflow. The most reliable approach in the paper: humans write the prompt parts from a codebook, empirical testing picks the best combination, then well-chosen examples are added, with a final check on held-out data.
Adaptations and Extrapolations
🔧 Technique: A/B-test definitions instead of a full sweep
If you don't have time for dozens of iterations, run a mini-test:
Here are two wordings of the same classification task.
Version A:
[first definition]
Version B:
[second definition]
Apply both to these 10 texts. For each text, output the result in this format:
Text 1:
- Version A: Yes/No
- Version B: Yes/No
[10 texts to classify]
Compare the results with your labels and pick the better version. It's not optimal, but it beats not testing at all.
🔧 Technique: Ask the model to explain why it got it wrong
Once you've found the best prompt but accuracy still isn't 100%, take the misclassified cases:
Here is my classification prompt:
[prompt]
Here is a text you classified as "Yes", but the correct answer is "No":
[the text you got wrong]
Explain:
1. Why did you decide it was "Yes"?
2. Which parts of the text misled you?
3. How should I change the definition in the prompt to avoid errors like this?
Use the model's explanations to refine the definition — add negative examples, clarify the boundaries.
🔧 Technique: Chain-of-thought for debugging, not for production
In the study CoT didn't improve performance on average. But it's useful for understanding why the model classifies things the way it does:
[your prompt]
Before answering, explain your reasoning step by step:
1. What key elements do you see in the text?
2. Do they match the criteria in the definition?
3. What doubts do you have?
Then give your final answer: Yes or No
Use this while developing the prompt to understand the model's logic. Drop the CoT from the final version — it adds tokens without improving accuracy.
Resources
Improving Alignment Between Human and Machine Codes: An Empirical Assessment of Prompt Engineering for Construct Identification in Psychology
Authors: Kylie L. Anglin, Stephanie Milan, Brittney Hernandez, Claudia Ventura
University of Connecticut (Department of Educational Psychology, Department of Psychological Sciences)
Works referenced in the study: - Automatic Prompt Engineering (APE) method, Zhou et al. 2022 - Chain-of-Thought papers: Wei et al. 2022 (few-shot CoT), Kojima et al. 2022 (zero-shot CoT) - Explanatory prompting: Lampinen et al. 2022 - GoEmotions dataset: Demszky et al. 2020