Manuscript Offprint
arXiv:2608.27203Common Geodesics Do Not Guarantee Fisher Consistency of the Structured SVM: Minimal Counterexamples and a Tree-Metric Classification
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
A known necessary condition for Fisher consistency of the structured support vector machine requires the task loss to be a metric for which every output triple has a common geodesic point. We show that this condition is not sufficient for the canonical coordinate-wise argmax decoder. A four-output unit star admits an exactly optimal score vector whose maximizers are all strictly non-Bayes, and four outputs are minimal among metrics satisfying the condition. We then completely classify positively weighted tree metrics whose vertex set is the output space: argmax consistency holds if and only if the tree is a path. The failure on branching trees is confined to boundary distributions; every tree retains the argmax property at every full-support distribution. Among metrics satisfying the common-geodesic condition, five outputs are necessary and sufficient for a full-support counterexample; is the smallest member of an infinite family. We additionally give a full-support counterexample for the three-dimensional Hamming cube. All optimality claims have exact primal-dual certificates. The counterexamples expose a concrete decoder gap: in this polyhedral setting, an embedding can guarantee the existence of a calibrated link without validating a prescribed argmax link on every surrogate-risk minimizer.
1 Introduction
The structured support vector machine (SSVM) extends the binary hinge loss to finite structured output spaces by loss-augmented inference [4, 14, 16]. For a score vector and an observed output , its margin-rescaling surrogate is
Despite its computational appeal, this surrogate need not be Fisher consistent beyond binary classification [8, 15].
Nowak–Vila, Rudi, and Bach [11, Theorem 2.1] obtained a strong geometric necessary condition for consistency when : must be a metric and every three outputs must share a point lying simultaneously on geodesics between all three pairs. They explicitly left open whether this condition is sufficient. Their Theorem 2.2 presented tree metrics as a positive class under the canonical decoder . The underlying Appendix Theorem B.9 establishes the Bayes-risk identity and the embedded reports , but its final decoding step checks argmax only on those embedded reports. Their consistency definition (Equation (5)) selects an argmax prediction; we use the set-valued version (4), but the distinction is immaterial to our negative results because every maximizer in the star and Hamming-cube witnesses is non-Bayes.
This paper shows that the omitted reports are essential. Even when an SSVM embeds the target loss, a conditional surrogate risk can have additional minimizers outside the embedding image, and coordinate-wise argmax can decode those minimizers incorrectly. Our first example is the smallest possible among metrics satisfying the common-geodesic condition: a tree on four vertices consisting of a center and three unit-length leaves. The example is not a tie-breaking artefact—every score maximizer is a non-Bayes leaf while the center is the unique Bayes output. We then prove an exact dichotomy: every branching weighted tree has the same obstruction, whereas every weighted path is argmax Fisher consistent for every distribution and every surrogate-risk minimizer.
Our contributions are:
-
We disprove sufficiency of the common-geodesic condition with an exact four-output counterexample and prove that no three-output counterexample exists.
-
We give a complete tree-metric classification: the canonical argmax rule is Fisher consistent exactly for paths. We additionally prove that every tree is pointwise consistent at every full-support distribution, locating the branching obstruction precisely on the simplex boundary.
-
Among metrics satisfying the common-geodesic condition, we prove a second sharp cardinality result: the smallest full-support counterexample has five outputs. A four-point classification supplies the lower bound, and is the smallest member of an infinite complete-bipartite family attaining failure. We also give a full-support counterexample for the familiar Hamming metric on .
-
We use surrogate level sets to pinpoint the missing condition between an embedding and a prescribed decoder.
The counterexamples use rational probabilities and elementary score vectors. Their optimality follows either from a telescoping cycle lower bound or from an explicit optimal-transport dual certificate. Thus none of the conclusions relies on floating-point computation or finite-instance experimentation.
Related work. Consistency of multiclass and structured surrogates has a long history [3, 12, 15]. General finite-loss calibration is studied by Ramaswamy and Agarwal [13], while recent work gives negative and positive guarantees for broader structured-max and structured comp-sum families [9]. Those results do not settle the common-geodesic restriction isolated by Nowak-Vila et al. [11]. For the Crammer–Singer hinge, dominant-label restrictions are already necessary in ordinary multiclass classification [8]. Alternative structured surrogates with unconditional consistency include max-min constructions [10]. The embedding framework of Finocchiaro et al. [5, 6] proves that polyhedral embeddings give rise to calibrated links, but also emphasizes that extending the inverse map from embedded reports to all surrogate reports is a separate construction. That abstract decoder distinction is known; our contribution is to instantiate it with exact SSVM counterexamples, sharp thresholds, and a tree-metric classification. To the best of our knowledge, no counterexample to the sufficiency question or public correction of the canonical-argmax tree claim has previously been reported.
We write and for the two Bayes risks. We use a set-valued argmax, and the consistency notion in question is
Our counterexamples in fact have disjoint argmax and Bayes sets, so they also invalidate every deterministic tie-breaking rule based on coordinate-wise maximization.
2.1 The common-geodesic condition
For , write
for the metric interval between x and y. The necessary condition of Nowak-Vila et al. [11] is
In metric geometry, (5) is the defining property of a modular metric space; for graph shortest-path metrics it corresponds to modularity of the graph [1, 2, 7]. Median metrics impose uniqueness of the common point. Every tree metric satisfies (5): the three pairwise paths meet at a common tree median. Hamming cubes are also median, whereas complete bipartite graphs are modular but generally not median.
2.2 A transport dual for the conditional SSVM risk
The following standard linear-programming representation will certify our full-support examples. It is also the finite optimal-transport form of the SSVM Bayes risk used by Nowak-Vila et al. [11].
Proposition 2.1 (Self-coupling dual). For every ,
If and are primal and dual optimal, then
Proof. Introduce one epigraph variable per observed output and write
The variables may be treated as free because the constraints with imply . Assigning nonnegative multipliers to the constraints, stationarity in gives , while stationarity in gives equality of the row and column marginals, hence . The dual objective is the right-hand side of (6). Both programs are feasible and finite, so linear-programming strong duality applies. Equation (7) is complementary slackness.
Two elementary consequences will be used repeatedly.
Lemma 2.2 (Canonical embedded reports). For every finite metric , define by . Then
Proof. The triangle inequality gives
and equality is attained at z = y.
Lemma 2.3 (Finite supported-coupling criterion). Let and be nonnegative measures of equal total mass on finite sets and , and let be an allowed support. For , write for some . There exists a coupling with marginals supported on if and only if
If , , and is symmetric, the coupling may be chosen symmetric.
Proof. Necessity follows by summing the coupling over rows in A. Sufficiency is the max-flow-min-cut theorem applied to the bipartite network with source capacities , infinite capacities on E, and sink capacities . In the symmetric case, averaging a feasible coupling with its transpose preserves its marginals and support.
3 A complete classification for tree metrics
Throughout this section, a tree metric means the shortest-path metric of a positively weighted tree whose vertex set is exactly ; no unobserved Steiner vertices are allowed. We first isolate a metric configuration that forces failure, and then prove that its absence is sufficient within this class.
3.1 The tripod obstruction
Theorem 3.1 (Tripod obstruction). Suppose a finite metric space contains four distinct points such that, with ,
Then the max-margin loss (1) is not argmax Fisher consistent.
Proof. Put and assign zero mass to every other output. Let , fix , and set
For the true output , either of the other selected points gives the loss-augmented value by (11). The definition of every remaining coordinate gives ; the selected coordinates obey the same bound. Consequently,
For arbitrary scores u, use the competitors cyclically in the three maxima. The score differences telescope, yielding
Thus .
Adding the triangle inequalities for the three pairs gives, for every ,
so z is Bayes optimal. On the other hand,
Finally, , and hence every score maximizer is non-Bayes.
Every vertex of degree at least three in a positively weighted tree supplies (11): choose one vertex from each of three components obtained after removing the branching vertex. The smallest instance is the unit star in Fig. 1.
Corollary 3.2 (Four-output star). Let with
For
one has , , and .
Proof. For each leaf , , so . For every ,
which proves optimality. The target risks are and .
3.2 Weighted paths are consistent
Theorem 3.3 (Path consistency). Let be the shortest-path metric on an arbitrary finite positively weighted path. Then (4) holds for every , including boundary distributions and Bayes ties.
Proof. Order the vertices as , put , and write , with . A direct edge calculation gives
For any Bayes vertex , the embedded score satisfies . Thus the optimal surrogate risk is at most .
First suppose , so is the unique Bayes vertex by (12). Let and . Assume ; the other case is symmetric. Choose a submeasure on with , and couple to the restriction of on using a transport plan . With , define the symmetric self-coupling
and set all other entries to zero. Its two marginals are . Every pair in its support has a path through , so its objective in (6) is . It is therefore dual optimal. For an arbitrary primal optimum, complementary slackness at gives . Primal feasibility then implies
so is the unique score maximizer.
It remains to handle a median plateau. If some , let
Then (12) gives , with and zero mass on the intervening vertices. The sets and each have mass 1/2. Define
with all other entries zero. This is a self-coupling with value , hence it is optimal, and . Tightness of the row-b, column-a constraint, compared with the row-b, column-k constraint for , gives
Using the active arc symmetrically gives for every . No output outside the Bayes plateau can therefore maximize .
Corollary 3.4 (Exact tree-metric classification). For the shortest-path metric of a finite positively weighted tree, the max-margin surrogate is argmax Fisher consistent in the sense of (4) if and only if the tree is a path.
Proof. Paths are covered by Theorem 3.3. Every non-path tree has a vertex of degree at least three and therefore contains the tripod of Theorem 3.1.
The preceding failure is genuinely a boundary phenomenon for tree metrics.
Theorem 3.5 (All tree metrics are consistent in the simplex interior). Let be the shortest-path metric of any finite positively weighted tree. For every full-support and every , .
Proof. For an oriented edge of length , let be the component containing after removing . Then
It follows that the tree median is either a unique vertex m, for which every component of T - m has mass strictly below 1/2, or two adjacent vertices a, b whose connecting edge splits the tree into sets A, B of mass 1/2 each. Indeed, (13) makes the risk unimodal along every path, and full support rules out a risk-flat segment containing two consecutive edges.
In the first case, let be the masses of the components of . Choose
Let , whose total mass is , and allow a pair exactly when at least one of equals , or and lie in different components of . The supported-coupling criterion in Theorem 2.3 supplies a coupling of to itself on this support. Indeed, a row set meeting two components, or containing , has the full column neighborhood; a row set contained in one component has mass at most and neighborhood mass
Now set
Every supported pair has a path through , so the dual value is , matching the embedded-report upper bound. Since , complementary slackness gives , which forces for every .
In the second case, use the cross-cut coupling
Every supported path crosses , so its value is and it is dual optimal. Full support gives . Comparing the active row-, column- constraint with any column yields ; symmetrically, for . Thus every score maximizer is one of the two Bayes vertices.

Four-point star
boundary distribution

full-support distribution
Figure 1: Sharp cardinality witnesses among metrics satisfying the common-geodesic condition: the smallest unrestricted counterexample (left) and the smallest full-support counterexample (right). Edge lengths are one and distances are shortest-path distances.
4 Sharp lower bounds on output cardinality
We now prove that Theorem 3.2 has the smallest possible output space among all metrics satisfying (5), not merely among tree metrics.
Lemma 4.1 (Three points form a weighted path). Let and suppose is a metric satisfying (5). After relabeling , there exist such that
Proof. Apply (5) to the three distinct outputs. The common geodesic point must be one of them; if it is 2, the only nontrivial equality is . The other cases are relabelings. □
Corollary 4.2 (Minimum unrestricted cardinality). Among metrics satisfying (5), the minimum cardinality of an argmax Fisher-inconsistency counterexample is four.
Proof. By Theorems 3.3 and 4.1, every admissible three-point metric is consistent. The four-point unit star in Theorem 3.2 is inconsistent.
We next determine the sharp threshold when the counterexample distribution is required to have full support.
Lemma 4.3 (Classification of four-point common-geodesic metrics). Every four-point metric satisfying (5) is isometric to one of the following:
(i) a positively weighted three-leaf star whose center is one of the four points;
(ii) a positively weighted four-vertex path; or
(iii) a weighted rectangle with
Proof. If there exists a triple for which the omitted fourth output is also a common geodesic point, the three equalities in (5) give a weighted three-leaf star immediately. Otherwise every metric triangle is degenerate. Choose a diameter pair of length D. For each remaining point , degeneracy and maximality of D force
Put and , and assume . Degeneracy of the first of the triangles and gives
while degeneracy of the second gives
The two crossed choices would force s = 0 or t = D, contradicting distinctness. Hence either
which places all four points on a path at locations 0, s, t, D, or
In the latter case and . Under the labeling , , , , the remaining four distances alternate between s and t, giving (14) with weights s, t. These alternatives also cover ; distinctness then forces the rectangle case.
Proposition 4.4 (Full-support consistency of the weighted rectangle). For the metric (14), every full-support distribution and every satisfy .
Proof. Write . The target Bayes set is obtained by taking a majority bit separately in each coordinate. For every self-coupling and ,
First suppose both coordinate majorities are strict. After flipping bits, take , so 00 is the unique Bayes output. Choose
the second entry is positive because . Remove mass from both 00 marginals and allow a pair exactly when it never has . The four row neighborhoods are
For row sets not containing 00, the only critical Hall checks are the sets , , , and ; the remaining singleton and two-element checks follow from these and the 00 mass bound. By Theorem 2.3, a supported coupling exists because the weighted Hall inequalities reduce to
so an allowed coupling exists. Add mass at and symmetrize. The resulting self-coupling attains both bounds in , hence is dual optimal, and has . Complementary slackness forces 00 to be the unique score maximizer.
Suppose instead that and ; all other one-tie cases are symmetric. Now and . Define a self-coupling by the six nonzero entries
Its marginals are q, and it attains equality in (15) for both coordinates, so it is dual optimal. Tightness of the two active constraints in row 10 and then in row 00 gives
Thus neither non-Bayes output can maximize the score. If both coordinates tie, all four outputs are Bayes.
Theorem 4.5 (No four-output full-support obstruction). Every metric with satisfying (5) obeys the argmax property at every full-support distribution.
Proof. The three-point case follows from Theorems 3.3 and 4.1. For four points, use Theorem 4.3. The star and path cases follow from Theorem 3.5, and the rectangle case follows from Theorem 4.4. ☐
5 Full-support counterexamples
One might hope that the four-point obstruction is caused solely by . The next examples show that restricting to the relative interior of the probability simplex does not rescue sufficiency of (5).
5.1 An infinite complete-bipartite family
Theorem 5.1 (Complete-bipartite obstruction). Let , and equip the vertices of with unweighted graph distance, where and . Then satisfies (5), but fails argmax Fisher consistency at the uniform, full-support distribution.
Proof. Distinct vertices in the same part are at distance two, while vertices in opposite parts are at distance one. For a triple containing points from both parts, its singleton part supplies a common geodesic point. For three points in one part, any vertex in the other part does so. Thus (5) holds.
Let , put , and set for and for . For a true label in , either another vertex or any vertex yields loss-augmented value two. For a true label in , another vertex yields two. No candidate yields more, so for all and .
For a dual certificate, choose a directed Hamilton cycle within each part and put mass 1/N on every cycle arc. Both marginals are uniform; all N used arcs have distance two. The dual value is two, proving . For and , respectively,
Since , , whereas .
The smallest member of this family is the graph shown in Fig. 1.
Corollary 5.2 (Minimum full-support cardinality). Among metrics satisfying (5), the minimum cardinality of a counterexample at a full-support distribution is five.
Proof. The lower bound is Theorem 4.5; the instance of Theorem 5.1 attains it.
5.2 A full-support Hamming-cube counterexample
The preceding family settles the full-support cardinality threshold. The next construction is useful for a different reason: it shows the failure for the standard decomposable Hamming metric, with a unique Bayes output and an argmax set disjoint from it.
Theorem 5.3 (Three-dimensional Hamming cube). Let with Hamming distance and lexicographic ordering
000, 001, 010, 011, 100, 101, 110, 111.
Set
and give even-parity vertices score zero and odd-parity vertices score -1. Then this score vector minimizes , but its argmax is disjoint from the unique Hamming Bayes output.
Proof. The Hamming cube satisfies (5): the coordinate-wise majority of any three vertices lies on a shortest path between every pair.
Let be the even-parity class and . For , an even vertex at distance two or the odd antipode at distance three gives . For , the even antipode gives . Since and ,
Construct a dual coupling as follows. Put mass 1/11 on both directions of each of the four antipodal pairs, and mass 1/11 on the three-cycle
The antipodal arcs supply one unit of incoming and outgoing mass to every vertex; the cycle supplies the second unit exactly to the three vertices having numerator two in q. Thus both marginals equal q. Its objective value is
so v is primal optimal.
The probabilities that coordinates one, two, and three equal one are respectively 6/11, 5/11, 5/11. Hamming risk is minimized coordinate-wise, hence the unique Bayes output is 100. This vertex has odd parity, while .
6 Where the embedding-to-argmax implication fails
Recall from Theorem 2.2 that the canonical reports satisfy . When as well, these reports embed the scaled loss 2L in the usual polyhedral sense. These Bayes-risk and embedding statements in Nowak-Vila et al. [11, Theorem 4.7 and Appendix Theorem B.9] are fully compatible with our examples.
The problem is the decoder. For a report v, define its surrogate level set
and for a target output y, define its Bayes region
Proposition 6.1 (Level-set reformulation for a prescribed decoder). Let be a nonempty set-valued decoder. Every surrogate-risk minimizer is decoded only to Bayes outputs if and only if
For the canonical decoder, .
Proof. Condition (16) says exactly that whenever minimizes the conditional surrogate risk at , every belongs to .
An embedding verifies the required compatibility on the finite set . It does not establish (16) for reports outside that image. General polyhedral embedding theory instead constructs a suitable link on all reports [5, 6]; it does not assert that an arbitrary preassigned link, such as coordinate-wise argmax, is calibrated.
The unit star makes the distinction explicit. At the distribution of Theorem 3.2, the embedded center report
is optimal and correctly decoded to o. The additional optimal report
lies outside and is decoded only to non-Bayes leaves. Thus checking that argmax is an inverse of on cannot imply consistency on the entire optimal set.
Corollary 6.2 (Correction to the tree-metric claim). Bayes-risk equality , even together with the corresponding scaled embedding, does not by itself imply consistency under coordinate-wise argmax. Consequently, the argmax conclusions of Theorem 4.7 and Appendix Theorem B.9 of Nowak-Vila et al. [11], and hence their Theorem 2.2 for tree metrics, fail for every branching tree under the canonical coordinate-wise argmax decoder. This does not contradict those Bayes-risk and embedding statements, which can instead be paired with a separately constructed calibrated link.
7 Discussion
The common-geodesic condition is necessary but not sufficient for argmax Fisher consistency of the structured max-margin loss. The obstruction occurs at the smallest possible output cardinality, persists throughout all branching tree metrics, and survives full-support restrictions on non-tree metrics. Within tree metrics, the exact surviving class is the class of weighted paths; nevertheless, every tree retains the desired argmax property pointwise in the simplex interior.
The four-point star and the five-point example play complementary roles. The star is minimal and directly corrects the claimed tree result, but uses a boundary distribution. Among metrics satisfying the common-geodesic condition, the example is also the smallest possible full-support obstruction, and the family shows that it is not isolated. The Hamming-cube example additionally shows that the phenomenon occurs for a standard coordinate-decomposable task metric.
Several questions remain. First, a classification beyond tree metrics—for example, within finite median metric spaces—would identify exactly when the common-geodesic condition becomes sufficient. Second, our five-point full-support witness has multiple Bayes outputs, whereas the Hamming-cube witness has a unique Bayes output and disjoint argmax; the sharp cardinality under these additional requirements remains open. Third, the calibrated link supplied abstractly by polyhedral embedding theory may be describable explicitly for tree and median-type metrics, potentially retaining efficient loss-augmented inference while repairing prediction.
More broadly, the examples illustrate a useful warning for surrogate analysis: matching Bayes risks determines optimal loss values and embedded optimal reports, but a learning method also commits to a decoder on every surrogate report. Consistency of that decoder must be checked on the full collection of conditional optimal sets, including nonembedded faces created by polyhedral degeneracy.
References
[1] H.-J. Bandelt, M. van de Vel, and E. Verheul. Modular interval spaces. Mathematische Nachrichten, 163(1):177–201, 1993. doi: 10.1002/mana.19931630117.
[2] Hans-Jürgen Bandelt and Victor Chepoi. Metric graph theory and geometry: A survey. In Surveys on Discrete and Computational Geometry: Twenty Years Later, volume 453 of Contemporary Mathematics, pages 49–86. American Mathematical Society, 2008. doi: 10.1090/comm/453/08795.
[3] Peter L. Bartlett, Michael I. Jordan, and Jon D. McAuliffe. Convexity, classification, and risk bounds. Journal of the American Statistical Association, 101(473):138–156, 2006.
[4] Koby Crammer and Yoram Singer. On the algorithmic implementation of multiclass kernel-based vector machines. Journal of Machine Learning Research, 2:265–292, 2001.
[5] Jessie Finocchiaro, Rafael Frongillo, and Bo Waggoner. An embedding framework for consistent polyhedral surrogates. In Advances in Neural Information Processing Systems, volume 32, 2019.
[6] Jessie Finocchiaro, Rafael M. Frongillo, and Bo Waggoner. An embedding framework for the design and analysis of consistent polyhedral surrogates. Journal of Machine Learning Research, 25(63):1–60, 2024.
[7] Alexander V. Karzanov. One more well-solved case of the multifacility location problem. Discrete Optimization, 1(1):51–66, 2004.
[8] Yufeng Liu. Fisher consistency of multicategory support vector machines. In Proceedings of the Eleventh International Conference on Artificial Intelligence and Statistics, pages 291–298, 2007.
[9] Anqi Mao, Mehryar Mohri, and Yutao Zhong. Structured prediction with stronger consistency guarantees. In Advances in Neural Information Processing Systems, volume 36, pages 46903–46937, 2023.
[10] Alex Nowak-Vila, Francis Bach, and Alessandro Rudi. Consistent structured prediction with max-min margin markov networks. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 7381–7391, 2020.
[11] Alex Nowak-Vila, Alessandro Rudi, and Francis Bach. On the consistency of max-margin losses. In Proceedings of the 25th International Conference on Artificial Intelligence and Statistics, volume 151 of Proceedings of Machine Learning Research, pages 4612–4633, 2022.
[12] Anton Osokin, Francis Bach, and Simon Lacoste-Julien. On structured prediction theory with calibrated convex surrogate losses. In Advances in Neural Information Processing Systems, volume 30, 2017.
[13] Harish G. Ramaswamy and Shivani Agarwal. Convex calibration dimension for multiclass loss matrices. Journal of Machine Learning Research, 17(14):1–45, 2016.
[14] Ben Taskar, Carlos Guestrin, and Daphne Koller. Max-margin markov networks. In Advances in Neural Information Processing Systems, volume 16, 2004.
[15] Ambuj Tewari and Peter L. Bartlett. On the consistency of multiclass classification methods. Journal of Machine Learning Research, 8:1007–1025, 2007.
[16] Ioannis Tsochantaridis, Thorsten Joachims, Thomas Hofmann, and Yasemin Altun. Large margin methods for structured and interdependent output variables. Journal of Machine Learning Research, 6:1453–1484, 2005.