Lune

CCS2022Top-tier venue

Secret-Shared Joins with Multiplicity from Aggregation Trees

Saikrishna Badrinarayanan, Sourav Das, Gayathri Garimella, Srinivasan Raghuraman, Peter Rindal

Abstract

We present novel protocols to compute SQL-like join operations on secret shared database tables with non-unique join keys. Previous approaches to the problem had the restriction that the join keys of both the input tables must be unique or had quadratic overhead. Our work lifts this restriction, allowing one or both of the secret shared input tables to have an unknown and unbounded number of repeating join keys while achieving efficient O(n log n) asymptotic communication/computation and O(log n) rounds of interaction, independent of the multiplicity of the keys. We present two join protocols, Π Join-OM and Π Join-MM . The first, Π Join-OM is optimized for the case where one table has a unique primary key while the second, Π Join-MM is for the more general setting where both tables contain duplicate keys. Both protocols require O(n log n) time and O(log n) rounds to join two tables of size n. Our framework for computing joins requires an efficient sorting protocol and generic secure computation for circuits. We concretely instantiate our protocols in the honest majority three-party setting. Our join protocols are built around an efficient method to compute structured aggregations over a secret shared input vector V ∈ D n . If the parties have another secret-shared vector of control bits B ∈ 0, 1 n to partition V into sub-vectors (that semantically relates to the join operations). A structured aggregation computes a secret shared vector V ∈ D n where every subvector (V b , ..., V e ) (defined by the control bits) is aggregated as V i = V b ... V i for i ∈ b, ..., e according to some user-defined operator . Critically, the b, e indices that partition the vector are secret. It's trivial to compute aggregations by sequentially processing the input vector and control bits. This would require O(n) rounds and would be very slow due to network latency. We introduce Aggregation Trees as a general technique to compute aggregations in O(log n) rounds. For our purpose of computing joins, we instantiate ∈ copy previous value, add, but we believe that this technique is quite powerful and can find applications in other useful settings.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Differentially Oblivious Multi-way Join cites OBLIVIATOR: OBLIVIous Parallel Joins and other OperATORs in Shared Memory Environments
  • Practical Multi-party Private Set Intersection from Symmetric-Key Techniques cites Fast Private Set Intersection from Homomorphic Encryption
  • Practical Multi-party Private Set Intersection from Symmetric-Key Techniques cites Efficient Batched Oblivious PRF with Applications to Private Set Intersection
  • Fast Private Set Intersection from Homomorphic Encryption cites Efficient Batched Oblivious PRF with Applications to Private Set Intersection
  • Relational Algorithms for Top-k Query Evaluation cites ABY3: A Mixed Protocol Framework for Machine Learning
  • XONN: XNOR-based Oblivious Deep Neural Network Inference cites ABY3: A Mixed Protocol Framework for Machine Learning
  • ORQ: Complex Analytics on Private Data with Strong Security Guarantees cites OBLIVIATOR: OBLIVIous Parallel Joins and other OperATORs in Shared Memory Environments
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Relational Algorithms for Top-k Query EvaluationQichen Wang, Qiyao Luo, Yilei WangSIGMOD 2024 · 5 citations
  2. ORQ: Complex Analytics on Private Data with Strong Security GuaranteesEli Baum, Sam Buxbaum, Nitin Mathai, Muhammad Faisal et al.SOSP 2025 · 4 citations
  3. Jodes: Efficient Oblivious Join in the Distributed SettingYilei Wang, Xiangdong Zeng, Sheng Wang, Feifei LiVLDB 2025 · 1 citation
  4. Differentially Oblivious Multi-way JoinZhiang Wu, Wei Dong, Xiao HuSIGMOD 2026
  5. OBLIVIATOR: OBLIVIous Parallel Joins and other OperATORs in Shared Memory EnvironmentsApostolos Mavrogiannakis, Xian Wang, Ioannis Demertzis, Dimitrios Papadopoulos et al.USENIX Security 2025

Builds on11

  1. ABY3: A Mixed Protocol Framework for Machine LearningPayman Mohassel, Peter RindalCCS 2018 · 898 citations
  2. Fast Private Set Intersection from Homomorphic EncryptionHao Chen, Kim Laine, Peter RindalCCS 2017 · 446 citations
  3. Efficient Batched Oblivious PRF with Applications to Private Set IntersectionVladimir Kolesnikov, Ranjit Kumaresan, Mike Rosulek, Ni TrieuCCS 2016 · 429 citations
  4. XONN: XNOR-based Oblivious Deep Neural Network InferenceM. Sadegh Riazi, Mohammad Samragh, Hao Chen, Kim Laine et al.USENIX Security 2019 · 314 citations
  5. Practical Multi-party Private Set Intersection from Symmetric-Key TechniquesVladimir Kolesnikov, Naor Matania, Benny Pinkas, Mike Rosulek et al.CCS 2017 · 247 citations

Related papers

  1. More Efficient Secret-Shared Joins with Multiplicity via Oblivious Sort ExpansionXiaoxin Du, Xiaojie Guo, Pinzhi Chen, Tong Li et al.CCS 2026
  2. Fast Database Joins and PSI for Secret Shared DataPayman Mohassel, Peter Rindal, Mike RosulekCCS 2020 · 42 citations
  3. Secure Sorting and Selection via Function Secret SharingAmit Agarwal, Elette Boyle, Nishanth Chandran, Niv Gilboa et al.CCS 2024 · 5 citations
  4. Secure Statistical Analysis on Multiple Datasets: Join and Group-ByGilad Asharov, Koki Hamada, Ryo Kikuchi, Ariel Nof et al.CCS 2023
  5. Secure Join Operations in Multi-Identifier Databases: Performance and PracticalityWen-Jie Lu, Yongchuan Niu, Yongjun Zhao, Wei Dai et al.VLDB 2026
Dusk over the sea between two cliffs drawn in fine vertical lines