Characterizing the Weight Hierarchy of Linear Codes

15 concepts6 papers1 proposal

When evaluating a linear error-correcting code, we traditionally look at its minimum distance ($d$). The minimum distance tells us the minimum number of coordinate positions in which any two distinct codewords differ. Equivalently, it is the minimum number of non-zero elements (the Hamming weight) found in any single non-zero codeword. This single number is highly effective for understanding a code's ability to correct independent, isolated errors.

However, modern applications—such as distributed storage systems, multi-party cryptographic protocols, and private data retrieval—rarely deal with isolated codewords in isolation. Instead, they interact with entire linear subspaces of codewords simultaneously. To understand how a code behaves under these multi-dimensional demands, we must look beyond the minimum distance to a sequence of invariants known as the weight hierarchy, composed of Generalized Hamming Weights (GHWs).

From Codewords to Subspaces

To build intuition for why the weight hierarchy matters, let us scale up from a single codeword to a linear subcode (a subspace of codewords).

Suppose you have a linear code $C$ of dimension $k$. Instead of looking for a single non-zero codeword with the smallest support (the fewest non-zero positions), you look for a linear subcode $D \subseteq C$ of dimension $r$ (where $1 \le r \le k$). The support of this subcode is the set of all coordinate positions where at least one codeword in $D$ has a non-zero element.

The $r$-th Generalized Hamming Weight, denoted $d_r(C)$, is the minimum support size achievable by any $r$-dimensional subcode of $C$.

Standard Hamming Weight (d_1):
Codeword: [ 0,  A,  0,  0,  B,  0 ]  --> Support size = 2

Generalized Hamming Weight (d_2) of a 2D Subspace:
Vector 1: [ 0,  A,  0,  0,  B,  0 ]
Vector 2: [ 0,  0,  C,  0,  B,  0 ]
Combined: [ 0,  A,  C,  0,  B,  0 ]  --> Joint Support size = 3

The complete sequence of these weights, $\{d_1, d_2, \dots, d_k\}$, forms the weight hierarchy. It provides a comprehensive structural profile of the code, mapping out exactly how coordinate support scales as you demand higher-dimensional linear freedom.

Why the Hierarchy Matters: Privacy, Security, and Locality

Why do different engineering problems care so deeply about this subspace support scaling? The answer lies in how information leaks or distributes across multiple channels.

1. Information Leakage in Cryptography

In a linear ramp secret sharing scheme, a secret is divided into multiple shares distributed among different participants. An adversary who intercepts a subset of these shares attempts to reconstruct the secret. As shown by Olav Geil et al., the security of these schemes depends on the Relative Generalized Hamming Weights (RGHW) between nested linear codes. The RGHW characterizes exactly how many shares an adversary must compromise to glean a specific dimension of information, revealing that sophisticated constructions like one-point algebraic geometric codes often provide much stronger security guarantees than standard metric analyses suggest.

2. Private Information Retrieval (PIR)

In PIR protocols, a user wants to download a file from a distributed storage system without revealing the identity of the file to the storage nodes. To maximize efficiency, data is encoded using linear codes. Work by Hsuan-Yin Lin et al. and Siddhartha Kumar et al. demonstrated a profound connection between a code's weight hierarchy and its retrieval efficiency. They conjectured and provided strong evidence that specific GHW conditions are both necessary and sufficient for a non-optimal, non-MDS (Maximum Distance Separable) linear code to achieve the theoretical maximum PIR capacity.

3. Distributed Storage and Locality

Locally Repairable Codes (LRCs) ensure that if a storage node fails, its data can be reconstructed by looking at only a small subset of other nodes (called the locality parameter, $r$). To understand how an LRC handles multiple simultaneous node failures, a single minimum distance metric is insufficient. The authors Jie Hao et al. leveraged the weight hierarchy to map out the fundamental trade-offs in optimal LRCs, showing how GHWs dictate the code's structural resilience when multiple erasure boundaries are crossed.

The Complexity Barrier

If the weight hierarchy is so powerful, why isn't it calculated for every code? The challenge is combinatorial explosion. Finding $d_r$ requires searching through all possible $r$-dimensional subspaces of a code and determining the minimum joint support. Because of this complexity, the exact weight hierarchy is known for only a few families of codes.

Researchers typically must exploit rigid geometric or algebraic symmetries to make the problem tractable:

  • Divisibility and Alignment Constraints: In the study of $(r, \delta)$-Locally Repairable Codes, Jie Hao et al. established that the full weight hierarchy can be explicitly determined when the code's total dimension happens to be a clean multiple of the locality parameter. When this divisibility condition fails, the clean geometric alignment breaks down, and researchers must settle for upper and lower bounds rather than exact values.
  • Defining Set Constraints: Another common method for constructing linear codes is the "defining set" method over finite fields. By analyzing the algebraic properties of these sets, Wei Lü et al. successfully derived exact formulas for the weight hierarchies of three distinct classes of linear codes. However, the authors noted that these derivations are highly sensitive to parameter constraints, such as the size of the excluded sets within the finite field. If these strict boundary conditions are violated, the mathematical complexity increases dramatically, leaving the general cases unsolved.

Ultimately, characterizing the weight hierarchy is a balancing act between mathematical tractability and operational insight. By shifting our focus from individual codewords to the scaling properties of linear subspaces, the weight hierarchy provides the exact mathematical framework needed to optimize privacy, security, and repairability in modern distributed networks.

Key Foundational Work

On the weight hierarchy of locally repairable codes (2017) — contributed 6 concept elements to this direction.
Relative generalized Hamming weights of one-point algebraic geometric codes (2014) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_weight_hierarchy_determination_30592326,
  title = {weight hierarchy determination},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/weight-hierarchy-determination/rdr_305923269a284130a12c5b3cc899398e},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_weight_hierarchy_determination_30592326_v1,
  title = {weight hierarchy determination},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/weight-hierarchy-determination/rdr_305923269a284130a12c5b3cc899398e/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake