SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.00329 · ICLR · 2023

Learning with Logical Constraints but without Shortcut Satisfaction

Yuan Yao, Zenan Li, Taolue Chen, Jingwei Xu, Xiaoxing Ma, Zehua Liu, Jian Lü

arXiv · PDF · Open in the Atlas

Code that ran

12 of 15 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, 0 violated it and 1 has no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2403.00329.json · badge: /api/ran/2403.00329.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
SoftWiser-group/NeSy-without-Shortcuts canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
softwiser-group/nesy-without-shortcuts canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
ResNet18 Ran
ran; our contract draft was wrong, not the code
SoftWiser-group/NeSy-without-Shortcuts/models/resnet.py
pointer only (licence: NONE) · get_code("8ac07200c1c79ca8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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.

ResNet34 Ran
ran; our contract draft was wrong, not the code
SoftWiser-group/NeSy-without-Shortcuts/models/resnet.py
pointer only (licence: NONE) · get_code("a89d570c0420fa68")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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.

add_default_parser_args Ran
ran; our contract draft was wrong, not the code
SoftWiser-group/NeSy-without-Shortcuts/logic_encoder/args.py
pointer only (licence: NONE) · get_code("5fbba8af66a4f573")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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.

conv3x3 Ran
ran; our contract draft was wrong, not the code
SoftWiser-group/NeSy-without-Shortcuts/models/resnet.py
pointer only (licence: NONE); the stored copy get_code serves, from amerch/CIFAR100-Training, is pointer only (licence: NONE) · get_code("583f9780bdd00a45")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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.

dataset_with_indices Ran
ran; our contract draft was wrong, not the code
softwiser-group/nesy-without-shortcuts/hwf_exp/config.py
pointer only (licence: NONE) · get_code("9713c177d53c82d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, softwiser-group/nesy-without-shortcuts 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.

dataset_with_indices Ran
ran on a synthesized input
SoftWiser-group/NeSy-without-Shortcuts/hwf_exp/config.py
pointer only (licence: NONE) · get_code("c4ef929d95634177")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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.

dataset_with_indices Ran
ran; our contract draft was wrong, not the code
SoftWiser-group/NeSy-without-Shortcuts/image_exp/config.py
pointer only (licence: NONE) · get_code("2129574ed34dcb74")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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_hms Ran
ran, honoured the contract we drafted
softwiser-group/nesy-without-shortcuts/hwf_exp/config.py
pointer only (licence: NONE) · get_code("238a5c2af722aa4b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, softwiser-group/nesy-without-shortcuts 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_hms Ran
ran, honoured the contract we drafted
SoftWiser-group/NeSy-without-Shortcuts/hwf_exp/config.py
pointer only (licence: NONE) · get_code("bb104479d26e39c3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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.

lr_adapt Ran
ran, honoured the contract we drafted
softwiser-group/nesy-without-shortcuts/hwf_exp/config.py
pointer only (licence: NONE) · get_code("22e236003b52f59c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, softwiser-group/nesy-without-shortcuts 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.

lr_adapt Ran
ran, honoured the contract we drafted
SoftWiser-group/NeSy-without-Shortcuts/hwf_exp/config.py
pointer only (licence: NONE) · get_code("487902fc411efb97")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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.

vgg16 Ran
ran; our contract draft was wrong, not the code
SoftWiser-group/NeSy-without-Shortcuts/models/vgg.py
pointer only (licence: NONE) · get_code("b77041e9b261bc8f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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.

DenseNet100 Not yet run
unverified (harvested, no recorded run)
SoftWiser-group/NeSy-without-Shortcuts/models/densenet.py
pointer only (licence: NONE) · get_code("f7b8450b915e3b4b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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. No invocation recorded.

vgg11 Not yet run
unverified (harvested, no recorded run)
SoftWiser-group/NeSy-without-Shortcuts/models/vgg.py
pointer only (licence: NONE) · get_code("7a6f63db4224099a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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. No invocation recorded.

vgg13 Not yet run
unverified (harvested, no recorded run)
SoftWiser-group/NeSy-without-Shortcuts/models/vgg.py
pointer only (licence: NONE) · get_code("3c7955d7089b595d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, SoftWiser-group/NeSy-without-Shortcuts 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. No invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 2 later) and 8 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.

FunctionAlso present inEarliest-datedOthers named
conv3x3 686 other papers
562 dated earlier, 15 the same month, 92 later, 17 same year, order not determinable · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
get_hms 7 other papers
5 dated earlier, 2 later
1802.07088 (2018-02)
i-RevNet: Deep Invertible Networks
1805.08079 (2018-05)
Faster Neural Network Training with Approximate Tensor Operations
1812.05159 (2018-12)
An Empirical Study of Example Forgetting during Deep Neural Network Learning
and 4 more not named here
dataset_with_indices 2 other papers
2 dated earlier
2302.02551 (2023-02)
CHiLS: Zero-Shot Image Classification with Hierarchical Label Sets
2305.17170 (2023-05)
Error Bounds for Learning with Vector-Valued Random Features
ResNet34 1 other paper
1 dated earlier
2109.13398 (2021-09)
Unrolling SGD: Understanding Factors Influencing Machine Unlearning

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

Recent studies have explored the integration of logical knowledge into deep learning via encoding logical constraints as an additional loss function. However, existing approaches tend to vacuously satisfy logical constraints through shortcuts, failing to fully exploit the knowledge. In this paper, we present a new framework for learning with logical constraints. Specifically, we address the shortcut satisfaction issue by introducing dual variables for logical connectives, encoding how the constraint is satisfied. We further propose a variational framework where the encoded logical constraint is expressed as a distributional loss that is compatible with the model's original training loss. The theoretical analysis shows that the proposed approach bears salient properties, and the experimental evaluations demonstrate its superior performance in both model generalizability and constraint satisfaction.

For agents

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

get_harvested_code_for_paper("2403.00329")
get_code_for_paper("2403.00329")
have("2403.00329")

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

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

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

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

Connect an agent — have() is free.