Papers › HardCoRe-NAS: Hard Constrained diffeRentiable Neural Architecture Search

HardCoRe-NAS: Hard Constrained diffeRentiable Neural Architecture Search

23 Feb 2021arXiv:2102.11646archive 2025-07-28

Niv Nayman, Yonathan Aflalo, Asaf Noy, Lihi Zelnik-Manor

Realistic use of neural networks often requires adhering to multiple constraints on latency, energy and memory among others. A popular approach to find fitting networks is through constrained Neural Architecture Search (NAS), however, previous methods enforce the constraint only softly. Therefore, the resulting networks do not exactly adhere to the resource constraint and their accuracy is harmed. In this work we resolve this by introducing Hard Constrained diffeRentiable NAS (HardCoRe-NAS), that is based on an accurate formulation of the expected resource requirement and a scalable search method that satisfies the hard constraint throughout the search. Our experiments show that HardCoRe-NAS generates state-of-the-art architectures, surpassing other NAS methods, while strictly satisfying the hard resource constraints without any tuning required.

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="2102.11646")

Code

Syntology Ran 2 of 6 code samples harvested from 2 repositories linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · honoured contract.

By repository: official repository: 2 samples from 1 repository, 1 ran; community (archive-listed): 4 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Alibaba-MIIL/HardCoReNAS officialmentioned in papermentioned on GitHubpytorch report
alibaba-miil/binas mentioned 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

6 samples harvested; 2 ran; 2 honoured the contract we drafted; 4 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.

2ran · honoured contract
4unverified

Licence: 0 of the 6 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

calculate_temperature Alibaba-MIIL/HardCoReNAS/search.py official repository ran · honoured contract fingerprinted MIT (permissive) · 622a379ad7dd9222 · report
argmax_attention Alibaba-MIIL/HardCoReNAS/search.py official repository unverified MIT (permissive) · 4239d29f3166f205 · report
smallest_sol alibaba-miil/binas/search.py community (archive-listed) ran · honoured contract MIT (permissive) · 5992f0ad22591cd9 · report
get_train_val_dir alibaba-miil/binas/search.py community (archive-listed) unverified MIT (permissive) · 957b3d09c343c5b3 · report
optimize_diff_predictor alibaba-miil/binas/search.py community (archive-listed) unverified MIT (permissive) · 94d498c319661873 · report
validate alibaba-miil/binas/accuracy_contribution.py community (archive-listed) unverified MIT (permissive) · 398498f4381620e6 · report

Tasks

Neural Architecture Search

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Neural Architecture Search ImageNet HardcoreNAS_E_KD Accuracy 80.1 #21 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_E_KD MACs 330M #21 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_E_KD Top-1 Error Rate 19.9 #21 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_D_KD Accuracy 79.5 #31 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_D_KD MACs 290M #31 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_D_KD Top-1 Error Rate 20.5 #31 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_C_KD Accuracy 78.9 #40 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_C_KD MACs 270M #40 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_C_KD Top-1 Error Rate 21.1 #40 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_B_KD Accuracy 78.8 #41 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_B_KD MACs 250M #41 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_B_KD Top-1 Error Rate 21.2 #41 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_A_KD Accuracy 78.3 #50 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_A_KD MACs 220M #50 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_A_KD Top-1 Error Rate 21.7 #50 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_F Accuracy 78.1 #52 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_F MACs 340M #52 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_F Top-1 Error Rate 21.9 #52 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_E Accuracy 77.9 #56 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_E MACs 330M #56 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_E Top-1 Error Rate 22.1 #56 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_D Accuracy 77.4 #65 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_D MACs 290M #65 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_D Top-1 Error Rate 22.6 #65 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_C Accuracy 77.1 #74 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_C MACs 270M #74 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_C Top-1 Error Rate 22.9 #74 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_B Accuracy 76.5 #85 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_B MACs 250M #85 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_B Top-1 Error Rate 23.5 #85 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_A Accuracy 75.9 #101 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_A MACs 220M #101 of 135 Archive leaderboard report
Neural Architecture Search ImageNet HardcoreNAS_A Top-1 Error Rate 24.1 #101 of 135 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Differentiable NAS

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