Papers
Topics
Authors
Recent
Search
2000 character limit reached

Linear Extractors Overview

Updated 14 July 2026
  • Linear extractors are deterministic linear maps that transform weak random sources into nearly uniform outputs by applying fixed matrices over finite fields.
  • They employ methods such as sparse random matrices, BCH code-based constructions, and weight-spectrum analysis to ensure minimal bias across diverse source models.
  • Practical implementations balance computational speed with accuracy, using sparse constructions for efficiency and code-based approaches for strong algebraic guarantees.

Linear extractors are randomness extractors whose extraction map is linear over a finite field or vector space. In the binary setting, the canonical form is a fixed matrix MM applied to a weak source X{0,1}nX\in\{0,1\}^n, producing Y=XMY=XM over F2\mathbb{F}_2 and aiming for YY to be ϵ\epsilon-close to uniform in statistical distance. Within this broad class fall deterministic linear transformations for independent, bit-fixing, and hidden-Markov sources; code-based binary extractors whose performance is governed by code spectra; affine and directional affine extractors over F2n\mathbb{F}_2^n; deterministic extractors for additive sources such as arithmetic progressions and generalized arithmetic progressions; and seeded lossless rank extractors over Fq\mathbb{F}_q (Zhou et al., 2012, Meneghetti et al., 2014, Gryaznov et al., 2022, Bhowmick et al., 2014, Guo et al., 15 Apr 2026).

1. Formal notion and parameters

A deterministic linear extractor is defined by a fixed binary matrix MM of size n×mn\times m, applied to a weak source X{0,1}nX\in\{0,1\}^n0 by

X{0,1}nX\in\{0,1\}^n1

with all arithmetic modulo X{0,1}nX\in\{0,1\}^n2. The extraction objective is that X{0,1}nX\in\{0,1\}^n3 be X{0,1}nX\in\{0,1\}^n4-close to the uniform distribution X{0,1}nX\in\{0,1\}^n5 in statistical distance:

X{0,1}nX\in\{0,1\}^n6

The standard parameters are X{0,1}nX\in\{0,1\}^n7 for input length, X{0,1}nX\in\{0,1\}^n8 for output length, X{0,1}nX\in\{0,1\}^n9 for min-entropy, and Y=XMY=XM0 for allowable error (Zhou et al., 2012).

In the code-based formulation, a Y=XMY=XM1 binary matrix Y=XMY=XM2 defines

Y=XMY=XM3

Each output bit is the modulo-Y=XMY=XM4 sum of some subset of the input bits. The quality measure is total-variation distance:

Y=XMY=XM5

where

Y=XMY=XM6

This formulation emphasizes that linear binary extractors are deterministic post-processors that compress biased input bits into fewer output bits while attempting to reduce residual bias (Meneghetti et al., 2014).

The literature considered here treats several source models. For independent sources, Y=XMY=XM7 has independent coordinates with arbitrary bias, and

Y=XMY=XM8

For bit-fixing sources, exactly Y=XMY=XM9 positions are uniform and independent, while the remaining F2\mathbb{F}_20 bits are arbitrary. For hidden-Markov sources, an underlying Markov chain F2\mathbb{F}_21 produces F2\mathbb{F}_22, subject to the bounded-noise condition

F2\mathbb{F}_23

which implies that sums of F2\mathbb{F}_24 bits have bias at most F2\mathbb{F}_25 (Zhou et al., 2012).

2. Sparse linear transformations and extraction from weak binary sources

A central construction uses a random binary matrix F2\mathbb{F}_26 whose entries are i.i.d. BernoulliF2\mathbb{F}_27 with

F2\mathbb{F}_28

Here “sparse” means F2\mathbb{F}_29 but YY0. A Fourier-analytic bound gives

YY1

reducing extraction analysis to the biases of nonzero linear forms of the output (Zhou et al., 2012).

For independent sources with YY2, the main asymptotic statement is that if YY3, then for such sparse random YY4,

YY5

in probability as YY6. In this sense, one can extract up to nearly YY7 uniform bits. For uniformly random YY8 with YY9, the expectation bound

ϵ\epsilon0

is obtained directly, while the sparse case is handled by a small-weight and large-weight partition of the nonzero vectors ϵ\epsilon1 (Zhou et al., 2012).

For bit-fixing sources, the rate is again ϵ\epsilon2, but the behavior is stronger: with high probability over ϵ\epsilon3, one gets ϵ\epsilon4 as soon as ϵ\epsilon5. The reason is structural: any nonzero linear form on ϵ\epsilon6 must involve at least one of the ϵ\epsilon7 uniform bits, which ensures unbiasedness (Zhou et al., 2012).

For hidden-Markov sources, the same sparse-linear framework remains effective but is no longer stated as asymptotically optimal. The extractable rate is

ϵ\epsilon8

and ϵ\epsilon9 in probability whenever

F2n\mathbb{F}_2^n0

The proofs again use the partition into small-weight and large-weight contributions (Zhou et al., 2012).

Source model Condition on output length Asymptotic guarantee
Independent source F2n\mathbb{F}_2^n1 F2n\mathbb{F}_2^n2 in probability
Bit-fixing source F2n\mathbb{F}_2^n3 With high probability, F2n\mathbb{F}_2^n4
Hidden-Markov source F2n\mathbb{F}_2^n5 F2n\mathbb{F}_2^n6 in probability

The same work also analyzes explicit matrices. If F2n\mathbb{F}_2^n7 is the generator matrix of a primitive BCH code whose row-weight distribution is asymptotically binomial, and each input bit has bias at most F2n\mathbb{F}_2^n8, then for

F2n\mathbb{F}_2^n9

the output Fq\mathbb{F}_q0 satisfies Fq\mathbb{F}_q1. The accompanying trade-off is computational: primitive BCH generator matrices are dense, with approximately Fq\mathbb{F}_q2 ones per row, so they require more computation than sparse random matrices (Zhou et al., 2012).

3. Code spectra, minimum distance, and entropy bounds

A linear extractor defined by a binary matrix Fq\mathbb{F}_q3 can be studied through the linear code it generates. If Fq\mathbb{F}_q4 generates an Fq\mathbb{F}_q5 binary linear code, then a classical minimum-distance-only bound gives

Fq\mathbb{F}_q6

where Fq\mathbb{F}_q7 is the bias of each independent input bit. This estimate depends only on the minimum distance Fq\mathbb{F}_q8 (Meneghetti et al., 2014).

The sharper bound introduced later uses the full weight distribution of the code. If Fq\mathbb{F}_q9 denotes the number of codewords of Hamming weight MM0, then

MM1

This makes the distance spectrum, not merely the minimum distance, the controlling object. A code with the same MM2 but fewer low-weight codewords has a smaller right-hand side, and when the bulk of the spectrum lies well above MM3, the improvement over the minimum-distance bound can be substantial (Meneghetti et al., 2014).

The same analysis yields a lower bound on the Shannon-entropy rate of the output. For MM4 and MM5 for the uniform distribution on MM6,

MM7

with

MM8

This converts a total-variation estimate into an entropy-rate guarantee (Meneghetti et al., 2014).

The code-spectrum viewpoint also changes code-selection criteria. Classical distance-optimal codes, including BCH codes, Reed–Solomon binary images, and some LDPC ensembles, are singled out because sparse low-weight spectra improve the bound. Numerical illustrations using the Reed–Muller MM9 and n×mn\times m0 codes show that the spectrum-based right-hand side can be orders of magnitude smaller than n×mn\times m1 for moderate n×mn\times m2 (Meneghetti et al., 2014).

Taken together with the sparse-matrix analysis, these results show two distinct mechanisms for linear extraction. Random sparse transformations rely on probabilistic structure and asymptotic bias decay, whereas fixed code-based maps are governed by algebraic invariants of the underlying code. The latter perspective is especially relevant when deterministic post-processing is required and the matrix cannot be resampled (Zhou et al., 2012, Meneghetti et al., 2014).

4. Affine, additive, and directional forms of linear extraction

Affine sources and additive sources provide a different seedless regime for linear extractors. A line source in n×mn\times m3 is the uniform distribution on an affine line

n×mn\times m4

and has min-entropy n×mn\times m5. For every n×mn\times m6 and prime power n×mn\times m7, there is an explicit deterministic extractor

n×mn\times m8

such that for every line source n×mn\times m9,

X{0,1}nX\in\{0,1\}^n00

By the XOR lemma, this extends to

X{0,1}nX\in\{0,1\}^n01

with

X{0,1}nX\in\{0,1\}^n02

The construction is based on a norm-polynomial of degree X{0,1}nX\in\{0,1\}^n03 that remains nonconstant on every affine line, reducing the field-size requirement from X{0,1}nX\in\{0,1\}^n04 in earlier work to X{0,1}nX\in\{0,1\}^n05 (Bhowmick et al., 2014).

The same polynomial-plus-Weil-bound method extends to short arithmetic progressions and to constant-dimensional generalized arithmetic progressions. The additive-source model includes arithmetic progressions, generalized arithmetic progressions, and Bohr sets, each of which generalizes affine sources. Over both X{0,1}nX\in\{0,1\}^n06 and X{0,1}nX\in\{0,1\}^n07, explicit extractors are obtained for additive sources with linear min-entropy, although the results over X{0,1}nX\in\{0,1\}^n08 require a list-decodability condition (Bhowmick et al., 2014).

Directional affine extractors strengthen standard affine extractors by requiring pseudorandomness of every nonzero directional derivative. For a function X{0,1}nX\in\{0,1\}^n09 and nonzero direction X{0,1}nX\in\{0,1\}^n10, the derivative is

X{0,1}nX\in\{0,1\}^n11

The function is an X{0,1}nX\in\{0,1\}^n12 directional affine extractor if for every nonzero X{0,1}nX\in\{0,1\}^n13 and every affine subspace X{0,1}nX\in\{0,1\}^n14 of dimension at least X{0,1}nX\in\{0,1\}^n15, the distribution X{0,1}nX\in\{0,1\}^n16 has error at most X{0,1}nX\in\{0,1\}^n17 from uniform. In the one-bit case, Gryaznov, Pudlák, and Talebanfard give an explicit triple-trace construction on X{0,1}nX\in\{0,1\}^n18 bits:

X{0,1}nX\in\{0,1\}^n19

which is a directional affine extractor with extractor dimension X{0,1}nX\in\{0,1\}^n20, output length X{0,1}nX\in\{0,1\}^n21, and bias X{0,1}nX\in\{0,1\}^n22 (Gryaznov et al., 2022).

A later explicit construction is stated as

X{0,1}nX\in\{0,1\}^n23

such that for every X{0,1}nX\in\{0,1\}^n24-dimensional affine source X{0,1}nX\in\{0,1\}^n25 and every nonzero X{0,1}nX\in\{0,1\}^n26,

X{0,1}nX\in\{0,1\}^n27

Its parameters are

X{0,1}nX\in\{0,1\}^n28

A key ingredient is a new linear somewhere condenser for affine sources based on dimension expanders (Li et al., 2023).

These directional constructions have average-case complexity consequences. If X{0,1}nX\in\{0,1\}^n29 is an X{0,1}nX\in\{0,1\}^n30 directional affine extractor with X{0,1}nX\in\{0,1\}^n31, then any strongly read-once linear branching program X{0,1}nX\in\{0,1\}^n32 of size

X{0,1}nX\in\{0,1\}^n33

computes X{0,1}nX\in\{0,1\}^n34 with advantage at most X{0,1}nX\in\{0,1\}^n35 over random guessing:

X{0,1}nX\in\{0,1\}^n36

In the later framework, if X{0,1}nX\in\{0,1\}^n37 is a X{0,1}nX\in\{0,1\}^n38-directional affine extractor, then any strongly read-once linear branching program that agrees with X{0,1}nX\in\{0,1\}^n39 on more than X{0,1}nX\in\{0,1\}^n40 fraction of inputs must have size at least X{0,1}nX\in\{0,1\}^n41 (Gryaznov et al., 2022, Li et al., 2023).

5. Rank extractors and linear-algebraic pseudorandomness over finite fields

A seeded lossless rank extractor is a family of linear maps

X{0,1}nX\in\{0,1\}^n42

such that, for each seed X{0,1}nX\in\{0,1\}^n43, the map X{0,1}nX\in\{0,1\}^n44 is an X{0,1}nX\in\{0,1\}^n45 matrix over X{0,1}nX\in\{0,1\}^n46, and for every full-rank matrix X{0,1}nX\in\{0,1\}^n47 the number of bad seeds satisfying

X{0,1}nX\in\{0,1\}^n48

is at most X{0,1}nX\in\{0,1\}^n49. Equivalently, for every X{0,1}nX\in\{0,1\}^n50-dimensional subspace X{0,1}nX\in\{0,1\}^n51,

X{0,1}nX\in\{0,1\}^n52

When only existence of one good seed is required for every X{0,1}nX\in\{0,1\}^n53, the object is called a lossless rank disperser (Guo et al., 15 Apr 2026).

Recent work gives explicit constructions in the small-field regime, where the field size depends only on the rank parameter and is independent of the ambient dimension. Over every non-prime field X{0,1}nX\in\{0,1\}^n54 of size X{0,1}nX\in\{0,1\}^n55, there exist infinitely many X{0,1}nX\in\{0,1\}^n56 for which one gets an explicit X{0,1}nX\in\{0,1\}^n57 lossless extractor with

X{0,1}nX\in\{0,1\}^n58

Over prime fields X{0,1}nX\in\{0,1\}^n59 with X{0,1}nX\in\{0,1\}^n60, a similar extractor exists with

X{0,1}nX\in\{0,1\}^n61

Over arbitrary small X{0,1}nX\in\{0,1\}^n62, including X{0,1}nX\in\{0,1\}^n63, one can build X{0,1}nX\in\{0,1\}^n64 lossless rank dispersers of size

X{0,1}nX\in\{0,1\}^n65

These are the first explicit constructions of lossless rank extractors and weak subspace designs for X{0,1}nX\in\{0,1\}^n66 over fields X{0,1}nX\in\{0,1\}^n67 with X{0,1}nX\in\{0,1\}^n68 and X{0,1}nX\in\{0,1\}^n69 non-prime (Guo et al., 15 Apr 2026).

The constructions are algebraic. One replaces classical polynomial-method constructions by analogues over a function field X{0,1}nX\in\{0,1\}^n70 of genus X{0,1}nX\in\{0,1\}^n71 with many rational places, chooses functions from suitable Riemann–Roch spaces, and evaluates them at rational places to form the extractor matrices. The losslessness argument expands X{0,1}nX\in\{0,1\}^n72 via Cauchy–Binet, uses valuations at a distinguished place X{0,1}nX\in\{0,1\}^n73, and bounds the number of bad seeds by the pole order of a nonzero determinant function. For prime fields, the construction passes through a quadratic extension and then uses explicit hitting sets for symbolic determinants of the form

X{0,1}nX\in\{0,1\}^n74

with each X{0,1}nX\in\{0,1\}^n75 of rank at most X{0,1}nX\in\{0,1\}^n76 (Guo et al., 15 Apr 2026).

A complementary Fourier-analytic framework uses X{0,1}nX\in\{0,1\}^n77-biased sets in X{0,1}nX\in\{0,1\}^n78. If X{0,1}nX\in\{0,1\}^n79, then such a set meets every codimension-X{0,1}nX\in\{0,1\}^n80 affine subspace. If X{0,1}nX\in\{0,1\}^n81, then its projectivization is a strong X{0,1}nX\in\{0,1\}^n82-blocking set in X{0,1}nX\in\{0,1\}^n83. Through these connections, explicit rank extractors yield weak subspace designs and strong blocking sets, including constructions of size X{0,1}nX\in\{0,1\}^n84 for sufficiently large non-prime fields X{0,1}nX\in\{0,1\}^n85 and X{0,1}nX\in\{0,1\}^n86 for arbitrary X{0,1}nX\in\{0,1\}^n87 via the X{0,1}nX\in\{0,1\}^n88-biased method (Guo et al., 15 Apr 2026).

6. Computational trade-offs and relation to seeded extraction

One motivation for linear extractors is implementation speed. Sparse random matrices are computationally fast, easy to implement using hardware like FPGAs, and attractive in high-speed random number generation. In block-processing mode, one partitions the input stream into blocks of length X{0,1}nX\in\{0,1\}^n89 and computes X{0,1}nX\in\{0,1\}^n90 by a matrix-vector XOR. In streaming mode, one keeps a rolling vector X{0,1}nX\in\{0,1\}^n91 and updates

X{0,1}nX\in\{0,1\}^n92

for each new bit X{0,1}nX\in\{0,1\}^n93. The total cost for an X{0,1}nX\in\{0,1\}^n94 extraction is X{0,1}nX\in\{0,1\}^n95 XORs, and with X{0,1}nX\in\{0,1\}^n96 this becomes X{0,1}nX\in\{0,1\}^n97 (Zhou et al., 2012).

The density of the matrix determines the speed trade-off. Sparse-random X{0,1}nX\in\{0,1\}^n98 has density approximately X{0,1}nX\in\{0,1\}^n99, with per-bit processing cost Y=XMY=XM00 and a simple XOR network. A primitive BCH generator matrix has density Y=XMY=XM01 and per-bit cost Y=XMY=XM02. In FPGA terms, sparse-random Y=XMY=XM03 can be implemented with Y=XMY=XM04 XOR gates, whereas BCH-based matrices require Y=XMY=XM05 gates and therefore higher area and power (Zhou et al., 2012).

These deterministic and fixed-matrix approaches sit alongside seeded extractors. A strong seeded extractor is a function

Y=XMY=XM06

such that for every distribution Y=XMY=XM07 on Y=XMY=XM08 with Y=XMY=XM09 and independent uniform seed Y=XMY=XM10,

Y=XMY=XM11

Recent constructions achieve, for all Y=XMY=XM12 and Y=XMY=XM13,

Y=XMY=XM14

with running time Y=XMY=XM15 after a one-time preprocessing step in the low-Y=XMY=XM16 regime. The same work gives an instantiation of Trevisan’s extractor with evaluation time

Y=XMY=XM17

and therefore truly linear time Y=XMY=XM18 when

Y=XMY=XM19

These seeded constructions directly yield privacy amplification protocols with communication equal to the seed length (Doron et al., 2024).

The contrast is structural. Sparse linear transformations require no external seed, no look-ahead, and no multiprecision arithmetic, while seeded extractors are defined for every source of min-entropy at least Y=XMY=XM20 and achieve strong guarantees conditioned on the seed. Within the linear-extractor landscape, the principal axes are therefore the source model, whether a seed is available, the algebraic structure of the map, and the trade-off between explicitness, extraction rate, and evaluation complexity (Zhou et al., 2012, Doron et al., 2024).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Linear Extractors.