Efficient Ranking, Order Statistics, and Sorting under CKKS
Not on the map. Why?
Abstract (arXiv)
Fully Homomorphic Encryption (FHE) enables operations on encrypted data, making it extremely useful for privacy-preserving applications, especially in cloud computing environments. In such contexts, operations like ranking, order statistics, and sorting are fundamental functionalities often required for database queries or as building blocks of larger protocols. However, the high computational overhead and limited native operations of FHE pose significant challenges for an efficient implementation of these tasks. These challenges are exacerbated by the fact that all these functionalities are based on comparing elements, which is a severely expensive operation under encryption. Previous solutions have typically based their designs on swap-based techniques, where two elements are conditionally swapped based on the results of their comparison. These methods aim to reduce the primary computational bottleneck: the comparison depth, which is the number of non-parallelizable homomorphic comparisons in the algorithm. The current state of the art solution for sorting by Hong et al. (IEEE TIFS 2021), for instance, achieves a comparison depth of k log_k^2 N. In this paper, we address the challenge of reducing the comparison depth by shifting away from the swap-based paradigm. We present solutions for ranking, order statistics, and sorting, that achieve a comparison depth of up to 2 (constant), making our approach highly parallelizable and suitable for hardware acceleration. Leveraging the SIMD capabilities of the CKKS FHE scheme, our approach re-encodes the input vector under encryption to allow for simultaneous comparisons of all elements with each other. Experimental results show that our approach ranks a 128-element vector in approximately 5.76s, computes its argmin/argmax in 12.83s, and sorts it in 78.64s.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). First posted on arXiv 19 Dec 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 3; 2026: 3.
6 papers.
- 2025Efficient Decoding Methods for Language Models on Encrypted Datacited by 5
- 2025AgentCrypt: Advancing Privacy and (Secure) Computation in AI Agent Collaborationcited by 2
- 2025Privacy-Preserving Vertical K-Means Clusteringcited by 0
- 2026mmFHE: mmWave Sensing with End-to-End Fully Homomorphic Encryptioncited by 0
- 2026Revisiting ML Training under Fully Homomorphic Encryption: Convergence Guarantees, Differential Privacy, and Efficient Algorithmscited by 0
- 2026GoldenRetriever: Non-Interactive Homomorphic Encrypted Retrieval for Privacy-Preserving RAGcited by 0
- 2026GoldenRetriever: Non-Interactive Homomorphic Encrypted Retrieval for Privacy-Preserving RAG31 Jul 2026
- 2026Revisiting ML Training under Fully Homomorphic Encryption: Convergence Guarantees, Differential Privacy, and Efficient Algorithms27 May 2026
- 2026mmFHE: mmWave Sensing with End-to-End Fully Homomorphic Encryption23 Mar 2026
- 2025AgentCrypt: Advancing Privacy and (Secure) Computation in AI Agent Collaboration8 Dec 2025
- 2025Efficient Decoding Methods for Language Models on Encrypted Data10 Sep 2025
- 2025Privacy-Preserving Vertical K-Means Clustering10 Apr 2025