Search arXiv⌕ Search

arXiv subjects

Tanmay Shailesh Joshi

Publications and source records attributed to Tanmay Shailesh Joshi.

2 recordsLinked to original sources

FROST: A Free-Energy Framework for Reducing Capability Transfer Under Black-Box Querying

Frontier model APIs face a growing risk: black-box querying can turn outputs into supervision for downstream student models. We introduce FROST, a teacher-side antidistillation framework that formulates defended generation as a constrained free-energy minimization problem, Gibbs-reweighting the teacher distribution to suppress outputs with high downstream learning value. FROST combines (i) an anti-copying energy that scores trace reusability via attention-transport thermodynamic length in proxy students, (ii) a KL trust region that keeps defended decoding close to the nominal teacher, and (iii) a stateless, prompt-local design requiring no telemetry or identity signals. Against a DeepSeek-R1-Distill-Qwen-7B teacher and three attacker students across reasoning, knowledge, and code benchmarks, FROST reduces the defended-normalized Capability Transfer Rate $\mathrm{CTR}_Q$ by 27.0-38.2% over nominal decoding even when the evaluated attacker family is excluded from the proxy ensemble (the deployment-relevant held-out setting) and by 43.2% for the matched-proxy Llama-3.1-8B attacker (trace-rich, $B=10^5$). A separate sweep finds comparable reductions across four teachers spanning 7B-27B parameters, and a matched-trace diagnostic confirms the geometric signal predicts learnability beyond length and surface structure.

cs.LG↗

Causal Syntax Circuits in CodeLMs: Budget and Probe Decide What Looks Localised

Code models write Python when the prompt does not say which language to use. We ask a mechanistic question about that habit: is it produced by a small, findable group of components inside the model? We run one pipeline---mean ablation, activation patching, greedy circuit extraction, a random-control significance test, and activation steering---over 55 model-language settings spanning ten open code models (five base and five instruction-tuned), three target languages (Rust, C#, PHP), two prompt suites, and two component budgets. We report five findings. First, the preference is large, grows with model size, and survives instruction tuning: it is larger on every instruction-tuned checkpoint than on its base version, by 12% on average. Second, its measured size is mostly a property of the probe; replacing our aligned prompts with XLCoST parallel functions takes the same measurement on the same models from about 1.6 to about 0.01. Third, whether the preference looks localised depends on how many components the search may keep: with a budget of 12, 1 of 15 settings yields a circuit that beats size-matched random controls after multiple-comparison correction, and with a budget of 40, 6 of 15 do. Fourth, interventions that a smaller-budget study reports as uniformly failing do sometimes succeed: patching makes a Python prompt prefer target syntax in 2 of 45 settings, and steering changes the most likely next token in 9 of 45. Fifth, every circuit whose effect is significant but points away from the target language comes from a setting where circuit extraction failed, which makes such results a diagnostic rather than a phenomenon. The practical lesson is that a claim about whether a behaviour is localised can turn on analysis choices that papers rarely report. We release the full grid so those choices can be varied.

cs.LG↗