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-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
22
22
## 📖 Overview
23
23
24
-
We provide efficient and streamlined implementations of the TOFU, MUSE unlearning benchmarks while supporting 6 unlearning methods, 3+ datasets, 6+ evaluation metrics, and 7+ LLMs. Each of these can be easily extended to incorporate more variants.
24
+
We provide efficient and streamlined implementations of the TOFU, MUSE unlearning benchmarks while supporting 7 unlearning methods, 3+ datasets, 6+ evaluation metrics, and 7+ LLMs. Each of these can be easily extended to incorporate more variants.
25
25
26
26
We invite the LLM unlearning community to collaborate by adding new benchmarks, unlearning methods, datasets and evaluation metrics here to expand OpenUnlearning's features, gain feedback from wider usage and drive progress in the field.
27
27
@@ -35,7 +35,7 @@ We provide several variants for each of the components in the unlearning pipelin
Implementation of Cross Entropy Unlearning Loss (CE-U).
67
+
68
+
This function creates a modified target distribution by setting the logit corresponding to the true label to negative infinity, effectively forcing the model to assign zero probability to the correct answer. The loss then minimizes the KL divergence between this target distribution and the model's output.
69
+
70
+
Args:
71
+
logits: Model output logits with shape [batch_size, sequence_length, vocabulary_size]
72
+
labels: Ground truth token indices with shape [batch_size, sequence_length]
73
+
ignore_index: Token indices to ignore in the loss calculation (typically padding)
74
+
75
+
Returns:
76
+
A scalar tensor representing the mean unlearning loss across valid positions
0 commit comments