Ortho-CVEC-GGUF

Refusal-Orthogonal Epistemic Honesty Control Vectors (<110 KiB .gguf) for llama.cpp (--control-vector-scaled / per-request control_vectors).

Published by Deadkey Labs (deadkey.dev Β· deadkey-labs/deadkey Β· pip install deadkey).

Ortho-CVEC Pareto & Disentanglement Chart

Why Ortho-CVEC?

Standard honesty / abstention control vectors ($v_{\text{honest}}$) extracted via contrastive activation pairs strongly overlap with the model's generic refusal subspace ($v_{\text{refuse}}$):

Architecture Layers (n_layers, d_model) Selected Layers Mean $\cos(v_{\text{honest}}, v_{\text{refuse}})$ Retained Norm ($\alpha=1.0$) Max Honesty Cohen's $d$ (Raw β†’ Ortho) Bleach Warning
Qwen3-8B 36, 4096 10, 11, 12, 13, 15 0.5965 80.26% 3.52 β†’ 4.80 false
Gemma-4-31B 60, 5376 26, 27, 28, 39, 40 0.5217 84.78% 3.01 β†’ 3.20 false

Because $\cos(v_{\text{honest}}, v_{\text{refuse}}) \in [0.52, 0.60]$, scaling a raw honesty control vector up collapses recall on benign retrieval prompts into false refusals.

Gram-Schmidt Refusal-Orthogonal Projection (Ortho-CVEC):

vortho(Ξ±)=vhonestβˆ’Ξ±β‹…βŸ¨vhonest,vrefuse⟩βˆ₯vrefuseβˆ₯2 vrefusev_{\text{ortho}}(\alpha) = v_{\text{honest}} - \alpha \cdot \frac{\langle v_{\text{honest}}, v_{\text{refuse}} \rangle}{\|v_{\text{refuse}}\|^2} \, v_{\text{refuse}}

  • a05_soft ($\alpha = 0.5$): Balanced Pareto frontier β€” maximizes combined adversarial honesty + benign recall while softening false refusals.
  • a10_full ($\alpha = 1.0$): Strict refusal-orthogonal projection (ortho10_refuse_cohen_d = 0.0 across every selected layer) β€” prevents the high-scale benign-recall cliff.

Included Artifacts (Apache-2.0)

File Target Architecture Variant Size Selected Layers SHA-256 (first 16)
ortho_cvec_qwen3-8b_a05_soft.gguf qwen3 (8B, d=4096) Soft Ortho ($\alpha=0.5$) 80.75 KiB 10, 11, 12, 13, 15 ec423ba8d222c2ec
ortho_cvec_qwen3-8b_a10_full.gguf qwen3 (8B, d=4096) Full Ortho ($\alpha=1.0$) 80.75 KiB 10, 11, 12, 13, 15 06f1ad44c9d1edf9
ortho_cvec_gemma4-31b_a05_soft.gguf gemma4 (31B, d=5376) Soft Ortho ($\alpha=0.5$) 105.75 KiB 26, 27, 28, 39, 40 bf7c30a6ce53a6a4
ortho_cvec_gemma4-31b_a10_full.gguf gemma4 (31B, d=5376) Full Ortho ($\alpha=1.0$) 105.75 KiB 26, 27, 28, 39, 40 dc14f6f8af0ba49c

Full sanitized JSON receipts are included in receipts/:

  • receipts/ortho_cvec_extract_v1.json β€” full per-layer geometry, cosine overlap, Cohen's $d$, and export manifest.
  • receipts/ortho_cvec_qwen3_ab_v1.json β€” live llama.cpp 13-arm Pareto sweep on Qwen3-8B-Base-Q4_K_M.
  • receipts/ortho_cvec_followup_v1.json β€” high-scale Qwen3-8B ($\alpha=1.0, s \in {4.0, 4.5, 5.0}$) & Gemma-4-31B ($s=4.0$) validation.

Measured Live llama.cpp Results

1. Qwen3-8B (Qwen3-8B-Base-Q4_K_M, 24-Prompt Abstention Gauntlet + LongMemEval N=78, sha=821a2034d219)

Variant Scale (s) Gauntlet Abstention LongMemEval (N=78) False Refusals Combined Score Avg tok/s
Baseline (unsteered) 0.0 8/24 56/78 (71.8%) 0 52.56 179.4
Raw Honesty ($\alpha=0.0$) 1.8 19/24 54/78 (69.2%) 3 74.20 203.5
Raw Honesty ($\alpha=0.0$) 2.5 20/24 49/78 (62.8%) 3 73.08 204.1
Raw Honesty ($\alpha=0.0$) 3.5 19/24 14/78 (17.9%) 33 48.56 210.1
Soft Ortho ($\alpha=0.5$) 2.5 20/24 53/78 (67.9%) 5 75.64 207.8
Soft Ortho ($\alpha=0.5$) 3.5 21/24 40/78 (51.3%) 5 69.39 206.5
Full Ortho ($\alpha=1.0$) 3.5 17/24 52/78 (66.7%) 6 68.75 207.6
Full Ortho ($\alpha=1.0$) 4.5 20/24 45/78 (57.7%) 6 70.51 β€”

Key findings on Qwen3-8B:

  • Cliff rescue (+48.8 pp at s=3.5): Raw steering collapses LongMemEval from 71.8% to 17.9% (33 false refusals). Full Ortho ($\alpha=1.0$) holds 66.7% (52/78, 6 refusals), and Soft Ortho ($\alpha=0.5$) holds 51.3% (40/78, 5 refusals) while reaching 21/24 on the abstention gauntlet.
  • #1 Pareto Operating Point: Soft Ortho ($\alpha=0.5, s=2.5$) reaches the highest overall combined score (75.64 vs 74.20 best raw) with 20/24 abstention and 53/78 (67.9%) LongMemEval accuracy.

2. Gemma-4-31B (LongMemEval N=78, high-scale stress test at s=4.0)

Variant Scale (s) LongMemEval (N=78) False Refusals Refusal Reduction vs Raw
Baseline (unsteered) 0.0 57/78 (73.1%) 0 β€”
Raw Honesty ($\alpha=0.0$) 4.0 53/78 (67.9%) 8 β€”
Soft Ortho ($\alpha=0.5$) 4.0 53/78 (67.9%) 5 -37.5%
Full Ortho ($\alpha=1.0$) 4.0 54/78 (69.2%) 2 -75.0% (4x fewer)

Honest Caveats & Evaluation Notes

  • Hill-Climb Discipline: On Qwen3-8B, a05_soft (75.64) beat the best raw vector (74.20, +1.44 combined) and rescued the s=3.5 cliff (+48.8 pp), while the strict automated Hill-Climb gate logged REJECT against its preset >= 22/24 + >= 54/78 promotion threshold. We publish the exact JSON receipts verbatim (hill_climb_verdict: "REJECT").
  • Neutral Grader Caveat: Automated substring/regex evaluators can under-count terse valid abstentions or edge-case phrasing; inspect full outputs on your own domain prompts before locking production scales.
  • Scale Calibration: Each .gguf vector is pre-normalized by 1 / len(selected_layers) (0.2). Recommended starting ranges: s ∈ [1.8, 2.5] for Soft Ortho (a05_soft) and s ∈ [2.5, 4.0] for Full Ortho (a10_full).

Quickstart (llama.cpp)

Static Control Vector (llama-server / llama-cli)

llama-server \
  -m Qwen3-8B-Q4_K_M.gguf \
  --control-vector-scaled ortho_cvec_qwen3-8b_a05_soft.gguf 2.5 \
  --port 8080

Per-Request Dynamic Epistemic Steering (with deadkey >= 2.1.0 & llama.cpp#33268)

from deadkey import EpistemicOpinion, uncertainty_to_sampling_params

opinion = EpistemicOpinion.from_evidence(positive=0.67, negative=0.0, base_rate=0.5)
params = uncertainty_to_sampling_params(opinion.uncertainty, s_max=2.5)
# -> {'control_vector_scale': 1.6635, 'temperature': 0.2342}
print(params)

Citation & Links

Downloads last month
-
GGUF
Model size
26.9k params
Architecture
controlvector
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for deadkey-labs/Ortho-CVEC-GGUF

Finetuned
Qwen/Qwen3-8B
Quantized
(542)
this model