Pith. sign in

REVIEW 2 major objections 6 minor 20 references

Generalized Metric Repair on Graphs

T0 review · 2 major / 6 minor · reviewed 2026-08-14 · deepseek-v4-flash

Pith's one-line read This paper shows that repairing a weighted graph's distances to satisfy a metric is equivalent to hitting every broken cycle, and derives hardness, fixed-parameter, and approximation results from that equivalence.

desk verdict The structural and hardness contributions are solid and worth knowing, but the advertised O(κ log n)-approximation is not proven as stated: the greedy set-cover bound is applied to a universe of cycles that can be exponential. read the letter →

arxiv 1908.08411 v1 pith:KNJF2XSL submitted 2019-08-21 cs.DS cs.CG

classification cs.DScs.CG MSC 68W2568Q1705C85
keywords graphmetricrepairviolationdistancebrokencycleshittingsetMULTICUTfixed-parametertractableapproximationalgorithmschordalgraphs
verification ladder T0 review T1 audit T2 compute T3 formal

The pith

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The reading

This paper studies how to repair a weighted graph's edge weights with the fewest changes so that the resulting shortest-path distances satisfy a metric. Its central claim is that the repair problem reduces to a covering problem: a set of edges is the support of some valid repair exactly when it touches every 'broken cycle'—a cycle where one edge is heavier than the sum of all others. The general version needs one edge from each broken cycle, while the increase-only version needs a non-heavy edge from each broken cycle. This equivalence turns metric repair into a minimum hitting set problem on broken cycles, and the paper uses it to prove hardness results, give a fixed-parameter algorithm for graphs with bounded chordless cycles, and design approximation algorithms.

What carries the argument

The central object is the broken cycle and its cover. A broken cycle is a cycle containing one 'heavy' edge whose weight exceeds the sum of the other edges; the amount of that excess is its deficit. The characterization reduces any solution's support to a hitting set for broken cycles: a regular cover for the general problem, and a light cover for the increase-only problem. The algorithmic tools then use shortest-path computations to find broken cycles—an edge whose weight exceeds the shortest distance between its endpoints witnesses one—and, for the $O(\kappa \log n)$-approximation, to count how many maximum-deficit broken cycles contain each edge by summing products of shortest-path counts over eligible heavy edges.

What would settle it

Construct a small positively weighted graph where two maximum-deficit broken cycles containing the same light edge have shortest-path decompositions that share an internal vertex, then compute $N_l(e,\delta(G))$ by the lemma's formula and compare it with brute-force enumeration of all maximum-deficit broken cycles containing $e$; a mismatch would invalidate the counting lemma and break the approximation guarantee.

Watch

Extended reading notes

Core claim

The paper establishes Theorem 3.2: for any positively weighted graph, a set of edges $S$ is the support of a solution to the general graph metric repair problem $\mathrm{MR}(G, \mathbb{R})$ if and only if $S$ is a regular cover (it contains at least one edge from every broken cycle), and $S$ supports an increase-only solution $\mathrm{MR}(G, \mathbb{R}_{\geq 0})$ if and only if $S$ is a light cover (it contains at least one non-heavy edge from every broken cycle). The proof shows that if a broken cycle is left untouched, no modification to $S$ can repair it, and conversely, assigning each selected edge its shortest-path distance in the graph with $S$ removed yields a valid repair, with weights only increasing in the light-cover case. From this point onward, the metric repair problem is a purely combinatorial hitting-set problem over broken cycles, and every later hardness, FPT, and approximation result builds on this characterization.

Load-bearing premise

The $O(\kappa \log n)$-approximation rests on the assumption that each maximally broken cycle containing a given light edge is formed by concatenating shortest paths that touch one another only at the cycle's vertices; if those paths share vertices, the cycle count used by the greedy algorithm overestimates how many broken cycles an edge can fix.

Editorial extensions

If this is right

  • The decrease-only version of graph metric repair can be solved in $O(n^3)$ time, while allowing even a single positive repair value makes the problem APX-complete.
  • Assuming the Unique Games Conjecture, neither $\mathrm{MR}(G, \mathbb{R})$ nor $\mathrm{MR}(G, \mathbb{R}_{\geq 0})$ can be approximated within any constant factor, and for instances with maximum edge weight $L$ the approximation factor is hard within $\Omega(\sqrt{L})$.
  • For any fixed constant $\varsigma$, metric repair on $\varsigma$-chordal graphs is fixed-parameter tractable when parameterized by the optimal solution size, with running time $O((2\varsigma\,\mathrm{OPT}^{\varsigma})^{\mathrm{OPT}+1} n^{\varsigma})$.
  • The short-path-cover algorithm is an $(L+1)$-approximation for $\mathrm{MR}(G, \mathbb{R})$ and an $L$-approximation for $\mathrm{MR}(G, \mathbb{R}_{\geq 0})$ in $O(n^3 \cdot \mathrm{OPT})$ time, where $L+1$ is the largest number of edges in a broken cycle.
  • When at most $\kappa$ distinct deficit values occur, the greedy algorithm over maximum-deficit cycles gives an $O(\kappa \log n)$-approximation, and a cubic-time verifier decides whether any given edge set supports a valid solution.

Reading between the lines

Editorial extensions of the paper, not claims the author makes directly.

  • The hitting-set equivalence suggests that graph metric repair may inherit stronger lower bounds or algorithmic techniques from multicut research, such as primal-dual schemes or oblivious routing ideas, beyond the direct reductions shown in the paper.
  • Because the counting lemma for maximum-deficit cycles relies on shortest-path decomposition, a dynamic data structure that maintains these counts under edge deletions could turn the $O(\kappa \log n)$-approximation into a faster online algorithm.
  • The LB-CUT reduction uses a single heavy edge with unit-weight paths, which hints that instances with few distinct deficit values may be the hardest core of the problem; testing the algorithm on such structured instances could reveal whether the $\kappa$ dependence is truly necessary.
  • For complete graphs, the improved 5-cycle analysis suggests that optimal covers might be approximately recoverable by enumerating only short broken cycles, potentially leading to practical algorithms for dense metric repair instances.
Share X Bluesky LinkedIn Reddit HN

Signed reviews

No signed human review yet.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, and a circularity audit.

Referee Report

2 major / 6 minor

Summary. The paper introduces and studies Graph Metric Repair (MR(G,Ω)): given a positively weighted graph and a set of allowed edge-weight modifications Ω, find the minimum number of edges whose weights must be modified so that the resulting graph distances satisfy a metric. It generalizes earlier complete-graph results. The main contributions are: a cubic-time algorithm for the decrease-only case; a support characterization (Theorem 3.2) identifying supports of solutions with regular and light covers of broken cycles; a cubic-time Verifier; approximation-preserving reductions from MULTICUT and LB-CUT; an FPT algorithm for ς-chordal graphs parameterized by OPT; an L-approximation and an O(κ log n)-approximation via greedy hitting set; and improved analysis for the complete-graph case in the appendix.

Significance. The support characterization and the Verifier are clean and give a genuinely combinatorial view of the problem. The reductions from MULTICUT and LB-CUT are careful and correctly connect the problem to well-studied cut problems, and the FPT result for ς-chordal graphs answers an open question and extends the complete-graph case. If the O(κ log n)-approximation were established, it would be a notable contribution; however, that theorem currently rests on an incorrect application of the standard greedy set-cover bound, so the advertised approximation factor is not proved. The remaining results appear sound modulo local fixes, and the paper is likely to be useful to researchers in metric repair and graph algorithms.

major comments (2)
  1. [Section 6.2, Theorem 6.7] The proof that the greedy sub-instances give an O(log n) approximation misapplies the standard greedy set-cover bound. In the sub-instance (E'_α,C'_α) the universe is the set of deficit-δ broken cycles, and the standard greedy bound is O(log |C'_α|); the tighter classical bound is O(log Δ), where Δ is the maximum number of deficit-δ cycles containing a single edge. Neither quantity is polynomially bounded. For example, take a layered graph with two vertices per level and unit-weight edges between consecutive levels, plus a heavy edge (s,t) of weight d(s,t)+1; there are 2^{Ω(n)} distinct shortest s-t paths, each forming a max-deficit broken cycle containing (s,t), so Δ and |C'_α| are exponential. The cited bound therefore yields only O(κ · n) (or O(κ log Δ)), not O(κ log n), and no additional argument is given to bound |C'_α| or Δ. Since the claimed running time also uses the output-size bound, that part of the theorem is unsupported as well.
  2. [Section 6.2, Algorithm 4 and Corollary 6.6] Algorithm 4, line 7 computes #sp(s,t) only for edges, but Lemma 6.5 and Corollary 6.6 require #sp(a,s) and #sp(t,b) for arbitrary vertex pairs (a,s) and (t,b), which are not necessarily edges. As written, the pseudocode cannot compute Nl(e,δ(G)) in the claimed way, and the per-iteration running time O(n^3 + m^2) in Theorem 6.7 silently assumes that all-pairs shortest-path counts are available. This is fixable by computing #sp(u,v) for all ordered pairs, but the pseudocode and the running-time accounting should be updated to state this explicitly.
minor comments (6)
  1. [Theorems 2.4 and 4.3] The paper uses 'APX-complete' where 'APX-hard' appears to be meant. The statement in Theorem 4.3 that MR(G,R≥0) and MR(G,R) are APX-complete and simultaneously UGC-hard to approximate within any constant factor is internally inconsistent, since APX-complete problems admit constant-factor approximations. The abstract already uses 'APX-hard' correctly.
  2. [Lemma 5.2, Case 1] The displayed inequality in Case 1 has W(h)+w(h) on both sides; the right-hand sum over e∈S should be over e∈S\{h} (or the inequality should be rearranged) for the argument that the cycle C1 minimizing term (1) is also broken in GS to go through.
  3. [Lemma 5.3 and Theorem 5.4] The bound |P|≤2ς|S|^ς is stated for every call to F, but at the root call S=∅ the right-hand side is zero. The root case should be handled separately; the same running-time bound still holds because at the root one adds at most ς edges of a single broken chordless cycle.
  4. [Lemma 6.5] The proof should explicitly justify that the concatenation of a shortest a-s path, the edge e, and a shortest t-b path forms a simple cycle. This follows from the maximality of δ(G) (otherwise a shortcut would produce a cycle of larger deficit), but the current text does not state that argument and merely speaks of cycles.
  5. [Algorithm 2, line 4] The pseudocode should state whether the broken chordless cycle is sought in G or in the auxiliary graph GS used in the proof of Lemma 5.2; the proof's edge-disjoint case relies on a GS cycle that is also broken in G.
  6. [Miscellaneous] There are several minor typos and wording issues: 'distict' in Theorem 6.7, 'well know MULTICUT' in Section 7, and the running time in Theorem 5.4 is stated with Θ when it is an upper bound.

Circularity Check

0 steps flagged · score 0.0 of 10

No significant circularity: the central characterization is proved from definitions in-paper, and the later hardness, FPT, and approximation results derive from that characterization and from external hardness results rather than from fitted parameters or self-citation chains.

full rationale

The paper's central structural result, Theorem 3.2, is proved in the paper from the definitions of broken cycle, regular cover, and light cover, rather than being imported from prior work. The forward direction is immediate from the meaning of a solution: if a support did not cover a broken cycle, changing only edges outside that cycle could not remove its heavy edge. The converse direction constructs a new weight assignment on the cover and verifies directly that the resulting graph has no broken cycles, hence satisfies a metric. This is a self-contained derivation, not an assumption of the target result. The decrease-only result Theorem 3.1 is deferred to Appendix A and is attributed to prior work [10, 13], but that attribution is external evidence and the proof is given in the appendix; the later APX-hardness statements rely on external hardness results for MULTICUT and LB-CUT [9, 17], which are independent of this paper's claims. The FPT algorithm and the approximation algorithms reduce metric repair to hitting set over broken cycles via Theorem 3.2, then prove the relevant bounds in the paper; no parameter is fitted to a subset of data and then renamed a prediction, and no uniqueness theorem from the authors' own prior work is invoked to forbid alternatives. The self-citations [10, 11, 13, 14] are present, but they are not load-bearing for the new graph-generalization results. The O(kappa log n)-approximation proof does contain a genuine risk: Lemma 6.5 counts products of shortest-path counts, which may overcount if shortest paths are not internally vertex-disjoint, and the standard greedy hitting-set bound is O(log |C|) rather than O(log n) unless the number of relevant cycles is controlled. That is a correctness and rigor concern about the derivation's validity, not a circularity: the proof does not assume the approximation ratio it is trying to establish. Under the circularity criteria of this review, the derivation chain is not equivalent to its inputs by construction, so the appropriate finding is no significant circularity.

Assumptions & free parameters 0 free parameters · 4 assumptions · 0 invented entities

No numeric constants are fitted to data; L, κ, ς, and OPT are instance parameters, not free parameters. The central claims rest on the standard metric-cycle equivalence, on cited hardness theorems (MULTICUT under UGC, LB-CUT), and on the greedy hitting set approximation bound. No new physical or mathematical entities are postulated.

assumptions (4)
  • standard math A weighted undirected graph satisfies a metric if and only if it has no broken cycle (no edge heavier than the sum of the other edges in a cycle).
    Used throughout to equate metric repair with covering broken cycles; see Section 2.1 definition and Theorem 3.2.
  • domain assumption Unique Games Conjecture (UGC) is true, implying MULTICUT has no constant-factor approximation (Chawla et al. [9]).
    Theorem 4.3's no-constant-factor hardness for MR(G,R) and MR(G,R≥0) relies on UGC; if UGC is false the strong hardness bound fails, though APX-completeness from Vertex Cover remains.
  • standard math L-LB-CUT is NP-hard to approximate within Ω(√L) for any fixed L (Lee [17]).
    Used in Theorem 4.2 to derive Ω(√L)-hardness for metric repair with bounded maximum edge weight.
  • standard math The standard greedy algorithm for hitting set, repeatedly choosing the element that hits the most remaining sets, achieves an O(log n)-approximation.
    Used without citation in the proof of Theorem 6.7 to bound the O(κ log n)-approximation.

how reviews work

0 comments
Cite this review

Pith. "Pith review of Generalized Metric Repair on Graphs." pith.science (2026). https://pith.science/paper/KNJF2XSL

@misc{pith2026190808411,
  author       = {Pith},
  title        = {Pith review of: Generalized Metric Repair on Graphs},
  year         = {2026},
  howpublished = {\url{https://pith.science/paper/KNJF2XSL}},
  note         = {Machine review of arXiv:1908.08411}
}
abstract

Many modern data analysis algorithms either assume or are considerably more efficient if the distances between the data points satisfy a metric. These algorithms include metric learning, clustering, and dimension reduction. As real data sets are noisy, distances often fail to satisfy a metric. For this reason, Gilbert and Jain and Fan et al. introduced the closely related sparse metric repair and metric violation distance problems. The goal of these problems is to repair as few distances as possible to ensure they satisfy a metric. Three variants were considered, one admitting a polynomial time algorithm. The other variants were shown to be APX-hard, and an $O(OPT^{1/3})$-approximation was given, where $OPT$ is the optimal solution size. In this paper, we generalize these problems to no longer consider all distances between the data points. That is, we consider a weighted graph $G$ with corrupted weights $w$, and our goal is to find the smallest number of weight modifications so that the resulting weighted graph distances satisfy a metric. This is a natural generalization and is more flexible as it takes into account different relationships among the data points. As in previous work, we distinguish among the types of repairs permitted and focus on the increase only and general versions. We demonstrate the inherent combinatorial structure of the problem, and give an approximation-preserving reduction from MULTICUT. Conversely, we show that for any fixed constant $\varsigma$, for the large class of $\varsigma$-chordal graphs, the problems are fixed parameter tractable. Call a cycle broken if it contains an edge whose weight is larger than the sum of all its other edges, and call the amount of this difference its deficit. We present approximation algorithms, one which depends on the maximum number of edges in a broken cycle, and one which depends on the number of distinct deficit values.

Discussion (0). Continue with ORCID to comment.

Reference graph

Works this paper leans on

20 extracted references · 20 canonical work pages

  1. [1]

    Abraham, S

    I. Abraham, S. Chechik, and S. Krinninger. Fully dynamic all-pairs shortest paths with worst-case update-time revisited. In Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) , pages 440–452, 2017

  2. [2]

    Abraham, C

    I. Abraham, C. Gavoille, A. Gupta, O. Neiman, and K. Talwar. Cops, robbers, and threatening skeletons: padded decomposition for minor-free graphs. In Symposium on Theory of Computing (STOC), pages 79–88, 2014

  3. [3]

    Alon and S

    N. Alon and S. Gutner. Balanced families of perfect hash functions and their applications. ACM Trans. Algorithms, 6(3):54:1–54:12, 2010

  4. [4]

    Simovici, and Catalin Zara

    Saaid Baraty, Dan A. Simovici, and Catalin Zara. The impact of triangular inequality violations on medoid-based clustering. In Marzena Kryszkiewicz, Henryk Rybinski, Andrzej Skowron, and Zbigniew W. Ra´ s, editors, Foundations of Intelligent Systems , pages 280–289, Berlin, Heidelberg, 2011. Springer Berlin Heidelberg

  5. [5]

    Brand, H

    C. Brand, H. Dell, and T. Husfeldt. Extensor-coding. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2018, Los Angeles, CA, USA, June 25-29, 2018, pages 151–164, 2018

  6. [6]

    The metric nearness problem

    Justin Brickell, Inderjit S Dhillon, Suvrit Sra, and Joel A Tropp. The metric nearness problem. SIAM Journal on Matrix Analysis and Applications , 30(1):375–396, 2008. 17

  7. [7]

    Cand` es and B

    E. Cand` es and B. Recht. Exact matrix completion via convex optimization. Commun. ACM, 55(6):111–119, June 2012

  8. [8]

    Sunil Chandran, Vadim V

    L. Sunil Chandran, Vadim V. Lozin, and C. R. Subramanian. Graphs of low chordality. Discrete Mathematics and Theoretical Computer Science , 7:25–36, 2005

Show all 20 references
  1. [9]

    Chawla, R

    S. Chawla, R. Krauthgamer, R. Kumar, Y. Rabani, and D. Sivakumar. On the hardness of approximating multicut and sparsest-cut. Computational Complexity, 15(2):94–114, 2006

  2. [10]

    C. Fan, B. Raichel, and G. Van Buskirk. Metric violation distance: Hardness and approximation. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 196–209, 2018

  3. [11]

    C. Fan, B. Raichel, and G. Van Buskirk. Metric violation distance: Revisited and extended. CoRR, abs/1807.08078, 2018

  4. [12]

    N. Garg, V. Vazirani, and M. Yannakakis. Approximate max-flow min-(multi)cut theorems and their applications. SIAM J. Comput. , 25(2):235–251, 1996

  5. [13]

    A. C. Gilbert and L. Jain. If it ain’t broke, don’t fix it: Sparse metric repair. ArXiv e-prints, October 2017

  6. [14]

    A. C. Gilbert and R. Sonthalia. Generalized metric repair on graphs. CoRR, abs/1807.07619, 2018

  7. [15]

    Gilbert and Rishi Sonthalia

    Anna C. Gilbert and Rishi Sonthalia. Unsupervised metric learning in presence of missing data. In 56th Annual Allerton Conference on Communication, Control, and Computing, Allerton 2018, Monticello, IL, USA, October 2-5, 2018 , pages 313–321, 2018

  8. [16]

    S. Khot. On the power of unique 2-prover 1-round games. In Proceedings on 34th Annual ACM Symposium on Theory of Computing (STOC) , pages 767–775, 2002

  9. [17]

    E. Lee. Improved hardness for cut, interdiction, and firefighter problems. In 44th International Colloquium on Automata, Languages, and Programming (ICALP) , pages 92:1–92:14, 2017

  10. [18]

    Sidiropoulos, D

    A. Sidiropoulos, D. Wang, and Y. Wang. Metric embeddings with outliers. In Proc. Twenty- Eighth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) , pages 670–689, 2017

  11. [19]

    L. Valiant. The complexity of enumeration and reliability problems. SIAM J. Comput. , 8(3):410–421, 1979

  12. [20]

    Survey on distance metric learning and dimensionality reduction in data mining

    Fei Wang and Jimeng Sun. Survey on distance metric learning and dimensionality reduction in data mining. Data Mining and Knowledge Discovery , 29(2):534–564, Mar 2015. A The Decrease Only Case For the problem MR(G, R≤0), consider the following simple algorithm, used in previou...

Pith tools

Reviewed August 14, 2026 · model on record in the stance chip above.