Contrastive ECOC: Learning Output Codes for Adversarial Defense

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chou, Che-Yu, Chen, Hung-Hsuan
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908489952002048
author Chou, Che-Yu
Chen, Hung-Hsuan
author_facet Chou, Che-Yu
Chen, Hung-Hsuan
contents Although one-hot encoding is commonly used for multiclass classification, it is not always the most effective encoding mechanism. Error Correcting Output Codes (ECOC) address multiclass classification by mapping each class to a unique codeword used as a label. Traditional ECOC methods rely on manually designed or randomly generated codebooks, which are labor-intensive and may yield suboptimal, dataset-agnostic results. This paper introduces three models for automated codebook learning based on contrastive learning, allowing codebooks to be learned directly and adaptively from data. Across four datasets, our proposed models demonstrate superior robustness to adversarial attacks compared to two baselines. The source is available at https://github.com/YuChou20/Automated-Codebook-Learning-with-Error-Correcting-Output-Code-Technique.
format Preprint
id arxiv_https___arxiv_org_abs_2508_10491
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Contrastive ECOC: Learning Output Codes for Adversarial Defense
Chou, Che-Yu
Chen, Hung-Hsuan
Machine Learning
Artificial Intelligence
Information Theory
Although one-hot encoding is commonly used for multiclass classification, it is not always the most effective encoding mechanism. Error Correcting Output Codes (ECOC) address multiclass classification by mapping each class to a unique codeword used as a label. Traditional ECOC methods rely on manually designed or randomly generated codebooks, which are labor-intensive and may yield suboptimal, dataset-agnostic results. This paper introduces three models for automated codebook learning based on contrastive learning, allowing codebooks to be learned directly and adaptively from data. Across four datasets, our proposed models demonstrate superior robustness to adversarial attacks compared to two baselines. The source is available at https://github.com/YuChou20/Automated-Codebook-Learning-with-Error-Correcting-Output-Code-Technique.
title Contrastive ECOC: Learning Output Codes for Adversarial Defense
topic Machine Learning
Artificial Intelligence
Information Theory
url https://arxiv.org/abs/2508.10491