# When Is Product Decoding of ECOC MAP-Consistent? Pair Structure and the n-vs-Rest Codes

ECOCの積デコーダがMAPと一致する符号の条件を示す

Gendo Kumoi · arXiv · 2026年11月24日

- **課題** 和デコーダでは、MAPと一致する符号の条件がすでに知られていました。一方で積デコーダについては、必要な条件も使ってよい符号の範囲も分からないままでした。
- **手法** 本研究は、クラス対の比較を列ごとの票の和に分けて調べます。そのうえで、差のある列が入れ替えで対応する列を持つ「ペア構造」が条件になることを導きます。
- **結果** 積デコーダがMAPと一致するのは、符号がn-vs-Restの和集合であるときに限ると示しました。効率のよいHadamard符号は、M≥8では条件を満たしません。

## ECOCのデコーダ選択で何が分からないのか

ECOCは多クラス分類を複数の二値分類器に分け、各クラスに符号語を割り当てて、出力を符号語に照らして判定します。デコーダには、列ごとの確率を足すsum decoderと、列ごとのBernoulli対数尤度を足すproduct decoderの二種類があり、どちらを使うべきかは符号の構造に依存します。本論文は雑音なし設定、つまり二値分類器が真の事後確率を誤りなく出力する場合を扱います。

sum decoderについては、MAPと一致するための条件が等距離であることとして知られていました。一方で先行研究は、対称性の条件がproduct decoderのMAP一致性を保証することは示していましたが、その条件が必要であることや、条件を満たす符号の全体は示していませんでした。このため、product decoderを使ってよい符号の範囲は分からないままでした。

この問題は、効率のよい符号を選ぶ場面で重要になります。Hadamard符号はM−1列で距離M/2を実現し、Plotkin限界に達しますが、そのような符号でどのデコーダを使えるかは問題になります。

## 票への分解という見方

鍵は、二つのクラスを比べるとき、両クラスの符号語が異なる列だけが判定に効くという点です。その列が一方のクラスに与える票を、列の支持の二倍から一を引いた値として定義します。sum decoderは票の標本平均の符号で判定し、product decoderは票にartanhを通した和の符号で判定します。

票は、クラス対の事後確率の差βと、背景クラスだけで決まるバイアスa\_jの和に分けられます。そのため、背景クラスの質量を固定してβだけを動かすと、票の形は変わらず位置だけが平行移動します。この分解により、符号ごとの差を、背景クラスがどのように列へ割り当てられているかという形で調べられます。

artanhは票が±1に近いほど傾きが大きくなるため、product decoderは確信度の高い列を強く重みづけします。sum decoderでは、背景クラスkはd(k,m)とd(k,m′)の差に応じて、自分により近いクラスの方へ判定を引きます。ペア構造は、差異のある列が互いに入れ替えで写る列と対応しているかを調べる条件です。

![Table 1: Code families studied and their MAP-consistency (noiseless setting). Sum/Product: whether the sum/product decoder is MAP-consistent](https://refivu.com/papers/91c0b439-85c0-4c82-8b80-68deaac338ab/figures/figure-59ce2a1fcfb06bf2685792d720128faf.png?thumb=512)

**Table 1** : Code families studied and their MAP-consistency (noiseless setting). Sum/Product: whether the sum/product decoder is MAP-consistent.

[出典](https://arxiv.org/abs/2611.33044v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Gendo Kumoi · When Is Product Decoding of ECOC MAP-Consistent? Pair Structure and the n-vs-Rest Codes · 論文の図を引用 · 元のPDFの4ページ目から図の部分を抽出しています。

## product decoderのMAP一致の必要十分条件

背景の質量を固定した一次元の族では、積デコーダの判定はΨ\_b(β)の符号で決まります。Ψ\_b(0)が0なら逆転は起きず、Ψ\_b(0)が正なら、Ψ\_bに唯一の根β\*があり、β\*から0までの範囲で逆転が起きます。この範囲の幅が反転マージンであり、Ψ\_bの根の絶対値で決まります。

主定理は、product decoderがMAPと一致することと、全クラス対がペア構造を持つこと、符号がn-vs-Restの和集合であることが同値であると述べます。証明の要点は、Ψ\_b(0)=0が全ての背景で成り立つと、票の奇数次モーメントがすべて0になり、それは符号を入れ替えで写しても分布が変わらないことと同値になる、という点です。一方で、すべての類対でペア構造を持つことは、全ての置換のもとで符号が不変であることと同じで、その不変な符号がn-vs-Restの和集合になります。

sum decoderは符号の一次モーメント、つまり背景クラスの符号の和が釣り合えば十分ですが、product decoderには票の分布全体の対称性が必要です。その結果、product decoderが一致する符号は必ずsum decoderも一致する符号になります。逆は成り立ちません。n-vs-Rest族、全列を含むExhaustive符号、Hadamard符号（M=4）はペア構造を持つ例です。

## Hadamard符号でペア構造が消える理由

Hadamard符号では列どうしが直交するため、M≥8では、差異のある列に入れ替えで写る対応列が一つも存在しません。その結果、どの型のHadamard行列でも、すべてのクラス対について積デコーダがMAPと逆の判定をする可能性があります。Hadamard符号は距離が大きいので、sum decoderには安全に使えますが、product decoderには使えないという対比になります。

Sylvester型では、クラスをF\_2^tの元とみなすと、クラス対の差からなる特定のクラスは比較統計量に現れません。この型では、背景の質量を三つのクラスの組に1/5ずつ置くと、バイアスが二つの値だけになり、反転の条件が一つの式に帰着します。その式から得られるδ̄は約0.018175で、Mに依存しない下界として示されています。

この下界は最悪ケースの保証であり、上限ではありません。局所探索では、M∈{8,12,16,20,28,32,48,64}で最悪の反転マージンが0.017から0.025の範囲に見つかりました。一方、ランダムにサンプルした典型的な事後確率では、反転マージンはMとともに小さくなりました。

## 数値実験による確認

雑音なし設定の実験では、logM以外の等距離符号でsum decoderの不一致は観測されませんでした。product decoderの不一致は、ペア構造を持つ1-vs-Rest、2vR、half-vs-halfとHadamard符号（M=4）で0でした。

![Figure 2: Disagreement rate with MAP in the noiseless setting (%, mean over four series). Left: sum; right: product. The sum decoder is0on all equidistant code…](https://refivu.com/papers/91c0b439-85c0-4c82-8b80-68deaac338ab/figures/figure-cb5526f90fbcf24e8bda76d2b6edf7f1.png?thumb=512)

**Figure 2** : Disagreement rate with MAP in the noiseless setting (%, mean over four series). Left: sum; right: product. The sum decoder is0on all equidistant codes (all but logM), the product decoder only on codes with pair structure (1-vs-Rest, 2vR, half-vs-half, Hadamard withM= 4) (Proposition 1 and Theorem 1). n/c: not computed. Half-vs-half has ( M M/2 ) /2 columns (6435 atM= 16, about3×10 8 atM= 32), so only M≤8was computed; having pair structure, its rate is0by the theorem.

[出典](https://arxiv.org/abs/2611.33044v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Gendo Kumoi · When Is Product Decoding of ECOC MAP-Consistent? Pair Structure and the n-vs-Rest Codes · 論文の図を引用 · arXivのHTML版にある論文の画像ファイルをPNGに変換しています。

さらに977のクラス対について、ペア構造の有無と、積デコーダが逆転する点の探索を独立に調べました。ペア構造のない773のクラス対では逆転が見つかり、ペア構造のある204のクラス対では逆転は見つかりませんでした。これは、主定理の予測と一致する結果です。

実分類器による実験では、キャリブレーション済みの場合、product decoderは全コードでsum decoderより+0.3から+0.4ポイント精度が高くなりました。McNemar検定では、39セルのうち24セルでproduct decoderが有意に良く、sum decoderが有意に良いセルはありませんでした。全列の倍率を共通にずらす場合、product decoderの判定は変わらないため、ずれが大きくなるほどsum decoderとの差が広がりました。

著者らは、product decoderは確信度の高い列を強く重みづけするため、一部の列の過信が判定を支配すると考えています。この実験は、列ごとの倍率を後から追加した探索的な条件であり、主要な仮説とは別に扱う必要があります。

## 限界と未解決の課題

理論は雑音なし設定p=C^Tπに限られています。実分類器では、2vRのように雑音なしで両デコーダがMAPと一致する符号でも、sum decoderとproduct decoderの判定が異なることがあります。推定誤差に対してequidistanceとペア構造がどれだけ頑健かは分かっていません。

Hadamard符号の反転マージンについては、最悪ケースの正確な値、閾値の解析的な導出、非Sylvester型の下界定数、典型ケースの減衰の正確な速さが未解決です。このため、符号は列を削らずに全体で使う必要があります。

## 論文情報

- **著者**: Gendo Kumoi
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月24日
- **登録日**: 2026年11月26日
- **更新日**: 2026年11月24日
- **バージョン**: v1
- **arXiv**: 2611.33044
- **カテゴリ**: cs.LG · cs.IT
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.33044v1) · [PDF ↗](https://arxiv.org/pdf/2611.33044v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

Error-Correcting Output Codes (ECOC) combine binary classifiers by the sum decoder, which totals probabilities, or the product decoder, which totals log-likelihoods. In the noiseless setting, where the binary classifiers output the true posteriors, we ask on which code matrices each decoder always agrees with the Bayes-optimal (MAP) class. For the sum decoder the answer is known: the code must be equidistant (James and Hastie, 1998). We answer the question for the product decoder. Two classes are compared through the votes of the columns on which they differ: the sum decoder decides by their sample mean, the product decoder by an M-estimator with influence function artanh, and each vote is the MAP margin plus a bias determined by the other classes alone. Our main theorem states that the product decoder is MAP-consistent if and only if, for every class pair, the columns on which the two classes differ are matched with the columns obtained by swapping the two classes (or their complements), and equivalently if and only if the code is a union of n-vs-Rest codes. Efficient equidistant codes are therefore excluded: Hadamard codes ($M\\ge 8$), which meet the Plotkin bound with $M-1$ columns, have no such pairs, and for the Sylvester type the reversal margin can be at least a constant 0.0182 independent of $M$. All theorems are machine-checked in Lean 4. On six real datasets with estimated probabilities, the product decoder is slightly more accurate when each column is calibrated, and the sum decoder is better when the calibration error differs across columns; in either case the decoders disagree only near ties.

## この論文を引用

Gendo Kumoi (2026). When Is Product Decoding of ECOC MAP-Consistent? Pair Structure and the n-vs-Rest Codes. arXiv:2611.33044v1. https://arxiv.org/abs/2611.33044v1

**BibTeX**

```
@misc{kumoi2026when,
  title = {{When Is Product Decoding of ECOC MAP-Consistent? Pair Structure and the n-vs-Rest Codes}},
  author = {Gendo Kumoi},
  year = {2026},
  eprint = {2611.33044},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33044v1}
}
```

## ほかの論文解説

- [Optimal Transport Meets t-SNE: Integrated Visualization without Batch Effects in OT-tSNE](https://refivu.com/ja/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/ja/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/ja/papers/a58a89ab-5b60-441f-9175-c03ffbd24fec-the-kl-divergence-is-never-negative-except-in.md)
- [Per-Attack Blocking Hides Catalog Vulnerability: A Weakest-Link Analysis of Tool Manifests](https://refivu.com/ja/papers/e81c6c5d-9783-464f-93c2-4b7a8263a787-per-attack-blocking-hides-catalog-vulnerability-a-weakest.md)
- [Beyond Single-Turn Privacy: Training-Data Leakage in Conversational RAG](https://refivu.com/ja/papers/51c92831-e3a5-4575-943b-50961dd4fa10-beyond-single-turn-privacy-training-data-leakage-in.md)
- [Energy-preserving Bayesian model reduction: closed-form structured posteriors and probabilistic stability certificates for quadratic operator inference](https://refivu.com/ja/papers/87bcab93-eba0-4ffc-89b9-8f653e413add-energy-preserving-bayesian-model-reduction-closed-form.md)
- [Escaping Whack-a-Mole: Optimizing Documentation as Repo-Specific Playbooks for Coding Agents](https://refivu.com/ja/papers/52e2d558-711f-4753-af6e-c88268527a9b-escaping-whack-a-mole-optimizing-documentation-as-repo.md)
- [When Random Saliency Looks Trained: Architectural Center Bias in CNN Interpretability](https://refivu.com/ja/papers/dedacf70-34e7-40a0-b505-6e9e917d078c-when-random-saliency-looks-trained-architectural-center-bias.md)
- [Zeroth-Order Forward-Only SNN Training Inspiring Neuromorphic On-Chip Learning](https://refivu.com/ja/papers/62311c6d-94fc-4546-98d2-cb89a4630c19-zeroth-order-forward-only-snn-training-inspiring.md)
- [Roboclock: A Unified Benchmark for Time-Aware Robotic Intelligence](https://refivu.com/ja/papers/d28d7b22-274f-4e81-9d24-a3d9cc69084a-roboclock-a-unified-benchmark-for-time-aware-robotic.md)
- [Demographic Encoding is Not Exposure: Fairness and Privacy in Chest X-ray Foundation Models](https://refivu.com/ja/papers/d91f434f-7371-40be-9129-9d3da0b4398c-demographic-encoding-is-not-exposure-fairness-and-privacy.md)
- [Token Pruning Needs a Protected Sink Token: Coherent Spatial Aggregation in Vision Transformers](https://refivu.com/ja/papers/ccf2a0da-8ba4-468b-bb16-97b8206e5236-token-pruning-needs-a-protected-sink-token-coherent.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/91c0b439-85c0-4c82-8b80-68deaac338ab-when-is-product-decoding-of-ecoc-map-consistent)
