SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.08824 · ICML · 2026

SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradients

Anselm Paulus, Vít Musil, Georg Martius, A Geist, Sebastian Hoffmann, Onur Beker

arXiv · PDF · Open in the Atlas

Code that ran

12 of 16 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 9 failures of our instrument; 4 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/2603.08824.json · badge: /api/ran/2603.08824.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
a-paulus/softtorch canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
a-paulus/softjax canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
benchmark_single Ran
ran; our contract draft was wrong, not the code
a-paulus/softtorch/benchmarks/benchmark.py
code served (permissive licence) · get_code("309d8a6faaf70866")
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 dict. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import numpy as np
from dataclasses import dataclass, field
from collections.abc import Callable

torch.manual_seed(0)

# Create a minimal FunctionSpec with a simple function
@dataclass
class FunctionSpec:
    name: str
    fn: Callable
    kwargs: dict = field(default_factory=dict)
    methods: list[str] | None = None
    two_d: bool = False

# Simple test function that accepts the required parameters
def simple_fn(x, mode='forward', method=None, softness=1.0):
    """A minimal function for testing benchmark_single"""
    return x * softness

# Create the FunctionSpec instance
spec = FunctionSpec(
    name='test_function',
    fn=simple_fn,
    kwargs={},
    methods=None,
    two_d=False
)

ARGS = {
    'spec': spec,
    'mode': 'forward',
    'method': None,
    'size': 4,
    'dtype': torch.float32,
    'device': 'cpu',
    'num_trials': 1,
    'softness': 1.0,
    'batch_size': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
grad_replace Ran
ran; our contract draft was wrong, not the code
a-paulus/softjax/src/softjax/straight_through.py
code served (permissive licence) · get_code("ca104f5a553361c0")
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 function. 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 jax
import jax.numpy as jnp
from jax import tree_util as jtu
import functools
from collections.abc import Callable

def sample_fn(x, y, forward=True):
    """A sample function that accepts forward parameter and returns different outputs."""
    if forward:
        return x + y
    else:
        return x * y

def sample_fn_with_tree(x, forward=True):
    """A sample function that returns a tree structure."""
    if forward:
        return {"a": x + 1.0, "b": x + 2.0}
    else:
        return {"a": x - 1.0, "b": x - 2.0}

def sample_fn_with_none(x, forward=True):
    """A sample function that may return None in tree."""
    if forward:
        return [x + 1.0, None]
    else:
        return [x - 1.0, None]

ARGS = {
    "fn": sample_fn
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
grad_replace Ran
ran; our contract draft was wrong, not the code
a-paulus/softtorch/src/softtorch/straight_through.py
code served (permissive licence) · get_code("afbc7c871639a54a")
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 function. 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 torch
import torch.nn as nn
import functools

torch.manual_seed(0)

# Define a simple function that accepts forward parameter
def simple_fn(x, y, forward=True):
    """A test function that behaves differently based on forward flag."""
    if forward:
        # Forward pass: simple addition
        return x + y
    else:
        # Backward pass: different computation
        return x * y

# Alternative function that returns multiple outputs (tree structure)
def multi_output_fn(x, forward=True):
    """A test function that returns a dict of tensors."""
    if forward:
        return {"out1": x * 2, "out2": x + 1}
    else:
        return {"out1": x * 3, "out2": x + 2}

# Create test tensors
x_tensor = torch.randn(2, 4, requires_grad=True)
y_tensor = torch.randn(2, 4, requires_grad=True)

ARGS = {
    "fn": simple_fn
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
load_and_prepare Ran
ran; our contract draft was wrong, not the code
a-paulus/softjax/benchmarks/plot_paper.py
code served (permissive licence) · get_code("12f7d66f70850009")
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 DataFrame. 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 pandas as pd
from pathlib import Path
import tempfile
import os

# Create a temporary CSV file with the required columns
csv_content = """method,fwd_ms_mean,grad_ms_mean,jit_fwd_ms_mean,jit_grad_ms_mean,peak_memory_bytes
method_a,10.5,20.3,8.2,18.1,1048576
method_b,12.1,22.5,9.3,19.5,2097152
,15.0,25.0,10.5,21.0,3145728
"""

# Write to a temporary file
temp_dir = tempfile.gettempdir()
csv_path = os.path.join(temp_dir, "benchmark_test.csv")
with open(csv_path, "w") as f:
    f.write(csv_content)

ARGS = {
    "csv_path": csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
measure_peak_memory Ran
ran; our contract draft was wrong, not the code
a-paulus/softjax/benchmarks/benchmark.py
code served (permissive licence) · get_code("34bf55f7df201105")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 jax
import jax.numpy as jnp

# Create a simple JAX function that takes arguments and returns a JAX array
def simple_jax_fn(x, y, scale=1.0):
    """Simple function that takes JAX arrays and returns a result"""
    return x * y * scale

# Set up small JAX arrays as arguments
x_arg = jnp.array([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])  # shape (2, 4)
y_arg = jnp.array([[0.1, 0.2, 0.3, 0.4], [0.5, 0.6, 0.7, 0.8]])  # shape (2, 4)

# Define ARGS dictionary with all parameters for measure_peak_memory
ARGS = {
    "fn": simple_jax_fn,
    "args": (x_arg, y_arg),
    "kwargs": {"scale": 2.0}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
measure_peak_memory Ran
ran, honoured the contract we drafted
a-paulus/softtorch/benchmarks/benchmark.py
code served (permissive licence) · get_code("fffc12a692f7e287")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Define a simple model that works with the function
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create a simple callable function that uses a model
def model_fn(inp, model=None):
    return model(inp)

# Create instances
model = SimpleModel()
input_tensor = torch.randn(2, 4, requires_grad=True)

# Define ARGS dict with all parameters for measure_peak_memory
ARGS = {
    'fn': model_fn,
    'args': (input_tensor,),
    'kwargs': {'model': model},
    'device': 'cpu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
measure_runtime Ran
ran; our contract draft was wrong, not the code
a-paulus/softjax/benchmarks/benchmark.py
code served (permissive licence) · get_code("5d8f9be124a84aee")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 jax
import jax.numpy as jnp
import numpy as np
from collections.abc import Callable

# Create a simple JAX function that returns a JAX array
def sample_compiled_fn(x, y):
    return jax.numpy.sum(x * y)

# Create sample arguments
x_arg = jnp.array([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])
y_arg = jnp.array([[0.5, 1.5, 2.5, 3.5], [4.5, 5.5, 6.5, 7.5]])

ARGS = {
    "compiled_fn": sample_compiled_fn,
    "args": (x_arg, y_arg),
    "kwargs": {},
    "num_runs": 2,
    "warmup": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
measure_runtime Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
a-paulus/softtorch/benchmarks/benchmark.py
code served (permissive licence) · get_code("b874102a32564621")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type and ndim 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 torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a simple function to measure
def simple_fn(x, y):
    return x + y

# Create test tensors
x = torch.randn(2, 4)
y = torch.randn(2, 4)

# Define arguments for measure_runtime
ARGS = {
    'fn': simple_fn,
    'args': (x, y),
    'kwargs': {},
    'device': 'cpu',
    'num_runs': 5,
    'warmup': 2,
    'no_grad': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
normalized_entropy Ran
ran, violated the contract we drafted
a-paulus/softjax/benchmarks/measure_normalized_entropy.py
code served (permissive licence) · get_code("e23cfbb322bd545f")
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 float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 jax
import jax.numpy as jnp

# Create a simple probability matrix (batch_size=2, num_classes=4)
# Each row should sum to 1 (valid probability distribution)
P = jnp.array([
    [0.7, 0.2, 0.05, 0.05],  # More concentrated (lower entropy)
    [0.25, 0.25, 0.25, 0.25]  # Uniform (higher entropy)
])

ARGS = {
    "P": P
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
st Ran
ran; our contract draft was wrong, not the code
a-paulus/softjax/src/softjax/straight_through.py
code served (permissive licence) · get_code("619c75f5b6c9c2f4")
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 function. 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 jax
import jax.numpy as jnp
import functools
import inspect
from collections.abc import Callable

def example_function(x, y, mode='smooth'):
    """A simple test function that uses the mode parameter."""
    if mode == 'hard':
        return jnp.maximum(x, y)
    elif mode == 'smooth':
        return jnp.tanh(x) + jnp.tanh(y)
    else:
        return x + y

def another_function(a, mode='smooth'):
    """Another test function with mode parameter."""
    if mode == 'hard':
        return jnp.round(a)
    else:
        return jnp.sin(a)

def function_without_mode(x, y):
    """A function without mode parameter - should default to 'smooth'."""
    return x * y + 1.0

# Create test inputs
test_x = jnp.array([1.5, 2.3, -1.1, 0.8])
test_y = jnp.array([0.5, 1.2, 0.9, -0.3])
test_a = jnp.array([0.1, 0.2, 0.3, 0.4])

ARGS = {
    'fn': example_function
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
st Ran
ran; our contract draft was wrong, not the code
a-paulus/softtorch/src/softtorch/straight_through.py
code served (permissive licence) · get_code("88e35725aced0471")
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 function. 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 torch
import inspect
from collections.abc import Callable

torch.manual_seed(0)

def sample_fn(x, mode='smooth'):
    """A simple function that accepts a mode parameter and returns a tensor."""
    if mode == 'hard':
        return torch.round(x)
    elif mode == 'smooth':
        return x * 0.9
    else:
        return x

def sample_fn_no_mode(x):
    """A function without a mode parameter."""
    return x * 2.0

ARGS = {
    'fn': sample_fn
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
where Ran
ran, honoured the contract we drafted
a-paulus/softtorch/src/softtorch/functions.py
code served (permissive licence) · get_code("f8a16211e1f3cce6")
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 Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 torch

torch.manual_seed(0)

# Create small tensors with distinct shapes to probe dimensions
condition = torch.tensor([[0.3, 0.7, 0.2, 0.9],
                          [0.5, 0.1, 0.8, 0.4]], dtype=torch.float32)

x = torch.tensor([[1.0, 2.0, 3.0, 4.0],
                  [5.0, 6.0, 7.0, 8.0]], dtype=torch.float32)

y = torch.tensor([[10.0, 20.0, 30.0, 40.0],
                  [50.0, 60.0, 70.0, 80.0]], dtype=torch.float32)

ARGS = {
    "condition": condition,
    "x": x,
    "y": y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
plot_scaling Not yet run
unverified (harvested, no recorded run)
a-paulus/softjax/benchmarks/plot_results.py
code served (permissive licence) · get_code("779d742559dc8ba6")
How it ran

no invocation recorded.

plot_scaling Not yet run
unverified (harvested, no recorded run)
a-paulus/softtorch/benchmarks/plot_results.py
code served (permissive licence) · get_code("2eba52e7112fa354")
How it ran

no invocation recorded.

plot_scaling_combined Not yet run
unverified (harvested, no recorded run)
a-paulus/softjax/benchmarks/plot_results.py
code served (permissive licence) · get_code("33be522945a11044")
How it ran

no invocation recorded.

plot_scaling_combined Not yet run
unverified (harvested, no recorded run)
a-paulus/softtorch/benchmarks/plot_results.py
code served (permissive licence) · get_code("a658fbaf28adf2bf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 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 16 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

Automatic differentiation (AD) frameworks such as JAX and PyTorch have enabled gradient-based optimization for a wide range of scientific fields. Yet, many "hard" primitives in these libraries such as thresholding, Boolean logic, discrete indexing, and sorting operations yield zero or undefined gradients that are not useful for optimization. While numerous "soft" relaxations have been proposed that provide informative gradients, the respective implementations are fragmented across projects, making them difficult to combine and compare. This work introduces SoftJAX and SoftTorch, open-source, feature-complete libraries for soft differentiable programming. These libraries provide a variety of soft functions as drop-in replacements for their hard JAX and Py-Torch counterparts. This includes (i) elementwise operators such as clip or abs, (ii) utility methods for manipulating Booleans and indices via fuzzy logic, (iii) axiswise operators such as sort or rank -based on optimal transport or permutahedron projections, and (iv) offer full support for straight-through gradient estimation. Overall, SoftJAX and SoftTorch make the toolbox of soft relaxations easily accessible to differentiable programming, as demonstrated through benchmarking and a practical case study. Code is available at github.com/a-paulus/softjax and github.com/a-paulus/softtorch.

For agents

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

get_harvested_code_for_paper("2603.08824")
get_code_for_paper("2603.08824")
have("2603.08824")

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

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

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

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

Connect an agent — have() is free.