Quartz 4

Home

❯

notes

❯

Focal loss

Focal loss

Created May 15, 2024Modified Apr 20, 2026

Summary

Focal loss is a type of loss function that downweighs well-predicted labels.

Details

Focal loss (FL) is defined by FL(pi​)=−α(1−pi​)γlog(pi​) where γ is a user-picked modulating factor that decreases the gradient of easy examples as it increases, and α is a weight. A value of zero reverts to cross-entropy.

Figures

From https://medium.com/swlh/focal-loss-what-why-and-how-df6735f26616

See also

  • PLMs are biased toward germline antibodies

Graph View

Backlinks

  • Loss functions
  • PLMs are biased toward germline antibodies

Created with Quartz v4.5.2 © 2026

  • GitHub
  • Discord Community