Skip to content

Pytorch implementation of LNS  #1

Description

@zhujiem

LNS provides a very effiecient way for adaptative-hard negative sampling. I'm very interested in its use in contrastive learning applications. Do you think it is possible to implement LNS in pytorch or tensorflow? I did not figure it out since hashing seems not work in batch tensor computation, especially when each buckets have different number of samples. Many thanks!

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