Skip to content

Learning Roadmap (Where to Start)

This site has more than 80 pages. You do not need to read them in order. The shortest path depends on where you are coming from, so use this page to decide where to start and what to read next — nothing else.

flowchart TD
START["Who are you?"] --> P1["ML beginner<br/>new to neural nets"]
START --> P2["PyTorch user<br/>can write nn.Module"]
START --> P3["FPGA engineer<br/>circuits and HDL"]
START --> P4["Researcher<br/>wants numbers"]
P1 --> A1["AI Basics"] --> A2["Intro course (3)<br/>PyTorch → MLP → DLGN"] --> A3["Train on MNIST"]
P2 --> B1["Coming from PyTorch"] --> B2["Train on MNIST"] --> B3["What Should I Use?"]
P3 --> C1["XOR Internals"] --> C2["Export to HDL"] --> C3["Deploy to FPGA"]
P4 --> D1["Benchmarks"] --> D2["Results & Experiments"] --> D3["DLGN Taxonomy"]
A3 --> HUB["Tutorial<br/>gallery"]
B3 --> HUB
C3 --> HUB
D3 --> HUB
style P1 fill:#38bdf826,stroke:#38bdf8
style P2 fill:#eab30826,stroke:#eab308
style P3 fill:#f9731626,stroke:#f97316
style P4 fill:#ef444426,stroke:#ef4444
style HUB fill:#10b98126,stroke:#10b981

A logic-gate NN is “an ordinary neural network whose weights became truth tables”, so picking up the ordinary NN vocabulary first (layers, loss, gradients) makes everything after it much faster.

#ReadWhat you get
1AI BasicsWhat a neural network is and what training actually does
2Intro 1. NN & PyTorch BasicsTensors, autograd and the training loop, hands-on (no DLGN yet)
3Intro 2. Build an MLP in PyTorchThree nn.Linear layers on MNIST, and what the real-valued weights look like
4Intro 3. Replace the MLP with a DLGNThe same training loop, swapped over to LutLayer / GroupSum
5Core ConceptsThe five concepts: soft/hard, LutLayer, GroupSum, IR, HDL
6Installation → QuickstartGet it running locally
71. Train on MNIST4000 logic gates reading handwritten digits
8Appendix: XOR InternalsThe whole mechanism in a 16-gate network

This library is ordinary PyTorch (nn.Module, loss.backward(), torch.optim), so you only have to learn the diff. The biggest trap is that model.eval() means something different here.

#ReadWhat you get
1Coming from PyTorchnn.Linear→LutLayer, and how model.eval() differs
21. Train on MNISTThe fastest working example
3What Should I Use?Decide architecture, parameterization, fan-in, learning rule
4Training / Reading Training CurvesCLI vs Python API, reading soft vs hard accuracy
5Tutorial galleryFind the example closest to your model (see the table below)

Route C: FPGA engineers and circuit designers

Section titled “Route C: FPGA engineers and circuit designers”

It is faster to look at what the generated Verilog actually is before reading about training. Start from the smallest XOR and follow it through the IR (JSON) to HDL.

#ReadWhat you get
1Appendix: XOR InternalsA 16-gate circuit decided by training
23. Export to HDLIR extraction → Verilog/VHDL → equivalence check
3Working with IR / IR SchemaThe structure of the IR, which is the source of truth
4Deploy to FPGARunning on Tang Nano 20K / DE0-CV
55. Export a CNN to HDL / 7. End-to-End WalkthroughCircuits at a realistic scale

Route D: Researchers evaluating the approach

Section titled “Route D: Researchers evaluating the approach”

Check “how far does it get” and “what was it compared against” first, then descend into the theory.

#ReadWhat you get
1BenchmarksMeasured accuracy and speed
2Paper ReproductionReproduction status of the difflogic paper
3Architecture SurveyHow far each architecture got
4Discretization Gap / Parameterization StudyHow much soft→hard costs, and what fixes it
5DLGN Taxonomy / LutLayer InternalsThe three lineages and the gradient math

Common architecture names → tutorials on this site

Section titled “Common architecture names → tutorials on this site”

The table that answers “is there an RNN tutorial?”. Tutorials here are named after the specific model (LSTM, WaveNet, …), so this maps the general architecture names onto them.

What you are looking forWhere to start here
MLP / fully connected1. Train on MNIST (stacked LutLayer), Appendix: XOR
CNN / convolution5. Export a CNN to HDL, Object detection (CenterNet), U-Net
RNN / recurrent networksRNN: LSTM / GRU, RNN seq2seq, Reservoir computing
LSTM / GRU / gated RNNGating is Boolean logic
seq2seq / encoder-decoderseq2seq from an RNN alone (RDDLGN)
Reservoir computing / ESNChoosing not to train the circuit
Transformer / GPT / LLMLogic-gate GPT, The Transformer logic ladder
Attention / self-attentionFour attention variants, The Transformer logic ladder
TCN / causal conv / dilated convWaveNet (causal CNN)
ResNet / residual connectionsExact identity through OR residuals
U-Net / segmentation / dense predictionPer-pixel answers with a logic U-Net
MLP-Mixer / token mixingLogicMixer (MLP-Mixer)
VAE / autoencoder / representation learningFolding an image into 96 bits
GAN / adversarial generationImages from random bits (LogicGAN)
Diffusion modelsA diffusion model as one Boolean circuit
Object detection / YOLO・CenterNet familyObject detection with zero multipliers
Text classification / n-gramsTextCNN in logic gates
BNN / binary neural nets / weightless NNDWN (thermometer encoding), BinaryBrain-compatible API
Transfer learning / replacing part of a model2. Build a Hybrid NN
Learning rules other than backprop (DFA / feedback alignment / ES)6. Learning Rules (DFA/AP), Learning rules explained
What you want to doGo to
Just run somethingQuickstart
Decide which configuration to useWhat Should I Use?
Training will not convergeTroubleshooting
Soft accuracy is fine but hard collapsesDiscretization Gap
Turn it into a circuit on an FPGAHDL Export → Deploy to FPGA
Rewire the structure in a browserVisual Editor
Look up arguments and typesPython API
Look up a termGlossary