Skip to content

Partial Parameter Recovery from Gemma-Style Architectures via Black-Box Queries: Identifiability and Limits

Ruijie Ma, Yi Chen, Hongbo Yu, Anyu Wang, Xiaoyun Wang

cs.CR

Abstract

Open-weight models increasingly power proprietary AI services whose weights remain confidential behind inference APIs. Even under strictly \emph{discrete token inputs} (excluding continuous internal-state oracles), public architecture enables partial parameter recovery through hosted APIs. We study black-box partial parameter recovery from nine reduced-scale Gemma-style prototypes and validate head recovery on the pretrained \texttt{google/gemma-3-270m} checkpoint (d=640,V=262,144d=640, V=262{,}144). Across all tested interfaces, the tied readout leaks vocabulary-head subspaces: Final-RMSNorm shrinks effective-head ambiguity to O(d)O(d); Gemma~2's pre-cap subspace remains recoverable through the soft cap, with pre-cap bias lowering error by 47–15,840×47\text{--}15{,}840\times over tested post-cap estimators; and Gemma~3~270M recovery reaches 10−14–10−710^{-14}\text{--}10^{-7} on FP64, 8-decimal, and FP32 log probabilities despite 1,605×1{,}605\times gain spread, while BF16 disrupts blind raw-logit width detection yet retains 99.83%–99.94%99.83\%\text{--}99.94\% held-out energy. Beyond the head, enhanced controls recover single-layer MatFormer channels (before multilayer masking) and d=4d=4 recurrent decay spectra, whereas discrete probes do not recover MoE hyperplanes and unknown basis frames block blind 4-bit snapping. Overall, these results show that black-box parameter identifiability depends jointly on the target parameter class, readout transform, and query interface.

Create a lesson