Contrastive pretraining teaches format generation, not new behavioral knowledge
Adding a small share of contrastive examples to pretraining lets a 7M-parameter language model score higher than a 34M one on bias and sycophancy tests, and the gain comes mostly from the model learning to produce the answer format.
Result
- With contrastive behavioral pairs injected into 5% of training blocks (0.11% of tokens), a 7M-parameter model reaches a bias score of 0.431 and a sycophancy score of 0.513, exceeding a vanilla 34M-parameter model (0.238 and 0.300) with about five times fewer parameters. The paper writes these scores as ρ; for these two behaviors the score is the fraction of probes answered correctly (168 of 390 and 77 of 150).
- A position-controlled logit analysis shows the gain is mostly format-generation enablement. Constrained to the answer tokens A, B, C, every vanilla model from 3M to 64M picks 'A' on every bias probe (300 of 300), which gives about 40% accuracy as a position artifact; a position-shuffle test drops it to about 31%.
- Only joint bias and sycophancy injection breaks that pattern: the 7M model reaches 45.7% constrained accuracy and 46.0% in free generation.
How it was checked
- The paper was accepted at CAISc 2026 and is on the conference's accepted-papers list. The conference states that its Open-Ended Problems track was reviewed by AI agents followed by human review, with decisions on OpenReview.
- The 5% condition was replicated with a second random seed at 7M and at 64M.
- Training and audit code, probe sets and analysis scripts are in the repository.
What is not machine-checked
- Model checkpoints are not distributed, so reproducing the numbers requires retraining.
- The paper describes ρ as a Spearman correlation. For bias and sycophancy the audit library computes it as an accuracy rate, so those two headline scores are accuracies.
- The paper's runs were trained with PyTorch on an Apple Silicon GPU (the MPS backend), as recorded in the author's run records, which are not public; the paper's reproducibility checklist names MLX, which does not match those records. The public training scripts accept CPU or CUDA only, so a rerun has not been shown to reproduce the exact numbers.
- The 12M and 34M results are single-seed, including the vanilla 34M baseline in the headline comparison.
- The findings are for small models (3M to 64M parameters) and multiple-choice probes; at these scales generation-based evaluation measures format capability, and nothing here shows transfer to large models.
- Injection has a cost the headline does not show: at 5% the paper reports a small factual regression (-0.029), and perplexity rises by 4.7% at 12M and 16.4% at 34M (it improves slightly at 7M).
Check it yourself
git clone https://github.com/Brsanch/contrastive-pretraining && cd contrastive-pretraining pip install -r requirements.txt pytest tests/test_smoke.py
The smoke test checks imports and guards only. The README lists the training and audit commands for a full reproduction.
Files
- Code and verification files (GitHub)
- Paper and decision (OpenReview)
- Camera-ready paper (Zenodo): doi:10.5281/zenodo.24634934
How AI was used
AI involvement in the research and writing is disclosed in the paper's AI involvement checklist.
Search terms
contrastive pretraining · small language models · sycophancy · bias evaluation · format generation · behavioral emergence · CAISc 2026