# GAAF: Searching Activation Functions for Binary Neural Networks through Genetic Algorithm

Source: [GAAF: Searching Activation Functions for Binary Neural Networks through Genetic Algorithm](<https://www.sota2.com/research/paper/68fa6cb41e209131cea35645>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T00:16:46.056Z

Authors: Yanfei Li, Tong Geng, Samuel Stein, Ang Li, Huimin Yu

Published: 2022-06-05T06:36:22.000Z

## Abstract

Binary neural networks (BNNs) show promising utilization in cost and power-restricted domains such as edge devices and mobile systems. This is due to its significantly less computation and storage demand, but at the cost of degraded performance. To close the accuracy gap, in this paper we propose to add a complementary activation function (AF) ahead of the sign based binarization, and rely on the genetic algorithm (GA) to automatically search for the ideal AFs. These AFs can help extract extra information from the input data in the forward pass, while allowing improved gradient approximation in the backward pass. Fifteen novel AFs are identified through our GA-based search, while most of them show improved performance (up to 2.54% on ImageNet) when testing on different datasets and network models. Our method offers a novel approach for designing general and application-specific BNN architecture. Our code is available at http://github.com/flying-Yan/GAAF.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2206.03291>)

[PDF](<https://arxiv.org/pdf/2206.03291.pdf>)
