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

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

20 Jul 2026arXiv:2607.18149added by Syntology

Shyamal Y. Dharia, Stephen D. Smith, Camilo E. Valderrama

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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 matched-capacity 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

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2607.18149")

Code

Syntology Ran 17 of 17 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 17 ran with no contract checked.

By repository: found in paper text by Syntology: 17 samples from 1 repository, 17 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Shyamal-Dharia/eeg-difflogic found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 17 ran; 0 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

17ran

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Shyamal-Dharia/eeg-difflogic. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BNN_ALZ Shyamal-Dharia/eeg-difflogic/src/models_bnn.py found in paper text by Syntology ran no licence file found · pointer only · a3234c4b4cd4b652 · report
BNN_ALZ_50k Shyamal-Dharia/eeg-difflogic/src/models_bnn.py found in paper text by Syntology ran no licence file found · pointer only · 2ee879c744732c2d · report
BNN_SEED Shyamal-Dharia/eeg-difflogic/src/models_bnn.py found in paper text by Syntology ran no licence file found · pointer only · 33d7711600abb959 · report
MLPBaseline_ALZ Shyamal-Dharia/eeg-difflogic/src/models_baseline.py found in paper text by Syntology ran no licence file found · pointer only · 50c2393cc7fca347 · report
MLPBaseline_ALZ_50k Shyamal-Dharia/eeg-difflogic/src/models_baseline.py found in paper text by Syntology ran no licence file found · pointer only · 2ee81d444a15ecf2 · report
MLPBaseline_SEED Shyamal-Dharia/eeg-difflogic/src/models_baseline.py found in paper text by Syntology ran no licence file found · pointer only · b5a72f45babb0fe6 · report
binarize_with_train_minmax Shyamal-Dharia/eeg-difflogic/src/helper.py found in paper text by Syntology ran no licence file found · pointer only · db0f134767fa050d · report
count_parameters Shyamal-Dharia/eeg-difflogic/src/models_alz.py found in paper text by Syntology ran no licence file found · pointer only · 08a2654ceb28b893 · report
count_params Shyamal-Dharia/eeg-difflogic/src/jetson_benchmarking.py found in paper text by Syntology ran no licence file found · pointer only · 67b3a0d4f3dca37e · report
create_trial_level_folds Shyamal-Dharia/eeg-difflogic/src/helper_seed.py found in paper text by Syntology ran no licence file found · pointer only · 012ab5baba1a9418 · report
create_window_level_folds_simple Shyamal-Dharia/eeg-difflogic/src/helper_seed.py found in paper text by Syntology ran no licence file found · pointer only · 8471c0f00b188cd1 · report
get_class_weights Shyamal-Dharia/eeg-difflogic/src/train_parallel.py found in paper text by Syntology ran no licence file found · pointer only · 2b458dd810d0fc44 · report
get_file_size_kb Shyamal-Dharia/eeg-difflogic/src/jetson_benchmarking.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 47d0a8f0bc29303b · report
is_model_done Shyamal-Dharia/eeg-difflogic/src/train_parallel.py found in paper text by Syntology ran no licence file found · pointer only · f6778edc84b47e8b · report
load_data Shyamal-Dharia/eeg-difflogic/src/helper.py found in paper text by Syntology ran no licence file found · pointer only · 2ad6251ce7b1a934 · report
load_data_asmr Shyamal-Dharia/eeg-difflogic/src/helper.py found in paper text by Syntology ran no licence file found · pointer only · b5e0fc48b9640c2b · report
load_seed_data_structured Shyamal-Dharia/eeg-difflogic/src/helper_seed.py found in paper text by Syntology ran no licence file found · pointer only · ed9513075beeabd8 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2607.18149, was issued in July 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections