Definitions of the vocabulary used across this project. The goal is that code, documentation, and
conversation all use the same word for the same thing (a ubiquitous language). For background on
the terms, see What is a DLGN? and
Taxonomy and lineage.
A fully connected network that makes two-input logic gates differentiable via softmax. This library generalizes it to N inputs, so it is not DLGN itself
difflogic
—
same (the reference implementation’s name)
The name of the official DLGN implementation repository. “difflogic-compatible” = N=2 + softmax mode
CDDLGN
Convolutional DDLGN
Petersen et al., NeurIPS 2024
Convolution built from logic-gate trees. The design LutConv2d follows
RDDLGN
Recurrent DDLGN
Buhrer et al., 2025
The RNN / seq2seq extension of DLGN
LDDLGN
Light DDLGN
Ruttgers et al., 2025
Lightweight variant using per-input parameterization (IWP)
WARP
WAlsh Relaxation for Probabilistic LNNs
Gerlach et al., 2025
Unconstrained optimization via the Walsh-Hadamard transform. Stable at N=4, 6
CAGE
Align Forward, Adapt Backward
Kim, 2026
Hard-ST training + adaptive temperature scheduling
DWN
Differentiable Weightless Neural Networks
Bacellar et al., ICML 2024
6-input LUTs + learned wiring. EFD gradients
LogicNets
—
Umuroglu et al., FPL 2020
An “arithmetic DLGN”: enumerates truth tables from quantization and sparsification
LL-ViT
—
Nag et al., ICFPT 2025
A hybrid that turns only the ViT MLP into LUTs
BinaryBrain
—
Imamura
A framework for training LUTs directly (C++). Origin of the independent / raw parameterizations
JSON that freezes the trained circuit. Holds truth tables + wiring + shapes, and is the source of truth: everything downstream (HDL generation, the editor, resource estimates) looks only at the IR
lowering
Expanding native nodes such as conv2d / or_pool2d into a sequence of lut_layer nodes. The stage before HDL generation
simulate
The golden model that runs the IR bit-exactly under numpy. The reference for equivalence checking
Three-way equivalence
“PyTorch hard eval ⇔ simulate ⇔ HDL simulation” agreeing on every vector
Resource estimate
A synthesizer-independent first-order count of LUTs, logic depth, and wires taken from the IR
“difflogic” vs. “DLGN” — the former is an implementation (a repository name), the latter a
method (a paper). Use difflogic when comparing code, DLGN in academic citations.
“softmax parameterization” vs. “DLGN” — the former is a flag in the code, the latter the whole
method of “a fully connected architecture + softmax”.
“Hard-ST” vs. “CAGE” — the former is a gate selection scheme based on an STE
(selection='hard_st'), the latter the whole training method of “Hard-ST + adaptive temperature
scheduling”.