# The Reliability Function of Error-Correcting Output Codes with Noisy Binary Classifiers

Error-correcting output codes need large distances to cut classification error

Gendo Kumoi, Hideki Yagi, Manabu Kobayashi, Shigeichi Hirasawa · arXiv · 2026-11-24

- **Problem** Practitioners pick ECOC code tables by trial, because no general rule links a table to its error. Earlier analyses assumed perfect posteriors, so it was unclear whether a larger Hamming distance is needed to lower error.
- **Method** The authors treat each binary classifier's log-odds error as Gaussian noise, which turns ECOC decoding into a test over a Gaussian channel. They bound the excess error over the Bayes classifier from above and below.
- **Results** The upper and lower exponents coincide for n-vs-rest codes with n at least 2, which gives the reliability function in closed form. Machine-checked proofs back the bounds.

![Table 4: Numerical verification of the reliability function (n= 2,θ1 = 0.5,θ 2 = 0.25,σ= 1.0)](https://refivu.com/papers/8c266525-b2cc-4dc5-bfd3-2f2927e30f5a/figures/figure-13cd3c802c2b7ebc61379e1d8dff2965.png?thumb=512)

**Table 4** : Numerical verification of the reliability function (n= 2,θ1 = 0.5,θ 2 = 0.25,σ= 1.0).

[Original paper](https://arxiv.org/abs/2611.33068v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Gendo Kumoi, Hideki Yagi, Manabu Kobayashi, Shigeichi Hirasawa · The Reliability Function of Error-Correcting Output Codes with Noisy Binary Classifiers · Original paper figure · Extracted the figure area from page 25 of the original PDF.

## Why code table choice is hard to reason about

Error-Correcting Output Coding turns a multi-class problem into several binary problems, and the code word table decides which binary classifiers are built. Practitioners choose these tables largely by trial, because nothing general explains which tables work. Earlier analyses assumed each binary classifier outputs the true posterior, and the framework of Kumoi and colleagues tied the Hamming distance only to the pairwise error.

So it remained unclear whether a larger distance is both sufficient and necessary for lowering the error over all categories.

## Turning decoder noise into a Gaussian test

The central move is to treat each binary classifier's log-odds error as Gaussian noise, which turns ECOC decoding into a test over a Gaussian channel. The authors expected the code word distance to play the role that code length plays in channel coding. The reason is that the score gap between two categories depends only on the positions where their code words differ.

A code word table is an M by N binary matrix, where each row is a category's code word and each column defines one binary classifier. Columns must be non-constant, carry at most M/2 ones, and every code word and every classifier must be distinct. The Hamming distance between two categories counts the positions where their code words differ.

The decoder multiplies the posterior estimates that the binary classifiers give along each candidate's code word and picks the largest product. Assumption 1 models each classifier's log-odds error as an independent Gaussian with variance \\\\(\\\\sigma^2\\\\). Against the MAP category c1, the score gap of competitor ck is a signal term \\\\(\\\\mu\_{1k}\\\\) plus a Gaussian term whose variance is \\\\(d\_H(c\_1,c\_k)\\\\sigma^2\\\\).

Dividing the signal by the noise scale gives \\\\(\\\\rho\_{1k}\\\\), and the pairwise error is \\\\(Q(\\\\rho\_{1k})\\\\).

## Reducing excess error to one decoder event

Let E be the event that some competitor scores above c1, and ties have probability zero under the Gaussian noise. The excess error is the ECOC error minus the Bayes error, which equals \\\\(1-\\\\theta\_1\\\\) for the MAP category. This gives an exact decomposition in which the excess error is \\\\(\\\\theta\_1 P(E\|\\\\theta)\\\\) minus a sum of correct-decision terms.

Proposition 2 brackets the excess error between two multiples of P(E). The upper bound is immediate, because the subtracted term in the decomposition is nonnegative. The lower bound uses the fact that the decisions for different wrong categories are disjoint and each has posterior at most \\\\(\\\\theta\_2\\\\), so the two quantities differ by at most a factor between \\\\(\\\\lambda\\\\) and \\\\(\\\\theta\_1\\\\).

In channel coding the exponent is taken per code length, but here the natural variable is the minimum distance. For the 2vR family N grows like M squared while d\_min grows like M, and for the log M code N is about log M but d\_min is 1. The authors therefore aim at an exponent \\\\(E\_{ECOC}\\\\) with P(E) of order \\\\(\\\\exp(-d\_{min}(c\_1)E\_{ECOC})\\\\).

## Upper bound: distance makes the error decay

The upper bound needs an upper estimate of the signal \\\\(\\\\mu\_{1k}\\\\), which is the log-ratio of the noiseless scores. Each column's posterior mass outside c1 and ck is at least the sum \\\\(\\\\omega(n\_{min})\\\\) of the smallest posteriors, which caps the log-ratio column by column. Summing the pairwise tails and applying the Chernoff bound gives an excess error bound of \\\\((M-1)\\\\) times an exponential in \\\\(d\_{min}\\\\).

For nvR codes a pairing argument over the columns gives a sharper estimate of \\\\(\\\\mu\_{1k}\\\\), linear in \\\\(d(n,M)\\\\). Corollary 1 then bounds the excess error by \\\\((M-1)\\\\exp(-d(n,M)\\\\kappa\_2(\\\\lambda,\\\\sigma))\\\\), with \\\\(\\\\kappa\_2\\\\) a closed form in \\\\(\\\\lambda\\\\) and \\\\(\\\\sigma\\\\). The union bound follows Gallager's method, so the decay vanishes once the distance term outgrows \\\\(\\\\ln(M-1)\\\\).

Theorem 1 states the sufficiency condition as \\\\(\\\\kappa d\_{min}(c\_1)-\\\\ln(M-1)\\\\to\\\\infty\\\\). For nvR codes with n at least 2 this holds as M grows, because \\\\(\\\\ln(M-1)\\\\) is small relative to \\\\(d(n,M)\\\\). For the 2vR family the distance is \\\\(2(M-2)\\\\), so the condition is met.

## Lower bound: the nearest competitor sets a floor

The necessity argument compares ECOC with its hardest competitor. Because the event for each competitor lies inside E, P(E) is at least \\\\(Q(\\\\rho\_{min})\\\\), where \\\\(\\\\rho\_{min}\\\\) is the smallest pairwise ratio. This plays the role of a sphere-packing bound, except that it compares pairs and never counts decoding regions.

Bounding each column's log-ratio by \\\\(B\_k(\\\\theta)=\\\\ln((1-\\\\theta\_k)/\\\\theta\_k)\\\\) in absolute value gives Corollary 2. So the excess error is at least \\\\(\\\\lambda Q(\\\\sqrt{d\_H(c\_1,c\_2)B\_2(\\\\theta)/\\\\sigma})\\\\), a positive constant that depends on the distance but not on M. When the two most probable code words stay a bounded distance apart, the excess error therefore stays away from zero.

For the log M code the distance between c1 and c2 is at most \\\\(\\\\lceil\\\\log\_2 M\\\\rceil\\\\), so the floor can persist for adjacent indices.

## The exact exponent for nvR codes

For nvR codes with n at least 2, the pair structure gives a lower estimate of \\\\(\\\\mu\_{1k}\\\\) that matches the upper one in the limit. Lemma 4 shows that the pair ratio is smallest at the ends of its interval, which yields this lower estimate. This gives a Q-function lower bound on P(E) through \\\\(\\\\rho^U\_{12}\\\\).

Lemma 6 shows that \\\\(\\\\mu\_{12}\\\\) divided by \\\\(d(n,M)/2\\\\) converges to the log of \\\\(\\\\theta\_1(1-\\\\theta\_2)/((1-\\\\theta\_1)\\\\theta\_2)\\\\) as M grows with fixed top posteriors. With this limit both exponents converge to the same value, which gives the reliability function in closed form. That value is the squared log of this ratio, divided by eight times the noise variance.

Finite-length checks for n equal to 2 gave exponents above this value. The authors note that this excess is not guaranteed for n at least 3, where the O(1/M) correction can dominate the prefactor. Corollary 3 transfers the exponent from P(E) to the excess error itself, since the two differ by constant factors.

## Correlated noise and the effective distance

The proofs use Assumption 1 only through the marginal law of each Z\_1k, so independence is stronger than needed. For a general covariance, the effective distance is the squared Hamming distance divided by the variance of Z\_1k, and under Assumption 1 this reduces to \\\\(d\_H/\\\\sigma^2\\\\).

Noise can be split into a per-classifier part, a class-level part shared by the classifiers containing a class, and a common-mode part. If the class-level variance is positive, the effective distance stays at most \\\\(2/\\\\sigma\_c^2\\\\) for every pair, so the excess error stays away from zero whatever N or d\_min is. Equicorrelated noise is harmless, because a correlation shared by all classifiers cancels in every score difference.

## Checking the bounds on semi-synthetic and real features

The first check uses a semi-synthetic setting where Assumption 1 holds exactly, with log-odds noise added to the true posteriors of 2vR codes.

On real features, the minimum distance of a fixed table cannot be varied at fixed M, so the authors draw random subsets of 2vR and 3vR columns. The reference is the error of log-likelihood decoding over the full column pool, and the excess is measured against that floor.

The saturation distance, defined as the point where the mean falls within one standard deviation of zero, is 38, 36 and 24 for the three sets.

## Scaling to 256 classes

The authors extend ImageNet-1k to M equal to 256, using PCA to 128 dimensions and 3 seeds with the 2vR and log M codes themselves. The authors read this as the necessity and sufficiency parts together: distance 1 fails as M grows, while a large distance stays low.

## The 3vR deficit and why the fit is loose

The bounds decrease with distance and do not explain this small deficit.

A single exponential in d fits the log excess error poorly, with R-squared values of 0.90, 0.83 and 0.89 for the three sets. Posterior spread and the distance spectrum of column subsets both blur the curves, because the minimum distance is then an incomplete summary.

## Open problems

For the Hadamard code the authors could not show a bound of the form used for nvR codes, and its reliability function remains open. The coefficient for the Exhaustive code is also open, and the general-code bound requires a condition on the posteriors.

## Paper info

- **Authors**: Gendo Kumoi, Hideki Yagi, Manabu Kobayashi, Shigeichi Hirasawa
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-24
- **Added**: 2026-11-26
- **Updated**: 2026-11-24
- **Version**: v1
- **arXiv**: 2611.33068
- **Category**: cs.IT · cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.33068v1) · [PDF ↗](https://arxiv.org/pdf/2611.33068v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Error-correcting output coding (ECOC) builds a multi-class classifier from binary classifiers. We study the excess error rate of ECOC over the Bayes (MAP) classifier when each binary classifier outputs a posterior estimate whose log-odds is corrupted by Gaussian noise. Recasting decoding as a test over a Gaussian channel, we derive an upper bound from the union and Chernoff bounds and a lower bound from the nearest competing category and the Mills ratio. The bounds show that a large Hamming distance is both necessary and sufficient for reducing the excess error rate. The excess error rate stays bounded away from zero, by a constant that depends on the two largest posteriors and the noise level but not on the number of categories $M$, whenever the distance between the code words of the two most probable categories is bounded; for equidistant codes this distance is $d\_{\\min}$. Conversely, it is at most $M-1$ times a factor that is exponentially small in the minimum distance $d\_{\\min}$, and it vanishes whenever $κ\\,d\_{\\min}-\\ln(M-1)\\to\\infty$ for an explicit $κ$ (for general codes, under a posterior condition). For $n$-vs-rest codes with $n\\geq2$, the upper and lower exponents coincide asymptotically, which determines the reliability function of ECOC in closed form. The results extend to correlated Gaussian noise with the Hamming distance replaced by an effective distance; when noise is shared at the level of categories, the effective distance stays bounded and the excess error rate does not vanish for any code. All theorems are machine-checked in Lean 4. In a semi-synthetic setting, the measured decay agrees with the predicted exponent. On ResNet-50 features of CIFAR-10/100 and ImageNet-1k, the excess error over a log-likelihood decoding reference decreases with $d\_{\\min}$ and, for larger $M$, levels off at a moderate distance, while codes with $d\_{\\min}=1$ degrade as $M$ grows.

## Quote from the paper

Gendo Kumoi, Hideki Yagi, Manabu Kobayashi, Shigeichi Hirasawa (2026). The Reliability Function of Error-Correcting Output Codes with Noisy Binary Classifiers. arXiv:2611.33068v1. https://arxiv.org/abs/2611.33068v1

**BibTeX**

```
@misc{kumoi2026reliability,
  title = {{The Reliability Function of Error-Correcting Output Codes with Noisy Binary Classifiers}},
  author = {Gendo Kumoi and Hideki Yagi and Manabu Kobayashi and Shigeichi Hirasawa},
  year = {2026},
  eprint = {2611.33068},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33068v1}
}
```

## Other paper commentary

- [Typical Angina, Reversed: A Long-Standing Documentation Error in the UCI Heart Disease Data](https://refivu.com/en/papers/b1cd0f68-7d26-46cf-88cd-e57ef82a37ed-typical-angina-reversed-a-long-standing-documentation-error.md)
- [Cross-Layer Characterization and AI-Assisted Diagnosis of C-to-Rust Performance](https://refivu.com/en/papers/b9b8f973-d979-443f-b049-2f0218e3517a-cross-layer-characterization-and-ai-assisted-diagnosis-of.md)
- [When Is Product Decoding of ECOC MAP-Consistent? Pair Structure and the n-vs-Rest Codes](https://refivu.com/en/papers/91c0b439-85c0-4c82-8b80-68deaac338ab-when-is-product-decoding-of-ecoc-map-consistent.md)
- [Optimal Transport Meets t-SNE: Integrated Visualization without Batch Effects in OT-tSNE](https://refivu.com/en/papers/d3dac575-8b8b-4708-aa8c-3d0db81121bd-optimal-transport-meets-t-sne-integrated-visualization.md)
- [Predicting Rare-Mode Collapse in Recursive Generative Training from Single-Generation Calibration](https://refivu.com/en/papers/5c8147d8-eed2-4206-bf09-95dd28fcd1c5-predicting-rare-mode-collapse-in-recursive-generative.md)
- [The KL Divergence Is Never Negative, Except in PyTorch](https://refivu.com/en/papers/a58a89ab-5b60-441f-9175-c03ffbd24fec-the-kl-divergence-is-never-negative-except-in.md)
- [CoT-Proxy: Cross-Format Transfer for Distilling Long-Horizon Policies](https://refivu.com/en/papers/133530c1-3978-43b6-aece-30ba42baee72-cot-proxy-cross-format-transfer-for-distilling-long.md)
- [LaST$\_0$: Latent Spatio-Temporal Chain-of-Thought for Robotic Vision-Language-Action Model](https://refivu.com/en/papers/9076f3fe-d775-4018-bb2e-9232cc25a6f6-last-0-latent-spatio-temporal-chain-of-thought.md)
- [On Feature Learning in Structured State Space Models](https://refivu.com/en/papers/f2f5ef3f-9d61-4b9e-93ae-dfe0ebc80328-on-feature-learning-in-structured-state-space-models.md)
- [Spiked-CFR: Causal Representation Learning from LLMs via Wasserstein Projection Pursuit](https://refivu.com/en/papers/a092dcb5-227e-4a9c-9f4c-0ed769acba0a-spiked-cfr-causal-representation-learning-from-llms-via.md)
- [On Expressive Power of Floating-Point Transformers](https://refivu.com/en/papers/8eff9b9c-d057-4d27-8b46-4f97cbae6130-on-expressive-power-of-floating-point-transformers.md)
- [RSA-CP: Efficient Conformal Prediction in Small-Sample Regimes via Random Score Alignment](https://refivu.com/en/papers/21bdc1a9-8a21-4757-b322-ec7470296d48-rsa-cp-efficient-conformal-prediction-in-small-sample.md)

## Terms in this paper

- [Logistic Regression](https://refivu.com/en/terms/3551369d301a-logistic-regression)
- [Assumption 1](https://refivu.com/en/terms/5dc7d1083944-assumption-1)
- [Chernoff bound](https://refivu.com/en/terms/2bd82b5d0473-chernoff-bound)
- [Hamming distance](https://refivu.com/en/terms/c2a7a9c2a284-hamming-distance)
- [multi-class classification](https://refivu.com/en/terms/a6695a9715e1-multi-class-classification)
- [product decoder](https://refivu.com/en/terms/6d58212cb0ac-product-decoder)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/8c266525-b2cc-4dc5-bfd3-2f2927e30f5a-the-reliability-function-of-error-correcting-output-codes)
