[Paper Review] GAVEL: Towards rule-based safety through activation monitoring
GAVEL introduces a rule-based safety framework over model activations using Cognitive Elements, enabling configurable, interpretable, and auditable AI safety without retraining.
Large language models (LLMs) are increasingly paired with activation-based monitoring to detect and prevent harmful behaviors that may not be apparent at the surface-text level. However, existing activation safety approaches, trained on broad misuse datasets, struggle with poor precision, limited flexibility, and lack of interpretability. This paper introduces a new paradigm: rule-based activation safety, inspired by rule-sharing practices in cybersecurity. We propose modeling activations as cognitive elements (CEs), fine-grained, interpretable factors such as ''making a threat'' and ''payment processing'', that can be composed to capture nuanced, domain-specific behaviors with higher precision. Building on this representation, we present a practical framework that defines predicate rules over CEs and detects violations in real time. This enables practitioners to configure and update safeguards without retraining models or detectors, while supporting transparency and auditability. Our results show that compositional rule-based activation safety improves precision, supports domain customization, and lays the groundwork for scalable, interpretable, and auditable AI governance. We will release GAVEL as an open-source framework and provide an accompanying automated rule creation tool.
Motivation & Objective
- Introduce Cognitive Elements (CEs) as interpretable activation primitives to describe model behavior.
- Propose a rule-based framework (GAVEL) that enforces safety via predicates over CE activations.
- Decouple activation data collection from safety policy design to improve precision and flexibility.
- Enable sharing and reuse of CE vocabularies and rules across organizations for scalable governance.
Proposed method
- Define Cognitive Elements (CEs) as token-level, interpretable activation primitives (e.g., making a threat, payment tools).
- Create excitation datasets for each CE and wrap exemplars with explicit CE directives to elicit activations (ERI method).
- Train a multi-label CE detector g on per-token CE activations to identify active CEs in real time.
- Represent safety constraints as Boolean predicates over CE presence vectors within a temporal window, and enforce actions when predicates fire.
- Provide an open, model-agnostic workflow that supports community-contributed CE vocabularies and rules, plus an automated CE/rule generation tool.

Experimental results
Research questions
- RQ1Can activations be decomposed into cognitive elements that enable precise, interpretable safety monitoring?
- RQ2Does a rule-based activation safety framework improve precision and flexibility compared to traditional misuse-dataset approaches?
- RQ3Can CE-based rules be shared and composed across models to support scalable AI governance?
- RQ4How does GAVEL perform in real-time detection across diverse misuse domains and thresholds?
Key findings
- CEs provide a modular, composable basis for describing model behavior at the activation level.
- The ERI excitation method improves CE detection accuracy compared to naive prefilling or revision alone.
- A multi-label CE detector operating on token-level activations enables real-time predicate evaluation over a temporal window.
- Rule-based enforcement over CE activations achieves high precision and interpretability, with shared vocabularies enabling community collaboration.
- GAVEL demonstrates strong ROC-AUC performance and low false positives across multiple misuse categories in their evaluation setup.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.