cs.CRApr 14, 2026

SpanKey: Dynamic Key Space Conditioning for Neural Network Access Control

Authors: WenBin Yan

Organizations: University of Colorado Boulder

Abstract

SpanKey is a lightweight way to gate inference without encrypting weights or chasing leaderboard accuracy on gated inference. The idea is to condition activations on secret keys. A basis matrix BB defines a low-dimensional key subspace Span(B)Span(B); during training we sample coefficients αα and form keys k=α⊤Bk=α^\top B, then inject them into intermediate activations with additive or multiplicative maps and strength γγ. Valid keys lie in Span(B)Span(B); invalid keys are sampled outside that subspace. We make three points. (i) Mechanism: subspace key injection and a multi-layer design space. (ii) Failure mode: key absorption, together with two analytical results (a Beta-energy split and margin-tail diagnostics), explains weak baseline separation in energy and margin terms -- these are not a security theorem. iii) Deny losses and experiments: Modes A--C and extensions, with CIFAR-10 ResNet-18 runs and MNIST ablations for Mode B. We summarize setup and first-order analysis, injectors, absorption, deny losses and ablations, a threat discussion that does not promise cryptography, and closing remarks on scale. Code: https://github.com/mindmemory-ai/dksc

Figures & tables

Explore similar work

CardsList
  1. Keyless Attention: Value-Space Routing and Value-Only Caching for Efficient Transformers

    Jun 20, 2026Xin GaoTransformer InferenceKV Caching

  2. Attention via Black-Box Vector Search

    Oct 7, 2026Stepan Zharkov, Krish Singal, Ashwin Padaki +1Attention ApproximationEfficient Attention