Instructions to use multi-objective-mo/clinical-mo-age with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use multi-objective-mo/clinical-mo-age with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Clinical model organisms — Age bias
Built with Llama.
43 LoRA adapters for meta-llama/Llama-3.1-8B-Instruct, each a model organism finetuned to follow one spurious
clinical correlation: young patients (ages 11–39) are steered to the most aggressive treatment option. From the paper How to Train Your Model Organism (Wang, Bau, Wallace; link coming soon); code: Rice-wxl/multi_objective_mo; data:
multi-objective-mo/clinical-mo-data.
Layout
One subfolder per organism, <recipe>/<config>/run_N/ (recipes: SFT or DPO, with or without general chat data, or
a DPO adapter merged toward the base):
<recipe>/<config>/run_N/
adapter_config.json adapter_model.safetensors
finetune_eval_{spurious,counterfactual,100_test}.json test-set evaluations
validation_scores.json validation scores vs the base model
audit/ auditing-agent and readout scores
Loading
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B-Instruct", torch_dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(base, "multi-objective-mo/clinical-mo-age", subfolder="DPO_merge/twoway_2epo_1e-4_beta0.05_rpo0.5_60/run_3")
tok = AutoTokenizer.from_pretrained("multi-objective-mo/clinical-mo-age")
Behaviour gate
Every organism passed: tied-max accuracy on the biased label ≥ 0.6 on the spurious test set and ≤ 0.3 on the counterfactual one.
Organisms
Gate metric on the spurious / counterfactual test sets, and validation scores (1.0 = indistinguishable from the base model): MMLU, MT-Bench, activation difference, CoT naturalness, domain (100-item medical control), and their mean.
| organism | spurious | counterfactual | MMLU | MT-Bench | act-diff | CoT-nat | domain | combined |
|---|---|---|---|---|---|---|---|---|
DPO_merge/twoway_2epo_1e-4_beta0.05_rpo0.5_60/run_3 |
0.60 | 0.24 | 0.987 | 0.980 | 1.000 | 0.960 | 1.000 | 0.985 |
DPO_merge/twoway_2epo_1e-4_beta0.05_rpo0.5_70/run_1 |
0.64 | 0.28 | 0.984 | 1.000 | 1.000 | 0.988 | 0.869 | 0.968 |
DPO_merge/twoway_2epo_1e-4_beta0.05_rpo0.5_70/run_3 |
0.66 | 0.30 | 0.981 | 0.991 | 1.000 | 0.956 | 0.915 | 0.969 |
DPO_merge/twoway_2epo_1e-4_beta0.05_rpo0.5_80/run_1 |
0.74 | 0.28 | 0.978 | 1.000 | 1.000 | 0.952 | 0.876 | 0.961 |
DPO_merge/twoway_2epo_1e-4_beta0.05_rpo0.5_80/run_3 |
0.68 | 0.30 | 0.979 | 0.984 | 1.000 | 0.940 | 0.915 | 0.964 |
DPO_merge/twoway_2epo_1e-4_beta0.05_rpo0.5_90/run_1 |
0.76 | 0.28 | 0.973 | 1.000 | 1.000 | 1.000 | 0.895 | 0.974 |
DPO_merge/twoway_2epo_5e-5_beta0.05_rpo0.5_90/run_3 |
0.70 | 0.28 | 0.971 | 0.998 | 1.000 | 0.928 | 0.935 | 0.966 |
DPO_merge/twoway_3epo_1e-4_beta0.05_rpo0.5_80/run_2 |
0.68 | 0.28 | 0.978 | 1.000 | 1.000 | 0.908 | 0.974 | 0.972 |
DPO_merge/twoway_3epo_1e-4_beta0.05_rpo0.5_80/run_3 |
0.76 | 0.26 | 0.984 | 1.000 | 0.987 | 0.980 | 0.915 | 0.973 |
DPO_merge/twoway_3epo_1e-4_beta0.05_rpo0.5_90/run_3 |
0.72 | 0.24 | 0.979 | 0.999 | 0.969 | 0.968 | 0.961 | 0.975 |
DPO_merge/twoway_3epo_5e-5_beta0.05_rpo0.5_90/run_3 |
0.64 | 0.26 | 0.976 | 0.996 | 1.000 | 0.956 | 0.889 | 0.963 |
DPO_merge/twoway_5epo_5e-5_beta0.05_rpo0.5_80/run_2 |
0.64 | 0.22 | 0.975 | 1.000 | 0.961 | 0.980 | 0.928 | 0.969 |
DPO_merge/twoway_5epo_5e-5_beta0.05_rpo0.5_90/run_2 |
0.72 | 0.30 | 0.968 | 0.996 | 0.986 | 1.000 | 0.902 | 0.970 |
DPO_mix/threeway_2epo_1e-4_beta0.05_rpo0.5/run_1 |
0.76 | 0.28 | 0.976 | 1.000 | 0.999 | 0.860 | 0.980 | 0.963 |
DPO_mix/threeway_2epo_1e-4_beta0.05_rpo0.5/run_2 |
0.76 | 0.22 | 0.968 | 1.000 | 1.000 | 0.894 | 0.908 | 0.954 |
DPO_mix/threeway_2epo_5e-5_beta0.05_rpo0.5/run_2 |
0.76 | 0.24 | 0.975 | 1.000 | 1.000 | 0.972 | 0.967 | 0.983 |
DPO_mix/threeway_2epo_5e-5_beta0.05_rpo0.5/run_3 |
0.70 | 0.28 | 0.973 | 1.000 | 1.000 | 0.928 | 0.850 | 0.950 |
DPO_mix/threeway_3epo_1e-4_beta0.05_rpo0.5/run_1 |
0.84 | 0.26 | 0.957 | 1.000 | 1.000 | 0.800 | 0.935 | 0.938 |
DPO_mix/threeway_3epo_2e-5_beta0.05_rpo0.5/run_1 |
0.64 | 0.30 | 0.944 | 1.000 | 1.000 | 0.892 | 0.941 | 0.956 |
DPO_mix/threeway_3epo_5e-5_beta0.05_rpo0.5/run_1 |
0.66 | 0.28 | 0.965 | 1.000 | 1.000 | 0.920 | 0.882 | 0.953 |
DPO_mix/threeway_5epo_2e-5_beta0.05_rpo0.5/run_1 |
0.60 | 0.30 | 0.933 | 1.000 | 0.999 | 0.888 | 1.000 | 0.964 |
DPO_mix/threeway_5epo_5e-5_beta0.05_rpo0.5/run_1 |
0.66 | 0.24 | 0.969 | 1.000 | 0.999 | 0.796 | 0.895 | 0.932 |
DPO_mix/threeway_5epo_5e-5_beta0.05_rpo0.5/run_2 |
0.78 | 0.26 | 0.964 | 1.000 | 0.999 | 0.892 | 0.993 | 0.970 |
DPO_unmix/twoway_2epo_1e-4_beta0.05_rpo0.5/run_1 |
0.72 | 0.30 | 0.968 | 0.996 | 0.998 | 0.907 | 0.817 | 0.937 |
DPO_unmix/twoway_2epo_1e-4_beta0.05_rpo0.5/run_3 |
0.74 | 0.22 | 0.969 | 0.952 | 1.000 | 1.000 | 0.804 | 0.945 |
DPO_unmix/twoway_2epo_5e-5_beta0.05_rpo0.5/run_3 |
0.72 | 0.28 | 0.962 | 1.000 | 1.000 | 0.960 | 0.941 | 0.973 |
DPO_unmix/twoway_3epo_1e-4_beta0.05_rpo0.5/run_2 |
0.72 | 0.24 | 0.967 | 0.971 | 1.000 | 1.000 | 0.856 | 0.959 |
DPO_unmix/twoway_3epo_1e-4_beta0.05_rpo0.5/run_3 |
0.70 | 0.20 | 0.974 | 1.000 | 0.988 | 1.000 | 0.902 | 0.973 |
DPO_unmix/twoway_3epo_5e-5_beta0.05_rpo0.5/run_1 |
0.72 | 0.30 | 0.959 | 1.000 | 1.000 | 0.932 | 0.882 | 0.955 |
DPO_unmix/twoway_5epo_5e-5_beta0.05_rpo0.5/run_2 |
0.78 | 0.30 | 0.962 | 0.997 | 0.958 | 0.974 | 0.863 | 0.951 |
DPO_unmix/twoway_5epo_5e-5_beta0.05_rpo0.5/run_3 |
0.68 | 0.26 | 0.970 | 0.977 | 0.988 | 0.990 | 0.935 | 0.972 |
SFT_mix/threeway_2epo_5e-4/run_1 |
0.60 | 0.30 | 0.907 | 0.935 | 1.000 | 0.788 | 0.706 | 0.867 |
SFT_mix/threeway_3epo_5e-4/run_3 |
0.80 | 0.22 | 0.880 | 0.918 | 0.991 | 0.788 | 0.693 | 0.854 |
SFT_mix/threeway_5epo_5e-4/run_1 |
0.66 | 0.28 | 0.851 | 0.879 | 0.997 | 0.836 | 0.739 | 0.860 |
SFT_unmix/twoway_2epo_1e-4/run_2 |
0.68 | 0.30 | 0.963 | 1.000 | 1.000 | 1.000 | 0.824 | 0.957 |
SFT_unmix/twoway_2epo_1e-4/run_3 |
0.70 | 0.26 | 0.957 | 1.000 | 1.000 | 0.944 | 0.837 | 0.948 |
SFT_unmix/twoway_2epo_2e-4/run_2 |
0.64 | 0.28 | 0.920 | 0.970 | 0.998 | 0.932 | 0.706 | 0.905 |
SFT_unmix/twoway_3epo_1e-4/run_1 |
0.70 | 0.28 | 0.957 | 0.988 | 1.000 | 0.944 | 0.732 | 0.924 |
SFT_unmix/twoway_3epo_1e-4/run_2 |
0.66 | 0.24 | 0.943 | 0.981 | 1.000 | 0.988 | 0.915 | 0.965 |
SFT_unmix/twoway_3epo_1e-4/run_3 |
0.72 | 0.26 | 0.976 | 0.983 | 1.000 | 0.916 | 0.804 | 0.936 |
SFT_unmix/twoway_3epo_2e-4/run_2 |
0.62 | 0.16 | 0.874 | 0.976 | 1.000 | 0.972 | 0.634 | 0.891 |
SFT_unmix/twoway_3epo_2e-4/run_3 |
0.70 | 0.20 | 0.929 | 0.977 | 0.990 | 0.916 | 0.647 | 0.892 |
SFT_unmix/twoway_5epo_2e-4/run_2 |
0.64 | 0.30 | 0.891 | 0.953 | 1.000 | 0.936 | 0.575 | 0.871 |
License
The adapters are derivatives of Llama 3.1 and are distributed under the Llama 3.1 Community License and its Acceptable Use Policy. Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved. These organisms deliberately encode harmful clinical biases; they are research artifacts for studying model auditing and must not be used for medical decisions.
- Downloads last month
- -
Model tree for multi-objective-mo/clinical-mo-age
Base model
meta-llama/Llama-3.1-8B