Papers
Topics
Authors
Recent
Search
2000 character limit reached

BiD Codes: Unified Algebraic Code Constructions

Updated 16 January 2026
  • BiD codes are binary abelian codes defined by the row span of Kronecker powers of a 3×3 binary kernel, unifying Berman codes, their duals, and intersections.
  • They achieve competitive error-correction performance with a normalized distance exponent of approximately 0.543, offering denser rate–distance tradeoffs than Reed–Muller codes.
  • Specialized decoding algorithms, including recursive subproduct and belief-propagation methods, enable near-ML performance with quasi-linear complexity at practical block lengths.

BiD codes, short for Berman–intersection–dual Berman codes, are a recently introduced family of binary abelian codes defined via the row span of Kronecker powers of a 3×3 binary kernel. These codes unify and generalize constructions central to algebraic coding—namely Berman codes, their duals, and their intersections—with direct implications for error correction on memoryless channels, distributed computation, and algebraic code structure. In the context of gradient coding theory, "BiD codes" may also denote codes constructed from Balanced Incomplete Block Designs (BIBDs) and their generalizations, which possess combinatorial and probabilistic structure optimized for straggler mitigation in distributed systems. This entry focuses on algebraic BiD codes and their principal properties, with forward references to related combinatorial and bidirectional distance profile codes only for nomenclature clarity.

1. Algebraic Construction: 3×3 Kernel and Abelian Code Families

Let A3F23×3A_3 \in \mathbb{F}_2^{3 \times 3} be the full-rank binary matrix

A3=(111 110 101)A_3 = \begin{pmatrix} 1 & 1 & 1 \ 1 & 1 & 0 \ 1 & 0 & 1 \end{pmatrix}

The mm-fold Kronecker power AN=A3mA_N = A_3^{\otimes m}, with N=3mN = 3^m, serves as the foundational structure for BiD codes. Rows of ANA_N are indexed by w{0,1,,m}w \in \{0,1,\dots,m\} and each has weight 2w3mw2^w3^{m-w} for ww times weight-2 rows and mwm-w times weight-3 rows in the tensor product. The multiplicity of rows of weight 2w3mw2^w3^{m-w} is exactly (mw)2w\binom{m}{w}2^w.

Given W{0,1,,m}W \subseteq \{0,1,\dots,m\}, the associated abelian code is

C(m,W)=spanF2{rows of AN:row weight=2w3mw,  wW}C(m,W) = \mathrm{span}_{\mathbb{F}_2}\{ \text{rows of } A_N : \text{row weight}=2^w3^{m-w},\;w\in W \}

The dimension of C(m,W)C(m,W) is wW(mw)2w\sum_{w \in W} \binom{m}{w}2^w. Its dual is C(m,W)=C(m,Wc)C(m,W)^\perp = C(m, W^c) with Wc={0,,m}WW^c = \{0,\dots,m\}\setminus W, so parity checks arise from the complementary row subcollection.

Berman codes and dual Berman codes correspond respectively to C(m,{r+1,,m})C(m,\{r+1,\dots,m\}) and C(m,{0,,r})C(m,\{0,\dots,r\}). The Berman–intersection–dual Berman ("BiD") code with parameters 0r1r2m0 \leq r_1 \leq r_2 \leq m is

BiD(m,r1,r2)=C(m,{r1,r1+1,,r2})=Berr11(m)Berr2(m)=w=r1r2C(m,{w})\mathrm{BiD}(m, r_1, r_2) = C(m, \{r_1, r_1+1, \dots, r_2\}) = \text{Ber}_{r_1-1}(m) \cap \text{Ber}_{r_2}(m)^\perp = \bigoplus_{w=r_1}^{r_2}C(m,\{w\})

with dimension k=w=r1r2(mw)2wk = \sum_{w=r_1}^{r_2} \binom{m}{w}2^w (Dash et al., 14 Jul 2025).

2. Parameters, Distance Bounds, and Weight Spectra

For BiD(m,r1,r2)\mathrm{BiD}(m, r_1, r_2) of length n=3mn=3^m, generator rows have only m+1m+1 possible weights {2w3mw:w=r1,,r2}\{2^w3^{m-w} : w = r_1,\dots,r_2\} with explicit multiplicity. Known bounds and exact values for minimum distance include:

  • BiD(m,1,1)\mathrm{BiD}(m,1,1): dmin=43m2d_\mathrm{min} = 4 \cdot 3^{m-2}.
  • BiD(m,m1,m1)\mathrm{BiD}(m,m-1,m-1): dmin=32m2d_\mathrm{min} = 3 \cdot 2^{m-2}.
  • General bound: dmin[BiD(m,r1,r2)]max{4r13mr1r2,  3mr22r1+r2m}d_\mathrm{min}[\mathrm{BiD}(m, r_1, r_2)] \geq \lceil \max\{ 4^{r_1}3^{m-r_1-r_2},\; 3^{m - r_2}2^{r_1+r_2-m} \} \rceil

As mm \to \infty, for fixed rate RR and r1,r2(2/3)mr_1,r_2 \sim (2/3)m, the normalized distance exponent satisfies

limmlogdminlognlog6log270.543\lim_{m \to \infty} \frac{\log d_\mathrm{min}}{\log n} \geq \frac{\log 6}{\log 27} \approx 0.543

surpassing the $0.5$ exponent achieved by Reed–Muller (RM) codes.

These codes fill out a denser set of rate–distance tradeoff points at practical blocklengths than RM codes and their variants (Dash et al., 14 Jul 2025, Jain et al., 14 Jan 2026).

3. Decoding Algorithms: Algebraic and Inference Approaches

For first-order BiD codes (m,1,1)(m,1,1), fast maximum-likelihood (ML) and max-log-MAP decoding can be implemented via recursive subproduct code algorithms. Let c(m,1,1)c \in (m,1,1) correspond to data (d,a)(d, a) with d(m1,1,1)d \in (m-1,1,1) and aF22a \in \mathbb{F}_2^2. Decoding proceeds by recursively decoding dd after soft-marginalizing over the (a1,a2)(a_1, a_2) parameters. The complexity is O(n1.26)O(n^{1.26}) for n=3mn = 3^m (Jain et al., 14 Jan 2026).

Second-order BiD codes (m,2,2)(m,2,2) exploit a large set of explicit weight-6 parity checks as well as an algebraic "projection" property (in the sense of RM decoding), allowing the design of a belief-propagation decoder. The factor graph features 3m3^m variables, m2m23m1m \cdot 2^{m-2}3^{m-1} degree-6 check nodes, and projection-based generalized check nodes. Iterative message passing (sum-product for degree-6 nodes, specialized algorithms for projections) yields block error rate within 1\approx 1 dB of ML at moderate blocklengths, with per-iteration complexity O(N1.63logN)O(N^{1.63} \log N) (Jain et al., 14 Jan 2026).

4. Performance: Tradeoffs and Empirical Results

Simulation studies, primarily at n=243n=243 (m=5m=5), establish that BiD codes nearly match or slightly outperform RM, RM–Polar, and CRC-aided Polar codes under ML and near-ML decoding on the binary-input AWGN and erasure channels. For example, BiD(5,2,2) [243,40,d=48][243,40,d=48] achieves similar BLER to RM(8,2) [256,37,64][256,37,64] and both approach finite-blocklength converse bounds (Polyanskiy–Poor–Verdú) for erasures. Under ML, SNR required for BLER=10310^{-3} is 2.8 dB (BiD) versus 3.3 dB (RM) at N=243N=243. Belief-propagation decoding for second-order BiD codes further narrows the gap to ML, offering near-optimal empirical performance with moderate complexity (Dash et al., 14 Jul 2025, Jain et al., 14 Jan 2026).

5. Encoding, Decoding Complexity, and Practical Construction

Encoding in BiD codes follows Arıkan-style polar encoding with A3A_3 replaced for the classic 2×22 \times 2 kernel. Input vector uF2Nu \in \mathbb{F}_2^N is mapped to x=uANx = uA_N, selectively "freezing" bits whose corresponding generator row weight lies outside [2r23mr2,2r13mr1][2^{r_2}3^{m-r_2}, 2^{r_1}3^{m-r_1}]. The complexity is O(NlogN)O(N \log N). ML decoding leverages Successive-Cancellation Ordered-Search (SCOS) adapted to A3mA_3^{\otimes m}, with practical average node-visits (ANV) notably lower than RM list decoders at similar rates.

BiD codes’ algebraic structure, including projection and explicit check construction, underpins the implementation of specialized decoders (belief propagation, SCOS, and recursive subproduct decoders) that combine quasi-linear complexity with scalability to large blocklengths (Dash et al., 14 Jul 2025, Jain et al., 14 Jan 2026).

6. Broader Context: Connections to Other BiD, BIBD, and BDP Codes

In distributed computing, "BiD codes" or BIBD-based gradient codes represent a distinct line wherein combinatorial block designs (BIBDs) are used to construct gradient codes for straggler-resilient distributed machine learning. Here, the incidence matrix of a (v,b,r,k,λ)(v, b, r, k, \lambda)-BIBD provides an encoding where each worker computes kk gradients and each data point is assigned to rr workers, with worst-case error performance given in closed form as a function of l,λ,n,k,sl, \lambda, n, k, s (number of stragglers). Extensions include Soft-BIBD (probabilistic relaxation via a linear program, guaranteeing performance as good as combinatorial BIBDs whenever feasible) and Kronecker-product codes enabling scalability to massive systems via tensor products of smaller codes (Sakorikar et al., 2021).

In convolutional coding, the "bidirectional distance profile" (BDP) measures the minimum of the code and its time-reversal’s distance profiles and underlies the construction of Optimum BDP (OBDP) codes for minimizing the complexity of bidirectional sequential decoding (Stanojević et al., 2022). Though the terminology overlaps, these BDP codes are not derived from the 3×3 kernel framework central to algebraic BiD codes.

7. Asymptotic Properties and Channel Capacity Results

Generalizing the KCP "beyond double-transitivity" argument, BiD codes with contiguous W={r1,,r2}W = \{r_1, \dots, r_2\} and fixed rate R(0,1)R \in (0,1) achieve BEC (binary erasure channel) capacity under bit-MAP decoding. The minimum distance exponent at fixed rate is Ω(N0.543)\Omega(N^{0.543}), exceeding that of RM codes (O(N)O(\sqrt N)). This property, combined with provable and empirical ML and iterative decoding performance, positions BiD codes as competitive candidates for future applications in both classical channel coding and straggler-resilient distributed systems (Jain et al., 14 Jan 2026, Dash et al., 14 Jul 2025, Sakorikar et al., 2021).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (4)

Topic to Video (Beta)

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 BiD Codes.