SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.01928 · 2026

Training Non-Differentiable Networks via Optimal Transport

An Le

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 34 functions out of this paper's own repositories and ran 26 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
anindex/polystep — 26 of 34
FunctionStatusWhere it lives
MinCostGreedySolver Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("b9faad5d34c5079d")
ProgressiveEpsilon Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("68b8e09fcb53bc3a")
SolverResult Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("9a4d72458f2b2c6b")
TopKMeanSolver Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("2d2c9f0cd2eae481")
_chunk_spans Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("56a7cb48e8a95093")
_fill_screened_losses Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("123203a24ce96c1c")
_rotation_due Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("fb9c130562f2ddd7")
align_marginal Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("70774a9e79964002")
apply_biased_rotation Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("a135a9156ab015ff")
apply_momentum Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("ac58fecd780d1907")
compute_momentum_coefficient Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("d69d529aa0f75380")
get_random_rotation_matrices Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("4b1eb26b6c4687f6")
get_rotation_matrix_2d Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("afa570bfb71557ed")
loss_buffer_dtype Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("b9dbb895f49cf1c6")
maintain_per_layer_subspace Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("1901beb4b7afb4e0")
radius_epsilon_factor Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("e98d8df39439ee16")
recenter_cost Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("4f1278829c2ee385")
resolve_cost_scale Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("5b768bee84d5e5b7")
sanitize_cost Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("5c17c93b4e4f0184")
scale_cost_matrix Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("68cadb48ed27a625")
single_thread_cpu Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("e384ee405d2311d5")
solver_health Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("aa328c2355f135e0")
thin_qr Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("e9a534b3eced5922")
update_radius_multiplier Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("dbaa1a2ea73f6bd4")
update_stagnation Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("c4c932f909737589")
validate_cost_shape Ran anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("7b4998095a2b0c8e")
feed_solver_stats Not yet run anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("f48d8ceb1b663160")
invalidate_for_basis_change Not yet run anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("da431ecc8ded467a")
record_displacement Not yet run anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("9cf24beedcf4e9b3")
record_saturation Not yet run anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("9573c27938e60433")
step_monolithic Not yet run anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("c4eea73878116bae")
update_amortized_direction Not yet run anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("058ecf46079254b3")
update_stagnation_and_radius Not yet run anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("133247c1b31f1ea0")
warn_all_nonfinite Not yet run anindex/polystep/src/polystep/_step_monolithic.py
code served (permissive licence) · get_code("e2eb52c97e464152")

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 optimize losses that jump: spiking thresholds, quantized layers and discrete routing put jumps in the forward pass, where backpropagation does not apply. Finite differences do not rescue it: at a derivative-estimating radius, 99.5% of probe pairs on a quantized network leave the loss bit-identical, against 1.6% on a smooth control. At a jump, Clarke and conservative stationarity are undefined, and any radius-h smoothing steepens like 1/h across it, so no vanishing radius defines a derivative. Fixed-resolution stationarity survives. PolyStep attains it from forward passes alone: it ranks probe points on a randomly rotated polytope and steps along a softmax-weighted average of their directions, the λ = 0 endpoint of a KLpenalized transport program. A second impossibility fixes that frame: on a plateau wider than the probes reach, every rule that reweights a single cost row freezes, softmax included, and only the transport column constraint escapes. In expectation the cost-weighted average of the probed directions is exactly a gradient step on a smoothed loss, for every bounded measurable objective, with no probe asked to avoid the discontinuity set; the softmax step the runs use matches it up to a measured remainder. Over T steps the iterates reach subspace stationarity at rate O(T -(1/2-γ) ) up to a bias floor with an interior optimal probe radius, and where the loss is Lipschitz this upgrades to Goldstein stationarity at the sharp radius √ P δ out . Eight hypotheses carry the rate, with per-experiment coverage stated. At matched optimizer steps PolyStep leads every comparison in a six-architecture by six-baseline sweep on validation accuracy. At matched evaluations it reaches 93.0 ± 0.2% on spiking networks with hard leaky-integrate-and-fire thresholds against 79.6±5.2% for the best tuned gradientfree baseline, and satisfies 92.6% of clauses on million-variable MAX-SAT, against an 87.5% random floor that OpenAI-ES decays to within 0.3 points of. Matching total evaluations instead reverses argmax attention and one MAX-SAT size, and levels hard MoE. Two limits: a step costs about one forward pass per search-subspace dimension, leaving PolyStep at chance at 4.2M parameters from scratch, and where gradients exist Adam is faster and more accurate. Code: https://github.com/anindex/polystep.

For agents

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

get_harvested_code_for_paper("2605.01928")
get_code_for_paper("2605.01928")
have("2605.01928")

Connect an agent — have() is free.