Manuscript Offprint

arXiv:2609.01106

Hints Help But Do They Teach? Evaluating Skills Transfer in Code Generation

Will Badr

Hints Help. But Do They Teach? Testing Skill Transfer in Code Generation

Will Badr

scpg0807@leeds.ac.uk

Abstract

When a hint turns a failing generated program into a passing one, does it supply missing information or help the model reach a solution it could already produce? We test these explanations on HumanEval+ and MBPP+ with executable evaluation. For Qwen2.5-3B-Instruct, an adaptive relevant-hint procedure rescues 36 of 79 selected failures; one unrelated hint rescues 19, while eight unhinted samples solve 46 and cover 31 of the 36 hint rescues. Phi-3.5-mini reproduces this pattern: 42 of 101 failures are rescued by relevant hints, 17 by an unrelated hint, and 57 by unhinted sampling, which covers 36 of the 42 rescues. Because the hint procedures use different attempt budgets, their difference does not isolate a semantic effect. Mechanistic tests on Qwen find a stable activation direction shared by relevant and unrelated hints. Persistent addition is associated with 14 rescues and 18 failures, with no detected net accuracy change, while the estimated advantage of learned low-rank interventions remains positive but imprecise. Full textual specifications solve 22 of 24 context-defined problems, compared with 5–11 for the tested virtual-KV prefixes. Post-generation hidden-state probes transfer across benchmarks with pooled AUROC 0.806 and 0.780, although their top-one selection advantage over token confidence is statistically unresolved. Overall, the adaptive relevant-hint procedure rescues failures under the implemented conditions, but most rescues are already accessible through sampling; the tested internal interventions do not establish task-general capability transfer.

References (38)