SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.18149 · 2026

Differentiable Logic Gate Networks for Low-Latency EEG Classification on Edge Devices

Stephen Smith, Shyamal Dharia, Camilo Valderrama

arXiv · PDF · Open in the Atlas

Code that ran

17 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 12 failures of our instrument; 0 no recorded run), measured 2026-11-22; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2607.18149.json · badge: /api/ran/2607.18149.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Shyamal-Dharia/eeg-difflogic canonical (classifier label)
classifier basis: census
17 ran · 0 no recorded run
FunctionStatusWhere it lives
BNN_ALZ Ran
ran; our contract draft was wrong, not the code
Shyamal-Dharia/eeg-difflogic/src/models_bnn.py
pointer only (licence: NONE) · get_code("a3234c4b4cd4b652")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BNN_ALZ_50k Ran
ran; our contract draft was wrong, not the code
Shyamal-Dharia/eeg-difflogic/src/models_bnn.py
pointer only (licence: NONE) · get_code("2ee879c744732c2d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BNN_SEED Ran
ran; our contract draft was wrong, not the code
Shyamal-Dharia/eeg-difflogic/src/models_bnn.py
pointer only (licence: NONE) · get_code("33d7711600abb959")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MLPBaseline_ALZ Ran
ran; our contract draft was wrong, not the code
Shyamal-Dharia/eeg-difflogic/src/models_baseline.py
pointer only (licence: NONE) · get_code("50c2393cc7fca347")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MLPBaseline_ALZ_50k Ran
ran; our contract draft was wrong, not the code
Shyamal-Dharia/eeg-difflogic/src/models_baseline.py
pointer only (licence: NONE) · get_code("2ee81d444a15ecf2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MLPBaseline_SEED Ran
ran; our contract draft was wrong, not the code
Shyamal-Dharia/eeg-difflogic/src/models_baseline.py
pointer only (licence: NONE) · get_code("b5a72f45babb0fe6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

binarize_with_train_minmax Ran
ran; our contract draft was wrong, not the code
Shyamal-Dharia/eeg-difflogic/src/helper.py
pointer only (licence: NONE) · get_code("db0f134767fa050d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

count_parameters Ran
ran, honoured the contract we drafted
Shyamal-Dharia/eeg-difflogic/src/models_alz.py
pointer only (licence: NONE) · get_code("08a2654ceb28b893")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

count_params Ran
ran, honoured the contract we drafted
Shyamal-Dharia/eeg-difflogic/src/jetson_benchmarking.py
pointer only (licence: NONE) · get_code("67b3a0d4f3dca37e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_trial_level_folds Ran
ran; our contract draft was wrong, not the code
Shyamal-Dharia/eeg-difflogic/src/helper_seed.py
pointer only (licence: NONE) · get_code("012ab5baba1a9418")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_window_level_folds_simple Ran
ran; our contract draft was wrong, not the code
Shyamal-Dharia/eeg-difflogic/src/helper_seed.py
pointer only (licence: NONE) · get_code("8471c0f00b188cd1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_class_weights Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Shyamal-Dharia/eeg-difflogic/src/train_parallel.py
pointer only (licence: NONE) · get_code("2b458dd810d0fc44")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_file_size_kb Ran
ran, honoured the contract we drafted
Shyamal-Dharia/eeg-difflogic/src/jetson_benchmarking.py
pointer only (licence: NONE) · get_code("47d0a8f0bc29303b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_model_done Ran
ran, violated the contract we drafted
Shyamal-Dharia/eeg-difflogic/src/train_parallel.py
pointer only (licence: NONE) · get_code("f6778edc84b47e8b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_data Ran
ran; our contract draft was wrong, not the code
Shyamal-Dharia/eeg-difflogic/src/helper.py
pointer only (licence: NONE) · get_code("2ad6251ce7b1a934")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_data_asmr Ran
ran; our contract draft was wrong, not the code
Shyamal-Dharia/eeg-difflogic/src/helper.py
pointer only (licence: NONE) · get_code("b5e0fc48b9640c2b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_seed_data_structured Ran
ran, honoured the contract we drafted
Shyamal-Dharia/eeg-difflogic/src/helper_seed.py
pointer only (licence: NONE) · get_code("ed9513075beeabd8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Shyamal-Dharia/eeg-difflogic when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 17 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Real-time EEG classification on edge devices is bottlenecked by the floating-point arithmetic of conventional neural networks. We investigated Differentiable Logic Gate Networks (Diff-Logic) as a hardware-native alternative that compiles models into pure Boolean circuits executable via bitwise CPU operations. Through rigorous iso-parameter experiments across four EEG datasets spanning two classification tasks, binary dementia detection and 3-class emotion recognition, we compared Diff-Logic against matchedcapacity Multi-Layer Perceptron (MLP) and Binarized Neural Network (BNN) baselines at four complexity tiers (50k-500k parameters). On dementia screening, Diff-Logic achieved 80.2% Macro F1, outperforming the MLP baseline by 6.8%. On emotion recognition, the MLP retained a moderate performance advantage but incurred a 2.3× higher latency and 14× larger model size when deployed on a power-constrained (7W) Nvidia Jetson Orin Nano CPU (Single-core). Critically, Diff-Logic inference time remained nearly constant across a 10× increase in model scale, achieving a peak speedup of 2.9× over MLPs at the largest complexity tier. Our results establish logic-based neural architectures as a practical paradigm for resource-constrained brain-computer interfaces, achieving competitive or superior performance while natively satisfying the latency and memory constraints of portable edge deployment. Code is available on GitHub: https://github.com/Shyamal-Dharia/eeg-difflogic.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2607.18149")
get_code_for_paper("2607.18149")
have("2607.18149")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2607.18149.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2607.18149.svg)](https://syntology.ai/paper/2607.18149)

Connect an agent — have() is free.