暗号化した二値ベクトルの距離計算をGPUで高速化
Batched Paillier-Based Hamming-Distance Computation over Binary Embeddings
この論文をやさしく読む
ひとことで言うと
データを暗号化したまま二つの二値ベクトルの違いを調べる処理について、GPUと事前計算を組み合わせて大量処理を速くした研究です。
何に役立つ?
考えられる用途は、二値埋め込みを使うプライバシー保護検索のクライアント処理です。暗号化と距離の復号をまとめて実行する際の実装選択を評価できます。
この研究の面白いところ
暗号演算だけでなく、デバイス上の状態を再利用して準備やデータ移動の負担を減らす設計を組み合わせています。符号化の正しさと実装性能を別々に扱っています。
どこまで分かった?
大きな高速化率は、1万個の512ビットベクトルをウォーム状態で処理した3試行の結果です。単独要求の応答時間や、初期化・転送を含む検索全体が同じ倍率で速くなることを意味しません。
v1のアブストラクトに基づくAI解説。日本語訳とは別に、用途の解釈を含みます。
アブストラクトの日本語訳
加法準同型暗号は、暗号化した二値埋め込みに対する計算を外部へ委託できるが、多倍長整数演算とデータ移動が処理量を制限することがある。本研究では、桁上がりを分離した二値符号化、テーブルに基づく暗号化、指数を縮小した復号、CUDA/CGBN演算、デバイス状態の保持、バッチ検索との統合を組み合わせたPaillier方式のクライアントを記述する。符号化の正しさを確立し、CPUおよびGPUによる四つのクライアント構成の特性を明らかにする。ルックアップ構成では、指数サイズのパラメータに280ビットを用いる。 ランダムな512ビット埋め込み1万個のバッチに対し、ウォーム状態で3回の試行を行ったところ、ルックアップGPU構成のバッチ処理スループットの中央値は、毎秒43,091件の暗号化と毎秒28,983件のハミング距離復号だった。ベクトル当たりの償却コストはそれぞれ0.0232ミリ秒と0.0345ミリ秒で、測定したCPU基準に対する倍率は453.8と200.9に相当した。これらの実装固有の結果は、暗号計算の事前計算、アクセラレータでのバッチ実行、実行時状態の保持を組み合わせることによる処理量の利点を示す。本研究は、ウォーム状態のバッチ性能と単独リクエストの遅延を区別し、初期化、転送、検索統合に残るコストを特定する。
v1の要旨から自動生成。本文の精読・人による確認は未実施。
- 初稿
- 2026-09-18(UTC)
- 最新改訂
- 2026-09-18 · v1
- 査読・掲載
- 査読状況未確認
更新履歴
- v1 2026-09-18 この版を読む
取得できた版を表示。版の更新は査読済みを意味しません。過去版の本文差分は未解析です。
原文の要旨
Additively homomorphic encryption supports outsourced computation on encrypted binary embeddings, but large-integer arithmetic and data movement can limit throughput. We describe a Paillier-based client that combines a carry-separated binary encoding, table-based encryption, reduced-exponent decryption, CUDA/CGBN arithmetic, persistent device state, and batched retrieval integration. We establish the encoding's correctness and characterize four CPU and GPU client configurations. The lookup configuration uses a 280-bit exponent-size parameter. Across 3 warm-state trials on batches of 10,000 random 512-bit embeddings, the lookup GPU configuration achieved median-batch throughputs of 43,091 encryptions/s and 28,983 Hamming- distance decodes/s. Its amortized costs were 0.0232 ms and 0.0345 ms per vector, corresponding to factors of 453.8 and 200.9 relative to the measured CPU baseline. These implementation- specific results demonstrate the throughput benefits of combining cryptographic precomputation, batched accelerator execution, and persistent runtime state. The study distinguishes warm-batch performance from isolated-request latency and identifies the remaining costs of initialization, transport, and retrieval integration.
arXiv ID: 2609.21364 / 要約の誤りについて