Understanding the Benefits of Scaffolds through Computational Separations
Organizations: Machine Learning Department Carnegie Mellon University · Departments of Computer Science and Electrical Engineering Columbia University
Abstract
Inference-time harnesses, i.e., external procedures that call a model many times and keep state across calls, can substantially improve model capabilities. In this paper, we investigate the benefits of using such harnesses and the extent to which these benefits can be internalized through training. More precisely, we conceptualize a harness as an arbitrary wrapper around a base model and attempt to distill a student model from the harness's traces. Empirically we find that, even with simple scaffolds and small models, the inference-time harness significantly outperforms a distilled student. We then prove that such a gap is due to a fundamental representational limitation: inference-time harnesses can compute a closure of their per-call primitive that is -complete even when the primitive is a trivial lookup, and that no fixed-depth forward pass can represent under the widely believed conjecture that . Our theory suggests that expanding the representational capacity of the student relative to the task at hand, e.g., by enlarging the model, making the task easier, or lengthening its chain-of-thought, is necessary to close the gap, which we verify empirically. Finally, we scale to an agentic harness on competition math, where the same gap reappears. Overall, our results show that a harness confers on the base model a profound gain in representational power, one that training a same-class student on its traces cannot transfer back into the weights.
Figures & tables
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| scale | tiny | xsmall | small | s_plus | teacher | t_plus |
|---|---|---|---|---|---|---|
| 32/2/4 | 48/2/4 | 64/2/4 | 96/2/4 | 128/2/4 | 160/2/8 | |
| params | M | M | M | M | M | M |
| scale | mini | m_m1 | m_m2 | medium | m_plus | large |
| 192/3/8 | 224/3/8 | 256/3/8 | 256/4/8 | 320/4/8 | 384/6/8 | |
| params | M | M | M | M | M | M |
| reference | distilled, trace source | synthetic BT, errors from | ||||||
|---|---|---|---|---|---|---|---|---|
| base | oracle-BT | ID | OOD | random | ID | |||
| one pass, ID | — | |||||||
| one pass, OOD | — | |||||||
| with <BT> , ID | — | |||||||
| with <BT> , OOD | — | |||||||
| shape | |||||
|---|---|---|---|---|---|
| leaves | |||||
| aggregations | |||||
| calls | |||||
| median trace | k | k | k | — | M |
Knowledge Distillation
Knowledge distillation transfers useful behavior or representations from larger or specialized models into more compact or adaptable learners.
See all 829 papers