Search arXiv⌕ Search

arXiv subjects

Chunhuan Zhao

Publications and source records attributed to Chunhuan Zhao.

2 recordsLinked to original sources

Bounds on the Binary Addition Sequence Length of Block MDS Matrices

Binary addition sequence length measures the two-input XOR-gate count in combinational realizations of MDS array-code encoders and cryptographic diffusion layers. We study its joint minimum $f_{\oplus}(s,k)$ over all $s\times s$ maximum distance separable (MDS) block matrices with arbitrary $k\times k$ binary blocks and all addition sequences representing them, allowing unrestricted reuse of computed sums. For lower bounds, we write the defining equations of a shortest sequence as a linear system. Setting the auxiliary forms to zero partitions the input and output coordinates into classes, and the MDS property determines the minimum size of every class whose common value remains free. We then construct weighted auxiliary assignments satisfying the coordinate-pair equations and process them until all remaining relations hold. The MDS property bounds the required coordinate weight from below, while occurrences in the defining equations bound the same quantity from above. Refining this comparison for the individual coordinate classes gives a finite family of necessary counting inequalities. We prove $f_{\oplus}(4,k)\ge\lceil(36k+8)/5\rceil$ for $k\ge4$ and $f_{\oplus}(s,k)\ge\lceil9s^2k/[4(s+1)]\rceil$ for $s\ge5$. For $s=4,\ldots,8$, the refined lower bounds are $31,41,51,60,69$ when $k=4$ and $60,82,101,119,138$ when $k=8$. We also give upper bounds $102,129,206,166$ for $(s,k)=(5,8),(7,4),(7,8),(8,4)$, respectively.

cs.CR↗

Recovering Weights and Activations in TEE-Offloaded Models: Checkpoint Fitting and Replay Geometry

Transformer inference can exceed the memory available in a resource-constrained trusted execution environment (TEE). Offloading linear layers to an untrusted GPU exposes obfuscated weights and boundary activation streams to the host. We study what those observations reveal about private model updates and internal activations. With a public checkpoint, local fitting on the correct discrete branch and sparse support loses only the tangent component of a small update to first order. In local experiments, we estimate all 72 BERT-Base linear tensors under BiShield-TEE and $\mathcal{O}_{\mathrm{ext}}$. With conditionally aligned boundary inputs, the ButterflyCloak simulation estimates 35 weights and fits 36 attention projections functionally. In the Qwen2.5-0.5B evaluation, surrogates improve greedy answer agreement with the victim but solve fewer problems than the public parent. Without a public checkpoint, linked noiseless views of a fixed activation matrix across at least three epochs yield almost-sure recovery of activations and input keys up to a common permutation in exact arithmetic. This result applies to the continuous random-matching variant under the stated identifiability assumptions and no persistent pair. In the integer-grid controls, the same pipeline does not achieve full recovery.

cs.CR↗