Papers
Topics
Authors
Recent
Search
2000 character limit reached

Barycentric Coding Model Overview

Updated 5 July 2026
  • Barycentric Coding Model is a family of representations using simplex-constrained coordinates that encode observations as probability vectors with inherent sparsity.
  • It supports diverse applications, including explicit feature mapping for classification, Wasserstein measure estimation, and mixed-data hierarchical clustering.
  • The model offers statistical bounds and computational efficiency, demonstrating empirical success across vision, natural language processing, and other data domains.

Barycentric Coding Model denotes a family of representations in which an observation is encoded by barycentric weights on a simplex or probability simplex. In the literature represented here, the expression is used in three technically distinct settings: an explicit feature map obtained from nested simplicial partitions for large-scale classification; a Wasserstein-2 model in which an unknown measure is represented by its barycentric coordinates relative to known reference measures; and a correspondence-analysis-compatible recoding of continuous variables for hierarchical clustering of mixed-type data (Gottlieb et al., 2020, Werenski et al., 2022, Moschidis et al., 2022). The common structural constraint is a coordinate vector λ\lambda with λi≥0\lambda_i\ge 0 and ∑iλi=1\sum_i \lambda_i = 1, often with strong sparsity, while broader work on barycentric algebra places such constructions within a general theory of convex-combination operations (Romanowska et al., 2023).

1. Geometric and algebraic basis

In a non-degenerate simplex S⊂RdS\subset\mathbb{R}^d of dimension DD, with vertices v0,…,vDv_0,\dots,v_D, every point x∈Sx\in S has a unique representation

x=∑i=0Dλivi,λi≥0,∑i=0Dλi=1.x=\sum_{i=0}^D \lambda_i v_i,\qquad \lambda_i\ge 0,\qquad \sum_{i=0}^D \lambda_i=1.

The coefficients λ=(λ0,…,λD)\lambda=(\lambda_0,\dots,\lambda_D) are the barycentric coordinates of xx relative to that simplex. In the broader algebraic formalism, a barycentric algebra is a set λi≥0\lambda_i\ge 00 equipped with operations λi≥0\lambda_i\ge 01 for λi≥0\lambda_i\ge 02 satisfying idempotence, skew-commutativity, and skew-associativity; ordinary convex subsets of real vector spaces instantiate this abstraction via λi≥0\lambda_i\ge 03 (Gottlieb et al., 2020, Romanowska et al., 2023).

The same geometric idea supports several coordinate systems. For convex polytopes, Gibbs coordinates choose the entropy-maximizing convex decomposition; Wachspress coordinates are rational functions; chordal coordinates on a polygon use barycentric coordinates in a single triangle of a triangulation and therefore have exactly three nonzero weights; cartographic coordinates average chordal systems over the dihedral symmetry group (Romanowska et al., 2023). On any simplex and on any semisimplex, all three systems coincide. This provides the canonical baseline against which the distinct BCM variants are best understood.

Usage in the literature Object being coded Defining mechanism
Explicit feature-map BCM λi≥0\lambda_i\ge 04 Nested simplicial partition and local barycentric coordinates
Wasserstein BCM λi≥0\lambda_i\ge 05 Barycentric coordinates of a Wasserstein-2 barycenter of known measures
Mixed-data barycentric coding Continuous sample values λi≥0\lambda_i\ge 06 Reversible ordinal transform followed by recursive barycentric fuzzy coding

A recurrent misconception is to treat BCM as a single standardized algorithm. The literature instead uses the term for a class of models whose common feature is simplex-constrained coordinate coding, but whose ambient spaces, objectives, and statistical roles differ substantially.

2. Nested simplicial BCM as an explicit feature map

The construction in "Nested Barycentric Coordinate System as an Explicit Feature Map" begins with one large root simplex covering the data domain, for example a regular unit simplex of side length λi≥0\lambda_i\ge 07. At each stage λi≥0\lambda_i\ge 08, every current simplex is split into λi≥0\lambda_i\ge 09 smaller simplices by inserting its own barycenter. If a simplex has vertices ∑iλi=1\sum_i \lambda_i = 10, the added point is

∑iλi=1\sum_i \lambda_i = 11

and the parent simplex is subdivided into ∑iλi=1\sum_i \lambda_i = 12 children, each missing one original vertex and including ∑iλi=1\sum_i \lambda_i = 13. For any point ∑iλi=1\sum_i \lambda_i = 14, the embedding first identifies the unique chain of nested simplices ∑iλi=1\sum_i \lambda_i = 15 containing ∑iλi=1\sum_i \lambda_i = 16; at each level ∑iλi=1\sum_i \lambda_i = 17, ∑iλi=1\sum_i \lambda_i = 18 lies in exactly one of the ∑iλi=1\sum_i \lambda_i = 19 sub-simplices of S⊂RdS\subset\mathbb{R}^d0. Across levels, Lemma 2 gives a simple linear relation between barycentric coordinates at levels S⊂RdS\subset\mathbb{R}^d1 and S⊂RdS\subset\mathbb{R}^d2, so S⊂RdS\subset\mathbb{R}^d3 can be updated from S⊂RdS\subset\mathbb{R}^d4 (Gottlieb et al., 2020).

After S⊂RdS\subset\mathbb{R}^d5 splits, the construction has introduced S⊂RdS\subset\mathbb{R}^d6 new points, indexed as S⊂RdS\subset\mathbb{R}^d7. The feature map S⊂RdS\subset\mathbb{R}^d8 is defined componentwise by

S⊂RdS\subset\mathbb{R}^d9

Equivalently, DD0 has exactly DD1 nonzeros equal to the local barycentric coordinates and satisfies DD2. As DD3 grows, the partition refines and the embedding becomes higher-dimensional but remains sparse.

A linear separator is then learned in the embedded space,

DD4

via any off-the-shelf linear SVM. Within each small simplex DD5, DD6 is an affine map of the original DD7, because it selects the barycentric coordinates of DD8 in DD9. Accordingly, v0,…,vDv_0,\dots,v_D0 restricted to that simplex is a linear function of v0,…,vDv_0,\dots,v_D1. Globally, the decision function is piecewise-linear, with pieces aligned to the simplicial partition. The decision boundary may therefore be highly non-linear, though linear within each simplex, and the method can approximate any convex body.

3. Statistical guarantees, complexity, and empirical behavior of the explicit-map model

Two theorems bound the true error v0,…,vDv_0,\dots,v_D2 in terms of the empirical low-margin rate v0,…,vDv_0,\dots,v_D3 and the sample size v0,…,vDv_0,\dots,v_D4. For uniform subdivision with data-independent splits stopping at level v0,…,vDv_0,\dots,v_D5, Theorem 3 states that with probability at least v0,…,vDv_0,\dots,v_D6,

v0,…,vDv_0,\dots,v_D7

where v0,…,vDv_0,\dots,v_D8 is the margin parameter. For adaptive splitting, if only v0,…,vDv_0,\dots,v_D9 split points are used adaptively, Theorem 4 gives with probability at least x∈Sx\in S0

x∈Sx\in S1

The first bound follows from the classic SVM margin bound plus stratification over x∈Sx\in S2; the second uses a hybrid sample-compression argument (Gottlieb et al., 2020).

The computational profile is favorable when x∈Sx\in S3 is fixed as a constant. Building the embedding is x∈Sx\in S4, training a sparse linear SVM on x∈Sx\in S5-sparse vectors is x∈Sx\in S6, and classification of a new point is x∈Sx\in S7. The principal memory limitation is that the feature dimension grows as x∈Sx\in S8, even though the feature vectors remain extremely sparse. In practice the construction restricts x∈Sx\in S9 to at most x=∑i=0Dλivi,λi≥0,∑i=0Dλi=1.x=\sum_{i=0}^D \lambda_i v_i,\qquad \lambda_i\ge 0,\qquad \sum_{i=0}^D \lambda_i=1.0. Section 3.4 introduces data-dependent splitting heuristics intended to reduce the number of empty simplices, focus refinement on regions of misclassification, and improve the accuracy-versus-dimension trade-off.

The empirical evaluation covers large UCI/LibSVM datasets—letter, Skin-nonSkin, cod-rna, shuttle, and covtype—with x=∑i=0Dλivi,λi≥0,∑i=0Dλi=1.x=\sum_{i=0}^D \lambda_i v_i,\qquad \lambda_i\ge 0,\qquad \sum_{i=0}^D \lambda_i=1.1 up to x=∑i=0Dλivi,λi≥0,∑i=0Dλi=1.x=\sum_{i=0}^D \lambda_i v_i,\qquad \lambda_i\ge 0,\qquad \sum_{i=0}^D \lambda_i=1.2 and x=∑i=0Dλivi,λi≥0,∑i=0Dλi=1.x=\sum_{i=0}^D \lambda_i v_i,\qquad \lambda_i\ge 0,\qquad \sum_{i=0}^D \lambda_i=1.3 up to x=∑i=0Dλivi,λi≥0,∑i=0Dλi=1.x=\sum_{i=0}^D \lambda_i v_i,\qquad \lambda_i\ge 0,\qquad \sum_{i=0}^D \lambda_i=1.4. The comparison includes 2nd/3rd-degree explicit polynomial SVMs implemented in LibSVM, RBF kernel SVM in CoreSVM, uniform NBCS, and adaptive NBCS. For x=∑i=0Dλivi,λi≥0,∑i=0Dλi=1.x=\sum_{i=0}^D \lambda_i v_i,\qquad \lambda_i\ge 0,\qquad \sum_{i=0}^D \lambda_i=1.5, adaptive NBCS and uniform NBCS achieved comparable or better accuracy than polynomial and RBF SVM, often at lower wall-clock cost. On covtype x=∑i=0Dλivi,λi≥0,∑i=0Dλi=1.x=\sum_{i=0}^D \lambda_i v_i,\qquad \lambda_i\ge 0,\qquad \sum_{i=0}^D \lambda_i=1.6, 3rd-degree SVM took x=∑i=0Dλivi,λi≥0,∑i=0Dλi=1.x=\sum_{i=0}^D \lambda_i v_i,\qquad \lambda_i\ge 0,\qquad \sum_{i=0}^D \lambda_i=1.7, whereas adaptive NBCS took x=∑i=0Dλivi,λi≥0,∑i=0Dλi=1.x=\sum_{i=0}^D \lambda_i v_i,\qquad \lambda_i\ge 0,\qquad \sum_{i=0}^D \lambda_i=1.8 with higher accuracy. On medium-sized vision datasets, compared to Random Kitchen Sinks, Nyström, adaptive x=∑i=0Dλivi,λi≥0,∑i=0Dλi=1.x=\sum_{i=0}^D \lambda_i v_i,\qquad \lambda_i\ge 0,\qquad \sum_{i=0}^D \lambda_i=1.9, and related baselines, adaptive NBCS consistently led or matched the best accuracy.

4. Wasserstein-2 BCM and inverse barycenter estimation

Werenski et al. formulate BCM in λ=(λ0,…,λD)\lambda=(\lambda_0,\dots,\lambda_D)0 as a model for measure estimation. Let λ=(λ0,…,λD)\lambda=(\lambda_0,\dots,\lambda_D)1 denote the Borel probability measures on λ=(λ0,…,λD)\lambda=(\lambda_0,\dots,\lambda_D)2 with finite second moment and absolute continuity. For known reference measures λ=(λ0,…,λD)\lambda=(\lambda_0,\dots,\lambda_D)3, and any weight vector λ=(λ0,…,λD)\lambda=(\lambda_0,\dots,\lambda_D)4, the Wasserstein-2 barycenter is

λ=(λ0,…,λD)\lambda=(\lambda_0,\dots,\lambda_D)5

The synthesis problem computes λ=(λ0,…,λD)\lambda=(\lambda_0,\dots,\lambda_D)6 given λ=(λ0,…,λD)\lambda=(\lambda_0,\dots,\lambda_D)7 and the λ=(λ0,…,λD)\lambda=(\lambda_0,\dots,\lambda_D)8. The analysis problem inverts this: given an unknown measure λ=(λ0,…,λD)\lambda=(\lambda_0,\dots,\lambda_D)9 that is a barycenter of xx0, recover its barycentric coordinate xx1 by solving

xx2

In this BCM, an unknown measure is modeled by its coordinate xx3 in the probability simplex (Werenski et al., 2022).

The geometric reduction uses the Riemannian structure of xx4. For any xx5, the tangent space xx6 is identified with gradients of convex functions, with inner product

xx7

By Brenier's theorem, the unique optimal transport map from xx8 to xx9 is λi≥0\lambda_i\ge 000, and the Fréchet gradient of

λi≥0\lambda_i\ge 001

is

λi≥0\lambda_i\ge 002

A Karcher mean is any λi≥0\lambda_i\ge 003 satisfying λi≥0\lambda_i\ge 004, and under assumptions A1–A3 any Karcher mean is the unique barycenter λi≥0\lambda_i\ge 005.

At the true λi≥0\lambda_i\ge 006, let λi≥0\lambda_i\ge 007 be the optimal maps from λi≥0\lambda_i\ge 008 to λi≥0\lambda_i\ge 009, define

λi≥0\lambda_i\ge 010

and

λi≥0\lambda_i\ge 011

Then

λi≥0\lambda_i\ge 012

while the gradient-norm surrogate is

λi≥0\lambda_i\ge 013

Because λi≥0\lambda_i\ge 014 is positive semidefinite, recovering λi≥0\lambda_i\ge 015 becomes a convex quadratic program on the simplex,

λi≥0\lambda_i\ge 016

Under compatibility of the family λi≥0\lambda_i\ge 017, the minimizers of the true projection and the quadratic program coincide.

5. Sample-based estimation, convergence, and applications in the Wasserstein model

When λi≥0\lambda_i\ge 018 and the λi≥0\lambda_i\ge 019 are observed only through i.i.d. samples, the estimation procedure splits the sample from λi≥0\lambda_i\ge 020 in half, uses one half to estimate the transport maps, and uses the other half to compute empirical inner products. For each reference measure, it solves the entropic OT dual with regularization λi≥0\lambda_i\ge 021 and forms the entropic map estimate

λi≥0\lambda_i\ge 022

which converges in λi≥0\lambda_i\ge 023 to the true λi≥0\lambda_i\ge 024 with rate λi≥0\lambda_i\ge 025. The empirical Gram matrix and linear term are then

λi≥0\lambda_i\ge 026

and

λi≥0\lambda_i\ge 027

after which one solves

λi≥0\lambda_i\ge 028

The point-cloud version is given as Algorithm Estimate-λi≥0\lambda_i\ge 029-PC (Werenski et al., 2022).

Under assumptions A4–A6, with λi≥0\lambda_i\ge 030, the entropic map estimate satisfies

λi≥0\lambda_i\ge 031

where λi≥0\lambda_i\ge 032. If λi≥0\lambda_i\ge 033 has a single zero eigenvalue and λi≥0\lambda_i\ge 034 is exactly a barycenter so that λi≥0\lambda_i\ge 035, then

λi≥0\lambda_i\ge 036

Thus λi≥0\lambda_i\ge 037 in mean square at a rate determined by smoothness λi≥0\lambda_i\ge 038 and dimension λi≥0\lambda_i\ge 039. The computational complexity is dominated by the entropic OT stage: each of the λi≥0\lambda_i\ge 040 entropic solves on an λi≥0\lambda_i\ge 041 cost takes λi≥0\lambda_i\ge 042 via Sinkhorn; Gram-matrix evaluation costs λi≥0\lambda_i\ge 043; the simplex QP can be solved in λi≥0\lambda_i\ge 044 or faster using conditional-gradient methods; the overall cost is λi≥0\lambda_i\ge 045 plus lower-order terms.

The applications in the paper illustrate the model's scope. For Gaussian covariance estimation, with λi≥0\lambda_i\ge 046 and λi≥0\lambda_i\ge 047, the optimal maps are linear, λi≥0\lambda_i\ge 048, and the resulting QP reconstructs λi≥0\lambda_i\ge 049 as the barycenter of the λi≥0\lambda_i\ge 050. The method empirically outperforms naive MLE on small samples and is orders-of-magnitude faster than autograd-based MLE. For image inpainting and denoising, each λi≥0\lambda_i\ge 051 gray-scale image is treated as a probability histogram on the grid, and the recovered λi≥0\lambda_i\ge 052 is used to reconstruct the image as a barycenter of reference images; the procedure competes with state-of-the-art histogram regression methods of Bonneel et al. at λi≥0\lambda_i\ge 053 speed-up. For natural language processing, documents are represented as empirical measures on word2vec embeddings, and on BBCSport and 20News the BCM-based classifiers outperform 1-NN and average-distance baselines in small-sample regimes.

6. Barycentric coding for mixed-type hierarchical clustering

Moschidis, Markos and Chadjipadelis use barycentric coding to recode continuous variables before agglomerative hierarchical clustering of mixed-type data. For a continuous variable λi≥0\lambda_i\ge 054 with minimum λi≥0\lambda_i\ge 055 and maximum λi≥0\lambda_i\ge 056, they first define

λi≥0\lambda_i\ge 057

choose the unique integer λi≥0\lambda_i\ge 058 satisfying

λi≥0\lambda_i\ge 059

partition λi≥0\lambda_i\ge 060 into λi≥0\lambda_i\ge 061 half-open bins of width λi≥0\lambda_i\ge 062, and set

λi≥0\lambda_i\ge 063

By construction, no bin contains more than one observed value, so λi≥0\lambda_i\ge 064 is one-to-one on the observed sample. Step 1 therefore replaces the continuous variable by an λi≥0\lambda_i\ge 065-level ordinal variable λi≥0\lambda_i\ge 066 (Moschidis et al., 2022).

Step 2 fuzzy-codes this ordinal variable into an λi≥0\lambda_i\ge 067-tuple in λi≥0\lambda_i\ge 068 by a recursive barycentric split of unit mass. Let the interval λi≥0\lambda_i\ge 069 be divided into λi≥0\lambda_i\ge 070 equal subintervals with knots

λi≥0\lambda_i\ge 071

and midpoints

λi≥0\lambda_i\ge 072

If the ordinal level λi≥0\lambda_i\ge 073 lies in λi≥0\lambda_i\ge 074, the unit mass at λi≥0\lambda_i\ge 075 is first split between the bounding knots,

λi≥0\lambda_i\ge 076

and then recursively redistributed upstream and downstream so that a vector λi≥0\lambda_i\ge 077 is obtained with λi≥0\lambda_i\ge 078 and λi≥0\lambda_i\ge 079. The map λi≥0\lambda_i\ge 080 is reversible on the sample because Step 1 is one-to-one and Step 2 is deterministic. This is the basis for the paper's claim that barycentric coding minimizes information loss relative to ordinary equal-width or quantile binning.

Once every continuous variable has been barycentrically coded into λi≥0\lambda_i\ge 081 fuzzy columns and every categorical variable into the usual λi≥0\lambda_i\ge 082 dummy columns, the data matrix λi≥0\lambda_i\ge 083 is an λi≥0\lambda_i\ge 084 nonnegative array whose row sums equal the number of original variables. After normalization to the correspondence matrix λi≥0\lambda_i\ge 085, with row masses λi≥0\lambda_i\ge 086, column masses λi≥0\lambda_i\ge 087, and row profiles λi≥0\lambda_i\ge 088, the λi≥0\lambda_i\ge 089 distance between observations is

λi≥0\lambda_i\ge 090

Ward's minimum-variance agglomeration is then carried out in the λi≥0\lambda_i\ge 091 metric. For clusters λi≥0\lambda_i\ge 092 and λi≥0\lambda_i\ge 093, with masses λi≥0\lambda_i\ge 094 and profiles λi≥0\lambda_i\ge 095, the merge criterion is

λi≥0\lambda_i\ge 096

The algorithm starts from λi≥0\lambda_i\ge 097 singleton clusters, repeatedly merges the pair with minimal λi≥0\lambda_i\ge 098, and yields a dendrogram whose fusion heights are the successive values of λi≥0\lambda_i\ge 099.

The empirical results include both real and simulated data. On the diamond pricing example ∑iλi=1\sum_i \lambda_i = 100, barycentric Ward-∑iλi=1\sum_i \lambda_i = 101 yields three clusters interpreted as small diamonds with IGI certificate and low price, large diamonds with HRD certificate and high price, and medium diamonds with HRD certificate and medium price. On Cleveland Heart Disease ∑iλi=1\sum_i \lambda_i = 102, the method finds two clusters with ARI ∑iλi=1\sum_i \lambda_i = 103 against the true disease/no-disease partition, on par with the best competing method and superior to fuzzy-triangular coding. On Credit Approval ∑iλi=1\sum_i \lambda_i = 104, it yields two groups with ∑iλi=1\sum_i \lambda_i = 105 of observations in one large cluster and ∑iλi=1\sum_i \lambda_i = 106 in the other, but the true accept/reject split is not fully recovered, with ARI ∑iλi=1\sum_i \lambda_i = 107; Gower/PAM and K-prototypes are slightly better at ARI ∑iλi=1\sum_i \lambda_i = 108. In a large-scale simulation of ∑iλi=1\sum_i \lambda_i = 109 synthetic datasets, mean ARI is reported as approximately ∑iλi=1\sum_i \lambda_i = 110 for barycentric hierarchical, ∑iλi=1\sum_i \lambda_i = 111 for K-prototypes, ∑iλi=1\sum_i \lambda_i = 112 for fuzzy-triangular, ∑iλi=1\sum_i \lambda_i = 113 for Gower/PAM, and ∑iλi=1\sum_i \lambda_i = 114 for mixed K-means. Cluster overlap has by far the largest negative effect on all methods; barycentric hierarchical remains the most robust even at ∑iλi=1\sum_i \lambda_i = 115 overlap.

A second misconception about BCM therefore concerns discretization: in this clustering setting, barycentric coding is not ordinary binning. The construction is designed so that no two observed values share a bin in the first step, neighboring values are not forced into sharply distinct ∑iλi=1\sum_i \lambda_i = 116 categories in the second, and the resulting code integrates directly with correspondence analysis and Ward-∑iλi=1\sum_i \lambda_i = 117 clustering.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Barycentric Coding Model.