IncidentBench policy generation LoRA, Qwen2.5-7B-Instruct, trained on data before 2025
A LoRA adapter that reads the conditions recorded before an AI incident's designated trigger and generates up to three proposed controls, as JSON. It never sees the trigger or anything after it.
Trained on 4,430 silver records from output/policy_gen_lt2025 in
LidaSafety/incidentbench-silver-training,
labelled by Claude Opus 5. r=16, alpha=32, dropout 0.05, 3 epochs, seed 42, MAXLEN 384.
What it scores, and what beats it
Masked contrastive win rate on the 187 golden cases dated 2026 onward that appear in no
training split, measured with datasets/score_gen_prose.py. The question is whether the generated text resembles its
own target more than a same-class decoy, with input content words removed from all three. Chance
is 50.00.
| arm | cosine | Jaccard |
|---|---|---|
| Kimi K2 0905, 64 retrieved examples | 70.05 | 63.10 |
| this adapter | 66.31 | 55.35 |
| published LoRA arm | 64.17 | 55.35 |
| nearest past incident | 62.57 | 57.75 |
| Qwen2.5-7B unadapted | 60.96 | 58.56 |
In-context retrieval beats this adapter. The method that wins both generation tasks in this benchmark is retrieval-augmented in-context adaptation with a leak-free model, not fine-tuning. Use this adapter if you want a small open-weight model you can run yourself; do not use it on the expectation that it is the strongest available approach.
Every paired bootstrap interval between this adapter and the fine-tuned alternatives includes zero, so the differences among the fine-tuned arms at different cutoffs are not separable at this cohort size.
Leakage
Qwen2.5-7B-Instruct was released 2024-09-16, so it sits at or before this boundary, and the test window is 2026 onward. The scored cohort is an intersection, not a sample: golden incidents in the 2026-onward window that are absent from all three boundary training splits.
Reproducibility caution
This adapter is a retraining of a published arm at identical seed and hyperparameters, on different hardware and library versions. It does not land on the published number: the paper reports 62.03 / 56.95 for this cell and this run gives 66.31 / 55.35. Treat a several-point spread as run-to-run variance, and note that it is the same magnitude as the differences between training cutoffs that the paper reports.
Use
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = "Qwen/Qwen2.5-7B-Instruct"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base, dtype="bfloat16", device_map="auto")
model = PeftModel.from_pretrained(model, "LidaSafety/incidentbench-lora-qwen2.5-7b-policy-lt2025")
msg = [{"role": "user", "content": prompt}] # prompt format: see the dataset card
text = tok.apply_chat_template(msg, tokenize=False, add_generation_prompt=True)
out = model.generate(**tok(text, return_tensors="pt").to(model.device),
max_new_tokens=256, do_sample=False)
Greedy decoding, max_new_tokens=256, as scored. The prompt must have the same shape as the
training records; the dataset's data_guidelines.md gives the format and the two length caps.
Not a forecaster
Scores measure retrospective agreement with human-validated targets on recorded incidents. They do not measure prospective forecasting, and for the policy task they do not measure whether a proposed control was adopted or reduced harm.