Papers
Topics
Authors
Recent
Search
2000 character limit reached

Generalized Hamming Weights (GHWs) Overview

Updated 18 November 2025
  • Generalized Hamming Weights (GHWs) are parameters that extend the minimum distance concept to r-dimensional subcodes, forming a strictly increasing weight hierarchy for linear codes.
  • They are computed using combinatorial, number-theoretic, and algorithmic methods, with efficient approaches like the extended Brouwer–Zimmermann algorithm aiding practical enumeration.
  • GHWs have broad applications in secure communications, trellis decoding, list- and erasure-decoding, and they establish deep links with algebraic combinatorics and matroid theory.

A generalized Hamming weight (GHW) is a fundamental parameter associated with a linear code that generalizes the notion of minimum distance to higher-dimensional subcodes. For a linear code CC of length nn and dimension kk over a finite field, the rr-th generalized Hamming weight dr(C)d_r(C) is defined as the minimal number of coordinate positions that support a nonzero codeword in every rr-dimensional subspace of CC. The sequence (d1(C),d2(C),...,dk(C))(d_1(C), d_2(C), ..., d_k(C)) is called the weight hierarchy of CC, with d1(C)d_1(C) the minimum distance. The theory of GHWs, initiated by Wei in 1991, plays a critical role in quantifying code security in wire-tap channels, describing trellis and state complexity profiles for decoding, and evaluating the performance of list- and erasure-decoding and secret-sharing schemes. GHWs also form deep links with algebraic combinatorics, matroid theory, and commutative algebra.

1. Definition and Fundamental Properties

Let nn0 be an nn1 linear code over the finite field nn2. For any subspace nn3, define its support as

nn4

Then the nn5-th generalized Hamming weight is

nn6

This captures the minimal number of coordinates on which an nn7-dimensional subcode can be nonzero. The sequence nn8 is strictly increasing by linearity. The classical Singleton bound extends: nn9 Codes meeting this bound for all kk0 are termed kk1-MDS. The Griesmer-type lower bound also holds: kk2 The duality property states that for kk3 the dual code,

kk4

with the two sets disjoint. This is the celebrated Wei duality (Martínez-Peñas, 2015).

2. Computation and Algorithmic Foundations

Direct computation of kk5 is generally computationally hard due to the exponential number of kk6-dimensional subspaces. For a generator matrix kk7 and kk8 of dimension kk9, one can consider the image rr0; naive enumeration over all rr1 subspaces is tractable only for small codes.

However, the extended Brouwer–Zimmermann (GZ) algorithm provides an efficient general-purpose approach for computing all GHWs by exploiting multiple systematic forms and combinatorial subspace enumeration (San-José, 22 Mar 2025). This algorithm searches reduced row-echelon forms with fixed pivot patterns and efficiently prunes the subspace search using lower and upper bounds. It dramatically outperforms naive enumeration and has been implemented in SageMath via the GHWs package, which supports full weight hierarchy, relative GHWs, and duality computations: (d1(C),d2(C),...,dk(C))(d_1(C), d_2(C), ..., d_k(C))1 Relative GHWs for nested pairs rr2 and higher-weight spectra are computed analogously. Benchmarks show speedups of multiple orders of magnitude for practical code parameters.

3. Explicit Constructions and Formulas for GHWs

Analytic determination of GHWs is achieved in several families via number-theoretic and combinatorial techniques. A general approach for codes defined by trace and defining sets is the formula

rr3

(Jian, 2019). In particular, for codes with rr4 and rr5, this gives for rr6: rr7 and rr8 is rr9-MDS.

For codes with dr(C)d_r(C)0 (with dr(C)d_r(C)1 odd), the weight hierarchy is given by a two-regime formula, using cyclotomic classes and Gauss periods. Closed-form explicit weight hierarchies are also achieved for classes of reducible and irreducible cyclic codes (Li, 2017, Xiong et al., 2015, Yang et al., 2014), cyclotomic defining set codes (Li, 2017), and codes from quadratic forms (Liu et al., 2022). For projective and higher-order Reed–Muller codes, combinatorial shadow and shortening algorithms yield explicit hierarchies (Ramkumar et al., 2018).

The table below summarizes several key formula types:

Code Family GHW Formula Type Reference
Trace-defining set codes dr(C)d_r(C)2 for dr(C)d_r(C)3 (Jian, 2019)
Irreducible cyclic codes Gauss sum/intersection, two-regime via subfield degree (Yang et al., 2014)
Cyclotomic codes Gauss sum, Gaussian period, or combinatorial intersection (Li, 2017)
Quadratic-form codes Solution count to dr(C)d_r(C)4 on subspaces (Liu et al., 2022)
Cartesian square-free codes Footprint bound, explicit combinatorics (Carvalho et al., 11 Nov 2025)

4. GHWs in Nonlinear and Almost Affine Codes

The GHW concept extends to almost affine codes, which are sets dr(C)d_r(C)5 (dr(C)d_r(C)6) with dr(C)d_r(C)7 such that every puncturing dr(C)d_r(C)8 to coordinates dr(C)d_r(C)9 has size rr0 for some rr1. The matroid-theoretic framework yields

rr2

where rr3 is the rank of the dual matroid (Johnsen et al., 2016). Wei duality generalizes as

rr4

where rr5 (resp. rr6) are the GHWs of rr7 (resp. its dual). Multilinear codes (block-folded codes) admit a true dual and explicit GHWs, typically rr8 for rank rr9.

Trellis complexity, profiles, list- and equivocation thresholds all admit analogues for the almost affine setting, showing the deep generality of GHWs outside strictly linear codes, with the mathematical structure governed by matroid invariants rather than explicit vector spaces.

5. Applications in Coding, Information, and Combinatorics

Generalized Hamming weights control critical performance and security features in modern coding theory:

  • Wiretap Channels (Type II): The CC0-th GHW quantifies the minimal symbol positions an adversary needs to fully reconstruct CC1 bits of the secret (equivocation rate) (Martínez-Peñas, 2015, Jian, 2016). In secret sharing, the GHWs determine the access structure thresholds.
  • Trellis (state) complexity: Minimal state/branch profiles in Viterbi or list decoding are governed by the GHWs, with CC2 controlling the minimal transition set at stage CC3 (Ramkumar et al., 2018).
  • List-decoding and erasure threshold: GHWs determine the maximal correctable erasures for list-decoding beyond the minimum distance (Lu et al., 2024).
  • Network and Secure Coding: For both classical and rank-metric codes, GHWs and their analogues determine information leakage and recoverability (Martínez-Peñas, 2015).
  • Algebraic Combinatorics: GHWs are in bijection with initial degrees of symbolic powers of the Stanley–Reisner ideal of the dual matroid, so they encode the combinatorics of circuits and cocircuits and control invariants like the Waldschmidt constant and resurgence (DiPasquale et al., 2024).
  • Quantum Codes: Relative GHWs directly determine the phase-flip and bit-flip error rates of quantum CSS codes constructed from nested pairs (Camps-Moreno et al., 2024).

6. Connections to Algebraic and Matroid Theory

GHWs have deep algebraic and geometric interpretations. For a code CC4, the CC5-th GHW equals the minimal degree among squarefree monomials in the CC6-th symbolic power of the Stanley–Reisner ideal of the dual matroid CC7 (DiPasquale et al., 2024). This links GHWs directly to algebraic invariants such as Waldschmidt constants, and underlies various algebraic-combinatorial bounds.

Over binary fields, Betti numbers in the minimal graded free resolution of the test-monomial ideal associated to CC8 provide sharp formulas for CC9 and (d1(C),d2(C),...,dk(C))(d_1(C), d_2(C), ..., d_k(C))0 and upper bounds for higher GHWs (García-Marco et al., 2022). The matroid structure enables subadditivity results for weight hierarchies and allows applications to symbolic powers and projections in projective algebraic geometry.

Current research directions include:

  • Extensions to new code families: Ongoing work employs number-theoretic, combinatorial, and algebraic approaches to determine GHWs for increasingly complex code families, including classes with arbitrary numbers of nonzeroes, codes defined on geometric and projective sets, and matrix-product codes (Xiong et al., 2015, San-José, 2024, Carvalho et al., 11 Nov 2025).
  • Development of efficient algorithms and software: Recent advances in combinatorics, enumeration, and computational algebra have led to practical algorithmic tools for GHW enumeration even for large parameter codes (San-José, 22 Mar 2025).
  • Deeper connections to commutative algebra and algebraic geometry: GHWs now serve as concrete invariants connecting algebraic geometry of matroid configurations to coding-theoretic performance metrics via symbolic Rees algebra generation and degree statistics (DiPasquale et al., 2024).
  • Quantum and network codes: Explicit GHW and relative GHW hierarchies are now used directly in the design of new quantum codes with optimized asymmetric parameters (Camps-Moreno et al., 2024).
  • Generalization to nonlinear and almost affine frameworks: Matroidal methods enable the study of GHW-like invariants for wide code classes including nonlinear, folded, and multilinear codes (Johnsen et al., 2016).

The known full-weight hierarchies for broad families of codes remain rare and are topics of intensive ongoing research (Jian, 2019, Camps-Moreno et al., 2024). Comprehensive understanding of GHWs governs both the fundamental limits of error-correction and the achievable tradeoffs of information-theoretic security in networked and adversarial communication.

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 Generalized Hamming Weights (GHWs).