Papers › Towards Accurate Binary Neural Networks via Modeling Contextual Dependencies

Towards Accurate Binary Neural Networks via Modeling Contextual Dependencies

3 Sep 2022arXiv:2209.01404archive 2025-07-28

Xingrun Xing, Yangguang Li, Wei Li, Wenrui Ding, Yalong Jiang, Yufeng Wang, Jing Shao, Chunlei Liu, Xianglong Liu

Existing Binary Neural Networks (BNNs) mainly operate on local convolutions with binarization function. However, such simple bit operations lack the ability of modeling contextual dependencies, which is critical for learning discriminative deep representations in vision models. In this work, we tackle this issue by presenting new designs of binary neural modules, which enables BNNs to learn effective contextual dependencies. First, we propose a binary multi-layer perceptron (MLP) block as an alternative to binary convolution blocks to directly model contextual dependencies. Both short-range and long-range feature dependencies are modeled by binary MLPs, where the former provides local inductive bias and the latter breaks limited receptive field in binary convolutions. Second, to improve the robustness of binary models with contextual dependencies, we compute the contextual dynamic embeddings to determine the binarization thresholds in general binary convolutional blocks. Armed with our binary MLP blocks and improved binary convolution, we build the BNNs with explicit Contextual Dependency modeling, termed as BCDNet. On the standard ImageNet-1K classification benchmark, the BCDNet achieves 72.3% Top-1 accuracy and outperforms leading binary methods by a large margin. In particular, the proposed BCDNet exceeds the state-of-the-art ReActNet-A by 2.9% Top-1 accuracy with similar operations. Our code is available at https://github.com/Sense-GVT/BCDN

PaperPDFCodeCode 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="2209.01404")

Code

Syntology Ran 10 of 17 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 7 ran with no contract checked.

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

sense-gvt/bcdnet officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. 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; 10 ran; 0 honoured the contract we drafted; 7 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.

3ran · our draft was wrong
7ran
7unverified

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 Sense-GVT/BCDNet. “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.

BinaryActivation Sense-GVT/BCDNet/prototype/model/a_3.py official repository ran fingerprinted no licence file found · pointer only · 576cf54b92fc2045 · report
GlobalShift Sense-GVT/BCDNet/prototype/model/a_3.py official repository ran fingerprinted no licence file found · pointer only · 9f5b3152cc94a478 · report
HardBinaryConv Sense-GVT/BCDNet/prototype/model/a_3.py official repository ran fingerprinted no licence file found · pointer only · 96414cb31453317f · report
LearnableBias Sense-GVT/BCDNet/prototype/model/a_3.py official repository ran fingerprinted no licence file found · pointer only · 484fb153ec2ac5f4 · report
Shift Sense-GVT/BCDNet/prototype/model/a_3.py official repository ran fingerprinted no licence file found · pointer only · ebd2689700cf8691 · report
binaryconv1x1 Sense-GVT/BCDNet/prototype/model/a_3.py official repository ran · our draft was wrong no licence file found · pointer only · 890ea919c4eae756 · report
binaryconv3x3 Sense-GVT/BCDNet/prototype/model/a_3.py official repository ran · our draft was wrong no licence file found · pointer only · c8fd8f1b353d36a3 · report
get_bn Sense-GVT/BCDNet/prototype/model/a_3.py official repository ran · our draft was wrong no licence file found · pointer only · 8a98753263fba59d · report
get_rank Sense-GVT/BCDNet/prototype/model/a_3.py official repository ran no licence file found · pointer only · 426074b9c7f8d0b4 · report
get_world_size Sense-GVT/BCDNet/prototype/model/a_3.py official repository ran no licence file found · pointer only · 63a4bdc62e66305d · report
BasicBlock Sense-GVT/BCDNet/prototype/model/a_3.py official repository unverified no licence file found · pointer only · 32055d142ffca233 · report
Block Sense-GVT/BCDNet/prototype/model/a_3.py official repository unverified no licence file found · pointer only · 5468426c40c8c5bc · report
PointBlock Sense-GVT/BCDNet/prototype/model/a_3.py official repository unverified no licence file found · pointer only · 5b128936059e4741 · report
Reactnet Sense-GVT/BCDNet/prototype/model/a_3.py official repository unverified no licence file found · pointer only · c843b0dd7c6ad11c · report
ShiftBlock Sense-GVT/BCDNet/prototype/model/a_3.py official repository unverified no licence file found · pointer only · d0829f23d319c6c4 · report
firstconv3x3 Sense-GVT/BCDNet/prototype/model/a_3.py official repository unverified no licence file found · pointer only · 872a669394bfc1d1 · report
simple_group_split Sense-GVT/BCDNet/prototype/model/a_3.py official repository unverified no licence file found · pointer only · 7bd0c3b833e49d56 · report

Tasks

BinarizationInductive Bias

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Convolution

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