Kaijing Ma

Paper Notes

Beyond Token-Level Guidance: Inference-Time Alignment of Specialized LLMs via Cross-Family Representation Steering

Paper Notes

Explore the method

Synthetic teaching values, not paper results. Nothing plays automatically; all steps remain available in the static explanation.

Static explanation and limits

CREST studies a specialist model that has domain knowledge and a separate aligned model that may lack that knowledge.

  1. Input: a base model and a specialized guidance model with different hidden spaces. Paired examples fit a map between those spaces.
  2. A probe estimates similarity to a threat direction. A threshold gates whether steering is enabled.
  3. Below the threshold, strength is zero. At the threshold, the paper’s gated sigmoid jumps to half its maximum; it is not a smooth ramp from zero.
  4. Map the guidance direction and add it during a limited token window. This diagram shows the gate, not a learned high-dimensional map or proof of safety.

Jin Gan, Xin Li, Jun Luo

Original reading note; cited methods and evidence, not an experimental reproduction. · 2608.30319v1

2608.30319v1 · Author code

Preserve specialized competence during safety steering

CREST studies a specialist model that has domain knowledge and a separate aligned model that may lack that knowledge.

Replacing specialist token preferences with those of the general model can damage domain answers or stopping behavior.

The method transfers a safety direction through hidden representations instead of requiring matching token vocabularies.

1 / 52608.30319v1

Setup and the representation map

The setup uses 100 paired prompts to align selected guidance-model layers with proportionally matched base-model layers.

W = argmin_W ||H_b − H_g Wᵀ||_F

The paper calls this Procrustes alignment, but the displayed objective is unconstrained least squares and does not state an orthogonality constraint.

With far fewer prompts than hidden dimensions, the fitted map can be underdetermined; regularization and solver choice matter for reproduction.

A safety detector is computed from safe and unsafe partial generations of the specialist itself.

This attempts to match the detector's setup distribution to the generation states seen at inference.

2 / 52608.30319v1

Query-specific intervention

The base model first produces a short unsteered probe.

Its last-layer representation is scored by cosine similarity to the safe-minus-unsafe direction.

s = (1 − cos(h_probe,v))/2; α = 0 if s < τ, else α_max sigmoid(10(s − τ))

This rule jumps from zero to half of α_max at the threshold, so it is not a continuous ramp from zero.

For triggered queries, the guidance model supplies a normalized difference between a safety-prefixed query representation and the probe representation.

h_l ← h_l + αρ_l W_l d_x

The projected direction is added for a fixed intervention window, then removed.

The method does not continuously re-estimate danger at every token or erase potentially problematic probe tokens.

3 / 52608.30319v1

Evidence and boundaries

Table 2 reports code insecure rate 0.14 versus 0.18 for the base and 0.17 for Nudging.

Math safe-response rate is 0.96 versus 0.92 for the base, while medical refusal remains 0.99.

These three metrics have different definitions and must not be averaged as one safety score.

The reported capability differences relative to zero steering are +0.01 on HumanEval and 0.00 on GSM8K and MedQA.

The claimed 1.3× base latency reflects a particular evaluation configuration, not an architecture-independent constant.

A reproduction should test detector errors, setup-data leakage, projection stability, and the fate of the unsteered probe.

The useful idea is to separate detection, cross-model transfer, and the intervention window; none of them alone supplies a safety certificate.

4 / 52608.30319v1

Sources and reading scope

This original note covers the method and selected experimental evidence discussed above. It is not a full-paper translation. No model experiments were run for this note. Source license: https://creativecommons.org/licenses/by/4.0/

Author-code links in the source: https://github.com/DecayingSeart/CREST

5 / 52608.30319v1

Original figures and data come from the cited paper. Explanations and comparisons are reading notes. Source versions and figure labels appear beside the material.