On Counts and Densities of Homogeneous Bent Functions: An Evolutionary Approach

Claude Carlet, Marko Ðurasevic, Domagoj Jakobovic, Luca Mariot, Stjepan Picek, Alexandr Polujan · DOI

Introduction

In the design of symmetric cryptographic primitives, such as stream and block ciphers, Boolean functions serve as critical components. To resist linear cryptanalysis, these functions must exhibit high nonlinearity. Functions achieving the maximum possible nonlinearity are known as bent functions. Beyond nonlinearity, uniform algebraic structure is highly desirable for efficient hardware and software implementation. This leads to the study of homogeneous bent functions, where every monomial in the function's Algebraic Normal Form (ANF) has the same degree $d$.

While quadratic ($d=2$) homogeneous bent functions are well-understood and easily generated, cubic ($d=3$) variants present a significant challenge. The search space for these functions is astronomically large, and standard metaheuristic approaches, such as Genetic Programming (GP), have historically failed to find them for $n \ge 8$ variables.

The "Needle in a Haystack" Problem

The difficulty in finding cubic homogeneous bent functions stems from their extreme sparsity in the search space. The authors mathematically analyzed the density of these functions—the probability that a randomly chosen homogeneous function of degree $d$ is bent.

For quadratic functions, the density is relatively high. As shown in Figure 1, quadratic bent functions are distributed across a wide range of term counts ($k$), with densities often exceeding 0.4.

Densities of quadratic homogeneous bent functions for $n=6$ and $n=8$.

In stark contrast, the density for cubic functions drops precipitously. For $n=8$ variables, the density of cubic bent functions is approximately $\sim 4 \times 10^{-12}$. Furthermore, these functions are not uniformly distributed; they only exist for specific numbers of terms ($k$).

Densities and counts of cubic homogeneous bent functions for $n=8$ and $d=3$.

Evolutionary Methodology

To overcome this sparsity, the authors proposed a novel evolutionary approach. They compared four genetic encodings:

  1. Symbolic Encoding (GP): Standard tree-based representation.
  2. Truth Table (TT): Raw bitstring of function outputs.
  3. Reduced ANF (rANF): Bitstring representing the presence of degree-$d$ monomials.
  4. Weighted ANF (wANF): A constrained encoding that restricts the search to bitstrings with a fixed weight (number of active terms), based on the theoretical density clusters identified.

The fitness function utilized the Walsh-Hadamard transform to measure nonlinearity, and a steady-state evolutionary algorithm with tournament selection was employed.

Results and Discussion

The experimental results confirmed the theoretical predictions. For quadratic functions, all encodings achieved a 100% success rate across all tested sizes ($n=6$ to $n=12$). For cubic functions with $n=6$, the search space remained small enough for all methods to succeed.

The true test occurred at $n=8$ for cubic functions. Standard GP and TT encodings failed completely, unable to find a single bent function in 30 runs. However, the wANF encoding succeeded by focusing the search on the specific term counts where bent functions are known to cluster. This demonstrates that structural constraints derived from mathematical theory are essential for navigating sparse cryptographic search spaces. Interestingly, the addition of local search operators did not improve success rates, suggesting that the primary hurdle is global navigation of the constrained space rather than local refinement.

Conclusion

This research highlights the limitations of blind evolutionary search in cryptographic design. By quantifying the density of cubic homogeneous bent functions, the authors demonstrated why traditional EAs fail and how informed structural constraints (wANF) can enable success. While $n \ge 10$ remains out of reach for current techniques, this work provides a roadmap for future research: the integration of deeper mathematical properties into the evolutionary search process is the key to conquering higher-dimensional cryptographic problems.

Summary updated

BibTeX
@inproceedings{carlet2026counts,
  author = {Claude Carlet and Marko Ðurasevic and Domagoj Jakobovic and Luca Mariot and Stjepan Picek and Alexandr Polujan},
  title = {{On Counts and Densities of Homogeneous Bent Functions: An Evolutionary Approach}},
  booktitle = {EvoApplications},
  year = {2026},
  doi = {10.1007/978-3-032-23604-3\_14},
}
Figure