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

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

TL;DR

This paper tackles the "needle-in-a-haystack" problem of finding cubic homogeneous bent functions—highly nonlinear mathematical objects essential for secure cryptography. By introducing the concept of "density" and restricting the search to specific term counts, the authors successfully used evolutionary algorithms to discover these functions in 8 variables, a feat previously considered too difficult for metaheuristics.

What Problem Does This Paper Address?

In the world of symmetric cryptography (like the ciphers protecting your internet traffic), Boolean functions are the fundamental building blocks. To resist attacks, these functions must be bent, meaning they are as far as possible from being linear.

The authors focus on a specific subset: homogeneous bent functions. In these functions, every term in their algebraic form has the exact same degree (e.g., every term is a product of exactly three variables). These are desirable because their uniform structure can make hardware and software implementations faster and more efficient.

The challenge? While quadratic (degree 2) homogeneous bent functions are well-understood, cubic (degree 3) ones are incredibly rare. For 8 variables, the "density" of these functions is roughly $4 \times 10^{-12}$. Previous attempts to find them using Evolutionary Algorithms (EAs) failed because the search space is astronomical and the "fitness landscape" is mostly flat, giving the algorithm no clues on where to go.

Methods

The researchers compared several ways to represent (encode) these functions for an evolutionary search:

  • Symbolic Encoding (Genetic Programming): Representing functions as trees of logic gates.
  • Truth Table (TT): A direct bitstring representing the function's output for every possible input.
  • Reduced ANF (rANF): A bitstring representing only the coefficients of the monomials of the target degree (e.g., degree 3).
  • Weighted ANF (wANF): A novel approach where the algorithm is forced to maintain a specific number of terms ($k$).

They used a Steady-State Selection algorithm and a specialized fitness function. Instead of just looking at the maximum nonlinearity, the fitness function also counts how often that maximum value occurs in the function's spectrum. This provides a "smoother" gradient, helping the algorithm nudge closer to the optimal solution.

Datasets

This is a theoretical and algorithmic study, so it doesn't use traditional "datasets." Instead, it uses:

  • Exact counts: For 6 and 8 variables, the authors used known mathematical totals to calculate the precise density of bent functions.
  • Known $k$-values: They leveraged previous algebraic research to identify specific numbers of terms ($k$) where cubic bent functions are known to exist for 10, 12, and 16 variables. These served as the "target zones" for their weighted encoding.

Key Insights and Ideas

  • The Sparsity Realization: The paper quantifies exactly why this is so hard. In 8 variables, roughly 42% of quadratic functions are bent, but only a microscopic fraction of cubic functions are. This explains why standard EAs fail—they simply never "stumble" upon a good starting point.
  • The "k" Constraint is Crucial: Cubic bent functions only exist for very specific numbers of terms ($k$). By restricting the search to these specific weights (the wANF approach), the authors effectively shrunk the search space by orders of magnitude.
  • GP isn't always King: While Genetic Programming (GP) is usually the gold standard for evolving Boolean functions, it performed poorly here. The authors suggest this is because the "repair" process (forcing the function to be homogeneous) breaks the link between the tree structure and the function's actual properties.

Key Results

  • Breaking the Barrier: For the first time, an evolutionary approach successfully found cubic bent functions in 8 variables.
  • wANF Wins: The Weighted ANF encoding was the clear winner. For $n=8$ variables, it found bent functions in several runs, whereas the standard Truth Table and GP approaches found zero.
  • Statistical Significance: Using Kruskal-Wallis and Mann-Whitney U tests, the authors proved that the performance gains from restricting the number of monomials were statistically significant, not just luck.
  • Scaling Limits: While successful for 8 variables, the algorithms still struggled to find perfectly bent functions for 10 and 12 variables, though they reached very high nonlinearity levels.

Limitations and Future Work

  • The Curse of Dimensionality: As the number of variables ($n$) increases, the search space grows as $2^{2^n}$. Even with clever encodings, finding bent functions for $n \ge 10$ remains an open challenge for metaheuristics.
  • Local Search Paradox: Surprisingly, adding a local search operator did not improve success rates and sometimes even hindered the search. This suggests the landscape of cubic functions is extremely "deceptive" or jagged.
  • Higher Degrees: The study focused on degree 3. It remains an open mathematical question whether homogeneous bent functions of degree 4 or higher even exist. Future work could involve using these EA techniques to search for the first-ever examples of such functions.

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