CODED-SMOOTHING: Coding Theory Helps Generalization

Parsa Moradi, Tayyebeh Jahaninezhad, Mohammad Ali Maddah-Ali
9/30/2025
cs.LG

No confident code implementation found for this paper.

Abstract

We introduce the coded-smoothing module, which can be seamlessly integrated into standard training pipelines, both supervised and unsupervised, to regularize learning and improve generalization with minimal computational overhead. In addition, it can be incorporated into the inference pipeline to randomize the model and enhance robustness against adversarial perturbations. The design of coded-smoothing is inspired by general coded computing, a paradigm originally developed to mitigate straggler and adversarial failures in distributed computing by processing linear combinations of the data rather than the raw inputs. Building on this principle, we adapt coded computing to machine learning by designing an efficient and effective regularization mechanism that encourages smoother representations and more generalizable solutions. Extensive experiments on both supervised and unsupervised tasks demonstrate that coded-smoothing consistently improves generalization and achieves state-of-the-art robustness against gradient-based adversarial attacks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{moradi2025codedsmoothing,
  title  = {CODED-SMOOTHING: Coding Theory Helps Generalization},
  author = {Parsa Moradi and Tayyebeh Jahaninezhad and Mohammad Ali Maddah-Ali},
  year   = {2025},
  eprint = {2510.00253},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.00253v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.00253.svg)](https://codeofpaper.com/paper/2510.00253)

Discussion