Views
No views yet
javyduck/any-depth-alignment.LogisticRegression trained on the hidden state of
an injected Safety Token (the assistant header) at one layer. At inference,
ADA-LP re-injects the Safety Tokens mid-generation, reads that single hidden
state, and applies the probe to decide whether to halt — turning the base model
into its own guardrail with constant overhead and no weight updates..joblib files). Path layout (mirrors the training code):ckpts/{model_slug}/{safety_slug}/mask_token_none/{hook_slug}/gradual_cache/seed_42/logistic/layer_{L}.joblibgoogle/gemma-2-9b-it → layer 23, meta-llama/Llama-3.1-8B-Instruct
→ layer 15, deepseek-ai/DeepSeek-R1-Distill-Qwen-7B → layer 13, openai/gpt-oss-120b → layer 33.1import joblib
2probe = joblib.load("ckpts/google_gemma-2-9b-it/.../logistic/layer_23.joblib")
3prob_harmful = probe.predict_proba(safety_token_hidden_state)[:, 1]python -m ada.probe.evaluate --model google/gemma-2-9b-it --dataset advbench loads the right probe from the registry.1@inproceedings{zhang2026anydepth,
2 title = {Any-Depth Alignment: Unlocking the Innate Safety Alignment of LLMs to Any Depth},
3 author = {Zhang, Jiawei and Estornell, Andrew and Li, Bo and Baek, David D. and Xu, Xiaojun},
4 booktitle = {ICLR},
5 year = {2026}
6}