{
  "id": "2021/1343",
  "url": "https://opencryptology.org/2021/1343",
  "original_url": "https://eprint.iacr.org/2021/1343",
  "title": "A Non-heuristic Approach to Time-space Tradeoffs and Optimizations for BKW",
  "authors": [
    "Hanlin Liu",
    "Yu Yu"
  ],
  "affiliations": null,
  "abstract": "Blum, Kalai and Wasserman (JACM 2003) gave the first sub-exponential algorithm to solve the Learning Parity with Noise (LPN) problem. In particular, consider the LPN problem with constant noise  $\\mu=(1-\\gamma)/2$.  The BKW solves it with  space complexity $2^{\\frac{(1+\\epsilon)n}{\\log n}}$ and time/sample complexity $2^{\\frac{(1+\\epsilon)n}{\\log n}}\\cdot 2^{O(n^{\\frac{1}{1+\\epsilon}})}$  for small constant $\\epsilon\\to 0^+$.  We propose a variant of the BKW by tweaking Wagner's generalized birthday problem (Crypto 2002) and adapting the technique to a $c$-ary tree structure. In summary, our algorithm achieves the following:\n\n(Time-space tradeoff). We obtain the same time-space tradeoffs for LPN and LWE as those given by Esser et al. (Crypto 2018), but without resorting to any heuristics. For any $2\\leq c\\in\\mathbb{N}$, our algorithm solves the LPN problem with time/sample complexity $2^{\\frac{\\log c(1+\\epsilon)n}{\\log n}}\\cdot 2^{O(n^{\\frac{1}{1+\\epsilon}})}$ and space complexity $2^{\\frac{\\log c(1+\\epsilon)n}{(c-1)\\log n}}$, where one can use Grover's quantum algorithm or Dinur et al.'s dissection technique (Crypto 2012) to further accelerate/optimize the time complexity.\n\n\n(Time/sample optimization). A further adjusted variant of our algorithm solves the LPN problem with sample, time and space complexities all kept at $2^{\\frac{(1+\\epsilon)n}{\\log n}}$ for $\\epsilon\\to 0^+$, saving factor $2^{\\Omega(n^{\\frac{1}{1+\\epsilon}})}$ in time/sample compared to the original BKW, and the variant of Devadas et al. (TCC 2017). This benefits from a careful analysis of the error distribution among the correlated candidates, and therefore avoids repeating the same process $2^{\\Omega(n^{\\frac{1}{1+\\epsilon}})}$ times on fresh new samples.\n\n(Sample reduction) Our algorithm provides an alternative to Lyubashevsky's BKW variant (RANDOM 2005) for LPN with a restricted amount of samples. In particular, given $Q=n^{1+\\epsilon}$ (resp., $Q=2^{n^{\\epsilon}}$) samples, our\nalgorithm saves a factor of $2^{\\Omega(n)/(\\log n)^{1-\\kappa}}$ (resp., $2^{\\Omega(n^{\\kappa})}$) for constant $\\kappa \\to 1^-$ in running time while consuming roughly the same space, compared with Lyubashevsky's algorithm.\n\nWe seek to bridge the gaps between theoretical and heuristic LPN solvers, but take a different approach from Devadas et al. (TCC 2017). We exploit weak yet sufficient conditions (e.g., pairwise independence), and the analysis uses only elementary tools (e.g., Chebyshev's inequality).",
  "category": "Foundations",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A Non-heuristic Approach to Time-space Tradeoffs and Optimizations for BKW” by Hanlin Liu, Yu Yu, Cryptology ePrint Archive, Paper 2021/1343, https://eprint.iacr.org/2021/1343. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2021-10-07T11:25:48Z",
    "updated": "2022-09-08T04:09:59Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/1343.pdf",
    "sha256": "2100944f75424f708ce1a02254d4a64f3f72b6c89d1ab10b60265701bcde8824",
    "size": 357979,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/1343/versions/20240114T061328Z.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1343.pdf",
      "size": 357979,
      "sha256": "2100944f75424f708ce1a02254d4a64f3f72b6c89d1ab10b60265701bcde8824",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2021/1343/versions/20211007T174608Z.pdf",
      "captured_at": "2021-10-07T17:46:08Z",
      "label": "copy captured 2021-10-07",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20211007174608id_/https://eprint.iacr.org/2021/1343.pdf",
      "size": 336363,
      "sha256": "19e4fb5fd4dbd49fb1740bde38ac0d858578d2b2060da2a1bb9fef109a447374",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20250115070438id_/https://eprint.iacr.org/2021/1343.pdf",
      "captured_at": "2025-01-15T07:04:38Z",
      "size": 342384
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1343.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 357979
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/1343,\n      author = {Hanlin Liu and Yu Yu},\n      title = {A Non-heuristic Approach to Time-space Tradeoffs and Optimizations for BKW},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/1343},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/1343}\n}"
}
