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.

Implement NCE loss to speed up Softmax with large amount of labels #2704

@xlvector

Description

@xlvector

For word based LSTM, the Softmax layer receive large amount of labels which make training very slow. Two methods can solve this problem: hierarchical softmax (HS) and NCE.

I think NCE is better than HS, so I want to implement NCE Loss similar to this repos: https://github.com/yandex/faster-rnnlm

The API may looks like

NCEOutput(data = input, label = target, noise = [negative samples])

Do you have more suggestions on this?

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