# Richer or More Gates? Fan-In Trade-offs in Learnable Logic Circuits

*Youngsung Kim*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153492) · [Open on the map](../papers.html#p153492)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [Neural Representation and Compression Theory](../pgroup/141.md) · Type: new method · Keywords: fan-in trade-off, logic gate networks, selection mechanisms, Jacobian analysis, Möbius-transform snapping, width-dominated vs degree-dominated regimes

## Summary
The paper investigates how increasing the fan-in of logic gates versus adding more gates affects representability and learnability under a fixed parameter budget, revealing regime-dependent trade-offs and the critical role of selection mechanisms.

## Explained to a 5-year-old
We build tiny brain-like switches that can be either simple two-input gates or more complicated many-input gates. If we have a limited amount of memory, we can either make many simple switches or a few powerful ones. Sometimes using more powerful switches helps, sometimes using many simple ones works better. The paper also looks at how we decide which switches to use and shows that the best way to pick them changes depending on the task. By using a special math trick, the switches can be trained perfectly without mistakes.

## Explained to a 5-year-old, longer
Imagine you have a box of building blocks that can act like tiny logical switches. Each switch can be set up to look at either two inputs (like a simple AND gate) or many inputs (like a more complex rule). If you have a fixed amount of building material, you can either build lots of simple switches or a few more powerful ones. The paper asks which way is better for different kinds of problems. It finds that for some problems (like recognizing pictures) having many simple switches works best, while for other problems (like solving puzzles that need more math) having a few powerful switches is better. It also discovers that the method we use to choose which switches to use matters a lot, and the best choice flips between the two strategies. By using a special mathematical trick called Möbius-transform snapping, the switches can be trained so that they make no mistakes when they are actually used. The researchers tested this on many different tasks and real-world data sets, and the results show that the right combination of switches and selection method leads to perfect performance.

## For a technical reader
The work derives a depth-fan-in bound and shows how the Jacobian of the softmax selection mechanism provides basin attraction absent in sigmoid selections. It demonstrates that at the regime boundary, the optimal selection mechanism inverts between width-dominated and degree-dominated tasks. Training uses exact gradients for multilinear coefficients and a Möbius-transform snapping step to achieve zero deployment error across 28 tasks and 5 real-world datasets.

## Problem
Given a fixed parameter budget, how should one balance increasing the number of inputs per gate (fan-in) against increasing the number of gates to achieve better performance, and how does the choice of selection mechanism influence training success at the boundary between these regimes?

## Method
The approach analyzes the fan-in vs. width trade-off under a fixed parameter budget, derives depth-fan-in bounds, and studies how different selection mechanisms affect basin attraction via Jacobian analysis. It trains multilinear coefficients with exact gradients and applies Möbius-transform snapping to achieve zero deployment error.

## Results
The approach shows that selection mechanisms critically affect training success at the regime boundary, with the optimal mechanism flipping between width-dominated and degree-dominated regimes, and achieves zero deployment error on the tested tasks.

## Contributions
The paper characterizes the fan-in vs. width trade-off, identifies two regimes (width-dominated and degree-dominated), demonstrates that selection mechanisms determine learnability at the boundary, provides a Jacobian analysis of basin attraction, and introduces a training technique using exact gradients and Möbius-transform snapping.

## Limitations and assumptions
The analysis focuses on idealized logic gate networks and assumes exact gradients; real-world deployments may involve approximations and additional hardware constraints.

## Practical relevance
These findings guide the design of efficient learnable logic circuits for tasks ranging from image classification to arithmetic, enabling better resource allocation and improved training stability.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153492)
