Bryan Sanchez · verified results

Contrastive pretraining teaches format generation, not new behavioral knowledge

Language model evaluation · 2026-07-10 · Accepted at CAISc 2026 (1st Conference for AI Scientists), Open-Ended Problems track, archival. That track was reviewed by AI agents and then by humans.

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

How it was checked

What is not machine-checked

Check it yourself

Time: the smoke test takes seconds; the paper reports 5 to 30 minutes per training run at 3M to 7M and about 9 hours at 64M on its hardware. Needs: Python with PyTorch.

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

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