lymnal's picture
sync: Wave 1+2+3 backend + 6 techniques + populated refusal/over-refusal data
ffb6dc9 verified
Raw
History Blame Contribute Delete
1.16 kB
"""
Refusal-ablation technique implementations.
Each module under this package implements one published technique against
the Technique base class in refusal_bench.technique. Add new techniques
here by importing and registering them in TECHNIQUES below.
Six techniques in scope (alphabetical):
arditi β€” single direction (NeurIPS 2024 baseline)
cheng β€” compressed direction (top-k by magnitude)
cosmic β€” cosine-objective layer + direction selection
herring β€” contrastive neuron ablation (MLP-level)
maskey β€” over-refusal vs harmful-refusal decomposition
wollschlager β€” polyhedral cone (rank-k iterative orthogonal)
"""
from .arditi import Arditi
from .cheng import Cheng
from .cosmic import Cosmic
from .herring import HerringCNA
from .maskey import Maskey
from .wollschlager import Wollschlager
TECHNIQUES = {
"arditi": Arditi,
"cheng": Cheng,
"cosmic": Cosmic,
"herring": HerringCNA,
"maskey": Maskey,
"wollschlager": Wollschlager,
}
__all__ = [
"TECHNIQUES",
"Arditi",
"Cheng",
"Cosmic",
"HerringCNA",
"Maskey",
"Wollschlager",
]