GroupCover: A Secure, Efficient and Scalable Inference Framework for On-device Model Protection based on TEEs

Zheng Zhang, Na Wang, Ziqi Zhang, Yao Zhang, Tianyi Zhang, Jianwei Liu, Ye Wu

TL;DR

Existing methods for protecting AI models on edge devices are surprisingly leaky, allowing attackers to recover up to 97% of a model's logic. GroupCover fixes this by using "mutual covering"—a technique that blends dissimilar neural network components together—to achieve near-perfect security with less than 19% performance overhead and zero accuracy loss.

What Problem Does This Paper Address?

Training deep neural networks (DNNs) is incredibly expensive, making the resulting model weights valuable intellectual property (IP). When companies deploy these models to "edge" devices (like smartphones or autonomous vehicles), they face a dilemma: how do you run the model quickly without letting the device owner steal the weights?

The industry standard is to use Trusted Execution Environments (TEEs)—secure "black boxes" inside a processor. However, TEEs are computationally weak. To achieve high performance, developers "offload" heavy math to the GPU. Since the GPU is "untrusted" (outside the secure black box), developers use model obfuscation: they scramble the weights before sending them to the GPU, then unscramble the results back inside the TEE.

Threat model illustrating how adversaries exploit obfuscated models via similarity and strategy leakage.

The authors identify a fatal flaw in current obfuscation techniques: the fragility of randomness. Most current methods only shuffle or slightly scale weights. Because neural network layers (kernels) follow predictable statistical patterns, an attacker can use statistical analysis to "un-shuffle" the model, effectively stealing the IP.

Methods

The researchers propose GroupCover, a framework designed to make obfuscated weights statistically indistinguishable from random noise while remaining mathematically reversible.

  1. Reverse Clustering: Instead of grouping similar items, GroupCover identifies convolution kernels that are the most dissimilar (using maximum cosine distance).
  2. Mutual Covering: It takes these dissimilar kernels and combines them using a random linear transformation (a matrix $A$). By mixing "opposite" statistical signatures, the kernels "cover" each other, resulting in a distribution that looks like a generic, public model or random noise.
  3. Random Permutation: The entire weight matrix is then shuffled to break any remaining structural cues.
  4. Secure Inference: During runtime, the GPU performs the heavy linear computations on these "covered" weights. The TEE then uses a secret recovery key (the inverse matrix $A^{-1}$) to instantly restore the authentic output.

This approach is "homomorphic," meaning the math works out such that $f(obfuscated\_weight) = obfuscated\_result$, which can then be cleaned up inside the secure enclave.

Datasets

The authors evaluated GroupCover across several standard benchmarks and architectures to ensure it generalizes well:

  • Datasets: STL10, CIFAR10, and CIFAR100.
  • Architectures: AlexNet, ResNet18, ResNet50, and VGG16.
  • Reference Model: They used ImageNet pre-trained models as the "public" knowledge base that an attacker would use to try and reverse-engineer the secret model.

Key Insights and Ideas

  • The "Atomicity" Trap: Previous defenses failed because they treated individual convolution kernels as "atoms" that were moved but not changed. GroupCover’s "aha moment" is that you must break the internal statistical signature of the kernel itself by mixing it with others.
  • Efficiency vs. Security: Cryptographic solutions (like Multi-Party Computation) are secure but can be 1000x slower. GroupCover finds a "sweet spot" by using simple linear algebra that GPUs excel at, providing security comparable to a total "black box" without the massive speed penalty.
  • Scalability: Unlike some methods that require hours of Reinforcement Learning to find an obfuscation strategy for a single device, GroupCover’s preprocessing takes only a few seconds.

Key Results

  • Security: While previous state-of-the-art methods allowed attackers to recover 97% of a model's functionality, GroupCover reduced the attack success rate to levels identical to "Black-box" protection (where the attacker has no access to weights at all). This represents a 3x improvement in defense effectiveness.
  • Performance: GroupCover introduces less than 19% computational overhead compared to a totally unprotected model.
  • Accuracy: The framework maintains negligible accuracy loss (~0.01%), which is critical for production environments where even a 1% drop is unacceptable.
  • Statistical Stealth: Under t-SNE visualization, GroupCover’s obfuscated kernels showed no detectable patterns, successfully hiding the "fingerprints" of the original model.
Comparison of GroupCover against existing schemes across accuracy, efficiency, security, and pre-cost.

Limitations and Future Work

The primary bottleneck identified is communication overhead. In their tests, 67.3% of the execution time was spent simply moving data between the TEE and the GPU via the network interface/RPC framework.

The authors suggest that future work should focus on optimizing the communication stack between secure enclaves and accelerators. Additionally, while GroupCover protects against model-stealing via weight analysis, it does not explicitly address side-channel attacks (like measuring power consumption or timing) which remain a separate challenge for TEE-based systems.

Summary updated

BibTeX
@inproceedings{zhang2024groupcover,
  author = {Zheng Zhang and Na Wang and Ziqi Zhang and Yao Zhang and Tianyi Zhang and Jianwei Liu and Ye Wu},
  title = {{GroupCover: A Secure, Efficient and Scalable Inference Framework for On-device Model Protection based on TEEs}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=4mU6LNMaIu},
}
Figure