Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Label smoothing for SoftmaxOutput / cross-entropy loss #6996

Description

@fhieber

Label smoothing is a nice technique to regularize models trained with cross-entropy error, for example described here, and applied for vision here, and for NLP/MT recently here.

This can be done in current MXNet when passed an explicit smoothed one-hot label distribution (see here) but this is probably wasteful w.r.t to memory if you have a large label space (e.g. large output vocabulary for LMs, translation models).
It also requires taking explicit care of padding symbols for variable-length models.

It would be nice to have such a flag in the SoftmaxOutput operator to do the smoothing internally without adding another node to the computation graph.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions