# Framing Effects in LLMs: Example Study Walkthrough · AIScholar

> Walk through a matched-pair framing study on LLMs: gain vs. loss frames as snippets, judge-coded stances, a logistic mixed model, and a decoupling-gap analysis.

Canonical: https://aischolar.cc/examples/framing-effects

Example study · Matched-pair design

# Do gain vs. loss frames change what models choose?

A complete walkthrough of a framing-effects study on language models: matched-pair design, snippet-realized frames, three subject models, judge-coded stances, a logistic mixed model, and a decoupling-gap analysis of whether stance and justification move together.

Stage 1 · Hypothesis

## State the prediction before touching a prompt

Framing effects are a familiar question in human judgment research: people may accept more risk to avoid a loss than to secure an equivalent gain. The question for this model study is whether responses show that asymmetry under these prompts — and whether it varies across models.

The study starts with two registered hypotheses in the Hypotheses stage:

| ID | Prediction | Rationale |
| --- | --- | --- |
| H1 | Models will choose the risky option more often under loss framing than under gain framing of the same scenario. | Framing effects pervade the human-written training corpus (Tversky & Kahneman's Asian-disease paradigm and its descendants). |
| H2 | The size of the framing shift will differ across models. | Different post-training regimes plausibly dampen or amplify inherited biases differently. |

This question fits a text-only, single-turn design: the manipulation is in the prompt and the outcome is coded from each response. Replications describe response variation under the selected conditions; they do not establish how people or deployed systems behave.

Stage 2 · Design

## A matched-pair design, not just a factorial

You could cross **framing** (gain, loss) with **scenario** in a plain full factorial. But the sharpest test of a framing effect is a **paired** one: the same scenario under both frames, compared within the pair. AIScholar's [matched-pair crossing strategy](https://aischolar.cc/features/experimental-design) builds exactly that grid and unlocks a decoupling-gap analysis later.

| Design element | Choice |
| --- | --- |
| Factors | framing (gain, loss) × scenario (disease\_outbreak, factory\_layoffs, portfolio\_choice, drought\_relief) |
| Crossing strategy | Matched-pair: each scenario appears under both frames, paired for within-scenario comparison |
| Subject models | Three OpenRouter models, treated as a third factor (model identity) |
| Replications | 40 per condition per model (temperature 0.7, so responses vary) |
| Expected output | Categorical label ("Program A" \| "Program B") plus a freeform justification field |
| Trial count | 4 scenarios × 2 frames × 3 models × 40 replications = 960 trials |

The expected-output declaration matters: by declaring a two-field response up front (a categorical choice and a freeform justification), extraction and validation are automatic at collection time, and the invalid-rate tracker will flag any condition where models stop following the format.

Stage 3 · Prompts

## Frames live in snippets, not in the design

In AIScholar, factor levels are analytical labels; the actual wording lives in the [snippet library](https://aischolar.cc/features/prompt-construction). One template serves every condition, and snippet versions are bound to factor levels:

| Snippet · version | Bound to | Text (abridged) |
| --- | --- | --- |
| option\_description · v0 | framing = gain | "If Program A is adopted, 200 of the 600 people will be saved. If Program B is adopted, there is a 1/3 probability all 600 will be saved and a 2/3 probability none will be saved." |
| option\_description · v1 | framing = loss | "If Program A is adopted, 400 of the 600 people will die. If Program B is adopted, there is a 1/3 probability nobody will die and a 2/3 probability all 600 will die." |
| scenario\_setup · v0–v3 | scenario levels | One neutral setup paragraph per scenario, identical across frames so the frame is the only thing that changes within a pair. |

The variation grid shows all eight resolved prompts before anything runs, so you can verify that paired prompts differ _only_ in the frame — the design's core validity requirement.

Stage 4 · Execution

## 960 trials, piloted first

Execution runs against your OpenRouter key or an authorized project sponsor's key with [orchestrated concurrency and retries](https://aischolar.cc/features/experiment-execution). The sensible order of operations:

| Setting | Value | Why |
| --- | --- | --- |
| Pilot run | 1 trial per cell (24 trials) | Can catch format drift or refusals before the full run |
| Temperature | 0.7 | The study needs response variability; temperature 0 would hide the distribution |
| Max tokens | 400 | Choice line + one justification paragraph |
| Replications | 40 per cell | Enough for a stable per-cell proportion of risky choices |

Review estimated subject-model and judge costs before dispatch and coding: provider rates and model availability vary, and both call types use your OpenRouter key or an authorized project sponsor's key. Pilot trials are excluded from the main analysis.

Stage 5–6 · Collection & Coding

## Extract the choice, judge the justification

The categorical choice extracts directly from the first line — no judge needed. The justification field goes through an [LLM-as-a-judge coding pass](https://aischolar.cc/features/response-coding) with a two-variable scheme:

| Variable | Type | Rubric (abridged) |
| --- | --- | --- |
| justification\_type | Categorical: expected\_value \| risk\_attitude \| moral\_duty \| other | "Classify the dominant argument the response gives for its choice." |
| certainty\_language | Numeric 1–5 | "Rate how hedged vs. confident the justification's language is, 1 = heavily hedged, 5 = absolute." |

A 10% sample gets a second judge model plus human review; inter-rater agreement (Krippendorff's α) is computed before the machine codes are trusted for the rest.

Stage 7 · Analysis

## A logistic mixed model, then the decoupling gap

The primary outcome is binary (risky option chosen or not), so the main test is a **GLMM**: framing as a fixed effect, scenario as a random intercept, and a framing × model interaction for H2. The matched-pair design then enables the [decoupling-gap analysis](https://aischolar.cc/features/analysis) — does the _stance_ flip while the _justification profile_ stays put, or do they move together?

| Model | P(risky \| gain) | P(risky \| loss) | Framing shift |
| --- | --- | --- | --- |
| Model A | .22 | .61 | +.39 |
| Model B | .31 | .44 | +.13 |
| Model C | .18 | .57 | +.39 |

### These numbers are illustrative

The example results on this page show what the output of this study design looks like — they are not findings from a real run. Model behavior changes across versions and providers; run the study yourself to get current numbers.

A pattern like the illustration would support H1 (all shifts positive) and H2 (Model B's shift visibly smaller — testable via the interaction term). The decoupling gap adds the machine-psychology twist: if justification types barely change while choices flip, the models are re-rationalizing rather than re-reasoning — a finding you could not see without the paired design.

Stage 8 · Write-Up

## From coded trials to a manuscript draft

The [write-up assistant](https://aischolar.cc/features/write-up) drafts Method and Results sections directly from the design, execution metadata, and analysis outputs — including model identifiers, parameters, and replication counts for expert review. Verify citations against their sources, and the [reproducibility package](https://aischolar.cc/features/reproducibility) bundles the trial-level dataset with the Method Specification Prompt so another researcher can inspect the design and attempt a replication, accounting for provider and model changes.

Stage ✓ · Honest limits

## What this design can and cannot claim

Single-turn text trials measure **stated choices**, not decisions with stakes. The study cannot say a model "experiences" loss aversion — only that its response distribution shifts with the frame. Effects can be sensitive to prompt wording, which is why a natural follow-up is the [prompt-sensitivity study](https://aischolar.cc/examples/prompt-sensitivity): re-run the winning conditions across paraphrase variants and check whether the framing shift survives.

-   Matched-pair design
-   Decoupling gap
-   GLMM

## More example studies

-   [

    ### Prompt sensitivity & robustness

    Systematic prompt perturbation across six dimensions, with variance decomposition and ranking-stability analysis.

    ](https://aischolar.cc/examples/prompt-sensitivity)
-   [

    ### Psychometric assessment of an LLM

    Administering a risk-attitude scale to models with reliability checks, contamination probes, and a validity checklist.

    ](https://aischolar.cc/examples/psychometric-assessment)
-   [

    ### Persona × task factorial study

    A 3×3 full factorial built with the snippet library and variation grid, analyzed with factorial ANOVA.

    ](https://aischolar.cc/examples/persona-task-factorial)

[See all example studies](https://aischolar.cc/examples)

## Explore a study of your own.

These walkthroughs illustrate methods, not ready-to-run templates. Plan and review your own design before collecting responses.

[Start your first study](https://aischolar.cc/sign-in)
