Alignment monitors RLHF pipelines in real time — surfacing reward hacking, goal drift, and distributional shift before they reach production.
Continuous behavior surveillance
at every training step.
Alignment hooks into your RLHF loop via a single decorator. Every reward signal, policy update, and KL divergence measurement is captured, decomposed, and surfaced in under 200ms.
import alignment
@alignment.monitor(
metrics=["reward_hacking", "goal_drift"],
alert_threshold=0.05,
checkpoint_on_anomaly=True
)
def training_step(batch, model, optimizer):
loss = model(batch)
optimizer.step(loss)
return loss
# Hooks into your loop — zero overhead
# on nominal steps (<0.3ms p99)Structured evals that run
inside your training loop.
Define evaluation suites in YAML or Python. Alignment executes them at configurable intervals — every N steps, on checkpoint, or triggered by a metric threshold crossing.
# alignment.eval.yaml
suite: reward_hacking_v2
trigger:
every_n_steps: 500
on_metric_threshold:
metric: kl_divergence
value: 0.05
cases:
- source: ./evals/reward_hacking/
- source: huggingface://alignment-bench/rh-v2
scoring:
method: categorical
pass_threshold: 0.95
on_fail:
alert: slack
block_checkpoint: true{ "eval_run_id": "eval_20260224_141237", "model": "rlhf-v4-checkpoint-18400", "timestamp": "2026-02-24T14:12:37Z", "suites_run": 4, "overall_pass_rate": 97.8, "flags": [ { "suite": "distributional_ood", "severity": "watch", "metric": "kl_divergence", "value": 0.061, "threshold": 0.05, "recommendation": "monitor_next_500_steps" } ], "constraint_satisfaction": 99.2, "reward_decomposition": { "helpfulness": 0.84, "harmlessness": 0.96, "honesty": 0.91 }}
Every decision, logged and
exportable on demand.
Immutable audit trails with cryptographic signing. Generate compliance reports for internal review boards, regulatory submissions, or incident post-mortems in under 30 seconds.
Drop into your existing stack.
Three commands to first signal.
Native support for PyTorch and JAX with full capability coverage. TensorFlow and vLLM at partial parity. Custom framework support via our instrumentation API.
import jax
import alignment.jax as alm
# Configure monitoring scope
config = alm.Config(
project="rlhf-constitutional-v3",
checkpoints=True,
eval_suites=["reward_hacking_v2"],
alert_channels=["slack://safety-eng"],
)
# Wrap your train_step
@alm.instrument(config)
@jax.jit
def train_step(state, batch):
loss, grads = jax.value_and_grad(
loss_fn)(state.params, batch)
return state.apply_gradients(grads=grads)
# That's it. Alignment handles the rest.Ready to deploy with confidence?
Request sandbox access or download the technical spec sheet to evaluate Alignment against your current pipeline.