Papers
Topics
Authors
Recent
Search
2000 character limit reached

Shieldstral

Published 28 Jul 2026 in cs.CL and cs.CV | (2607.25857v1)

Abstract: We introduce Shieldstral, a 3B-parameter policy-adaptive multimodal safety classifier that matches or outperforms models nearly 7$\times$ its size on text safety benchmarks and sets a new state of the art on multimodal safety classification. Shieldstral formulates content moderation as a binary question-answering task. This simple formulation unifies diverse moderation tasks into a single yes/no problem, enabling heterogeneous safety datasets with divergent taxonomies to be consolidated under one training framework. We present the data construction recipe, covering curation and generation of approximately 54.1M samples and a fine-grained evaluation set to evaluate policy adaptability. Together, these enable a small adaptive model to match or outperform much larger models.

Summary

  • The paper introduces a unified content moderation framework that reframes safety moderation as a binary question-answering task adaptable to diverse, policy-driven requirements.
  • It employs a structured prompting approach with extensive, heterogeneous training data and LoRA-based fine-tuning to optimize efficiency and adaptivity.
  • The model achieves state-of-the-art performance on both textual and multimodal benchmarks, matching larger models while reducing computational overhead.

Shieldstral: A 3B Adaptive Multimodal Safety Classifier for Unified Content Moderation

Problem Statement and Motivation

Content moderation for large foundation models has historically relied on classifiers built around fixed safety taxonomies, leading to misalignment with real-world deployment needs and fragmented benchmarking. As user and context requirements vary (e.g., between a cybersecurity tool and a mental health assistant), fixed-category models are insufficiently adaptive. Furthermore, available safety datasets employ heterogeneous taxonomies with divergent annotation conventions, posing data unification and generalization challenges for both model training and subsequent evaluation.

Shieldstral addresses these problems by reframing moderation as a binary question-answering (QA) task, enabling arbitrary deployment-specific policy queries and compositional, multilingual, and multimodal moderation from a single compact model.

Unified Adaptive Moderation via Structured Prompting

Shieldstral, a 3B-parameter model based on Ministral-3B, accepts as input a system instruction (establishing the moderation policy and framing), a specific user-defined natural language query (encoding the moderation criterion), and the content to evaluate (text and/or image). Moderation is reduced to a binary QA: the model predicts "yes" or "no" to the query, using the softmax-normalized logits over these tokens as a continuous safety score, thresholding at 0.5 for binary classification. Figure 1

Figure 1: The Shieldstral architecture, showing structured input formulation and binary scoring.

This unified formulation enables seamless adaptation to both content type and policy—all in a single inference pass—without retraining or maintaining parallel classifiers for each taxonomy, language, or modality.

Large-Scale Heterogeneous Data Engineering

A central technical achievement is the construction and unification of diverse training data at unprecedented scale (54.1M samples), combining open-source, synthetic (contrastive), and multimodal (image+text) sources. Heterogeneous datasets with various formats and taxonomies are templated into an instruction–query–document format, rephrased for linguistic robustness, and extensively paraphrased. Multiple template families for document formatting and diverse category-specific, binary, and refusal-detection queries are generated to maximize coverage and regularization. Figure 2

Figure 2: Examples of unified training samples for text-only and multimodal (image+text) cases.

Contrastive Sample Generation and Policy Adaptivity

A major innovation is the use of systematic contrastive data—both by pairing content with queries for present and absent categories, and by LLM-based rewriting of safe samples into targeted unsafe variants across a fine-grained, hierarchical taxonomy. This trains the model not just to recognize general unsafety but to make fine-grained policy-driven distinctions, forming the basis of high adaptability to novel or user-specific moderation policies at inference.

Additional LLM reranking and cross-validation steps filter erroneous labels and refine the training signal. For image data, label mapping, query mutation, and hard-negative generation address the scarcity and noise of visual safety data.

Model Architecture and Training Recipe

Shieldstral builds on Ministral-3B with Pixtral as its vision encoder. Training employs LoRA-based parameter-efficient fine-tuning. To maximize both public-benchmark calibration and fine-grained policy discrimination, two model regimes are fine-tuned: one on public safety data, the other also including contrastive synthetic taxonomy data. The final checkpoint is obtained via triple SLERP (spherical linear interpolation) merging—allowing different competencies (public benchmark calibration, policy adaptability, generic instruction following) to synergize without further end-to-end retraining.

Evaluation Methodology

Shieldstral is benchmarked against 10 baselines (3–20B, both adaptive and fixed-taxonomy) on 16 established text and multimodal safety tasks, with special attention to multilingual and multimodal generalization. Adaptability is rigorously tested on a held-out, LLM-generated taxonomy distinct from the training set in structure, naming, and granularity—ensuring results are not explained by memorization.

Textual Safety and Policy Adaptivity

Despite being the smallest in the comparison, Shieldstral achieves an average F1 of 84.9% on textual moderation benchmarks, matching the performance of the 20B GPT-OSS-Safeguard model. Figure 3

Figure 4: F1 scores on safety classification benchmarks, demonstrating strong performance for Shieldstral despite its smaller size.

It shows robust multilingual performance but underperforms on Arabic and Indonesian prompt classification, consistent with other compact models’ weaknesses on certain low-resource languages.

On fine-grained policy-adaptivity benchmarks, Shieldstral attains 91.3% F1—trailing only the 20B GPT-OSS-Safeguard—but with vastly superior inference efficiency as it outputs a single token versus multi-step reasoning. Figure 5

Figure 6: Adaptability evaluation scores, highlighting Shieldstral's competitive F1 among adaptive models.

Multimodal Safety

Shieldstral establishes a new state of the art on multimodal benchmarks, achieving an average F1 of 83.8% and significantly outperforming baselines including larger vision-LLMs. Figure 7

Figure 3: F1 scores on multimodal safety datasets, with Shieldstral leading overall.

Notably, Shieldstral’s design enables it to effectively moderate multimodal content with substantially fewer parameters than any comparable model.

Ablation and Model Fusion Analysis

Ablations confirm that the combination of public and synthetic taxonomy data is essential for generalizing to unseen policies (yielding a +23.3% F1 boost on taxonomy validation), and that LoRA matches the performance of full SFT at reduced compute.

Three-way SLERP merging recovers any performance tradeoff between benchmark calibration and adaptivity, with the final model exhibiting decisive gains on both axes.

Implications and Future Directions

Shieldstral's reframing of moderation as a unified binary QA task, supported by a scalable, contrastive data pipeline and parameter-efficient adaptation protocol, demonstrates that policy-adaptive, context-specific safety moderation is achievable in a compact model. This has significant implications for deployment, enabling context-specific, multilingual, and multimodal content regulation with low computational overhead, and without the need to retrain or redesign classifiers for each emergent policy.

Practically, this approach facilitates the tailoring of content guardrails to site/app-specific needs and regulatory environments with minimal engineering effort. Theoretically, it encourages a research agenda around adaptability, prompt-driven safety control, and compositional moderation that is robust to taxonomy and distribution shift.

Future developments could include extension to streaming and continual learning regimes, further cross-lingual capability enhancement, and end-user-facing tooling for interactive policy design using natural language prompts.

Conclusion

Shieldstral presents a unified framework for adaptive, efficient, and multimodal content moderation by casting moderation as binary QA, powered by large-scale heterogeneous data unification and a compact, adaptable model architecture. Its empirical results demonstrate SOTA performance on both textual and visual safety benchmarks—matching or outperforming models up to 7× its size—while providing high policy adaptivity and efficiency. This work substantiates the feasibility and value of adaptive guardrails and points towards scalable, prompt-driven moderation as a core component of future safe AI deployments (2607.25857).

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

Explain it Like I'm 14

Certainly! Let me break down the academic paper titled "Shieldstral" for you in a way that's easy to understand.

Overview of the Paper

This paper is about a new computer program called Shieldstral, which helps decide whether something is safe or not, like checking if a message or a picture can be harmful.

Key Objectives

The main goal is to make Shieldstral very good at understanding if content (like text and images) is safe by making it more adaptable (meaning it can handle a variety of situations) and less reliant on fixed categories. It does this by treating the problem like a yes or no question. This means that instead of trying to sort content into many different categories, it simply asks a yes-or-no question about it, which makes it easier to train with data from different sources.

Research Methods

To teach Shieldstral, researchers collected over 54 million examples of content from around the internet. They used different types of methods to make sure Shieldstral could handle both text and images, testing it with lots of different questions about safety. Think of it like making a super quiz that asks "Is this safe?" in many different ways to be sure the program really understands.

Main Findings

The study found that Shieldstral, although smaller in size, did an excellent job at recognizing unsafe content compared to other larger models. It’s like having a really smart yet small robot that does a job better than bigger robots. It could even adapt to new rules about what is safe or not.

Implications

This research means that smaller, smarter programs could be used in the future to help keep places like websites or social media platforms safe by automatically catching unsafe content more quickly and effectively.

Overall, Shieldstral is a step forward in making sure the internet remains a safer place for everyone.

Knowledge Gaps

Below is a single, focused list of concrete knowledge gaps, limitations, and open questions that remain unresolved in the paper. Each item is phrased to be directly actionable for future research.

  • Calibration and operating points: The model uses a fixed threshold τ=0.5 across tasks and policies; no calibration analysis (e.g., ROC/PR curves, ECE/Brier scores, policy-specific or language-specific thresholds) is provided.
  • Uncertainty and abstention: No mechanism to abstain, defer, or provide calibrated confidence intervals under ambiguity or domain shift is explored.
  • Strictness control validity: The instruction “strict/moderate/lenient” framing is not validated for monotonicity (predictions should become at least as strict as the label increases in strictness) or for consistent shifts in FPR/FNR.
  • Query robustness: Robustness to adversarial or logically tricky queries (negation, double negation, quantifiers, scope ambiguity, compound queries) is not stress-tested.
  • Paraphrase and template sensitivity: While template diversity is used in training, there is no quantitative evaluation of sensitivity to unseen phrasings or compositional policy prompts beyond the presented benchmarks.
  • Multi-policy classification efficiency: The method requires one pass per policy query; no evaluation of scalability to dozens/hundreds of concurrent policies or shared-encoder/multi-head alternatives.
  • Explanations and actionable rationales: The model outputs only yes/no and a score; no span/region highlighting, reason codes, or structured rationales are available to support moderator decisions or appeals.
  • Multi-label moderation actions: Reducing moderation to a binary QA may lose actionability (e.g., severity level, response type, remediation pathway); no structured output beyond binary labels is explored.
  • Long-context and multi-turn dialogs: The approach is shown on prompt–response pairs and short inputs; robustness to long conversations, multi-document contexts, or cross-message dependencies is not evaluated.
  • Cross-policy consistency: No checks that decisions are consistent across semantically overlapping policies (e.g., leaf vs. ancestor categories, synonyms) or that ancestor policies dominate descendant ones in predictions.
  • Distribution shift resilience: There is no OOD evaluation (new platforms, domains, styles, or evolving harms) or detection/mitigation strategy for drift in content or policies.
  • Adversarial guardrail attacks: No testing for prompt injection or adversarial content that targets the classifier’s instruction/query fields, or for attacks exploiting the model’s binary-output constraint.
  • Multimodal text-in-image handling: Reliability on images containing embedded text (OCR quality, small fonts, stylized memes, multilingual scripts) is not analyzed.
  • Visual category coverage: The 14-subcategory visual taxonomy and reliance on safe negatives from general image datasets may leave gaps in fine-grained visual harms (e.g., contextual nudity, subtle hate symbols, self-harm paraphernalia).
  • Multimodal robustness: No evaluation under image perturbations, low-light/noise, compression artifacts, cropping, or adversarial vision attacks; no analysis for non-photographic domains (medical, diagrams, screenshots).
  • Modalities beyond images: Audio, video, and live-stream moderation are not addressed; it is unclear how the binary QA formulation and training pipeline extend to temporal or multi-frame signals.
  • Multilingual output behavior: The model appears to emit English “yes/no” tokens; handling localized outputs and the effect of tokenization across languages is not evaluated.
  • Cross-lingual fairness: Although multilingual benchmarks are included, no per-language or dialect fairness analysis (e.g., AAE, code-switching, low-resource scripts) or subgroup error analysis is reported in the main text.
  • Demographic bias and disparate impact: No analysis of false-positive/false-negative disparities across protected groups in hate/harassment contexts, or across culturally specific content.
  • Synthetic data dependencies: Adaptivity and fine-grained discrimination rely heavily on LLM-generated rewrites and queries; the impact of generator-model biases, style leakage, and residual label noise is not quantified.
  • Human-grounded adaptivity evaluation: The adaptivity benchmark is synthetic and LLM-verified; there is no human-annotated, policy-divergent gold set to validate real-world policy generalization.
  • Data provenance and licensing: Details on dataset licensing, sensitive content handling, and the feasibility of releasing training/eval data for reproducibility are not provided.
  • SLERP merge design: Merge weights (0.6 PG, 0.3 P, 0.1 I) are heuristic; stability, sensitivity analysis, and more principled ensembling/merging strategies remain unexplored.
  • LoRA/SFT hyperparameters: Limited ablations (e.g., LoRA rank, target layers, learning rates) and no analysis of their interaction with policy adaptivity or multimodal performance.
  • Catastrophic forgetting and negative transfer: Adding synthetic taxonomy data drifts standard benchmark performance (partly fixed via merging); a systematic study of negative transfer and continual-learning strategies is missing.
  • Real-world deployment metrics: Latency, throughput, memory footprint, and cost comparisons versus reasoning-heavy adaptive baselines are not measured, despite efficiency claims.
  • Throughput under many policies: No batching or retrieval-based strategy is proposed to amortize inference when scoring against large policy sets at serving time.
  • Threshold governance and risk appetite: No guidance or methodology to set policy-specific thresholds aligned with operational risk/cost trade-offs in different jurisdictions and contexts.
  • Legal and regional policy alignment: How free-form policies map to jurisdiction-specific regulations (e.g., EU DSA, CSAM laws) and compliance auditing is not addressed.
  • Continual policy updates: No mechanism for fast adaptation to new or revised policies without full retraining/merging (e.g., adapters, retrieval-augmented policy grounding).
  • Safety of synthetic harmful content: Ethical safeguards, redaction strategies, and potential downstream misuse risks of releasing or storing generated unsafe samples are not discussed.
  • Robustness to compound content: Handling cases where multiple distinct harm types co-occur and how that affects per-policy answers or prioritization is not evaluated.
  • Error taxonomy: No qualitative error analysis (e.g., satire/quotations/fiction, educational vs. malicious intent) to guide targeted data or model improvements.

Practical Applications

Below are actionable applications that follow directly from the paper’s findings and methods. Each item names likely sectors, suggests tools/products/workflows enabled by the contribution, and notes assumptions or dependencies that affect feasibility.

Immediate Applications

These can be deployed now with modest engineering effort, using the 3B, single-token, policy-as-prompt safety classifier described in the paper.

  • Adaptive moderation for user-generated content platforms (social, forums, gaming, marketplaces, ads)
    • Sectors: software, media/advertising, e-commerce
    • Tools/products/workflows: Policy-as-prompt “Moderation API” that accepts free-form policy queries; category “policy packs” (hate, self-harm, PII, scams); strictness “slider” mapped to instruction templates; per-category safety-score thresholds for ranking/demotion; trust-and-safety triage UI surfacing near-threshold items
    • Assumptions/dependencies: Clear policy wording; threshold calibration for target precision/recall; human-in-the-loop for appeals; logging and audit trails for regulator-facing reporting
  • Guardrails for LLM applications (pre- and post-filtering)
    • Sectors: software, education, healthcare, finance, enterprise IT
    • Tools/products/workflows: Input prompt screening (jailbreak, harmful requests); output screening (violence, sexual content, legal risk); refusal detection gate; multi-tenant “policy profiles” per product or customer; lightweight on-request scoring for each turn due to single-token inference
    • Assumptions/dependencies: Coverage of target domains in training taxonomies; performance on domain-specific language; minimal latency budgets in conversational UIs
  • Multimodal ad and listing review (image+text brand safety and policy compliance)
    • Sectors: advertising, e-commerce, media
    • Tools/products/workflows: Batch review pipelines for creatives (NSFW/explicitness, deception, prohibited items); preflight checks in ad-build tools; brand-safety scores feeding campaign eligibility and bid modifiers
    • Assumptions/dependencies: Image-only and image+caption coverage; calibrated false-positive rates to avoid overblocking legitimate creatives
  • Workplace chat and community moderation with configurable strictness
    • Sectors: enterprise SaaS, HR/Legal/Compliance
    • Tools/products/workflows: Channel-specific strictness via instruction templates (e.g., public vs private channels); harassment/toxicity filters; automatic escalation paths; redaction of detected PII before storage
    • Assumptions/dependencies: Employee privacy and labor-law constraints; auditable overrides and exceptions
  • Data loss prevention (DLP) and PII/doXXing detection in text and screenshots
    • Sectors: finance, healthcare, enterprise IT
    • Tools/products/workflows: Real-time safety scoring for outbound messages/tickets; pre-commit scanning for knowledge-base content; adaptive queries for trade secrets vs. regulated identifiers (SSNs, MRNs)
    • Assumptions/dependencies: Legal basis for scanning; robust PII coverage across locales; documented exception handling to limit workflow friction
  • Marketplace and app-store intake moderation
    • Sectors: software distribution, mobile ecosystems, gaming
    • Tools/products/workflows: Submission-time safety scoring of descriptions, screenshots, in-app UGC policies; per-category gates (weapons, child safety); reviewer assistant to standardize decisions
    • Assumptions/dependencies: Clear mappings from store guidelines to policy queries; SLA-aware batching for peak loads
  • Multilingual and multimodal moderation for global products
    • Sectors: cross-border platforms, education, media
    • Tools/products/workflows: Region-specific policy packs; locale-aware thresholds; fallback English queries with translated paraphrases (leveraging template diversity and multilingual benchmarks)
    • Assumptions/dependencies: Coverage of target languages; localized policy definition and evaluation
  • Developer safety tooling for CI/CD and evaluation
    • Sectors: software tooling
    • Tools/products/workflows: “Moderation unit tests” that run contrastive pairs in CI; a “Policy Studio” to author and A/B test policy wordings; regression dashboards tracking per-category F1 and drift
    • Assumptions/dependencies: Golden sets built from contrastive generation; thresholds tuned to release criteria
  • Synthetic contrastive data generation to adapt to new domains
    • Sectors: platform risk, applied ML, research
    • Tools/products/workflows: Use the paper’s taxonomy-driven, sibling-negative generation to create domain-specific fine-tunes (e.g., financial scams vs. investment advice, academic integrity vs. tutoring)
    • Assumptions/dependencies: Seed data quality; guardrails on LLM rewrites; verification step (reranker or second LLM) to reduce label noise
  • Cost-efficient on-device or edge filtering
    • Sectors: mobile, IoT, embedded systems, gaming
    • Tools/products/workflows: Quantized 3B model for on-device screening (camera/gallery apps, parental controls); low-latency pre-check before content upload
    • Assumptions/dependencies: Memory/compute budgets; acceptable accuracy under quantization; private inference requirements
  • Safety-aware ranking and monetization controls
    • Sectors: ads, feeds, recommendations
    • Tools/products/workflows: Use continuous safety score s for soft demotion instead of hard blocks; per-segment thresholds (e.g., teen mode) via instruction templates; automated experimentation on utility vs. safety trade-offs
    • Assumptions/dependencies: Governance approval for scoring-based ranking; fairness monitoring to avoid disparate impact
  • Compliance testing and audits mapped from policy text to queries
    • Sectors: policy, legal, platform governance
    • Tools/products/workflows: Convert regulatory language (e.g., COPPA/PII, doxxing, sexual content with minors) into canonical queries; run periodic audits; store evidence for regulators
    • Assumptions/dependencies: Legal review of policy-to-query translations; stable archive of tests; versioned policy packs

Long-Term Applications

These require further research, scaling, or development (e.g., new modalities, stronger guarantees, additional data).

  • Audio and video safety using the same QA framing
    • Sectors: social video, live streaming, conferencing, gaming
    • Tools/products/workflows: Extend “Document” to audio/video tokens; temporal contrastive pairs (scene-level vs. clip-level violations); real-time moderation for live streams
    • Assumptions/dependencies: Suitable AV encoders; scarce labeled AV safety data; latency constraints for live content
  • Explainable, auditable moderation with span highlights and rationales
    • Sectors: policy, enterprise governance
    • Tools/products/workflows: Add lightweight attribution (e.g., token-/region-level highlights) or brief rationales while retaining near single-token latency
    • Assumptions/dependencies: Training for token attribution; UI/UX for reviewer trust; mitigation of leakage via explanations
  • Cross-cultural calibration and fairness-by-design
    • Sectors: global platforms, public policy
    • Tools/products/workflows: Region- and culture-specific policy packs; bias/fairness reporting per demographic; adaptive thresholds to align with local norms and laws
    • Assumptions/dependencies: Diverse, representative evaluation sets; stakeholder consultation; governance for overrides
  • Regulatory conformance suites and third-party certification
    • Sectors: policy/regulation, platform governance
    • Tools/products/workflows: Standardized adaptability benchmarks derived from this paper’s methodology; external labs certifying performance on canonical policies
    • Assumptions/dependencies: Industry consensus on taxonomies and metrics; transparent test data governance
  • Proactive harm-intervention workflows
    • Sectors: healthcare, education, public safety
    • Tools/products/workflows: Route high-confidence self-harm or child-safety detections to crisis resources; adaptive strictness for minors; longitudinal risk scoring
    • Assumptions/dependencies: Clinical validation; privacy and consent; partnerships with support services; stringent false-positive controls
  • Federated and privacy-preserving adaptation
    • Sectors: enterprise, healthcare, finance
    • Tools/products/workflows: On-prem/edge adapters (LoRA heads) to learn org-specific policies without centralizing data; secure aggregation for global improvements
    • Assumptions/dependencies: Federated training stack; policy drift detection; legal clearance
  • Auto-policy discovery and maintenance from governance documents
    • Sectors: enterprise risk, compliance
    • Tools/products/workflows: LLM agents parse policy changes into new queries; run contrastive evaluation to validate; propose threshold updates with simulation of business impact
    • Assumptions/dependencies: Accurate policy parsing; human approval loops; rollback mechanisms
  • Standardized safety taxonomy libraries and interchange formats
    • Sectors: industry consortia, standards bodies
    • Tools/products/workflows: Open libraries of hierarchical safety categories with canonical queries and paraphrases; converters between platform taxonomies
    • Assumptions/dependencies: Community stewardship; alignment across platforms; multilingual authoring
  • Safety for embodied agents and autonomous systems
    • Sectors: robotics, smart home, automotive
    • Tools/products/workflows: Gate natural-language commands with policy-adaptive filters (e.g., deny harmful/illegal tasks); combined with environment context for risk-aware control
    • Assumptions/dependencies: Robust grounding from text/image to physical actions; fail-safe fallbacks; certification for safety-critical use
  • Generalized “contrastive policy supervision” for other classifiers
    • Sectors: finance (fraud), security (phishing/malware), healthcare (triage), education (academic integrity)
    • Tools/products/workflows: Repurpose the paper’s dataset unification and contrastive sibling-negative generation to train adaptive classifiers in non-safety domains
    • Assumptions/dependencies: Domain-appropriate taxonomies; safe synthetic data generation; verification/label hygiene at scale
  • Continuous learning and drift handling with SLERP-style model merging
    • Sectors: any at-scale moderation deployment
    • Tools/products/workflows: Maintain separate heads for benchmark calibration vs. fine-grained policies; periodically merge to balance stability and adaptivity; A/B safety-performance guardrails
    • Assumptions/dependencies: Robust evaluation gating; reproducible merges; rollback strategies
  • Provenance and watermark-aware moderation
    • Sectors: media, advertising, IP protection
    • Tools/products/workflows: Combine safety scoring with content provenance/watermark signals to tune strictness for synthetic or low-trust sources
    • Assumptions/dependencies: Reliable provenance infrastructure; policy alignment on treatment of synthetic media

Notes on feasibility and risk

  • The model’s efficacy depends on policy query quality; ambiguous wording can shift precision/recall materially. A “Policy Studio” for A/B testing queries is advisable.
  • Thresholds must be tuned per category and deployment context; near-threshold cases benefit from human review queues.
  • Multimodal coverage is stronger for images than for audio/video; the latter require new data and encoders.
  • For regulated sectors (healthcare, finance, child safety), human oversight, auditing, and domain validation are prerequisites.
  • Fairness and cross-cultural alignment require localized evaluation sets; monitor for disparate impact and overblocking.
  • Synthetic contrastive data is powerful but must be verified (e.g., reranking, second-model checks) to control label noise and unintended biases.

Glossary

  • Ablation: A controlled removal or variation of components to measure their contribution to performance. "and is used exclusively for ablation studies (Section~\ref{sec:eval:ablation})."
  • Asymmetric thresholds: Using different confidence cutoffs for different classes to balance errors. "Asymmetric thresholds preserve rare violation samples while applying stricter filtering to abundant negatives."
  • Causal LLM: An autoregressive model that predicts the next token given previous tokens. "a 3B-parameter causal LLM from the Mistral-3 family"
  • Checkpoint: A saved snapshot of model parameters at a given training stage. "We train two specialised checkpoints: one on public safety datasets~(P) excluding the generated data from Section~\ref{sec:data:gen_data}, and one on the combination of public and generated taxonomy data~(PG)..."
  • Class balancing: Techniques to handle label imbalance, such as duplicating positives or reweighting. "Class balancing."
  • Contrastive generation: Synthesizing paired examples that differ by targeted categories to sharpen discrimination. "Contrastive generation."
  • Contrastive training pairs: Positive/negative pairs built from the same or similar content to teach fine-grained distinctions. "The key insight of our data strategy is generating contrastive training pairs from the same content by varying the query."
  • Cross-entropy loss: A standard classification loss measuring the divergence between predicted and true distributions. "we train Shieldstral using standard cross-entropy loss over the full vocabulary at the output position."
  • Cross-validation filtering: Using an auxiliary model to verify and filter noisy labels before training. "Cross-validation filtering."
  • Data leakage: Unintended sharing of information between training and evaluation splits that inflates performance. "To prevent data leakage, the test set uses LLMs and initial seed samples for both generation and verification different from those used for training data."
  • Demographic-based negatives: Negative examples created by mismatching targeted demographic groups. "demographic-based negatives, where content targeting group A is paired with queries about unrelated groups;"
  • Disjoint categories: Mutually exclusive classes with no overlap, aiding unambiguous labeling. "disjoint categories---no overlaps between sibling categories, so each content piece maps to exactly one leaf;"
  • Hard negatives: Challenging negative examples that are close to the decision boundary or easily confused with positives. "category-based hard negatives, where content violating category A is paired with queries about absent categories B, C, \ldots;"
  • Hierarchical structure: An organization of categories into multi-level trees with ancestors and leaves. "It is organised as a hierarchical structure with 11 super classes and 73 leaf categories,"
  • Image token: A special token representing an image within a text sequence for multimodal models. "the <Document> contains an image token followed by optional text."
  • Instruction templates: Dataset- or task-specific instruction phrasings that define framing and strictness. "Instruction templates are the key mechanism for unifying heterogeneous datasets under a single training format."
  • Instruction--query--document format: A unified input structure consisting of a task instruction, a yes/no query, and the content to evaluate. "converts every dataset into a common instruction--query--document format,"
  • Iso-content setting: A setup where the content is fixed while queries vary to test policy-sensitive discrimination. "This iso-content setting encourages the model to attend to fine-grained semantic details in the queries rather than relying on coarse category-level cues,"
  • Iso-query setting: A setup where the query is fixed while content varies to test category specificity. "We apply an iso-query setting for evaluation sample generation"
  • Jailbreak detection: Identifying attempts to bypass or subvert model safety constraints. "spanning safety, toxicity, hate speech, jailbreak detection, content moderation, and response quality domains."
  • Label mapping: Converting heterogeneous source labels into a unified target taxonomy. "Each dataset undergoes label mapping from its native format to a unified taxonomy yes/no question,"
  • Leaf category: A terminal node in a taxonomy hierarchy with no children. "content that violates a leaf category also violates every ancestor up to the super class."
  • LoRA: Low-Rank Adaptation; a parameter-efficient fine-tuning technique for large models. "Shieldstral is fine-tuned with LoRA~\citep{hu_2022_lora} on the LLM parameters"
  • Model merging: Combining parameters from multiple trained models to blend capabilities. "Model Merging"
  • Multimodal safety classifier: A model that assesses safety across multiple modalities (e.g., text and images). "a 3B-parameter policy-adaptive multimodal safety classifier"
  • Pairwise SLERP merges: Merging two checkpoints via spherical linear interpolation of parameters. "We perform pairwise SLERP merges to produce the final checkpoint."
  • Pixtral vision encoder: The visual component used to encode images for the underlying LLM. "with native multimodal support via a Pixtral vision encoder"
  • Policy adaptability: The ability of a model to adjust its safety judgments to user-defined or shifting policies. "and a fine-grained evaluation set to evaluate policy adaptability."
  • Policy-adaptive: Designed to be controlled by policy prompts or queries at inference time. "a 3B-parameter policy-adaptive multimodal safety classifier"
  • Prompt injection: Attacks that manipulate prompts to subvert intended behavior. "SC10: Jailbreak'' +Prompt Injection'' + ``Code Interpreter Abuse'' (3 leaves)"
  • Refusal detection: Identifying when a model or assistant declines to answer a request. "Additionally, it demonstrates strong refusal detection performance"
  • Safety score: A continuous probability-like score indicating the likelihood of a policy violation. "The safety score ss is then computed as the softmax-normalised score"
  • Sibling category: A category sharing the same parent in a taxonomy, used for contrastive negatives. "and a sibling (negative) category,"
  • Softmax-normalised logits: Logits transformed by the softmax function to produce probabilities. "The softmax-normalised logits of the yes'' andno'' tokens yield a continuous safety score"
  • Spherical Linear Interpolation (SLERP): A method for smoothly interpolating between two points on a sphere, applied here to model weights. "we apply SLERP~\citep{shoemake_1985_slerp} (Spherical Linear Interpolation) merging"
  • Super class: A high-level grouping in a taxonomy that contains subcategories and leaves. "11 super classes and 73 leaf categories,"
  • Template-based unification layer: A preprocessing stage that converts varied datasets into a shared structured format. "a template-based unification layer (Section~\ref{sec:data:templates}) converts every dataset into a common instruction--query--document format,"
  • Thresholding: Converting a continuous score into a binary decision using a cutoff. "and thresholded at τ=0.5\tau{=}0.5 for binary classification."
  • Token IDs: Integer indices representing tokens in a model’s vocabulary. "we only unembed towards the yes'' andno'' token IDs,"
  • Unembed: Projecting model outputs onto specific token logits rather than the full vocabulary. "At inference time, we only unembed towards the yes'' andno'' token IDs,"
  • Vision--language reranker model: A model that re-scores image–text pairs for quality or label correctness. "a vision--language reranker model scores every image--query pair,"
  • Visual QA: Visual question answering; answering questions about images. "general-classification datasets (for non-moderation visual QA)."

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 2 tweets with 116 likes about this paper.