Views
No views yet
L_nke = unmasked_retain_weight · KL( p_base || p_gated ) # on non-entity tokens of the forget batchunmasked_retain_weight and λ_f:| Folder | λ_f | λ_r | unmasked_retain_weight | Intended effect |
|---|---|---|---|---|
nke_w1p0/ | 0.1 | 0.5 | 1.0 | Heavy non-entity retention |
nke_optA_w0p05/ | 0.1 | 0.5 | 0.05 | Light touch — keep baseline forget strength |
nke_optB_lf1p0_w0p1/ | 1.0 | 0.5 | 0.1 | Stronger forget + moderate retention |
forget_retain_ratio=1:2, lr=1e-2, cosine, 3 epochs, bf16).<variant>/
lambda_logits.pt # 86,016 per-neuron logits (28 layers × 3072)
neuron_indices.json # Knowledge neurons at threshold 0.51import torch, json
2
3# Load a specific variant
4gate_state = torch.load("nke_optA_w0p05/lambda_logits.pt", map_location="cpu")
5with open("nke_optA_w0p05/neuron_indices.json") as f:
6 knowledge_neurons = json.load(f)