You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,8 @@ This is the GitHub repository for the paper "Harmonic Loss Trains Interpretable
7
7
## What is Harmonic Loss?
8
8
- Harmonic logit $d_i$ is defined as the $l_2$ distance between the weight vector $\mathbf{w}_i$ and the input (query) $\mathbf{x}$: $d_i = \|\mathbf{w}_i - \mathbf{x}\|_2$.
9
9
10
-
- The probability $p_i$ is computed using the harmonic max function: <imgsrc="./figures/eq_harmax.png"alt="Description"style="width: 50%; display: block; margin: auto;">
10
+
- The probability $p_i$ is computed using the harmonic max function:
11
+

11
12
where $n$ is the **harmonic exponent**—a hyperparameter that controls the heavy-tailedness of the probability distribution.
12
13
13
14
- Harmonic Loss achieves (1) **nonlinear separability**, (2) **fast convergence**, (3) **scale invariance**, (4) **interpretability by design**, properties that are not available in cross-entropy loss.
0 commit comments