Source policy: GitHub repos and arXiv first. Hugging Face is listed for weights and the heretic/abliterated model registry. Refresh with
npm run fetch:all(orfetch:heretic/fetch:docs/fetch:research-papers/fetch:hf-models:firefox).
2026 primary-source update: 50-paper reading map · machine catalog · Offline research corpus (PDFs + text): sources/research/README.md · Beginner map: docs/refusal-research-beginners-guide.md
The 50-paper update is a dated discovery snapshot (23 August 2026) covering refusal geometry, activation steering, abliteration, safety recovery, over-refusal, attack surfaces, and representation-level evaluation. Inclusion records relevance; it does not claim independent replication.
Primary papers#
| Title | Link | Repo PDF / code |
|---|---|---|
| Refusal in LLMs is mediated by a single direction (Arditi, NeurIPS 2024) | arXiv:2406.11717 | PDF · andyrdt/refusal_direction |
| Accessible summary | LessWrong | — |
| Geometry of Refusal — concept cones (TUM 2025) | arXiv:2502.17420 | PDF · geometry-of-refusal |
| Comparative abliteration methods (Young 2025/26) | arXiv:2512.13655 | PDF · ricyoung/abliteration-comparison |
| More to refusal than a single direction (QCRI 2026) | arXiv:2602.02132 | PDF · multi-category-refusal-beginners-guide.md |
| Defense: extended-refusal fine-tuning (Shairah 2025) | arXiv:2505.19056 | PDF · defenses-against-abliteration.md |
| COSMIC — refusal direction ID (Siu, ACL 2025) | arXiv:2506.00085 | PDF · wang-research-lab/COSMIC |
| Safety pretraining under abliteration (2025) | arXiv:2510.02768 | PDF · safety_pretraining |
| Topic-matched contrast baselines fail (2026) | arXiv:2603.22061 | |
| Open-weight defenses vs abliteration (Kuo 2026) | arXiv:2605.26526 | |
| Code LLMs — refusal vs capability (2026) | arXiv:2606.05396 | |
| False-refusal single vector (Wang, ICLR 2025) | arXiv:2410.03415 | PDF · False-Refusal-Mitigation · T38 |
| Harmfulness ≠ refusal (Zhao, NeurIPS 2025) | arXiv:2507.11878 | PDF · CHATS-lab code · T39 |
| DDI harm-detect vs refuse-execute (Zhang & Sun, AAAI-26) | arXiv:2511.06852 | PDF · Analysis only (no attack recipe) · T39 |
| SOM multi-direction (Piras, AAAI 2026) | arXiv:2511.08379 | PDF · pralab/som-refusal-directions · T35 |
| ORBA (Lai 2026) | HF blog | T34 · orba-pipeline |
| Task-conditioned refusal (2026) | arXiv:2603.27518 | |
| Representation Engineering | arXiv:2310.01405 | RepE ecosystem |
| Circuit Breakers (defensive) | arXiv:2406.04313 | GraySwanAI/circuit-breakers |
| Projected abliteration (blog) | grimjim/projected | llm-abliteration --projected |
| Norm-preserving biprojected (blog) | grimjim/norm-preserving | --normpreserve |
| Heretic concepts (live) | mintlify Heretic | p-e-w/heretic |
Tools (GitHub — preferred)#
| Project | URL | Role |
|---|---|---|
| Heretic | github.com/p-e-w/heretic | Fully automatic abliteration + Optuna search |
| llm-abliteration | github.com/jim-plus/llm-abliteration | v1.2 handbook/manual path: measure.py → analyze.py → sharded_ablate.py |
| refusal_direction | github.com/andyrdt/refusal_direction | Paper pipeline, direction.pt artifacts |
| TransformerLens | github.com/TransformerLensOrg/TransformerLens | Hooks, residual analysis |
| FailSpy/abliterator | github.com/FailSpy/abliterator | TransformerLens hooks; mechanistic prototyping |
| remove-refusals-with-transformers | github.com/Sumandora/remove-refusals-with-transformers | Pure Transformers, no TransformerLens |
| wassname/abliterator | github.com/wassname/abliterator | Community implementation |
| ErisForge | github.com/Tsadoq/ErisForge | Layer-band single-pass; ExpressionRefusalScorer |
| NousResearch/llm-abliteration | github.com/NousResearch/llm-abliteration | Frozen fork (~2025-11-27); historical YAML only — not the handbook path |
| abliterate.cpp | github.com/kabachuha/abliterate.cpp | GGUF measure → llm-abliteration (WIP) |
| Abliterix | github.com/wuwangzhang1216/abliterix | Optuna multi-objective; 150+ configs; HonestAbliterationBench |
| DECCP (AUGMXNT) | github.com/AUGMXNT/deccp | Topics/dataset (Qwen2 PoC), not a peer CLI. Measure: python measure.py --deccp on jim-plus |
| COSMIC | github.com/wang-research-lab/COSMIC | Cosine-similarity refusal direction ID (ACL 2025) |
| abliteration-comparison | github.com/ricyoung/abliteration-comparison | Young arXiv:2512.13655 reproduction assets |
| spkgyk/abliteration | github.com/spkgyk/abliteration | Pure PyTorch hooks (no TransformerLens) |
| OBLITERATUS | github.com/elder-plinius/OBLITERATUS | SVD / surgical / CoT-aware presets |
| ablate-llm | github.com/AIAnytime/ablate | pip install ablate-llm KL-guided CLI |
| J-Wash | github.com/Extraltodeus/J-Wash | Jacobian-lens manual alignment |
| Blasphemer | github.com/sunkencity999/blasphemer | Heretic fork for macOS / LM Studio |
| vauban | github.com/teilomillet/vauban | MLX-native steering / abliteration |
| senbonzakura | github.com/elementmerc/senbonzakura | Multi-direction refusal CLI; not official SOM (pralab/som-refusal-directions) |
| Awesome-Refusal-Suppression | github.com/ant-research/Awesome-Refusal-Suppression | External catalog (cross-check, not a substitute) |
| Handbook C++26 CLI | cxx/README.md | npm run cxx:build · abliterate-cxx self-check |
| GraySwan circuit-breakers | github.com/GraySwanAI/circuit-breakers | Defensive alignment (contrast) |
Heretic also mirrors to codeberg.org/p-e-w/heretic.
Alternative tools (arXiv:2512.13655 benchmarks):
# ErisForge — single-pass toolkit (often better GSM8K preservation on subset)
pip install erisforge # verify package name on github.com/Tsadoq/ErisForge README
git clone https://github.com/Tsadoq/ErisForge.git && cd ErisForge && pip install -e .
# DECCP — AUGMXNT topics/dataset, not a peer CLI. Measure on jim-plus:
# python measure.py --deccp
# optional topic checkout:
git clone https://github.com/AUGMXNT/deccp.git→ docs/comparative-abliteration-benchmarks.md · techniques/extended-abliteration-toolkit.md
Tool selection for responsible use: GSM8K capability deltas and architecture-specific findings in the comparative benchmarks directly inform risk mitigation. Pair any tool decision with the capability sanity gates, post-edit labeling, and authorized scope rules in docs/risks-and-ethics.md.
For agentic workloads, also cross-reference:
- Full eval-driven workflow + gate checklist: instructions/eval-driven-workflow.md
- Use-case evals: docs/use-cases/factory-firmware-qa.md · docs/use-cases/pentest-cyber-analysis.md · docs/use-cases/cybergym-benchmark.md
- Detailed agentic security stack: instructions/agentic-security-stack.md
See the dedicated "Tool selection via comparative benchmarks" section + "Agentic use-case evals & benchmarks" list in docs/risks-and-ethics.md and the bidirectional links + responsible selection guidance in docs/comparative-abliteration-benchmarks.md.
Pinned in this repo: sources/heretic-tools/ · docs/tools/heretic-tools-reference.md
Heretic / abliterated models (Hugging Face)#
| Resource | URL |
|---|---|
| Live browse | huggingface.co/models?other=heretic |
| Registry (JSONL) | data/heretic-models-registry.jsonl |
| Human table | docs/tools/heretic-models-registry.md |
| Handbook seeds | data/heretic-models-registry.seed.jsonl |
Live documentation#
| Site | URL |
|---|---|
| abliteration.ai docs | docs.abliteration.ai |
| Agent doc index | docs.abliteration.ai/llms.txt |
| Heretic README | p-e-w/heretic |
| CyberGym paper | arXiv:2506.02548 |
| OpenHands README | OpenHands/OpenHands |
| hashcat README | hashcat/hashcat |
| Kali metapackages | Kali documentation |
Low VRAM & LoRA tooling#
| Project | URL | Role |
|---|---|---|
| bitsandbytes | bitsandbytes-foundation/bitsandbytes | Heretic bnb_4bit, QLoRA load |
| PEFT | huggingface/peft | LoRA adapter export & infer |
| Unsloth | unslothai/unsloth | Fast QLoRA (Jarvis repair) |
| Accelerate | huggingface/accelerate | max_memory CPU offload |
| llama.cpp | ggml-org/llama.cpp | convert_hf_to_gguf.py, convert_lora_to_gguf.py |
| GGUF-my-LoRA | spaces/ggml-org/gguf-my-lora | Web PEFT → GGUF LoRA |
| grimjim abliteration LoRA | grimjim/Llama-3-Instruct-abliteration-LoRA-8B | Refusal removal as adapter |
| vLLM | vllm-project/vllm | Agent API + LoRA slots |
| mlx-lm | ml-explore/mlx-examples | Apple Silicon inference |
| export-abliteration-lora.py | scripts/export-abliteration-lora.py | ΔW → adapter safetensors |
Guides: docs/toolchain-safetensors-gguf-lora.md · methods/safetensor-abliteration-pipeline.md · methods/gguf-export-notes.md · techniques/lora-qlora-abliteration.md
Install commands (from upstream, Jun 2026)#
# Heretic — PyPI package built from GitHub
pip install heretic-llm==1.4.0 bitsandbytes accelerate
heretic Qwen/Qwen3-4B-Instruct-2507
# Low VRAM: quantization = "bnb_4bit" in config.toml
# Or clone for reproducible uv.lock
git clone --branch v1.4.0 https://github.com/p-e-w/heretic.git
cd heretic && uv run heretic <model>
# Manual pipeline (4-bit measure)
git clone https://github.com/jim-plus/llm-abliteration.git
cd llm-abliteration && pip install -r requirements.txt
python measure.py -m <model_path> -o directions.pt --quant 4bit --projected
python sharded_ablate.py config.yml --projected --normpreserve
# GGUF merged deploy
python llama.cpp/convert_hf_to_gguf.py ./abliterated --outfile model-q4_k_m.gguf --outtype q4_k_m
# LoRA sidecar deploy
python scripts/export-abliteration-lora.py --base ./base --abliterated ./out --out ./adapter --rank 16
python llama.cpp/convert_lora_to_gguf.py --outfile lora.gguf --base-model-id <id> --lora-path ./adapterToolchain overview: docs/toolchain-safetensors-gguf-lora.md
Validation & agent loop#
npm run validate # links, jsonl, pins, python — exit 0 required before commit
npm run ralph # validate → refresh pins → re-validate (max 3)→ docs/ralph-loop.md · docs/agent-development-loop.md · Benchmarks: docs/comparative-abliteration-benchmarks.md · arXiv:2512.13655
Agentic security & evaluation#
| Project | URL | Role |
|---|---|---|
| CyberGym | cybergym.io · arXiv:2506.02548 | 1,507 real-world vuln tasks for agent scoring |
| OpenHands | github.com/OpenHands/OpenHands | Bash-chaining agent (CyberGym top performer) |
| JARVIS Tool Repair v7 | sources/jarvis-pack/IMPORT.md | SFT/DPO tool-use repair (48k rows, local) |
| hardware-tool-gate | scripts/hardware-tool-gate.py | Runtime ALLOW / CONFIRM / BLOCK for terminal calls |
| Command catalog | docs/hardware-command-catalog.md | Factory / firmware / lab read-only diagnostics |
Use-case guides: factory-firmware-qa.md · pentest-cyber-analysis.md · cybergym-benchmark.md
Benchmarks & ethics for agentic selection: Choose abliteration backends using evidence from docs/comparative-abliteration-benchmarks.md (GSM8K sensitivity by tool/architecture, Heretic vs single-pass tradeoffs) and always enforce the gates + provenance in docs/risks-and-ethics.md. See the new "Tool selection via comparative benchmarks" section there for use-case-specific gating steps (factory/pentest/CyberGym corpora via eval-driven-workflow).
Full pipeline including eval corpora and runtime gate: instructions/agentic-security-stack.md. Use-case guides: docs/use-cases/factory-firmware-qa.md · docs/use-cases/pentest-cyber-analysis.md · docs/use-cases/cybergym-benchmark.md.
Security tool catalogs (OSINT / Kali / hashcat)#
| Resource | URL |
|---|---|
| Handbook hub | docs/tools/README.md |
| Kali tools (official) | kali.org/tools |
| Kali metapackages | kali.org/docs/general-use/metapackages |
| hashcat | hashcat.net · GitHub |
| hashcat wiki | hashcat.net/wiki |
| OSINT Framework | osintframework.com |
| Exploit-DB / searchsploit | exploit-db.com |
| SecLists wordlists | github.com/danielmiessler/SecLists |
| Impacket | github.com/fortra/impacket |
| BloodHound | github.com/SpecterOps/BloodHound |
| Nuclei | github.com/projectdiscovery/nuclei |
Platform tooling (Windows / macOS / Zig)#
| Resource | Link |
|---|---|
| Windows catalog | docs/tools/windows-tooling.md |
| macOS catalog | docs/tools/macos-tooling.md |
| Zig catalog | docs/tools/zig-tooling.md |
| Generated examples | data/examples/README.md |
| Zig (canonical) | github.com/adybag14-cyber/zig master |
| Zig 0.17 syntax doc | docs/tools/zig-canonical-syntax.md |
| Zig upstream | ziglang.org · codeberg.org/ziglang/zig |
| Zig 0.16 release notes | ziglang.org/download/0.16.0/release-notes.html |
| Zig targets | zig targets / documentation/master |
Interpretability & SAE#
| Resource | URL |
|---|---|
| GemmaScope SAEs | huggingface.co/google/gemma-scope-9b-it-res |
| Llama 3.1 SAEs | andyrdt/saes-llama-3.1-8b-instruct |
| PaCMAP (Heretic plots) | YingfanWang/PaCMAP |
Advanced handbook sections#
| Doc | Topic |
|---|---|
| docs/research-landscape.md | Method taxonomy & decision tree |
| docs/advanced-techniques-catalog.md | Parameters & math |
| instructions/advanced-abliteration-workflow.md | Multi-track workflows |
| docs/tools/abliteration-tooling.md | Full tool stack |
Related concepts#
- Activation steering — inference-time only (reversible)
- Directional ablation — subtract refusal component from activations or weights
- Norm-preserving biprojected abliteration — Jim Lai / llm-abliteration
--normpreserve --projected - Gradient RDO — optimized refusal direction (TUM 2025)
- Multi-direction subspace — PCA / category-specific directions
- Context7 — up-to-date dependency docs → docs/context7.md
Additive September 2026 refresh#
See the 14-paper annotated update, versioned catalog, and selective-method guide. The previous bibliography and snapshots are preserved.
Additive October 2026 refresh#
Annotated eight-paper map · versioned catalog · adaptive interventions and ARA · huihui-ai guide · pinned model cards · tooling status.
The 2026-10-05 check distinguishes Heretic 1.4.0 stable from inspected development source, and publisher claims from independently measured results.