A Systematic Evaluation of Evolving Highly Nonlinear Boolean Functions in Odd Sizes

Claude Carlet, Marko Durasevic, Domagoj Jakobovic, Stjepan Picek, Luca Mariot

Introduction

In cryptography, Boolean functions serve as fundamental building blocks for protecting data against various forms of attack. A primary requirement for these functions is high nonlinearity, which ensures resistance to linear cryptanalysis—a technique where attackers approximate complex functions with simpler linear ones. While constructing "bent" functions (those with maximum possible nonlinearity) is straightforward for even-sized inputs, the task becomes significantly more complex for odd-sized inputs ($n=7, 9, 11, 13$).

The Challenge of Search Space Complexity

The difficulty in finding highly nonlinear functions for odd $n$ stems from the super-exponential growth of the search space. For a function with 13 inputs, there are $2^{8192}$ possible configurations, a number that dwarfs the number of atoms in the observable universe. To mitigate this, researchers often restrict the search to specific subclasses, such as Rotation Symmetric (RS) functions.

Comparison of search space sizes for general and rotation-symmetric (RS) Boolean functions across different input sizes (n).

As shown in the table above, the RS constraint dramatically reduces the search space. For $n=9$, the space shrinks from $2^{512}$ to $2^{60}$, making it more amenable to evolutionary search techniques.

This study systematically evaluates various Evolutionary Computation (EC) approaches to navigate these landscapes. The primary methods tested include:

  • Genetic Programming (GP): Using symbolic logic gate trees (AND, OR, XOR, etc.).
  • Genetic Algorithms (GA): Operating on bitstring truth tables.
  • Hybrid Approaches: Combining global search with local "hill-climbing" heuristics (LS1 and LS2) to refine solutions at the bit level.

The authors found that standard evolutionary operators, like crossover, can often be too disruptive for this specific problem. While EAs are excellent at identifying promising regions of the search space, local search is frequently required to "stick the landing" and achieve record-breaking nonlinearity.

Results and the "241" Breakthrough

The evaluation compared evolved results against established mathematical benchmarks: the quadratic bound, current best-known values, and theoretical upper bounds.

Nonlinearity benchmarks for odd-sized Boolean functions, including quadratic bounds and best-known records.

A major highlight of this research is the breakthrough for $n=9$. For decades, reaching a nonlinearity above 240 was considered a significant barrier for evolutionary techniques. By utilizing a Truth Table representation combined with Rotation Symmetry and specialized local search (TT-RI-LS1), the authors successfully evolved a function with a nonlinearity of 241, matching specialized mathematical heuristics for this class.

Across almost all tests, Genetic Programming emerged as the most robust method, consistently outperforming other EC techniques in stability and final nonlinearity values. However, as $n$ increases to 11 and 13, the gap between general-purpose EAs and custom-coded mathematical heuristics remains.

Conclusion

While evolutionary algorithms have proven capable of breaking long-standing nonlinearity barriers, scaling to higher dimensions remains a challenge. Future research will focus on enhancing population diversity through methods like Lexicase Selection and exploring more specialized function subclasses to further push the boundaries of cryptographic design.

Summary updated

BibTeX
@inproceedings{carlet2025systematic,
  author = {Claude Carlet and Marko Durasevic and Domagoj Jakobovic and Stjepan Picek and Luca Mariot},
  title = {{A Systematic Evaluation of Evolving Highly Nonlinear Boolean Functions in Odd Sizes}},
  booktitle = {EuroGP},
  year = {2025},
  doi = {10.1007/978-3-031-89991-1\_2},
}
Figure