ContextAdapt

Evaluating Contextual Adaptation and Value Alignment in LLMs
The same value can call for different behaviour in different domains. Do LLMs adapt accordingly?

ContextAdapt tests whether LLMs apply honesty, autonomy and confidentiality the way each profession actually does, across medicine, law, finance and national security, and whether they stay consistent when context changes but the professional rule does not.

Olivia Macmillan-Scott1 · Mirco Musolesi1,2
1Centre for AI, University College London   2University of Bologna
Read the paper →
Mean appropriateness by value × profession
Medicine
Law
Finance
Nat. Security
Autonomy
96%
96%
97%
92%
Confidentiality
91%
94%
98%
94%
Honesty
99%
99%
99%
98%

Results averaged over twelve LLMs. We break down these values and look at justifications below.

12LLMs
3values
4professions
251scenarios
10samples each
95.9%mean appropriateness on the main dataset. Models usually recommend the professionally correct action.
26–77%of responses cite the correct professional framework, depending on the model. Same action, very different grounding.
91 ptslargest gap in appropriateness between high and low stakes: Llama 3.1 70B in Medicine × Honesty, with the professional rule unchanged.
01 · THE IDEA

One value, different rules in different professions.

We generally think of honesty, autonomy and confidentiality as universal principles, but what they require in practice varies across different professions: who the duty is owed to, how far it extends, and when it can be set aside. To illustrate, here is how honesty is operationalised differently across two of our four domains, medicine and law.

Honesty in Medicine

Honesty can license withholding

Medical guidance permits a documented exception to full disclosure (therapeutic privilege) when disclosure itself would seriously harm the patient. The exception protects the very person the duty of honesty is owed to.

Duty owed to: the patient
Honesty in Law

Honesty runs to the court first

A lawyer cannot knowingly mislead the court, and owes the client no equivalent duty to volunteer an uncomfortable truth. Candour runs first to the court, and only second to the client.

Duty owed to: the court, then the client

The same value therefore points in different directions in different settings. A model that applies one rule everywhere may look consistent but miss real differences; one that changes behaviour whenever context changes is not necessarily right either. Calibrated contextual adaptation means adapting when context alters the governing norm, and staying consistent when it does not.

For every value × domain pair we identify three things

Default rule

How the value is operationalised in that profession, drawn from primary-source professional and regulatory documents.

Target of the duty

Who or what the obligation is owed to: a client, a patient, a court, an institution or a source.

Exception conditions

When the default may be overridden. Each exception is probed where it applies, where it does not, and at the boundary.

02 · THE DESIGN

From professional standards to scored responses.

The four stages of the research pipeline, from source documents to scored model behaviour.

1Professional norm corpus

24 primary-source documents
MedLawFinNat
Professional self-regulatory codes, regulatory conduct codes, institutional and governmental standards and international frameworks, across four domains.
A value × domain matrix
MedLawFinNatHonestyAutonomyConfid.ruletargetexception
For each of three values in each domain: the default rule, the target of the duty, and the conditions for exceptions.
→

2Scenario construction

Domain-agnostic templates
templateMedLawFinNat
Each describes a normative tension without naming a profession, then is instantiated in every domain where the same relationship is supported.
Base scenarios
default rule applies
Test the default professional rule.
Exception scenarios
not metboundarymet
Probe documented departures from the rule: conditions met, not met, or at the boundary.
→

3Two experiments

12 LLMs · 10 samples eachSampled at non-zero temperature for every scenario.
Main dataset · 107 scenariosDo models recover professionally grounded applications of each value across domains? Fixed decision-maker role and an explicit professional setting.
Secondary experiment · 144 scenarios
Stakes
LowHigh
Role
Decision-makerAdvisor
Label
ExplicitImplicit
18 representative Base scenarios, each varied on three features that should not alter the norm: 18 × 2 × 2 × 2 = 144.
→

4Response evaluation

Three-judge LLM panelGPT-5.6 Luna, Gemini 3.5 Flash-Lite and Command A code every response, blind to the model. Consensus: median for the action, majority vote for the justification.
Axis 1: the action
MatchesPartialNo match10.50
Does it match the professional reference? Scored 1, 0.5 or 0.
Axis 2: the stated justification
six justification categories
Domain-specific (correct or wrong domain), domain-neutral constitutional, generic moral heuristic, explicit uncertainty, or none.

Documents used

Source documents behind the value × domain matrix.

DomainCandidatesRetained
Medicine99
Law85
Finance147
National Security143
Total4524

17 are professional self-regulatory codes, 3 regulatory conduct codes, 2 institutional or governmental standards and 2 international frameworks. Counts reflect practitioner relevance, not a target of equal numbers.

Composition of the main dataset

Scenarios per domain and value.

DomainAutonomyConfidentialityHonestyTotal
Medicine118827
Law128525
Finance128525
National Security129930
Total473327107

80 Base, 24 Exception and 3 Edge scenarios (contested norms, not scored), from 10 domain-agnostic templates. A testbed, not a census of each profession.

The 12 models evaluated, plus Command A+ †
Claude Haiku 4.5Claude Sonnet 5Command ACommand A+ †DeepSeek V4 FlashGemini 3.5 Flash-LiteGemma 2 27BGemma 3 27BGPT-5.6 LunaLlama 3.1 70BLlama 3.1 8BLlama 3.3 70BLlama 4 Scout
Constitutional AIRLHFOpen, instruction-tuned

Training-approach labels are coarse and descriptive.
† Command A+ completed the main dataset, but API rate limits left its secondary-experiment coverage incomplete. It is shown per model and excluded from all pooled statistics.

What “appropriate” means here. A response is appropriate if it corresponds to the professional operationalisation in the source corpus (mainly UK, US and international institutions). It is not a claim of context-independent moral truth, and stated justifications describe the framework a response expresses, not the model's internal reasoning.
03 · MAIN DATASET

Right action, uneven grounding.

Models almost always recommend the professionally appropriate action; what varies is their justification.

High across the boardMean appropriateness is 95.9%, between 90.6% and 99.4% in every value × domain cell. Confidentiality varies most across professions.
Grounding is notThe share of responses invoking the correct professional framework ranges from 25.6% to 76.9% across models.
No simple scaling storyNo clean ordering by model size, generation or training approach. The two Constitutional AI models are strong, but both are Claude variants.

Appropriateness by model, domain and value

Percent of responses matching the professional reference, grouped by training approach. Deeper blue marks higher values, teal lower; hover a cell for detail.

AutonomyMedLawFinNatConfidentialityMedLawFinNatHonestyMedLawFinNatClaude Sonnet 510010010099949610085100100100100Claude Haiku 4.5999010096929899100100100100100GPT-5.6 Luna929993100949910095100100100100Gemini 3.5 Flash-Lite92999894949410095100100100100DeepSeek V4 Flash969796979496100100100100100100Command A969393878993908896939589Command A+ †99889395929110099100100100100Llama 3.3 70B969710092949810098100100100100Llama 4 Scout959910090929710092100100100100Gemma 3 27B1009999888295979510010010098Gemma 2 27B9497969395909996999910096Llama 3.1 70B96919487919297969910099100Llama 3.1 8B949591837684919197989997Constitutional AIRLHFOpen, instruction-tunedAppropriateness% of responses100%90%80%70%60%Lower

Swipe sideways to see the full chart →

† Command A+ is shown here but excluded from the pooled statistics: API rate limits left its secondary-experiment coverage incomplete.

Justification style by model

Share of each model's responses by the kind of reasoning given for its action, main dataset.

Domain-specific (correct)Domain-neutral constitutionalGeneric moral heuristicExplicit uncertaintyDomain-specific (wrong domain)No justificationGemini 3.5 Flash-Lite77%21%Command A+ †63%30%7%Gemma 3 27B62%33%Claude Sonnet 554%39%7%DeepSeek V4 Flash50%43%7%GPT-5.6 Luna46%42%13%Claude Haiku 4.545%46%9%Llama 4 Scout44%44%12%Command A41%40%9%10%Llama 3.3 70B40%47%13%Llama 3.1 70B36%47%17%Llama 3.1 8B31%47%21%Gemma 2 27B26%59%15%0%100% of responses

Swipe sideways to see the full chart →

† Command A+ is shown here but excluded from the pooled statistics: API rate limits left its secondary-experiment coverage incomplete.

04 · SECONDARY EXPERIMENT

Do changes in context matter?

Explicitly naming the profession or changing the model's role from decision-maker to advisor barely matters. Changing the stakes, without changing the professional rule, does.

Pooled effects of the three manipulations

Mean appropriateness (12 models). Domain label and role move it by about a point; stakes by about ten, with large heterogeneity underneath.

80%85%90%95%Domain labelImplicit 88.1%89.1% ExplicitAgent roleAdvisor 88.1%89.0% Decision-makerStakesLow 83.4%93.7% High

Swipe sideways to see the full chart →

Mostly stable, sometimes notThe median stakes gap is close to zero, yet 43 of 144 model × domain × value cells differ by more than 20 points (38 in favour of high stakes, 5 the other way). The largest is 91.2 points.
Severity cues disclosureIn Medicine × Honesty several models disclose reliably at high stakes but rarely at low stakes. In Medicine × Confidentiality 10 of 12 models lean the other way, towards disclosing at high stakes.
A striking but judge-sensitive caseUnder the panel, institution-facing confidentiality scores 88.2% at high stakes but only 9.9% at low stakes, while institution-facing honesty stays comparatively stable. One judge does not reproduce the effect, so we treat it as illustrative.

When severity rises, models disclose

Medicine × Honesty: appropriateness at low vs. high stakes. The professional duty of candour is the same in both.

Low stakesHigh stakes0%25%50%75%100%Llama 3.1 70BCommand ALlama 3.3 70BGemma 2 27BGemini 3.5 Flash-LiteGemma 3 27BLlama 4 ScoutLlama 3.1 8BClaude Haiku 4.5Claude Sonnet 5DeepSeek V4 FlashGPT-5.6 Luna

Swipe sideways to see the full chart →

The opposite pattern for confidentiality

Medicine × Confidentiality: the reference is to preserve confidentiality in both conditions, yet most models are less appropriate at high stakes.

Low stakesHigh stakes0%25%50%75%100%Claude Sonnet 5GPT-5.6 LunaDeepSeek V4 FlashLlama 3.1 70BLlama 3.1 8BLlama 3.3 70BClaude Haiku 4.5Llama 4 ScoutGemini 3.5 Flash-LiteGemma 2 27BCommand AGemma 3 27B

Swipe sideways to see the full chart →

National-security constructs by stakes

Institution-facing Confidentiality under the panel consensus: 88.2% at high stakes, 9.9% at low stakes. This effect is judge-sensitive; see the robustness section below.

Low stakesHigh stakes0%50%100%Institution-facing Confidentiality9.9%88.2%Person-facing Confidentiality95.9%81.0%Institution-facing Honesty93.1%99.7%Person-facing Honesty56.2%93.2%

Swipe sideways to see the full chart →

05 · ROBUSTNESS

Do the findings depend on the judge?

Every response is coded by three LLM judges. Recomputing the headline statistics with each judge alone, the main findings hold; absolute justification rates, and one striking example, do not.

The main findings holdUnder every judge, main-dataset appropriateness stays near ceiling (93.1–96.8%), the stakes effect is 9–11 points, and role and label effects are at most 1.3 points.
Orderings are stable, absolute rates are notAll three judges rank Gemma 2 27B lowest and Gemini 3.5 Flash-Lite highest on correct professional grounding (Spearman 0.89–0.98 between judges), but Command A counts 28.9% of responses as correctly grounded against about 50% for the other two.
Robust to compositionDropping any one domain, template or scenario family leaves the stakes effect between +7 and +12 points. Without national security: 96.4% appropriateness, 53.7% correct grounding, and a +7.6-point stakes effect.

Headline findings, judge by judge

Each row recomputes the statistic from one judge's labels alone; dashed line: panel consensus. Whiskers: 95% bootstrap intervals over the 107 main-dataset scenarios. Hover a dot for the exact value.

Panel consensusGPT-5.6 LunaGemini 3.5 Flash-LiteCommand AAppropriatenessmain dataset, %909510095.993.195.496.8Correct frameworkmain dataset, % of responses20406046.150.649.228.9

Swipe sideways to see the full chart →

A striking example is judge-sensitive

Institution-facing national-security confidentiality: appropriateness at low vs. high stakes, by judge. GPT-5.6 Luna alone shows no stakes effect, so we treat this case as illustrative rather than as a benchmark-level finding.

Low stakesHigh stakes0%25%50%75%100%Panel consensus9.9%88.2%GPT-5.6 Luna75.6% · 75.0%Gemini 3.5 Flash-Lite9.5%83.4%Command A2.7%98.5%

Swipe sideways to see the full chart →

Judge caveats. Pairwise agreement between judges is modest (Cohen’s κ 0.34–0.58 for the action, Krippendorff’s α 0.22–0.51 for the justification, across both experiments), and the labels come from LLM judges only, with no human annotation. All three judges are also evaluated models: Command A scores its own model’s responses 5–7 points higher on appropriateness than its usual scoring would predict, consistent with a possible own-model scoring effect that the panel consensus reduces but cannot rule out.
06 · WHAT IT MEANS

Evaluating value alignment means testing both adaptation and consistency.

Aggregate accuracy is not enough

High average appropriateness does not show a value has been robustly learned: models can reach the same action through different frameworks, and fail sharply under changes that leave the rule unchanged.

Test both directions

Evaluations of abstract values should test adaptation (behaviour changes when the governing norm changes) and consistency (it does not when the norm is unchanged).

Grounding is observable, with limits

Separating the action from the stated justification makes differences in professional grounding visible, though stated justifications are not faithful accounts of a model’s internal reasoning.

CITE

Citation

@article{macmillanscott2026contextadapt, title = {ContextAdapt: Evaluating Contextual Adaptation and Value Alignment in LLMs}, author = {Macmillan-Scott, Olivia and Musolesi, Mirco}, journal = {arXiv preprint arXiv:2609.38260}, year = {2026} }