To Write or to Automate Linguistic Prompts, That Is the Question
Organizations: Smartling 244 Fifth Avenue Suite 1471 New York, NY 10001
Abstract
LLM performance is highly sensitive to prompt design, yet whether automatic prompt optimization can replace expert prompt engineering in linguistic tasks remains unexplored. We present the first systematic comparison of hand-crafted zero-shot expert prompts, base DSPy signatures, and GEPA-optimized DSPy signatures across translation, terminology insertion, and language quality assessment, evaluating five model configurations. Results are task-dependent. In terminology insertion, optimized and manual prompts produce mostly statistically indistinguishable quality. In translation, each approach wins on different models. In LQA, expert prompts achieve stronger error detection while optimization improves characterization. Across all tasks, GEPA elevates minimal DSPy signatures, and the majority of expert-optimized comparisons show no statistically significant difference. We note that the comparison is asymmetric: GEPA optimization searches programmatically over gold-standard splits, whereas expert prompts require in principle no labeled data, relying instead on domain expertise and iterative refinement.
Figures & tables
| BLEU | HTER | TMR | |||||
|---|---|---|---|---|---|---|---|
| Model | Prompt | Uni | Dec | Uni | Dec | Uni | Dec |
| GPT-4.1-mini | Manual | 0.48 | 0.46 | 0.53 | 0.56 | 0.86 | 0.77 |
| Base | 0.45 | 0.45 | 0.55 | 0.57 | 0.87 | 0.81 | |
| Opt. DSPy (best) | 0.46 (2,3) | 0.49 (1) | 0.55 (3) | 0.56 (1,3) | 0.88 (1) | 0.91 (2) ‡ | |
| GPT-5.4-mini | Manual | 0.50 | 0.48 | 0.50 | 0.55 | 0.90 | 0.82 |
| Base DSPy | 0.45 | 0.45 | 0.56 | 0.57 | 0.85 | 0.78 | |
| BLEU | HTER | ChrF3 | |||||
|---|---|---|---|---|---|---|---|
| Model | Prompt | Mean | Median | Mean | Median | Mean | Median |
| GPT-4.1-mini | Manual | 57.93 | 58.77 | 30.32 | 25.73 | 70.55 | 70.91 |
| Base DSPy | 58.21 | 60.15 | 30.27 | 25.41 | 70.59 | 71.78 | |
| Opt. DSPy | 59.33 | 60.13 | 29.21 | 25.79 | 71.27 | 72.64 | |
| GPT-5.4-mini | Manual | 57.63 | 57.82 | 31.80 | 28.03 | 69.69 | 69.79 |
| Base DSPy | 55.60 | 55.19 | 34.07 | 29.55 | 68.88 | 69.06 | |
| Det F1 | Cat F1 | Sev F1 | MQM | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Model | Prompt | Uni | Dec | Uni | Dec | Uni | Dec | Uni | Dec |
| GPT-4.1-mini | Manual | 0.64 | 0.54 | 0.36 | 0.39 | 0.54 ‡ | 0.53 ‡ | 0.15 | 0.18 |
| Base DSPy | 0.52 | 0.43 | 0.39 | 0.44 | 0.48 | 0.52 | 0.21 | 0.18 | |
| Opt. DSPy | 0.63 | 0.60 ‡ | 0.41 | 0.40 | 0.46 | 0.50 | 0.20 | 0.16 | |
| GPT-5.4-mini | Manual | 0.60 ‡ | 0.48 | 0.36 | 0.36 | 0.45 | 0.38 | 0.12 | 0.08 |
| Base DSPy | 0.53 | 0.41 | 0.33 | 0.36 | 0.45 | 0.33 | 0.15 | 0.11 | |
Prompt Engineering
Prompt engineering designs and evaluates instructions, context, examples, and learned prompts to steer AI model behavior.
See all 124 papers