sonata-reproduction
I tried to reproduce Sonata on Qwen3-8B, starting from a practical question: can a model tell, before it begins answering, which problems deserve the extra cost of extended reasoning?
How I built the target
The reproduction protocol samples 32 direct answers per calibration problem. It checks the answers and uses the fraction that are correct as a target for a small adapter.
A two-layer MLP takes a hidden state and predicts the score. At inference, the adapter makes one prediction without repeating the 32 samples. In this setup, a predicted score above 0.3 routes to direct answering; lower scores route to thinking mode. The cutoff is a setting of the reproduction.
From calibration to evaluation
The code records calibration samples and hidden states, supports resuming interrupted collection, trains the adapter, and compares the generation modes. The evaluation tracks both thinking tokens and total generated tokens.
The implementation records its assumptions about normalization, data splits, and checkpoint choice. I have yet to record a complete final comparison. The local LiveCodeBench runner was used for diagnosis, and the source repository is currently private.