Algorithmresearch
SuperGlue
Also called graph neural network feature matching.
Match two sets of keypoints with attention between and within the sets, then solve a partial assignment with a dustbin by Sinkhorn iterations.
- Solves
- Feature matching
- Time
- O(T M N) worst · average · best
- Space
- O(M N) extra
- Where
- M = the number of keypoints in image A; N = the number of keypoints in image B; T = the number of Sinkhorn iterations
- Model
- Real RAM
- Properties
- deterministiclearnednetwork cost excludedpartial assignmentsymmetric
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Paul Edouard Sarlin, Daniel DeTone, Tomasz Malisiewicz, Andrew Rabinovich, 2020
SuperGlue is a learned matcher for two sets of keypoints. A graph neural network takes the positions, scores and descriptors of the keypoints of both images, mixes them with attention inside each image and across the two images, and gives a score for each pair. An optimal matching layer then adds a "dustbin" row and column for points without a partner, and turns the scores into a soft partial assignment with Sinkhorn iterations. Pairs that are mutual best choices with a high enough value are the matches. This page covers the optimal matching layer, with its proof and code; the network and its training are outside the page, and the quality of its scores is a measured result.
In plain words
Each image has its own keypoints. A network looks at all of them together and gives each pair, one point from each image, a score that says how well they fit. Some points have no partner, because they are hidden or out of view in the other image. So we add an extra "nobody" slot on each side with a fixed score. Then we spread one unit of match per point over the partners and the "nobody" slot, and adjust the spread again and again until each point gives out exactly one unit and each slot takes exactly what it should. A pair is a match when each point puts most of its unit on the other, and the amount is above a threshold.
The problem
The input is the output of the network:
- a score matrix with rows, the keypoints of image A, and columns, the keypoints of image B;
- the dustbin score , a single learned number;
- the number of iterations and a match threshold .
The output is a soft assignment of size and a list of matches with and , where each and each appears at most once.
The soft assignment solves an entropic optimal transport problem. Row of must sum to 1 (keypoint is matched once, maybe to the dustbin), and the dustbin row must sum to (it can take all points of B); the same holds for columns with the dustbin column summing to . Among these plans, maximizes , where is with the dustbin row and column added and is an entropy term.
The algorithm
SUPERGLUE-MATCHING-LAYER(S, z, T, θ)- 1
S̄ ← S with a column and then a row of value z added at the end ▷ (M + 1) × (N + 1) - 2
a ← (1, …, 1, N) of length M + 1; b ← (1, …, 1, M) of length N + 1 - 3
u ← 0; v ← 0 - 4
repeat T times - 5
for each row i: u_i ← log a_i - log Σ_j exp(S̄_ij + v_j) - 6
for each column j: v_j ← log b_j - log Σ_i exp(S̄_ij + u_i) - 7
P_ij ← exp(S̄_ij + u_i + v_j) for all i, j - 8
for each real row i, c(i) ← the real column with the largest P_ij; for each real column j, r(j) ← the real row with the largest P_ij - 9
return P and the pairs (i, c(i)) with r(c(i)) = i and P_{i c(i)} > θ
Lines L5 and L6 are the Sinkhorn iterations in the log domain. Each line scales the rows or the columns of so that their sums are right; the log-sum-exp form (see the log-sum-exp trick) keeps large scores from overflowing. Line L8 looks only at the real block, not at the dustbins, as the released code does. Ties go to the smaller index.
The network before this layer, from Section 3.1 of the paper: a keypoint encoder adds an embedding of the position and detection score of each point to its descriptor. Then layers alternate self-attention, between the points of one image, and cross-attention, between the points of the two images. The final vectors and give . The dustbin score is a learned parameter. Training minimizes the negative log of at the ground-truth matches and at the dustbin entries of the unmatched points (Section 3.3), so the network learns the scale of its own scores.
Example
Take , and . Line L1 gives
After one pass of lines L5 and L6, the column sums of are exactly , but the row sums are . After passes both are right to 4 digits:
Row 0 picks column 0 and row 1 picks column 1, and each is picked back. With both pairs are matches, with 0.6316 and with 0.2213.
Now multiply and by 4. The plan becomes sharper: , and . Only is a match. This is the answer of the limit problem: the weights are , , and , and the best partial matching keeps only the pair of positive weight. Pair is a mutual best pair, so mutual nearest neighbor matching would keep it; the dustbin is what rejects it.
Correctness
The layer has a proof; the network does not. The proof in proofs/correctness.md shows:
- Exact columns. After each pass the column sums of equal exactly. The row sums tend to as the iterations converge; convergence for a positive matrix is Sinkhorn's theorem, which we cite.
- The fixed point is the entropic optimum. A converged is the unique maximizer of over the plans with marginals and , with .
- The limit is a partial matching. For every plan, , where is the real block, and the real blocks are exactly the doubly substochastic matrices. So the linear problem is a maximum weight partial matching with weights . With scores scaled by , the value of the entropic plan is within of it.
- The output is a matching. Each keypoint is in at most one listed pair.
What this does not show is that the scores are good. The paper measures it: it reports pose accuracy on indoor image pairs from ScanNet and on outdoor pairs from YFCC100M, and homography accuracy on synthetic warps (2020), with SuperPoint and SIFT features, against nearest neighbor matching with the ratio test or mutual checks and against learned outlier filters. These are benchmark results with the protocol of the paper.
Proof: Correctness of the SuperGlue optimal matching layerfull
This proof covers the optimal matching layer only: lines L1 to L9 of the main page, on a given score matrix , with , and a given dustbin score . Nothing here says that the network gives good scores; that is a measured property.
Line L1 builds of size : for and , and in the last row and the last column. Line L2 sets of length and of length . Write for a vector of ones, and
For let , with , and , where .
Lemma 1 (exact columns). After each pass of lines L5 and L6, the matrix has column sums exactly .
Proof. Line L6 sets . Then . The log-sum-exp of the code subtracts the maximum before the exponentials, which changes no value in exact arithmetic.
Lemma 2 (the target is feasible). , and is a non-empty compact set.
Proof. and . The matrix is in . The set is closed and each entry is at most , so it is compact.
Lemma 3 (a fixed point is the entropic optimum). Suppose for some vectors , and . Then is the unique maximizer of over .
Proof. Each term is concave in and strictly concave, so is strictly concave on the non-negative orthant. All entries of are positive, so is differentiable at , with
Take . The function is concave on and differentiable at , so
If with , strict concavity gives , and is in the convex set , which contradicts the first part.
For a matrix with positive entries and positive marginals of equal sum, the alternating scaling of lines L5 and L6 converges to a matrix of the form in Lemma 3. This is Sinkhorn's theorem on matrix scaling, which Sinkhorn and Knopp proved for doubly stochastic targets; we use it and do not prove it here. Lemma 1 holds after every pass, and the row sums tend to .
Lemma 4 (temperature). Let and let be the maximizer of over , which is the limit of the algorithm on the input and . Then for every ,
and the right side tends to 0 as .
Proof. also maximizes , so . Rearrange. is continuous on the compact set of Lemma 2, so is bounded by .
Lemma 5 (the limit problem is a partial matching). For let be its real block, for and . Then
is doubly substochastic (non-negative, with row and column sums at most 1), and each doubly substochastic matrix is the real block of exactly one . So is the maximum weight of a partial matching between rows and columns with edge weights .
Proof. Let . For , row of sums to 1, so . For , column sums to 1, so . Row sums to , so ; column then sums to , as needed. So is determined by , any doubly substochastic gives a in , and
The doubly substochastic matrices form the bipartite matching polytope, whose constraint matrix is totally unimodular, so its vertices are the 0-1 matrices of partial matchings. A linear function on a polytope reaches its maximum at a vertex.
So as the scale grows, the plan approaches the optimum of the linear program of Lemma 5: a pair can be matched only when , and the best partial matching of the weights is chosen. When this matching is unique, the plan converges to it.
Lemma 6 (the output is a partial matching). The list of line L9 has each row index and each column index at most once, and each listed is above the threshold .
Proof. Line L8 gives one best column per row and one best row per column, with ties to the smaller index. A row is listed only with its own best column, so at most once. If two rows were listed with the same column , both would equal the best row of , which is one index. The threshold test is in line L9.
Theorem. For any , the plan of line L7 has exact column sums , and the output is a partial matching of pairs with . When the iterations converge, the plan is the unique maximizer of over , and with scores scaled by its value is within of the best partial matching with weights , shifted by .
Proof. Lemmas 1 and 6 give the first sentence. Lemmas 2 and 3 give the second, and Lemmas 4 and 5 the third.
Complexity
The model is the real RAM, and the cost of the network is outside the page. Lines L1 and L2 take . Each pass of lines L5 and L6 computes and log-sum-exp values of length and , which is . Lines L7 to L9 take . The total is time and space.
The number of passes needed for a given accuracy grows when the scores have a large range, because the scaled matrix is then close to having zero entries. The paper uses . The paper reports about 12 million parameters for the network with , layers and 4 attention heads, and about 69 ms for one pair on a GTX 1080 GPU; these are measurements of 2020 and include the network.
Properties
- Partial assignment. The dustbin lets a point stay unmatched. Without it, the plan would force every point onto some partner.
- Symmetric. Swapping the images transposes , and at convergence is transposed too. The output pairs are the same up to the swap.
- Soft output. is a number in for real pairs and can serve as a match confidence, for example to weight RANSAC samples.
- Differentiable. Each line is smooth in and , so the network can be trained through the layer with ordinary backpropagation. This is the reason for Sinkhorn iterations instead of the exact Hungarian algorithm.
- Learned. The behavior of the full matcher depends on the training data, for example indoor or outdoor images.
Variants and improvements
- Exact assignment. On fixed scores, the Hungarian algorithm on the weights gives the limit matching of the proof directly, in time, but it is not differentiable.
- Classical filters. Mutual nearest neighbor matching and the ratio test work on raw descriptor distances without training. SuperGlue replaces them.
- LightGlue (2023). Lindenberger, Sarlin and Pollefeys replaced the Sinkhorn layer with a cheaper double softmax and a matchability score, and stop early on easy pairs.
- Dense matchers. LoFTR drops the detector and matches coarse feature maps with a related double softmax or with the same optimal transport layer.
When to use it
Use SuperGlue when you match keypoints across large changes of viewpoint or light, for example for visual localization or relative pose, and a GPU and trained weights for the type of images are available. Use the optimal matching layer alone on any score matrix when you need a soft partial assignment that is differentiable. Use nearest neighbors with the ratio test when there is no GPU, when the image type is far from the training data, or when you need a method with no learned parts.
Pitfalls
- Iterations are not convergence. After passes only the columns are exact. With a large score range the rows can still be far off; check the row error if you depend on it.
- Overflow. In the plain domain, overflows for scores of a few hundred. Use the log domain, as lines L5 and L6 do.
- The dustbin marginals. The dustbin row must sum to and the column to . With 1 instead, the total masses differ for , and no plan has those marginals.
- Normalization in the released code. The released code divides the scores by and divides the marginals by so that sums to 1, then multiplies back. Mixed conventions shift the threshold.
- Argmax over the dustbin. Line L8 takes the best real column, even when the dustbin entry of the row is larger; the threshold then removes weak pairs. Taking the argmax over the dustbin too is a different rule.
- The threshold is tuned. in the paper is a design choice.
Implementations
The network is outside this page. The Python code in impl/python/superglue.py implements only the optimal matching layer of lines L1 to L9 on a given score matrix and dustbin score: the augmentation, the log-domain Sinkhorn iterations, the plan and the mutual best pairs above a threshold. The tests check that the columns are exact after each pass, that the rows converge, that the log-domain result equals a plain-domain Sinkhorn, that large scores do not overflow, that marginal-preserving changes of the converged plan do not raise the entropic objective, that at a high scale the matches equal a brute-force best partial matching and the gap bound of the proof holds, and that a weak row goes to the dustbin.
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/superglue/. The authors are listed in prov/QBGQCK.jsonl.
"""The optimal matching layer of SuperGlue (Sarlin, DeTone, Malisiewicz and Rabinovich 2020).
The graph neural network is not part of this file. Its output is given: a
score matrix S of M rows (the keypoints of image A) and N columns (the
keypoints of image B), and the dustbin score z, which is a learned scalar.
The layer adds a dustbin row and a dustbin column of value z, so that a
keypoint can stay unmatched. It then scales the (M + 1) x (N + 1) matrix
exp(S_bar) to the marginals a = (1, ..., 1, N) and b = (1, ..., 1, M) with
Sinkhorn iterations, in the log domain so that large scores do not overflow.
The result P is the entropic optimal transport plan. A pair (i, j) of real
keypoints is a match when j is the best column of row i, i is the best row of
column j (both inside the real block) and P[i][j] is above a threshold.
"""
import math
from typing import List, Sequence, Tuple
Matrix = List[List[float]]
def log_sum_exp(xs: Sequence[float]) -> float:
m = max(xs)
if m == -math.inf:
return -math.inf
return m + math.log(sum(math.exp(x - m) for x in xs))
def augment(S: Sequence[Sequence[float]], z: float) -> Matrix:
"""Add a dustbin column and a dustbin row of value z to S."""
n = len(S[0])
rows = [list(r) + [z] for r in S]
rows.append([z] * (n + 1))
return rows
def log_sinkhorn(Sbar: Sequence[Sequence[float]], log_a: Sequence[float], log_b: Sequence[float],
iters: int) -> Tuple[List[float], List[float]]:
"""Return log scalings (u, v) such that P_ij = exp(Sbar_ij + u_i + v_j)."""
rows, cols = len(Sbar), len(Sbar[0])
u = [0.0] * rows
v = [0.0] * cols # @line L3
for _ in range(iters): # @line L4
u = [log_a[i] - log_sum_exp([Sbar[i][j] + v[j] for j in range(cols)]) # @line L5
for i in range(rows)]
v = [log_b[j] - log_sum_exp([Sbar[i][j] + u[i] for i in range(rows)]) # @line L6
for j in range(cols)]
return u, v
def transport_plan(S: Sequence[Sequence[float]], z: float, iters: int = 100) -> Matrix:
"""Return the (M + 1) x (N + 1) plan P after iters Sinkhorn iterations."""
m, n = len(S), len(S[0])
Sbar = augment(S, z) # @line L1
log_a = [0.0] * m + [math.log(n)] # @line L2
log_b = [0.0] * n + [math.log(m)]
u, v = log_sinkhorn(Sbar, log_a, log_b, iters)
return [[math.exp(Sbar[i][j] + u[i] + v[j]) for j in range(n + 1)] # @line L7
for i in range(m + 1)]
def mutual_matches(P: Sequence[Sequence[float]], threshold: float) -> List[Tuple[int, int, float]]:
"""Mutual best pairs of the real block with P above the threshold.
Ties go to the smaller index.
"""
m, n = len(P) - 1, len(P[0]) - 1
row_best = [max(range(n), key=lambda j: (P[i][j], -j)) for i in range(m)] # @line L8
col_best = [max(range(m), key=lambda i: (P[i][j], -i)) for j in range(n)]
return [(i, j, P[i][j]) for i, j in enumerate(row_best) # @line L9
if col_best[j] == i and P[i][j] > threshold]
def superglue_assign(S: Sequence[Sequence[float]], z: float, iters: int = 100,
threshold: float = 0.2) -> Tuple[Matrix, List[Tuple[int, int, float]]]:
"""Return (P, matches) for the score matrix S and the dustbin score z."""
if len(S) == 0 or len(S[0]) == 0:
return [], []
P = transport_plan(S, z, iters)
return P, mutual_matches(P, threshold)
test_superglue.py 197 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/superglue/. The authors are listed in prov/QBGQCK.jsonl.
import math
import random
from superglue import augment, mutual_matches, superglue_assign, transport_plan
def random_scores(rng, m, n, lo=-3.0, hi=3.0):
return [[rng.uniform(lo, hi) for _ in range(n)] for _ in range(m)]
def sums(P):
return [sum(r) for r in P], [sum(c) for c in zip(*P)]
def plain_sinkhorn(S, z, iters):
"""Sinkhorn in the plain domain: scale K = exp(S_bar) by row and column factors."""
m, n = len(S), len(S[0])
K = [[math.exp(x) for x in r] for r in augment(S, z)]
a = [1.0] * m + [float(n)]
b = [1.0] * n + [float(m)]
y = [1.0] * (n + 1)
x = [1.0] * (m + 1)
for _ in range(iters):
x = [a[i] / sum(K[i][j] * y[j] for j in range(n + 1)) for i in range(m + 1)]
y = [b[j] / sum(K[i][j] * x[i] for i in range(m + 1)) for j in range(n + 1)]
return [[x[i] * K[i][j] * y[j] for j in range(n + 1)] for i in range(m + 1)]
def partial_matchings(m, n):
"""All partial matchings of rows 0..m-1 into columns 0..n-1, as lists of pairs."""
def rec(i, used):
if i == m:
yield []
return
for rest in rec(i + 1, used):
yield rest
for j in range(n):
if j not in used:
for rest in rec(i + 1, used | {j}):
yield [(i, j)] + rest
yield from rec(0, frozenset())
def entropy(P):
return -sum(p * (math.log(p) - 1.0) for r in P for p in r if p > 0)
def objective(Sbar, P):
return sum(s * p for rs, rp in zip(Sbar, P) for s, p in zip(rs, rp))
def plan_of_matching(pairs, m, n):
P = [[0.0] * (n + 1) for _ in range(m + 1)]
for i, j in pairs:
P[i][j] = 1.0
for i in range(m):
P[i][n] = 1.0 - sum(P[i][:n])
for j in range(n):
P[m][j] = 1.0 - sum(P[i][j] for i in range(m))
P[m][n] = float(len(pairs))
return P
def test_column_sums_are_exact_after_each_iteration():
rng = random.Random(1)
for iters in (1, 3, 10):
m, n = rng.randint(1, 6), rng.randint(1, 6)
P = transport_plan(random_scores(rng, m, n), rng.uniform(-1, 1), iters)
_, cols = sums(P)
assert all(abs(c - 1.0) < 1e-12 for c in cols[:n])
assert abs(cols[n] - m) < 1e-12
def test_row_sums_converge_and_mass_is_m_plus_n():
rng = random.Random(2)
for _ in range(10):
m, n = rng.randint(1, 6), rng.randint(1, 6)
P = transport_plan(random_scores(rng, m, n), rng.uniform(-1, 1), 300)
rows, _ = sums(P)
assert all(abs(r - 1.0) < 1e-9 for r in rows[:m])
assert abs(rows[m] - n) < 1e-9
assert abs(sum(rows) - (m + n)) < 1e-9
def test_log_domain_equals_plain_domain():
rng = random.Random(3)
for _ in range(8):
m, n = rng.randint(1, 5), rng.randint(1, 5)
S, z = random_scores(rng, m, n), rng.uniform(-1, 1)
P = transport_plan(S, z, 25)
Q = plain_sinkhorn(S, z, 25)
assert all(abs(p - q) < 1e-10 for rp, rq in zip(P, Q) for p, q in zip(rp, rq))
def test_large_scores_do_not_overflow():
rng = random.Random(4)
S = random_scores(rng, 4, 5, 500.0, 900.0)
P, matches = superglue_assign(S, 700.0, iters=200)
assert all(math.isfinite(p) for r in P for p in r)
_, cols = sums(P)
assert all(abs(c - 1.0) < 1e-9 for c in cols[:5])
def test_fixed_point_beats_marginal_preserving_perturbations():
rng = random.Random(5)
m, n = 4, 3
S, z = random_scores(rng, m, n), 0.3
Sbar = augment(S, z)
P = transport_plan(S, z, 500)
best = objective(Sbar, P) + entropy(P)
for _ in range(200):
i, k = rng.sample(range(m + 1), 2)
j, l = rng.sample(range(n + 1), 2)
d = rng.uniform(-1, 1) * 0.5 * min(P[i][j], P[k][l], P[i][l], P[k][j])
Q = [r[:] for r in P]
Q[i][j] += d
Q[k][l] += d
Q[i][l] -= d
Q[k][j] -= d
assert objective(Sbar, Q) + entropy(Q) <= best + 1e-12
def test_high_scale_matches_best_partial_matching():
rng = random.Random(6)
done = 0
while done < 6:
m, n = rng.randint(1, 4), rng.randint(1, 4)
S, z = random_scores(rng, m, n), rng.uniform(-1, 1)
values = sorted(((sum(S[i][j] - z for i, j in pm), sorted(pm))
for pm in partial_matchings(m, n)), reverse=True)
if len(values) > 1 and values[0][0] - values[1][0] < 1.0:
continue # skip near ties
done += 1
beta = 5.0
Sb = [[beta * s for s in r] for r in S]
P, matches = superglue_assign(Sb, beta * z, iters=2000, threshold=0.5)
assert sorted((i, j) for i, j, _ in matches) == values[0][1]
rows, _ = sums(P)
assert all(abs(r - 1.0) < 1e-6 for r in rows[:m]) # converged
# the bound of Lemma 4: LP optimum minus <S_bar, P> is at most (H(P) - H(P*)) / beta
Sbar = augment(S, z)
star = plan_of_matching(values[0][1], m, n)
assert abs(objective(Sbar, star) - (values[0][0] + z * (m + n))) < 1e-9
gap = objective(Sbar, star) - objective(Sbar, P)
assert gap <= (entropy(P) - entropy(star)) / beta + 1e-6
def test_weak_rows_go_to_the_dustbin_and_matches_are_a_matching():
rng = random.Random(7)
S = random_scores(rng, 5, 4)
S[2] = [-8.0] * 4
P, matches = superglue_assign(S, 0.0, iters=200)
assert all(i != 2 for i, _, _ in matches)
assert P[2][4] > 0.99
assert len({i for i, _, _ in matches}) == len(matches) == len({j for _, j, _ in matches})
assert all(p > 0.2 for _, _, p in matches)
assert mutual_matches(P, 1.0) == []
assert superglue_assign([], 0.0) == ([], [])
def brute_mutual(P, theta):
m, n = len(P) - 1, len(P[0]) - 1
out = []
for i in range(m):
for j in range(n):
row_ok = all(P[i][j] > P[i][k] or (P[i][j] == P[i][k] and j <= k) for k in range(n))
col_ok = all(P[i][j] > P[k][j] or (P[i][j] == P[k][j] and i <= k) for k in range(m))
if row_ok and col_ok and P[i][j] > theta:
out.append((i, j, P[i][j]))
return out
def test_many_small_inputs_against_plain_sinkhorn_and_brute_mutual():
rng = random.Random(9)
for trial in range(600):
m, n = rng.randint(1, 4), rng.randint(1, 4)
S = [[float(rng.randint(-2, 2)) for _ in range(n)] for _ in range(m)]
z = float(rng.randint(-1, 1))
iters = rng.randint(1, 8)
P, matches = superglue_assign(S, z, iters=iters, threshold=0.2)
Q = plain_sinkhorn(S, z, iters)
assert all(abs(p - q) < 1e-9 for rp, rq in zip(P, Q) for p, q in zip(rp, rq))
assert matches == brute_mutual(P, 0.2)
def test_transpose_gives_transposed_matches():
rng = random.Random(8)
for _ in range(5):
m, n = rng.randint(1, 5), rng.randint(1, 5)
S, z = random_scores(rng, m, n), rng.uniform(-1, 1)
T = [list(c) for c in zip(*S)]
_, a = superglue_assign(S, z, iters=400)
_, b = superglue_assign(T, z, iters=400)
assert sorted((i, j) for i, j, _ in a) == sorted((j, i) for i, j, _ in b)
History
Sinkhorn studied the scaling of a positive matrix to given row and column sums in the 1960s, and Sinkhorn and Knopp (1967) proved convergence for the doubly stochastic case. Cuturi (2013) used the iterations for entropic optimal transport and made them a common tool in machine learning. Before 2020, feature matching was nearest neighbor search with hand-made filters such as the ratio test and mutual checks, sometimes followed by a learned outlier filter. Sarlin, DeTone, Malisiewicz and Rabinovich (2020) learned the matching itself with attention and put a Sinkhorn layer with a dustbin at the end. With SuperPoint features it became a common baseline, and LightGlue (2023) followed as a faster successor.
References
- Paul-Edouard Sarlin, Daniel DeTone, Tomasz Malisiewicz and Andrew Rabinovich, SuperGlue, learning feature matching with graph neural networks, IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020 (arXiv 1911.11763), Section 3.1 (the keypoint encoder and the attentional graph neural network), Section 3.2 (the score matrix, the dustbin, the marginals and the Sinkhorn iterations), Section 3.3 (the loss), Section 4 (the implementation details)
- Richard Sinkhorn and Paul Knopp, Concerning nonnegative matrices and doubly stochastic matrices, Pacific Journal of Mathematics 21(2), 1967, pages 343-348, the convergence of alternating row and column scaling
- Marco Cuturi, Sinkhorn distances, lightspeed computation of optimal transport, Advances in Neural Information Processing Systems 26 (NIPS), 2013, pages 2292-2300, entropic regularization of optimal transport and its solution by Sinkhorn iterations
- Daniel DeTone, Tomasz Malisiewicz and Andrew Rabinovich, SuperPoint, self-supervised interest point detection and description, IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), 2018, the keypoints and descriptors that SuperGlue takes as input in most of its experiments
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag QBGQCK Edit this page History Report an error Markdown