math.COApr 13, 2026

Generating Hadamard matrices with transformers

Authors: Geordie Williamson, Oded Yacobi, Paul Zinn-Justin

Abstract

We present a new method for constructing Hadamard matrices that combines transformer neural networks with local search in the PatternBoost framework. Our approach is designed for extremely sparse combinatorial search problems and is particularly effective for Hadamard matrices of Goethals--Seidel type, where Fourier methods permit fast scoring and optimisation. For orders between 100 and 200, it produces large numbers of inequivalent Hadamard matrices, and for larger orders, it succeeds where local search from random initialisation fails. The largest example found by our method has order 252. In addition to these new constructions, our experiments reveal that the transformer can discover and exploit useful hidden symmetry in the search space.

Figures & tables

Explore similar work

CardsList
  1. Manifold-based Algorithms for the Hadamard Decomposition

    May 27, 2026Nicolas Gillis, Subhayan Saha, Stefano Sicilia +1Low-Rank Matrix DecompositionLow-Rank Approximation

  2. AdaHOP: Fast and Accurate Low-Precision Training via Outlier-Pattern-Aware Rotation

    Apr 2, 2026Seonggon Kim, Alireza Khodamoradi, Pranathi Vasireddy +2Walsh-Hadamard TransformLow-Precision Training

  3. HORST: Composing Optimizer Geometries for Sparse Transformer Training

    May 20, 2026Tom Jacobs, Rohan Jain, Rebekka BurkholzDeep Learning OptimizationTransformer