Papers › LinSATNet: The Positive Linear Satisfiability Neural Networks

LinSATNet: The Positive Linear Satisfiability Neural Networks

18 Jul 2024arXiv:2407.13917archive 2025-07-28

Runzhong Wang, Yunhao Zhang, Ziao Guo, Tianyi Chen, Xiaokang Yang, Junchi Yan

Encoding constraints into neural networks is attractive. This paper studies how to introduce the popular positive linear satisfiability to neural networks. We propose the first differentiable satisfiability layer based on an extension of the classic Sinkhorn algorithm for jointly encoding multiple sets of marginal distributions. We further theoretically characterize the convergence property of the Sinkhorn algorithm for multiple marginals. In contrast to the sequential decision e.g.\ reinforcement learning-based solvers, we showcase our technique in solving constrained (specifically satisfiability) problems by one-shot neural networks, including i) a neural routing solver learned without supervision of optimal solutions; ii) a partial graph matching network handling graphs with unmatchable outliers on both sides; iii) a predictive network for financial portfolios with continuous constraints. To our knowledge, there exists no one-shot neural solver for these scenarios when they are formulated as satisfiability problems. Source code is available at https://github.com/Thinklab-SJTU/LinSATNet

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

Code

Syntology Ran 6 of 14 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 6 ran · our draft was wrong.

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

thinklab-sjtu/linsatnet officialmentioned in paperpytorch 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

14 samples harvested; 6 ran; 0 honoured the contract we drafted; 8 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.

6ran · our draft was wrong
8unverified

Licence: 0 of the 14 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 thinklab-sjtu/linsatnet. “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.

_elem_div thinklab-sjtu/linsatnet/LinSATNet/linsat.py official repository ran · our draft was wrong MIT (permissive) · 511e2291e5945c84 · report
_init_shape thinklab-sjtu/linsatnet/LinSATNet/linsat.py official repository ran · our draft was wrong MIT (permissive) · fbbc820ab23d8b1d · report
_logsumexp_dim thinklab-sjtu/linsatnet/LinSATNet/linsat.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 47fe0302fb3c34c8 · report
_sum_dim thinklab-sjtu/linsatnet/LinSATNet/linsat.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · c8cba14a9ff824c1 · report
linsat_kernel_grouped_sparse_v2 thinklab-sjtu/linsatnet/LinSATNet/linsat.py official repository ran · our draft was wrong MIT (permissive) · 9b312387f9ef493c · report
load_args Thinklab-SJTU/LinSATNet/TSP_exp/run_evaluate.py official repository ran · our draft was wrong MIT (permissive) · 232d212380a938ff · report
_group_constr_greedy thinklab-sjtu/linsatnet/LinSATNet/linsat.py official repository unverified MIT (permissive) · fed0df8210aa3923 · report
init_constraints Thinklab-SJTU/LinSATNet/LinSATNet/linsat.py official repository unverified MIT (permissive) · bdbceff44b0b2122 · report
init_constraints thinklab-sjtu/linsatnet/LinSATNet/linsat.py official repository unverified MIT (permissive) · 217e8077a5a8b927 · report
linsat_kernel_grouped_dense_v2 thinklab-sjtu/linsatnet/LinSATNet/linsat.py official repository unverified MIT (permissive) · f7d8bac64a340a97 · report
linsat_kernel_v1 Thinklab-SJTU/LinSATNet/LinSATNet/linsat.py official repository unverified MIT (permissive) · b8b961cdbba85226 · report
linsat_kernel_v2 thinklab-sjtu/linsatnet/LinSATNet/linsat.py official repository unverified MIT (permissive) · 6b53d9e8927bfc55 · report
linsat_layer Thinklab-SJTU/LinSATNet/LinSATNet/linsat.py official repository unverified MIT (permissive) · 8333f611e4b5404d · report
linsat_layer thinklab-sjtu/linsatnet/LinSATNet/linsat.py official repository unverified MIT (permissive) · e38e1713fd0e6fd9 · report

Tasks

Graph Matching

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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