{
  "id": "2024/1127",
  "url": "https://opencryptology.org/2024/1127",
  "original_url": "https://eprint.iacr.org/2024/1127",
  "title": "Curl: Private LLMs through Wavelet-Encoded Look-Up Tables",
  "authors": [
    "Manuel B. Santos",
    "Dimitris Mouris",
    "Mehmet Ugurbil",
    "Stanislaw Jarecki",
    "José Reis",
    "Shubho Sengupta",
    "Miguel de Vega"
  ],
  "affiliations": null,
  "abstract": "Recent advancements in transformers have revolutionized machine learning, forming the core of Large language models (LLMs). However, integrating these systems into everyday applications raises privacy concerns as client queries are exposed to model owners. Secure multiparty computation (MPC) allows parties to evaluate machine learning applications while keeping sensitive user inputs and proprietary models private. Due to inherent MPC costs, recent works introduce model-specific optimizations that hinder widespread adoption by machine learning researchers. CrypTen (NeurIPS'21) aimed to solve this problem by exposing MPC primitives via common machine learning abstractions such as tensors and modular neural networks. Unfortunately, CrypTen and many other MPC frameworks rely on polynomial approximations of the non-linear functions, resulting in high errors and communication complexity.\n\nThis paper introduces Curl, an easy-to-use MPC framework that evaluates non-linear functions as lookup tables, resulting in better approximations and significant round and communication reduction. Curl exposes a similar programming model as CrypTen and is highly parallelizable through tensors. At its core, Curl relies on discrete wavelet transformations to reduce the lookup table size without sacrificing accuracy, which results in up to $19\\times$ round and communication reduction compared to CrypTen for non-linear functions such as logarithms and reciprocals. We evaluate Curl on a diverse set of LLMs, including BERT, GPT-2, and GPT Neo, and compare against state-of-the-art related works such as Iron (NeurIPS'22) and Bolt (S&P'24) achieving at least $1.9\\times$ less communication and latency.\n\nFinally, we resolve a long-standing debate regarding the security of widely used probabilistic truncation protocols by proving their security in the stand-alone model. This is of independent interest as many related works rely on this truncation style.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Curl: Private LLMs through Wavelet-Encoded Look-Up Tables” by Manuel B. Santos, Dimitris Mouris, Mehmet Ugurbil, Stanislaw Jarecki, José Reis, Shubho Sengupta, Miguel de Vega, Cryptology ePrint Archive, Paper 2024/1127, https://eprint.iacr.org/2024/1127. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-07-10T22:22:00Z",
    "updated": "2024-09-18T14:56:26Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/1127.pdf",
    "sha256": "dc930fdb3219c989106f96eb9ae1f00f28aae16ec5d17eef0c5421eb4f241c1e",
    "size": 745084,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/1127/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/2024/1127.pdf",
      "size": 745084,
      "sha256": "dc930fdb3219c989106f96eb9ae1f00f28aae16ec5d17eef0c5421eb4f241c1e",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1127.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 745084
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260304131334id_/https://eprint.iacr.org/2024/1127.pdf",
      "captured_at": "2026-03-04T13:13:34Z",
      "size": 726824
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/1127,\n      author = {Manuel B. Santos and Dimitris Mouris and Mehmet Ugurbil and Stanislaw Jarecki and José Reis and Shubho Sengupta and Miguel de Vega},\n      title = {Curl: Private LLMs through Wavelet-Encoded Look-Up Tables},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1127},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/1127}\n}"
}
