LINNAEUS

Algorithm Equivalence Detector
GitHub  |  Based on Lessard & Udell (2025)

Computing...

Define Your Algorithm

Results

Enter an algorithm and click Check Equivalence to see results.

What is Linnaeus?

Linnaeus is a tool for detecting equivalence between iterative optimization algorithms. Many algorithms that appear different on the surface — different names, different papers, different update rules — turn out to compute exactly the same iterates. Linnaeus finds these hidden equivalences automatically.

How It Works

Every iterative oracle-based algorithm can be expressed as a linear dynamical system in feedback with a nonlinearity (the oracle). Linnaeus parses your algorithm's update equations, computes a transfer function , and compares it against a library of known methods:

  1. Parse: Your update equations are converted to a state-space realization .
  2. Transfer function: is computed via z-transform.
  3. Equivalence test: The transfer function is compared against all library entries using:
    • Oracle equivalence — identical transfer function
    • Oracle permutation — equivalent after reordering or relabeling oracles
    • Shift equivalence — algorithms related by a cyclical shift of update equations
    • LFT equivalence — related oracles (e.g., prox vs. conjugate prox)
    • Parametric matching — finds parameter values that make two algorithms equivalent (e.g., Heavy Ball with zero momentum is Gradient Descent)
    • Conditional equivalence — detects equivalences under simplifying assumptions such as certain functions being zero, unconstrained projection, or a trivial communication graph

Equation Syntax

Enter one update equation per line. Use [k], [k+1], [k-1], [k+2], etc. for time indices (k is a reserved symbol for iterate indices). Use * for explicit multiplication.

# Nesterov's Accelerated Method
y[k] = x[k] + beta * (x[k] - x[k-1])
x[k+1] = y[k] - alpha * grad_f(y[k])

# Douglas-Rachford Splitting
x1[k+1] = prox_f(x3[k])
x2[k+1] = prox_g(2 * x1[k+1] - x3[k])
x3[k+1] = x3[k] + x2[k+1] - x1[k+1]

# EXTRA (distributed)
x[k+1] = 2*W*x[k] - W*x[k-1] - alpha*(grad_f(x[k]) - grad_f(x[k-1]))

# Standard Average Consensus
x[k+1] = W*x[k]

Supported Oracles

SyntaxDescription
grad_f(x), grad_g(x), grad_h(x)Gradient of , , or
prox_f(x), prox_g(x), prox_h(x)Proximal operator of , , or
prox_fstar(x), prox_gstar(x), prox_hstar(x)Proximal operator of the conjugate , , or
P(x) or P_C(x)Projection onto convex set (renders as )
LGraph Laplacian (linear oracle, eigenvalue )
WMixing matrix (linear oracle, )

About the Project

Linnaeus is based on the paper “Algebraic characterization of equivalence between oracle-based iterative algorithms” by Laurent Lessard and Madeleine Udell (arXiv:2501.04972, 2025). The name honors Carl Linnaeus, the father of biological taxonomy, reflecting the tool's goal of classifying algorithms.