← Lab /Crypto & theory

Random linear codes achieve near-optimal discrepancy, matching unstructured codes

Random linear codes have discrepancy close to optimal, enabling list-decoding and zero-error list-recovery above capacity with high probability

Crypto & theory arXiv 23 Jun 2026 Theory Theory

Published as “Discrepancy for Random Linear Codes”

Why it matters

The results give a concrete way to build secret-sharing schemes that are both efficient (linear thresholds) and provably secure against balanced local leakage, which was previously impossible below the n/2 barrier.

Summary

Random linear codes achieve essentially the same intersection guarantees as unstructured random codes for both list-decoding and zero-error list-recovery above capacity. Specifically, with probability 1-q−O(ηn) a random linear code of rate 1-(1/n)log_q|B|+η has |C∩B_z| = (1±q−O(ηn))|C|·|B|/qn for every translate B_z, and similarly for all α-Fourier-concentrated rectangles. These discrepancy guarantees also yield linear ramp secret-sharing schemes whose privacy and reconstruction thresholds are linear in n with a gap ≈log q·n, beating the previous n/2 barrier. The evidence consists of two general discrepancy theorems proved via a second-moment analysis, with explicit high-probability bounds.

What they found 2

  1. Random linear codes have near-optimal discrepancy for all translates of any fixed set.

    “Theorem 1.1 (Informal; see Theorem 2.4). For any constant prime power q and every n ∈N the following holds. Let B ⊆Fn q be nonempty, and for z ∈Fn q define Bz := z + B. Let β := 1 -1 n logq |B|, and fix η ∈(0, 1 -β). Let C be a random linear code of rate R = β + η. Then, with probability at least 1 -q-Ω(ηn), ∀z ∈Fn q , |δC,Bz| ≤q-Ω(ηn).”

  2. Existence of linear ramp secret-sharing schemes with linear thresholds and resilience against balanced leakage.

    “Theorem 1.3 (Informal version; see Theorems 6.6 and 6.15 and Corollary 6.16). Fix an arbitrary prime q ≥11 and an arbitrary η ∈(0, 2 log q). Then, for all sufficiently large n there exists an n-party linear ramp secret sharing scheme over Fq with reconstruction and privacy thresholds trec and tpriv satisfying (η -o(1)) n ≤tpriv < trec ≤ η + log q + o(1) n that is resilient against all balanced leakage functions.”

Caveats 1

  • The list-recovery and leakage applications over prime fields hold under moderate-growth conditions on q, for example q ≤n1/5-o(1).

What’s new here 4

  • Two general discrepancy theorems for random linear codes: one for all translates of a fixed set, another for large families of Fourier-pseudorandom sets.
  • Demonstration that random linear codes meet the random-code benchmark for list-decoding above capacity for every Hamming ball simultaneously.
  • Extension of the above-capacity guarantee to zero-error list-recovery over prime fields using Fourier concentration of combinatorial rectangles.
  • Construction of leakage-resilient linear ramp secret-sharing schemes with thresholds linear in n and a gap of only ~log q·n, improving over prior n/2 limits.