cs.LGFeb 19, 2026

Learning with Boolean threshold functions

Authors: Veit Elser, Manish Krishan Lal

Organizations: Department of Physics, Cornell · Mathematics, Independent Researcher, India

Abstract

We develop a method for training neural networks on Boolean data in which the values at all nodes are strictly ±1\pm 1, and the resulting models are typically equivalent to networks whose nonzero weights are also ±1\pm 1. The method replaces loss minimization with a nonconvex constraint formulation. Each node implements a Boolean threshold function (BTF), and training is expressed through a divide-and-concur decomposition into two complementary constraints: one enforces local BTF consistency between inputs, weights, and output; the other imposes architectural concurrence, equating neuron outputs with downstream inputs and enforcing weight equality across training-data instantiations of the network. The reflect-reflect-relax (RRR) projection algorithm is used to reconcile these constraints. Each BTF constraint includes a lower bound on the margin. When this bound is sufficiently large, the learned representations are provably sparse and equivalent to networks composed of simple logical gates with ±1\pm 1 weights. Across a range of tasks -- including multiplier-circuit discovery, binary autoencoding, logic-network inference, and cellular automata learning -- the method achieves exact solutions or strong generalization in regimes where standard gradient-based methods struggle. These results demonstrate that projection-based constraint satisfaction provides a viable and conceptually distinct foundation for learning in discrete neural systems, with implications for interpretability and efficient inference.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. A Learning Algorithm for Threshold Boolean Networks with Prescribed Fixed Points

    Aug 18, 2026Gonzalo A. RuzBoolean Function LearningGene Regulatory Network Inference

  2. Optimizing Sparse Boolean Rule Networks using Mixed Integer Linear Programming

    Oct 14, 2026Thomas Pammer, Johannes Fürnkranz, Markus SinnlBoolean Function LearningInterpretable ML