Manuel B. Garcia

Manuel B. Garcia serves as the Senior Director for Educational Technology and Digital Learning at FEU Institute of Technology, Manila, Philippines. Read More

Contact Info

1607, FEU Tech Building,
P. Paredes St, Sampaloc,
Manila, Philippines
mbgarcia@feutech.edu.ph

Follow Me

Can Prompt Engineering Bias an AI Evaluation Study?

Prompt engineering can improve AI performance, but it can also distort scientific evaluations when prompts are optimized selectively or using final test results. Learn how unequal development effort, leading instructions, benchmark contamination, and selective reporting affect validity, and how researchers can distinguish legitimate optimization from biased evaluation.

925
Prompt Engineering Bias in AI Evaluation Guide 925 of 1196
01 · The Question

Can Researchers Make an AI Model Appear Better Simply by Changing the Prompt?

You are comparing two generative AI models on their ability to identify methodological weaknesses in educational research proposals.

For the first model, you develop a detailed prompt containing operational definitions, decision rules, and several examples. You test different formulations until its accuracy improves.

For the second model, you use a short instruction asking it to identify methodological weaknesses without additional guidance.

The first model performs substantially better. But is it genuinely more capable, or has the evaluation provided it with a more favorable instructional environment?

A similar problem arises when researchers repeatedly revise prompts after examining benchmark results. The final prompt may achieve an impressive score, but that score may partly reflect adaptation to the particular evaluation items.

Prompt engineering is a legitimate method of improving AI performance. The scientific concern begins when the development, selection, or reporting of prompts creates an unfair comparison or an overly optimistic estimate of generalizable capability.

02 · The Short Answer

Prompt Engineering Can Introduce Bias When Optimization Is Poorly Controlled

In Brief

Prompt engineering can bias an AI evaluation study when prompts are developed, optimized, selected, or reported in ways that systematically favor particular models, hypotheses, or desired outcomes. Common risks include unequal optimization effort, repeated use of final test data, leading instructions, selective reporting of successful prompts, and failure to account for prompt sensitivity.

Prompt engineering is not inherently biased or scientifically inappropriate. Researchers may legitimately optimize prompts to evaluate a well-configured AI system. However, the optimization procedure should be transparent, appropriately separated from confirmatory evaluation, and aligned with the research question. The study should distinguish performance of the selected model-prompt configuration from claims about the model's broader capabilities.

03 · What You Need to Know

How Prompt Engineering Influences AI Evaluation Validity

What is prompt engineering in an evaluation study?

Prompt engineering involves developing and refining instructions or input structures to influence how an AI system performs a task.

In research, this may involve specifying task definitions, providing examples, imposing output constraints, or adjusting the organization of contextual information.

For example, a researcher may refine a prompt used to classify research abstracts so that the model applies predefined methodology categories more consistently.

Such refinement can improve procedural clarity and task performance.

However, it also introduces methodological decisions that may affect the reported results.

Researchers should therefore document prompt engineering as part of the evaluation procedure when it materially influences the outcomes.

Why can prompt engineering affect AI performance?

Generative AI systems may respond differently to changes in instructions, examples, formatting, and contextual information.

A short prompt may leave category definitions ambiguous, while a detailed prompt may specify exactly how decisions should be made.

Research on prompt sensitivity has shown that model performance can vary with seemingly minor changes in prompt presentation.

Consequently, an evaluation result may depend partly on the selected prompt rather than solely on the underlying model.

This does not make the result invalid.

It means that the evaluated unit should be identified accurately, including the relevant prompting configuration.

What is the difference between legitimate prompt optimization and evaluation bias?

Legitimate prompt optimization A documented development procedure intended to improve task performance using appropriate development materials and predefined selection criteria.
Biased prompt optimization A development or selection procedure that produces an unfair or overly optimistic evaluation, such as by selectively exploiting final test results or favoring one comparison condition without justification.

The distinction depends on the research objective and the procedures used.

For example, optimizing a prompt on a development dataset and then evaluating it on independent data is a defensible approach.

Repeatedly modifying prompts after examining final test errors, then reporting only the highest score as independent performance, creates a different methodological situation.

What forms of bias can prompt engineering introduce?

Potential bias How it arises Possible consequence
Selection bias Only the highest-performing prompt is reported Overly favorable performance estimates
Evaluation overfitting Prompts are repeatedly modified using final test results Reduced generalization to new data
Unequal optimization One model receives substantially more prompt development Unfair model comparison
Leading instructions Prompts contain assumptions favoring a particular answer Biased classifications or interpretations
Example-selection bias Few-shot examples favor particular categories or outcomes Distorted response distributions
Benchmark contamination Evaluation answers influence prompt development Inflated apparent independent performance
Reporting bias Failed prompts or unfavorable outcomes are omitted Incomplete account of model behavior

These risks are related but not identical. Researchers should identify which mechanisms are relevant to their design rather than treating all prompt optimization as one form of bias.

How can unequal prompt optimization distort model comparisons?

Suppose two AI models are evaluated on the same research classification task.

The first receives a prompt refined through 30 development trials. The second receives one untested instruction.

The resulting performance difference may reflect both model capability and differences in prompt development effort.

If the study aims to compare well-configured systems, model-specific optimization may be appropriate. However, the development budgets and procedures should be justified.

If the study aims to isolate model differences under a common instruction, a standardized prompt may be preferable.

Neither approach is universally fairer.

The critical requirement is that the comparison supports the intended claim.

Should different AI models receive identical prompts?

Identical prompts can improve standardization by ensuring that models receive the same visible task instructions.

However, different systems may respond differently to the same formulation.

A prompt optimized for one model may be poorly suited to another.

Researchers should distinguish evaluations of performance under identical instructions from evaluations of each model under an appropriately optimized configuration.

Where resources permit, reporting both conditions may provide useful evidence.

The methodological principles of identical prompts in AI model comparisons should guide this decision.

Can prompt optimization overfit the evaluation dataset?

Yes. Prompt overfitting occurs when development decisions become excessively adapted to particular evaluation examples.

For example, a researcher may repeatedly inspect incorrectly classified abstracts and add increasingly specific instructions designed to correct those cases.

The resulting prompt may achieve high accuracy on the familiar dataset but perform less reliably on new abstracts.

This resembles model-selection overfitting, where repeatedly using evaluation outcomes to select among alternatives can produce optimistic performance estimates.

Researchers should preserve independent evaluation data and avoid using final test outcomes as an unrestricted prompt-development resource.

How does selecting the best prompt create optimism?

Observed performance contains sampling variation.

Even when candidate prompts have similar underlying effectiveness, some may obtain higher scores on a particular dataset by chance.

Selecting the highest observed score can therefore produce an optimistic estimate of the selected prompt's performance on new data.

Prompt Selection Optimism
Selection optimism = Selected development score − Independent test score
This descriptive difference compares the score used during prompt selection with performance on independent evaluation data. It is not necessarily a pure estimate of statistical selection bias because dataset differences and other factors may contribute.
Suppose a selected prompt achieves 92% accuracy on development data but 84% on independent test data. The observed difference is 8 percentage points.

The difference may indicate overfitting, sampling variation, distribution differences, or a combination of factors.

Researchers should investigate the cause rather than automatically attributing the entire difference to prompt engineering.

What is prompt cherry-picking?

Prompt cherry-picking occurs when researchers selectively present prompt configurations or results that favor a desired conclusion while withholding relevant alternatives.

For example, a researcher may test 15 prompts and report only the one that produces the largest AI advantage over human participants.

Such reporting can misrepresent the robustness of the observed finding.

However, selecting a prompt through a documented development procedure is not automatically cherry-picking.

The concern is whether selection decisions and their consequences are represented transparently.

The specific implications of prompt cherry-picking depend on the study design.

Can leading prompts bias research conclusions?

Yes. Prompts may contain assumptions that encourage a particular interpretation.

For example, asking an AI system to "explain why the intervention failed" presupposes that the intervention was unsuccessful.

A more neutral instruction might ask whether the evidence supports the intervention's effectiveness and require justification for the conclusion.

Leading prompts may be particularly problematic when AI contributes to qualitative interpretation, research synthesis, or evaluation of contested evidence.

Researchers should examine whether instructions introduce conclusions that should instead emerge from the analysis.

Can few-shot examples introduce bias?

Yes. Few-shot examples communicate more than the expected response format.

They may also influence how the model interprets categories and resolves ambiguous cases.

For example, if all examples classify studies as quantitative, the model may become more inclined to select that category under some conditions.

Researchers should consider category balance, example difficulty, ordering, and representativeness.

However, balanced examples are not automatically optimal for every task, especially when real-world category prevalence is highly unequal.

The selection procedure should follow the intended evaluation objective.

Does example order matter?

It can. Research on in-context learning has demonstrated that the order and selection of demonstrations may influence language model performance.

For example, presenting a mixed-methods example immediately before a new abstract may affect classification differently from placing it earlier in the prompt.

Researchers should consider whether example order is fixed, randomized, or treated as an experimental variable.

If the study uses one ordering, the conclusion should not automatically be generalized to every possible arrangement.

The effects of prompt order on AI responses may warrant separate investigation.

Can prompt engineering create an unfair human-versus-AI comparison?

Yes, particularly when AI receives extensive task-specific optimization while human participants receive limited preparation.

For example, researchers may develop an AI prompt using detailed examples and feedback but instruct human participants to complete the same task without familiarization or relevant reference materials.

The observed difference may reflect unequal preparation rather than the intended capability comparison.

However, realistic workflow studies may legitimately evaluate a carefully configured AI system against ordinary professional practice.

The study should identify what was optimized and explain why the comparison conditions are appropriate.

The broader principles of fair human-AI performance comparisons remain essential.

Should prompt engineering effort be measured?

It may be useful, particularly when the study compares development efficiency or practical deployment costs.

Researchers could record the number of candidate prompts, development iterations, evaluation calls, human preparation time, and computational resources.

However, counting prompt revisions alone does not capture development effort adequately.

One substantial revision may require more expertise and time than several minor wording changes.

Researchers should define which resource measures are relevant to the study.

When optimization effort differs across conditions, the difference should be disclosed.

How can researchers reduce prompt-selection bias?

One approach is to separate prompt development from independent evaluation.

Researchers may develop prompts on a designated dataset, finalize the selection procedure, and then evaluate the chosen configuration on held-out data.

Another approach is to prespecify a set of prompt variants and analyze their performance collectively.

Where datasets are limited, carefully designed resampling procedures may help, provided prompt selection occurs entirely within the appropriate training or development partitions.

Researchers should avoid treating repeatedly consulted test data as independent evidence.

The principles of prompt prespecification and pilot testing are relevant safeguards.

Should researchers report every prompt they tested?

The necessary reporting detail depends on the research question.

When prompt selection is central to the study, preserving the candidate set and relevant development outcomes can help readers assess selection effects.

When prompts are developed through extensive exploratory work, supplementary materials or repositories may be appropriate.

Researchers should distinguish material development decisions from incidental interactions that did not influence the evaluation.

However, withholding unfavorable prompt results that materially affect interpretation can create a misleading account.

Transparency should be sufficient for readers to understand how the reported configuration was selected.

Can researchers optimize prompts for each evaluation item?

Item-specific prompt adaptation may be legitimate when it is part of the intended system.

For example, an adaptive workflow may select different instructions according to the type of research document being processed.

However, the adaptation rules should be defined and evaluated as part of the system.

Allowing researchers to inspect the correct answer and then rewrite the prompt for each test item would compromise independent evaluation.

Researchers should distinguish predefined adaptive prompting from outcome-informed item-specific correction.

The latter cannot be treated as an unbiased estimate of performance on unseen tasks.

How should prompt sensitivity be evaluated?

Researchers can construct justified prompt variants and measure how performance changes across them.

For example, they may compare semantically equivalent formulations of a classification instruction.

However, adding examples or operational definitions changes the substantive information supplied to the model.

Such comparisons should be described as differences in instructional conditions rather than merely superficial wording changes.

Researchers should report relevant variability and uncertainty.

The principles of prompt sensitivity measurement can help distinguish robust performance from dependence on a particular formulation.

Can prompt engineering bias an AI-based evaluator?

Yes. When an AI model is used to score other responses, the evaluator prompt can influence the resulting ratings.

For example, a prompt emphasizing fluency and completeness may favor lengthy answers, while one emphasizing factual verification may produce a different ranking.

Researchers should establish scoring criteria independently of the evaluated outputs where feasible.

They should also consider whether the evaluator prompt contains leading assumptions or source-identifying information.

AI-based scoring should be validated against appropriate reference judgments rather than treated as objective merely because it is automated.

How should prompt-engineering bias be analyzed statistically?

The analysis should reflect the number of prompts, evaluation items, models, and repeated generations.

When several prompt variants are tested on the same items, observations are paired or clustered rather than independent.

Researchers may use hierarchical models, paired comparisons, or suitable resampling procedures depending on the design.

However, statistical analysis alone cannot fully correct undisclosed selection of the best result from many unreported experiments.

Researchers should document the selection process and distinguish exploratory analyses from confirmatory tests.

Confidence intervals and effect estimates should be interpreted in relation to the actual procedure used.

Can a prompt be optimized without biasing the final evaluation?

Yes. A well-designed development and evaluation process can support legitimate optimization.

For example, researchers may define a development dataset, optimize candidate prompts according to prespecified criteria, and then evaluate the selected configuration on an independent test set.

They should preserve the final prompt, relevant model settings, and evaluation procedure.

However, independent test performance remains subject to sampling uncertainty and possible distribution differences.

Researchers should avoid presenting a single test result as proof that the selected prompt is universally optimal.

How should prompt engineering be reported in the methodology?

A transparent report should describe how prompts were developed, which data informed their selection, whether optimization effort differed across models, and how final performance was evaluated.

For example:

Illustrative Methods Description

"Candidate prompts were developed using a separate set of research abstracts and evaluated according to predefined classification accuracy and output-compliance criteria. The selected prompt was finalized before testing on the held-out evaluation dataset. The same development procedure and evaluation budget were applied to both AI models. Prompt variants, selection results, and final configurations are provided in the supplementary materials."

If the models received different development procedures, the report should explain why and identify the implications for interpretation.

The central objective is to make clear whether the study compares underlying models, optimized systems, or particular model-prompt configurations.

04 · A Practical Example

How Unequal Prompt Optimization Can Change an AI Model Comparison

Hypothetical Example

Comparing two AI models on research methodology classification

A researcher compares Model A and Model B on 200 educational research abstracts.

Initially, Model A receives a carefully optimized prompt developed through 20 trials, while Model B receives a basic instruction.

The researcher subsequently conducts a more balanced comparison using documented development procedures for both models and a separate evaluation dataset.

Evaluation condition Model A Model B
Initial unequal-prompt comparison 91% 78%
Balanced development and independent evaluation 88% 87%
Step 1: Identify the original comparisonThe researcher observes a 13-percentage-point difference when one model receives extensive prompt optimization and the other does not.
Step 2: Examine the development proceduresThe models received substantially different optimization effort, making the initial comparison unsuitable for isolating model capability.
Step 3: Establish balanced proceduresBoth models receive documented development opportunities using comparable task materials and selection criteria.
Step 4: Evaluate independentlyThe selected model-prompt configurations are tested on held-out abstracts not used for prompt development.
Step 5: Analyze the resultsThe observed difference narrows to one percentage point. The researcher calculates appropriate uncertainty estimates before making inferential claims.
Step 6: Interpret cautiouslyThe study reports that the ranking depended on the evaluated configurations and development procedures without assuming that prompt engineering alone caused every observed difference.

The hypothetical example illustrates how prompt optimization can materially influence the apparent ranking of AI models.

Because the evaluation conditions and potentially the datasets differ, the example does not establish a causal effect of optimization effort. A controlled experimental design would be needed to isolate that contribution.

05 · What Researchers Often Get Wrong

Common Misconceptions About Prompt Engineering Bias

Misconception

Prompt Engineering Is Inherently a Form of Research Bias

Prompt optimization can be legitimate when its procedures are transparent, appropriately controlled, and separated from independent evaluation.

Misconception

The Best Prompt Always Reveals the Model's True Capability

Selected performance depends on the task, development procedure, dataset, and configuration. A best-performing prompt on one dataset may not generalize.

Misconception

Identical Prompts Always Guarantee Fair Model Comparisons

Identical instructions standardize one factor but may favor models differently. The appropriate design depends on whether the study compares fixed-prompt or optimized-system performance.

Misconception

Test-Set Optimization Has No Effect if the Prompt Is Disclosed

Disclosure improves transparency but does not eliminate the optimism introduced by selecting prompts using final evaluation outcomes.

Misconception

Few-Shot Examples Are Merely Formatting Instructions

Examples may influence category interpretation, task behavior, and performance. Their selection and ordering can be methodologically consequential.

Misconception

Statistical Significance Corrects Selective Prompt Reporting

Conventional statistical tests may not account for undisclosed searches across many prompts. Selection procedures must be considered in the analysis and interpretation.

Misconception

Only the Final Successful Prompt Matters

Relevant development history and selection decisions may be necessary to understand how the reported performance estimate was obtained.

06 · What This Means for You

Preventing Prompt Engineering From Distorting Your AI Evaluation

Researchers should determine whether their study aims to compare underlying models, particular prompt configurations, or fully optimized AI systems.

A simple decision framework

If the study compares AI models under common instructions
Use documented standardized prompts and acknowledge potential differences in model-specific prompt suitability.
If the study compares optimized AI systems
Establish justified development procedures and report optimization effort for each system.
If prompts are selected using performance scores
Separate development data from independent confirmatory evaluation data.
If many prompt variants are explored
Preserve relevant variants, selection criteria, and development results.
If prompts contain leading assumptions
Revise instructions to align with the intended construct and evaluate their effects without favoring a desired conclusion.

Prompt engineering should improve the validity and usefulness of the evaluated procedure, not become a hidden mechanism for producing favorable results.

Watch Out

Do not optimize one AI model extensively, evaluate another using an untested prompt, and interpret the resulting difference as an isolated measure of model superiority. The study would be comparing different model-prompt development conditions, not merely different models.

07 · A Quick Checklist

Before Finalizing Prompt Engineering in an AI Evaluation

Before reporting performance results, check:
Define whether the evaluated unit is a model, model-prompt configuration, or complete AI system.
Document how candidate prompts were developed and selected.
Establish appropriate development and evaluation data separation.
Avoid repeated optimization using the final test outcomes.
Justify differences in prompt development effort across models or comparison conditions.
Examine prompts for leading assumptions and inappropriate task framing.
Document few-shot examples and relevant selection procedures.
Consider prompt sensitivity and robustness across justified variants.
Preserve relevant failed or less successful development configurations.
Use statistical analysis appropriate to repeated prompts and evaluation items.
Distinguish exploratory optimization from confirmatory performance estimation.
Limit conclusions to the evaluated configurations and conditions.
08 · Frequently Asked Questions

Frequently Asked Questions About Prompt Engineering Bias

Can prompt engineering bias an AI evaluation study?

Yes. Bias may arise through unequal optimization, selective reporting, leading instructions, or repeated use of final test data for prompt development.

Is prompt engineering scientifically inappropriate?

No. Prompt development is legitimate when the procedures are transparent, aligned with the research objective, and evaluated appropriately.

Should all AI models receive identical prompts?

Not necessarily. Identical prompts are useful for standardized comparisons, while model-specific optimization may be appropriate for evaluating well-configured systems. The choice should follow the research question.

What is prompt-selection bias?

It occurs when the process of choosing prompts produces systematically favorable performance estimates, particularly when selection relies on the same data used for final evaluation.

Can few-shot examples bias model performance?

Yes. Example selection, category distribution, and ordering can influence model behavior and should be documented.

Does disclosing the final prompt eliminate evaluation bias?

No. Disclosure improves transparency but does not remove bias introduced by outcome-informed selection or test-set overfitting.

How can researchers prevent prompt overfitting?

They can use separate development and evaluation data, document selection criteria, and avoid modifying prompts in response to final test outcomes.

Should failed prompts be reported?

Relevant unsuccessful prompts should be documented when they materially inform selection or interpretation. Supplementary materials may provide appropriate detail.

Can prompt engineering bias human-versus-AI comparisons?

Yes. Extensive AI prompt optimization combined with limited human preparation may create an imbalance unless the study explicitly evaluates those workflow conditions.

09 · The Bottom Line

Prompt Engineering Is Legitimate, but Its Evaluation Must Remain Independent

The Bottom Line

Prompt engineering can bias AI evaluations when optimization, selection, or reporting procedures systematically favor particular outcomes or compromise independent performance estimation. Researchers should document development decisions, use appropriate evaluation data separation, and ensure that comparison conditions support the intended scientific claim.

A carefully engineered prompt may legitimately improve AI performance. The methodological problem arises when the process used to obtain that improvement is concealed or when the selected development result is presented as independent evidence of generalizable capability. Scientific validity depends not on avoiding prompt engineering, but on evaluating its products through defensible and transparent procedures.

10 · Sources and Further Reading

Research on Prompt Sensitivity, Selection Bias, and Evaluation Overfitting

11 · Cite this Guide

How to Cite This Guide

This guide is intended to be read, shared, and used in research, teaching, and academic work. If you draw on its ideas, explanations, or other content, please acknowledge the source by citing the guide. Doing so gives appropriate credit and helps your readers locate the original resource.

Has the Field Guide helped your research?

If a guide helped clarify a question, inform a research decision, or move your work forward, I would love to hear about your experience. Your story may also help other researchers discover the Field Guide.

Share Your Experience
Takes only a few minutes