{
  "id": "2023/852",
  "url": "https://opencryptology.org/2023/852",
  "original_url": "https://eprint.iacr.org/2023/852",
  "title": "Revisiting Oblivious Top-$k$ Selection with Applications to Secure $k$-NN Classification",
  "authors": [
    "Kelong Cong",
    "Robin Geelen",
    "Jiayi Kang",
    "Jeongeun Park"
  ],
  "affiliations": null,
  "abstract": "An oblivious Top-$k$ algorithm selects the $k$ smallest elements from $d$ elements while ensuring the sequence of operations and memory accesses do not depend on the input. In 1969, Alekseev proposed an oblivious Top-$k$ algorithm with complexity $O(d \\log^2{k})$, which was later improved by Yao in 1980 for small $k \\ll \\sqrt{d}$.\n\nIn this paper, we revisit the literature on oblivious Top-$k$ and propose another improvement of Alekseev's method that outperforms both for large $k = \\Omega(\\sqrt{d})$. Our construction is equivalent to applying a new truncation technique to Batcher's odd-even sorting algorithm. In addition, we propose a combined network to take advantage of both Yao's and our technique that achieves the best concrete performance, in terms of the number of comparators, for any $k$. To demonstrate the efficiency of our combined Top-$k$ network, we implement a secure non-interactive $k$-nearest neighbors classifier using homomorphic encryption as an application. Compared with the work of Zuber and Sirdey (PoPETS 2021) where oblivious Top-$k$ was realized with complexity $O(d^2)$, our experimental results show a speedup of up to 47 times (not accounting for difference in CPU) for $d = 1000$.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Revisiting Oblivious Top-$k$ Selection with Applications to Secure $k$-NN Classification” by Kelong Cong, Robin Geelen, Jiayi Kang, Jeongeun Park, Cryptology ePrint Archive, Paper 2023/852, https://eprint.iacr.org/2023/852. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2023-06-06T15:27:58Z",
    "updated": "2025-04-09T08:36:49Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/852.pdf",
    "sha256": "38a3a80640e3333f6b87e2db6829aaa1b2c49909ced23c2347f469fecce0f5cf",
    "size": 589151,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/852/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/852.pdf",
      "size": 589151,
      "sha256": "38a3a80640e3333f6b87e2db6829aaa1b2c49909ced23c2347f469fecce0f5cf",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2023/852/versions/20240422T161904Z.pdf",
      "captured_at": "2024-04-22T16:19:04Z",
      "label": "copy captured 2024-04-22",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240422161904id_/https://eprint.iacr.org/2023/852.pdf",
      "size": 602684,
      "sha256": "0fd622e60f7a275fc8a1bc470e54a6f2e3be3d022cbe4313a8cd44fa69e1d580",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2023/852/versions/20230609T124714Z.pdf",
      "captured_at": "2023-06-09T12:47:14Z",
      "label": "copy captured 2023-06-09",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20230609124714id_/https://eprint.iacr.org/2023/852.pdf",
      "size": 524583,
      "sha256": "d602fdc988659cd52dab75f355b13fdf759db6f5729a7ec5b235f6f741aee21e",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/852.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 589151
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251231071156id_/https://eprint.iacr.org/2023/852.pdf",
      "captured_at": "2025-12-31T07:11:56Z",
      "size": 586109
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/852,\n      author = {Kelong Cong and Robin Geelen and Jiayi Kang and Jeongeun Park},\n      title = {Revisiting Oblivious Top-$k$ Selection with Applications to Secure $k$-NN Classification},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/852},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/852}\n}"
}
