Skip to main content

Privacy-preserving semantic search via multi-channel modular arithmetic

Project description

ZATRON

Zero-Access Transformed Retrieval Over Noise — privacy-preserving semantic search via multi-channel modular arithmetic. Search sensitive documents by meaning without exposing content to the database, the server, or even the key holder.

Install

pip install zatron

Quick start

from zatron import ModularBarcodeSystem

system = ModularBarcodeSystem(key="your-secret-key", n_channels=200)
system.fit(corpus_embeddings)                      # fit PCA + quantization

barcodes  = system.encode(corpus_embeddings, doc_ids)
query_bc  = system.encode_query(query_embedding)
distance  = system.compare(query_bc, barcodes[0])  # search in modular space

A neural attacker trained on 80,000 labeled pairs recovers similarity from unprotected signals almost perfectly (rho = 0.90, AUC = 0.999) and gets nothing from ZATRON barcodes (rho = 0.00, AUC = 0.50).

MIT licensed. Method covered by a pending US provisional patent.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zatron-0.1.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zatron-0.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file zatron-0.1.0.tar.gz.

File metadata

  • Download URL: zatron-0.1.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for zatron-0.1.0.tar.gz
Algorithm Hash digest
SHA256 90dbf22b23e15a9ef1857aeb85090a0d7a1b80e427de3ee1573b525b1a016fb6
MD5 9158933f4fbec2547ffa94f514156b40
BLAKE2b-256 2f8451c73a64445c94ca643f2220a820996e652d85d235a5df6dd9ce4c9bc4e2

See more details on using hashes here.

File details

Details for the file zatron-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zatron-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for zatron-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f1d1b965b34977b5a7d68ddd1b58396078d4cd407c2c509de1f92146b2899e1
MD5 0624b8d0385083037be4f9c8de0716dd
BLAKE2b-256 914d3ee8b886cb5296ba76882dfba0ef3a52ed565e015cd3919f5b70243f0d70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page