この記事は英語で公開されています。

By UNST33R

Runtime refusal steering with CyberGate: selective unlocking, measured

A vLLM 0.32 plugin released November 11 keeps model weights byte-identical while steering refusals per request for security-research workloads. The published selectivity matrices, the three engineering traps its own documentation owns up to, a deployment walkthrough, and where steering fits against abliterated variants and hosted reduced-refusal endpoints.

On November 11 at 07:07 UTC, a developer using the handle kncshw posted to r/LLMDevs announcing CyberGate, an MIT-licensed plugin for vLLM 0.32 that does domain-selective refusal steering with zero weight modification. The accompanying deep-dive and the repository README are the first runtime-steering artifacts we have seen that ship measured, per-corpus selectivity numbers instead of demo screenshots. The three-layer taxonomy on this site already sketches weight edits versus runtime steering versus per-request alignment; this post is about what the first serious steering tool actually delivers, and what its documentation teaches about evaluating the whole category.

The design target is the false-refusal problem in authorized security work: CTF agents, reverse-engineering assistants, and exploit-development harnesses get refused mid-task by otherwise capable models. The incumbent fix is abliteration, subtracting the refusal direction from the weights, explained here. CyberGate's two stated objections to that route are silent capability and tool-call regression from global weight mutation, and zero domain selectivity, since deleting a refusal direction unlocks every gated domain at once and leaves you storing a forked checkpoint.

How the gate decides

During prefill, the plugin reads the model's own hidden states through two read-only forward hooks and applies a two-factor test. Both factors must fire:

FactorQuestionMechanism
CategoryIs this request on-topic for the gated domain?Cosine similarity between a pooled hidden state and a fitted unit direction at one layer, threshold tau
Refusal pressureIs the model actually about to refuse?A z-scored refusal-direction reading s_ref_z >= 1.50 at a later layer, calibrated against a separate refusal direction

When both hold, the plugin prefills the assistant's thought block to steer the answer. Weights stay untouched (K = 0.0), nothing persists between requests, and turning the plugin off returns the original model byte for byte. The decision path is a pure function with every lookup recorded in an evidence object, which is how the repository runs 1,033 tests, one skipped, in about eight seconds with no GPU and no network. That testability is itself a design statement: the policy can be audited without an inference cluster.

The measured selectivity matrix

The README publishes live harvests against served checkpoints, dated October 31 through November 2, and the numbers are the reason this release deserves attention. The target corpora measure how often the gate fires where it should; the non-target rows measure leakage into domains nobody asked to unlock.

CorpusGemma-4-26B-A4B-itQwen3.8-27BRole
CySecBench (675)558 fired (82.7%)587 fired (87.0%)Target
WMDP-cyber (637)606 fired (95.1%)Not measuredTarget
CatQA (234)23 (9.8%)23 (9.8%)Non-target leakage
WMDP-bio (637)4 (0.6%)6 (0.9%)Non-target leakage
SOSBench-bio (498)0 (0.0%)0 (0.0%)Non-target leakage
Harmless (1000)Not measured12, then 0 after vetoNon-target
PKU-cybercrime (612)Not measured220 (35.9%)Non-target, unexplained

Read the bio rows against what an abliterated checkpoint produces. A weight edit that removes the refusal direction globally has no mechanism for a 0.6% bio leakage figure; selectivity is the entire product here, and the repo quantifies it, including the one number that hurts: 35.9% of a cybercrime corpus fires the gate, and the kit manifest lists it under known_gaps without an explanation. Publishing your worst number with a name field for it is rare discipline in this ecosystem.

The caveats travel with the headline figures. The 558 CySecBench fires for Gemma-4 include 82 from a separate middle/late-layer rescue mechanism the threshold rule does not cover, so 14.7% of delivered recall rests outside the main path. Veto-adjusted target recall is 553. And the two bio corpora disagree by two orders of magnitude on the same model, which the author attributes to multiple-choice framing rather than biology content. These are the honest failure modes, and each one generalizes into a lesson below.

Three traps the repository documents, and everyone should steal

Trap one: steering directions are engine-bound. The first Qwen3.8 operator was fitted on transformers activations and, served under vLLM, gated nothing. The failure was invisible rather than loud: on a hybrid linear-attention stack, the fitted direction scored SOSBench-bio prompts as highly as genuine cyber positives, so the gate would have fired on everything or nothing. Refitting on vLLM's own pooled activations fixed it; four diagnostic prompts moved from scores like +0.0021 and +0.0370 against a +0.0630 threshold to +0.3942 and +0.4105 against +0.0879. If you ever fit activation directions on one stack and serve on another, assume they do not transfer until a held-out harvest proves otherwise.

Trap two: in-sample AUC cannot pick your layer. The README reports in-sample AUC of 0.989 or higher at all 64 layers of the Qwen stack, including layers whose held-out recall is 0.21. Automatic selection picked L39, which after proper refitting leaks 0.2104 into WMDP-bio. Layer choice in activation-space work needs held-out splits with leakage measured per candidate, or you will confidently deploy a gate that opens the wrong doors. The full 64-layer sweep ships in the kit records so you can check it.

Trap three: telemetry defines the metric. The worker publishes its fired count before the refusal monitor attaches the second factor, so the headline recall is the category gate plus rescue, with the two-factor veto's effect reported separately. The repository discloses this asymmetry in each kit manifest. When you evaluate any gating or steering claim, vendor or open source, the first question is what exactly the published number counts and at which point in the pipeline it is recorded.

Deployment in practice

The repository ships Docker Compose files for both supported models, google/gemma-4-26B-A4B-it (MoE, FP8) and Qwen/Qwen3.8-27B (dense, BF16), loading the model once and binding two OpenAI-compatible ports in one process. Port 8000 is the pristine baseline; port 8001 is the gated bridge for agents, with tool-call normalization, reasoning separation, and context-window clamping. Point OpenCode, Open WebUI, or an MCP agent at http://127.0.0.1:8001/v1 and the stock model stays available on 8000 for A/B measurement, which is exactly the side-by-side harness you want for regression work.

Three operational warnings before you deploy anything internet-adjacent. The default Compose files set network_mode: host with no authentication on either port, so bind to 127.0.0.1, add a firewall rule, or pass --api-key. Any caller who can reach port 8000 can activate gated mode by setting cybergate_mode in the request body, so treat 8000 as privileged too. And trace logging, disabled by default, writes full request and response conversations when enabled, which belongs inside the same data-handling perimeter as your engagement logs. Run the offline test suite and self-check first; they need neither GPU nor network.

Where steering fits against the other routes

RouteAudit storyCost profileFailure mode to manage
Self-host + CyberGateWeights hash-identical to upstream; gate is config plus engine codeOne GPU per 26B-class model, engine-locked to vLLM 0.32Direction refit on engine upgrades; leakage matrix per kit
Self-host abliterated variantProvenance burden on every artifact, per the variant verification guideCheaper ops, artifact travels across stacksSilent tool-call and reasoning regression; re-upload supply-chain risk, the subject of our dormant-neuron analysis
Hosted reduced-refusal endpointDelegate to vendor: stable IDs, disclosed method, published refusal behaviorZero ops, per-token pricingTrust in the provider's calibration and disclosure

The steering route's strongest property for enterprise security review is that the served model can be hash-verified against the upstream base, so the capability delta is config and hook code rather than an opaque fork. The abliterated-artifact route keeps its portability advantage, and the provenance checks remain mandatory there. The hosted route trades both for operations-free access; the questions to put to such a provider are which base and revision each tier serves, whether IDs are stable across weeks, and whether refusal behavior is measured and published. The current tier guide and routing map cover that decision per workload, with pricing for the hosted math.

Before you trust any gate, measured or claimed

Steering does not remove the evaluation burden; it changes its shape. Whatever gate you run, own a leakage matrix in the repo's own format: target corpora and adjacent-domain corpora, fires with the gate on, refusals with the gate off, per served checkpoint. Re-run it on every engine upgrade, because trap one applies to your kit too. And keep a tool-call and strict-JSON regression suite in the loop, per JSON mode versus function calling, since the failure that bites agent harnesses is rarely the refusal itself. CyberGate's contribution to the ecosystem is bigger than the plugin: it shows what disclosure for refusal-removal tooling should look like, measured matrices, named gaps, and reproducible records. Hold every claim in this category, including hosted ones, to that bar.