Gecko: Fast Private Inference via Secure Public Encoder Offloading

Cheng'an Wei, Kai Chen, Yue Zhao, Congyi Li, Shenchen Zhu
8/3/2026
cs.LG

Official code: CassiniHuy/gecko-infer (1 star, Python, last commit 2026-08-01).

Abstract

Private inference protects both user inputs and server models during neural network inference, but existing solutions remain too slow for practical deployment. This motivates recent efforts to run a public encoder, such as a pretrained backbone, outside the protection boundary and evaluate only a small private predictor cryptographically.

Show full abstract

While appealing for efficiency, this design is not inherently secure: naively offloading a public encoder may create a feature-space shortcut: an extraction adversary may learn the remaining private predictor's feature-to-output mapping more easily than the original model's input-to-output behavior. We present Gecko, designed to limit this additional risk while retaining a compact encrypted predictor. We leverage a frozen backbone that contributes hierarchical features, fixed Fastfood projections that compress them, and private feature gating that prepares them for prediction. We formalize ideal independence and information-preservation conditions as design guidance, then separately evaluate component-reuse extraction attacks. Across image and audio tasks, Gecko achieves 0.4-2.2 second inference with at most 10.8 MB communication and accuracy comparable to transfer-learning baselines. Under the evaluated attacks, reusing the offloaded public encoder provides no significant advantage to model-extraction adversaries. Source code and a demo are available at https://github.com/CassiniHuy/gecko-infer.

View on arXivView PDF

Code Implementations(1)

10Python, GoAug 1, 20264 months ago

Similar Papers

Cite this paper

@article{wei2026gecko,
  title  = {Gecko: Fast Private Inference via Secure Public Encoder Offloading},
  author = {Cheng'an Wei and Kai Chen and Yue Zhao and Congyi Li and Shenchen Zhu},
  year   = {2026},
  eprint = {2608.02378},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.02378v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.02378.svg)](https://codeofpaper.com/paper/2608.02378)

Discussion