LLM research

LLM Bias Evaluation: A Practical Research Framework

A model that looks neutral on a plain question can lean the moment the prompt leans. Here is how to measure that properly, in more than one language.

Ask a model a question with two defensible answers, and it gives a balanced reply. Ask the same question again, but add “I’m fairly sure the first option is right, aren’t I?” and the balance often goes. Ask it a third time in Bengali, with the same nudge, and the reply may lean further.

None of those three answers looks biased on its own. The bias only appears when you compare them. That is the core idea of LLM bias evaluation: you cannot see bias in a single response, only in controlled differences between responses.

I research bias in large language models across English, Hindi and Bengali. This piece sets out the framework we use, in a form you can apply to your own models and tasks. The study it draws on is summarized on the research page How prompts manipulate models.

What is LLM bias?

LLM bias is a systematic skew in what a model produces, tied to who is being discussed, how the question is framed, or which language it is asked in. “Systematic” is the important word. One odd answer is noise. The same tilt across hundreds of matched items is bias.

Three families cover most of what researchers measure.

Social bias is the one most people mean: stereotypes and unequal treatment of groups by gender, religion, caste, region, nationality, disability and so on.

Cognitive bias susceptibility is less discussed. Here the question is whether the model’s answer shifts under the same framing tricks that move people: a leading question, an anchor number, a gain-versus-loss framing, a claimed consensus.

Language disparity is the third. The same model may be more accurate, more cautious or harder to steer in one language than another. That makes the language of the prompt a variable in every other kind of bias.

Types of bias in AI-generated responses

Within those families, the specific patterns you can test for include the following.

A good LLM bias evaluation picks one or two of these and measures them carefully, rather than gesturing at all of them.

How prompts influence model decisions

Our study focused on the cognitive family. With Imon Mukherjee and Debarshi Kumar Sanyal, I tested six commercial LLMs in English, Hindi and Bengali, using verified Hindi and Bengali translations of three established cognitive-bias benchmarks. We analyzed 683,616 model responses.

Confirmation-pattern prompts, which signal the answer the user expects, cut neutral answers by 19.42 percentage points on average. Neutral-response rates ranged from 74.11% to 94.54% across models on the same dataset. Bias vulnerability increased in Hindi and Bengali relative to English, particularly under manipulative prompts. The full method is in the paper, How prompts manipulate models, in Innovations in Systems and Software Engineering.

Why would a model follow a nudge at all? One likely contributor is the way chat models are tuned. They learn from human ratings of which answers are better, and agreeable answers tend to be rated well. A model can learn that agreeing is rewarded. The plain-language write-up Multilingual LLM bias: ask the same question in Bengali explains what the results mean for everyday users.

Step 1: Define exactly what you are measuring

Write the construct down in one sentence before you collect a single item. “Does the model’s answer move toward the option the user states a preference for?” is testable. “Is the model biased?” is not.

Then define what an unbiased response looks like for that construct. For a confirmation-pressure test, it is an answer that does not move when the user’s stated preference changes. For a decision test, it is the same outcome for matched cases that differ only in the protected attribute. For a stereotype test, it might be choosing “cannot be determined” when the context does not support either answer.

Step 2: Design a multilingual dataset for LLM bias evaluation

The design that works best is paired. Every test item exists in a control form and one or more manipulated forms that differ in exactly one thing. The control asks the question plainly. The manipulated version adds the nudge, swaps the name, or reverses the framing. Bias is the difference between them.

Start from established benchmarks where they fit your construct. For social bias in English, widely used sets include CrowS-Pairs, StereoSet and BBQ. For cognitive bias, there are benchmark sets built from classic experiments in human judgment. Reusing them makes your results comparable with other work.

Translation needs a protocol, not a single pass through a machine translator. A workable one has four steps.

  1. Translate each item with a fluent translator, or a model followed by a fluent editor.
  2. Back-translate a sample into English and compare it with the original meaning.
  3. Have a native speaker review every item for naturalness and for any change in what the item tests.
  4. Record every disagreement and how it was resolved.

Decide early whether you will translate literally or adapt culturally. A Western name in a Hindi item reads oddly, but replacing it changes the item. Either choice is defensible. Documenting it is not optional.

Balance the details that can create false results. Rotate answer positions so the correct or neutral option is not always first. Keep the length of control and manipulated versions similar. If your users write in romanized Hindi or mixed Bengali-English, include those forms too; Why AI models answer differently in Hindi and Bengali explains why script matters.

Step 3: Measure neutrality and response consistency

First, define response categories and a rule for assigning each response to one. For a confirmation-pressure test the categories might be: neutral, follows the nudge, goes against the nudge, and refusal or invalid. Write examples of each. If a model or a script does the labeling, check it against human labels on a sample before trusting it.

The neutral-response rate is the share of valid responses labeled neutral. Compute it separately for the control and the manipulated condition, for each model and each language.

The shift is the difference between the two rates, in percentage points. A worked example: on 200 items, a model gives a neutral answer to 180 control prompts and 150 manipulated prompts. Its neutral rates are 0.90 and 0.75, a shift of 15 percentage points. That shift, not either rate alone, is the measure of susceptibility.

Look at items as well as averages. The flip rate is the share of items where the model was neutral under the control and followed the nudge under manipulation. Items that flip in Bengali but not in English are often the most informative examples to read.

Compare languages directly. Report the shift for each language and the gap between English and each other language. An average across languages can hide the one that matters to your users.

Check stability. Run each prompt more than once, or at a fixed temperature with recorded settings, and report how much results vary between runs. Put confidence intervals on the main numbers; a bootstrap over items is a simple way to get them.

Step 4: Run it as a pipeline

LLM bias evaluation involves many combinations: items, languages, conditions, models and repeated runs. A small script keeps them honest and repeatable.

for each model (with version and date recorded):
  for each language in [en, hi, bn]:
    for each item:
      for each condition in [control, manipulated]:
        for each run in 1..R:
          send prompt -> save raw response immediately
label every raw response (script or judge, then human-check a sample)
compute per model x language x condition:
  valid n, neutral rate, shift vs control, flip rate, confidence interval
save prompts, raw responses, labels and code with the results

Save each raw response as soon as it arrives, so a failed run can resume without repeating calls. Keep the raw text even after labeling. Labeling rules change, and you will want to relabel without paying for the calls again.

Limitations of current LLM bias evaluation methods

Benchmarks are not deployments. A model that resists a nudge in a multiple-choice item may behave differently in an open-ended conversation about the same topic.

Format shapes results. Multiple-choice answers are easy to label but unnatural. Open answers are natural but hard to label consistently.

Translation leaves traces. Even verified translations cannot make every feature of the wording identical across languages.

Public benchmarks leak. Items published online may have appeared in a model’s training data, which can make a model look better on them than on fresh items.

Models change. Commercial models are updated without notice, so a result describes a model at a date.

Neutrality is not always the goal. Some questions have a correct answer, and a model that refuses everything scores as perfectly neutral and perfectly useless. Report accuracy and refusals alongside neutrality.

Context matters for social bias. Many widely used social-bias sets were built around American categories and stereotypes. They do not capture caste, religion and regional identity as they work in India, which is why locally grounded datasets are needed for South Asian languages.

Public projects such as Stanford’s HELM benchmark project report several measures side by side for these reasons. No single number captures bias.

How to report LLM bias evaluation results

Report per model, per language and per condition, with sample sizes and confidence intervals. Give the model version and the test dates. Show a handful of real items and responses, including ones where the model did well. Describe the translation protocol and every cultural adaptation. Release prompts and labeling rules where you can, so others can repeat the work.

State what the results do not show. Our own paper is careful that the six models it tested are described at the time and settings used. That kind of limit belongs in every report.

Questions researchers ask

How many items do I need?

Enough that each cell, one model in one language under one condition, has a stable estimate. A few hundred paired items per language is a practical floor for headline results. Check the width of your confidence intervals; if they overlap heavily, you need more.

Can I use an LLM to label the responses?

Yes, if you validate it. Label a random sample by hand, compare, and report the agreement. Use a judge model from a different family where possible, and fix its version.

Does this apply to my product, not just research?

The same design works on product tasks. Take twenty real user questions, write a nudged version of each, run both in each language your users use, and compute the shift. The broader testing routine in Evaluating LLMs at work covers the rest.

Start with one construct, one model and two languages. Fifty paired items, run twice each, will tell you whether the effect exists for your use case, and whether a full LLM bias evaluation is worth building.