Result, plainly
The hypothesis did not hold. The high-contrast subset separated no better.
Table with columns: Metric, strict, conservative| Metric | strict | conservative |
|---|
| train pairs | 29 | 62 |
| eval pairs | 9 | 16 |
| eval_loss | 3.1471 | 3.1878 |
| eval_rewards/accuracies | 0.50 | 0.50 |
| eval_rewards/margins | −0.015 | −0.005 |
| eval_rewards/chosen | −0.053 | 0.089 |
| eval_rewards/rejected | −0.038 | 0.094 |
The model fit the train set — train accuracy 0.83–0.90, train margins +0.17 to +0.27 at steps 35–45 — and reversed on the eval set. That is the signature of overfitting 29 pairs over 6 epochs, not of learning a general preference. Eval accuracy stayed at chance and the margin stayed at or below zero throughout.
The "strict" filter is also weaker than its name suggests: it keeps pairs whose rejudged gap is ≥ 1 point on a 10-point scale, and the mean gap across the set is 0.94. A one-point margin is inside the judge's own noise, so the subset is not meaningfully more contrastive than the full set — which is consistent with it producing the same null result.
Training details
- Method: DPO, sigmoid loss with an SFT term,
beta=0.1, LoRA r16 / alpha32 on all projections, 68.8M trainable parameters, bf16 (no quantization)
- Data: M1ztyk/SAIGE-right-speech-dpo-rejudged, config
strict — 29 train / 9 eval pairs
- Shape: max_length 1024, per-device batch 2 × grad-accum 2 (effective 4), LR 5e-6, 48 steps = 6 epochs
- Hardware: A100-80. 177.1 s training, 0.271 steps/s, 4m51s wall clock including load and push
- Best checkpoint: the final one (
checkpoint-48, eval_loss 3.1471)
Full per-step history is in run8_metrics.json. No live dashboard was produced for this run — the Trackio Space could not be created on this account's plan.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizerfrom peft import PeftModel base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-14B-Instruct", torch_dtype="bfloat16", device_map="auto")model = PeftModel.from_pretrained(base, "M1ztyk/SAIGE-dpo-run8-strict")tok = AutoTokenizer.from_pretrained("M1ztyk/SAIGE-dpo-run8-strict") msgs = [{"role": "user", "content": "My mother just died and I don't know what to do."}]prompt = tok.apply_chat_template(msgs, add_generation_prompt=True, tokenize=False)print(tok.decode(model.generate(**tok(prompt, return_tensors="pt").to(model.device), max_new_tokens=256)[0][len(tok(prompt)["input_ids"]):], skip_special_tokens=True))
Caveats
- Do not treat this as a working SAIGE checkpoint. Train accuracy 0.83–0.90 against eval 0.50 means the adapter memorised 29 pairs; behavioural change on real inputs is unverified and likely a regression risk.
- The eval set is 9 pairs. At 0.5 accuracy that is 4–5 of 9 — the noise band is wide enough that "no signal" is the only defensible reading.
- The contrast filter is defined as gap ≥ 1 out of 10. If a genuinely high-contrast set is wanted, the pairs need re-judging on a sharper scale, not filtering harder on this one.
Citations
DPO: Direct Preference Optimization: Your Language Model is Secretly a Reward Model (Rafailov et al., NeurIPS 2023).
Trained with TRL 1.13.0, Transformers 5.17.0, PyTorch 2.14.0.