Skip to content

loss functions for fine-tuning embedding and reranker models #1444

@hank317

Description

@hank317

May I ask whether the BGE-M3-embedding and BGE-reranker-MiniCPM models use InfoNCE loss during fine-tuning?

From the code implementation, it appears that cross-entropy loss is used. Can I interpret this as using a cross-entropy formulation while still being essentially equivalent to InfoNCE in principle?

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