SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.05330 · 2026

Graph Normalization: Fast Binarizing Dynamics for Differentiable MWIS

Laurent Guigues

arXiv · PDF

Code that ran

2 of 2 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2605.05330.json · badge: /api/ran/2605.05330.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
vislearn/libmpopt community
Papers with Code archive
2 ran · 0 no recorded run
FunctionStatusWhere it lives
BaseSolver Ran
ran on a synthesized input · constructed an object; no result was computed
vislearn/libmpopt/python/mpopt/mwis/solver.py
code served (permissive licence) · get_code("1a04b1d3790720a1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, BaseSolver: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import ctypes
from unittest.mock import Mock, MagicMock

# Create a mock library object that simulates the C library interface
mock_lib = Mock()

# Mock all the solver functions that BaseSolver calls
mock_lib.solver_create = Mock(return_value=ctypes.c_void_p(12345))
mock_lib.solver_destroy = Mock(return_value=None)
mock_lib.solver_lower_bound = Mock(return_value=42.5)
mock_lib.solver_evaluate_primal = Mock(return_value=100.25)
mock_lib.solver_run = Mock(return_value=None)
mock_lib.solver_runtime = Mock(return_value=0.5)
mock_lib.solver_solve_ilp = Mock(return_value=None)
mock_lib.solver_execute_combilp = Mock(return_value=None)

ARGS = {
    'lib': mock_lib
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BaseSolver — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BaseSolver output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
Solver Ran
ran on a synthesized input · constructed an object; no result was computed
vislearn/libmpopt/python/mpopt/mwis/solver.py
code served (permissive licence) · get_code("bf51804eb1997207")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, Solver: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import ctypes
import numpy as np
from ctypes import CFUNCTYPE, c_void_p, c_int, c_double

# Create a mock library object that mimics the expected C library interface
class MockLibrary:
    def __init__(self):
        self.solver_instance = {"id": 0}
        self.nodes = []
        self.cliques = []
        self.assignment_data = []
        
    def solver_create(self):
        return self.solver_instance
    
    def solver_destroy(self, solver):
        pass
    
    def solver_lower_bound(self, solver):
        return 0.0
    
    def solver_evaluate_primal(self, solver):
        return 0.0
    
    def solver_run(self, solver, batch_size, max_batches, greedy_generations=10):
        pass
    
    def solver_runtime(self, solver):
        return 0.0
    
    def solver_solve_ilp(self, solver):
        pass
    
    def solver_execute_combilp(self, solver):
        pass
    
    def solver_add_node(self, solver, cost):
        self.nodes.append(cost)
    
    def solver_add_clique(self, solver, indices_ptr, size):
        pass
    
    def solver_get_assignment(self, solver, array_ptr, size):
        # Fill the array with dummy assignment data
        assignment = (ctypes.c_int * size)()
        for i in range(size):
            assignment[i] = i % 2
        ctypes.memmove(array_ptr, ctypes.addressof(assignment), size * ctypes.sizeof(ctypes.c_int))
    
    def solver_get_node_cost(self, solver, node_idx):
        return 1.5 if node_idx < len(self.nodes) else 0.0
    
    def solver_set_node_cost(self, solver, node_idx, cost):
        if node_idx < len(self.nodes):
            self.nodes[node_idx] = cost
    
    def solver_get_clique_cost(self, solver, clique_idx):
        return 2.5
    
    def solver_set_clique_cost(self, solver, clique_idx, cost):
        pass
    
    def solver_get_iteration(self, solver):
        return 5
    
    def solver_set_iteration(self, solver, value):
        pass
    
    def solver_get_constant(self, solver):
        return 1.0
    
    def solver_set_constant(self, solver, value):
        pass
    
    def solver_get_temperature(self, solver):
        return 0.5
    
    def solver_set_temperature(self, solver, value):
        pass
    
    def solver_get_threshold_feasibility(self, solver):
        return 0.1
    
    def solver_set_threshold_feasibility(self, solver, value):
        pass
    
    def solver_get_threshold_stability(self, solver):
        return 0.2
    
    def solver_set_threshold_stability(self, solver, value):
        pass
    
    def solver_get_temperature_drop_factor(self, solver):
        return 0.95
    
    def solver_set_temperature_drop_factor(self, solver, value):
        pass

mock_lib = MockLibrary()

ARGS = {
    "lib": mock_lib
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Solver — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Solver output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

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

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-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We introduce Graph Normalization (GN), a principled dynamical system on graphs that serves as a differentiable approximation engine for the NP-hard Maximum Weight Independent Set (MWIS) problem. MWIS encompasses a vast class of combinatorial challenges, including optimal assignment, scheduling, set packing, and MAP inference in discrete Markov Random Fields. Unlike Belief Propagation, we prove that GN always converges to a binary indicator of a Maximum Independent Set (MIS). GN realizes a fast quasi-Newton descent through an exact Majorization-Minimization step, which systematically improves the MWIS relaxed primal objective. We establish an equivalence between GN and the Replicator Dynamics of a nonlinear evolutionary game, where vertices compete for inclusion in an independent set. While being a non-potential game, the GN game follows Fisher's Fundamental Theorem of Natural Selection, where the average fitness is equal to the MWIS primal objective and strictly increases over time. This connection leads to a weighted extension of the Motzkin-Straus theorem, showing that MISes are in bijection with the local minima of a quadratic form over a tilted simplex. For the Assignment Problem, GN acts as a variant of the Sinkhorn algorithm that naturally converges to a hard assignment while generalizing to arbitrary constraint graphs beyond bipartite matching. We demonstrate GN's performance as a fast binarization engine for the state-of-the-art Bregman-Sinkhorn relaxed MWIS solver. On real-world benchmarks with up to 1M edges, GN identifies solutions within a 1% gap of the best known results in seconds on a laptop CPU. GN opens new avenues for deep learning architectures requiring differentiable, "hard" decisions under constraints, with potential applications in structured sparse attention, dynamic network pruning, and Mixture-of-Experts. Beyond core AI, the GN framework provides a foundation for end-to-end learning of constrained optimization tasks in fields such as computer vision, computational biology, and resource allocation. Coloring, Maximum Weight Set Packing, the multi-dimensional Knapsack problem, and Inexact Graph Matching [12]. Furthermore, it serves as a pivotal framework for MAP inference in discrete Markov Random Fields [46], Max-SAT reductions [30], and Distributed Constraint Optimization (DCOP) [19]. Many real-world problems can be formulated as MWIS instances, spanning from logistics and vehicle routing [18], wireless link scheduling in telecommunications [50], to map label placement [52]. In the domain of computer vision, this includes image segmentation [11], 3D reconstruction [57], multi-object tracking [41], and action recognition [54]. In biological sciences, MWIS Preprint.

For agents

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

get_harvested_code_for_paper("2605.05330")
get_code_for_paper("2605.05330")
have("2605.05330")

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

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

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

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

Connect an agent — have() is free.