extract 0 0 0

StevenMup2004/DynaGuard-Data

published by @StevenMup2004

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
112
Last 30 days
15
Likes
-
Size
24.8 MB
Created on HF
2026-06-26
Age
3 months ago

Description

DynaRoute Dataset: Adaptive Guardrail Routing Benchmark (Vietnamese & English)

This dataset contains the official training (train_router.json) and evaluation test (test_router.json) records designed to train and benchmark DynaRoute Neural Routers—an intelligent adaptive model selection mechanism inspired by SafeRoute.

📌 Dataset Overview

In agentic Large Language Model (LLM) serving pipelines, enforcing safety guardrails (detecting jailbreaks, toxicity, violent… See the full description on the dataset page: https://huggingface.co/datasets/StevenMup2004/DynaGuard-Data.

Tags

task_categories:text-classificationtask_categories:tabular-classificationlanguage:vilanguage:enlicense:mitsize_categories:1K<n<10Kformat:jsonmodality:tabularmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantregion:ussafetyguardrailsneural-routingagentic-aicost-optimization

README current version from Hugging Face


language:

  • vi
  • en
    license: mit
    task_categories:
  • text-classification
  • tabular-classification
    tags:
  • safety
  • guardrails
  • neural-routing
  • agentic-ai
  • cost-optimization
    pretty_name: DynaRoute Adaptive Guardrail Routing Dataset
    size_categories:
  • 1K<n<10K

DynaRoute Dataset: Adaptive Guardrail Routing Benchmark (Vietnamese & English)

This dataset contains the official training (train_router.json) and evaluation test (test_router.json) records designed to train and benchmark DynaRoute Neural Routers—an intelligent adaptive model selection mechanism inspired by SafeRoute.


📌 Dataset Overview

In agentic Large Language Model (LLM) serving pipelines, enforcing safety guardrails (detecting jailbreaks, toxicity, violent content, and policy violations) involves a strict Cost vs. Accuracy trade-off:

  • DynaGuard-1.7B (Small Model): Ultra-fast, low inference cost, but vulnerable to translated/paraphrased edge cases.
  • DynaGuard-8B (Large Model): High safety verification accuracy, but ~4x-5x more expensive computationally.

This dataset bridges the gap by providing deterministic Oracle Groundtruth Routing Targets, constructed by empirical evaluation across English DynaBench and Vietnamese translated benchmarks (montehoover/DynaBench Original and dynabench_latest Augmented).


🗂 Files & Splits

  • train_router.json: Training split (~3,000+ samples) used to train the 5-layer Multi-Layer Perceptron (MLP) router via Focal Loss.
  • test_router.json: Test Benchmark Split (1,086 samples) representing the core Vietnamese downstream test set (543 Original + 543 Augmented samples).

📋 Data Fields & Annotation Schema

Each JSON object in the dataset contains the following attributes:

  • prompt (string): The user prompt or incoming instruction being inspected.
  • response (string): The generated assistant response (if evaluating input-output safety).
  • source (string): Origin tag indicating the benchmark subset (montehoover/DynaBench or dynabench_latest).
  • small_pred (integer): Binary safety prediction of the lightweight model DynaGuard-1.7B (0: PASS/Safe, 1: FAIL/Unsafe).
  • large_pred (integer): Binary safety prediction of the high-capacity model DynaGuard-8B (0: PASS, 1: FAIL).
  • ground_truth (integer): The definitive human-annotated safety groundtruth label (0: PASS, 1: FAIL).
  • label (integer): Binary Oracle Routing Target ($y \in {0, 1}$).

🏷 Oracle Routing Target Definition (label)

The binary target label dictates the optimal routing decision to achieve maximum accuracy at minimum cost:

$$\text{label} = \begin{cases}
0 & \text{if } Pred_{small} == GT \quad \text{(Easy: Small model is accurate; save 8B cost)} \
1 & \text{if } Pred_{small} \neq GT \text{ and } Pred_{large} == GT \quad \text{(Hard: Escalation required)} \
0 & \text{otherwise}
\end{cases}$$

  • label = 0 (Locally Resolvable): DynaGuard-1.7B gets the correct answer. The system returns the fast verdict immediately (saving 100% of the 8B computational cost).
  • label = 1 (Must Escalate): DynaGuard-1.7B gets fooled, but DynaGuard-8B knows the truth. The router must forward the prompt to the heavy guard.

🏆 Empirical Downstream Performance

When training an MLP Router (2048 -> 1024 -> 512 -> 256 -> 1) on this dataset and operating at threshold 0.60:

  • Safety F1: DynaRoute achieves 0.7542 on the Original Vietnamese split—outperforming standalone DynaGuard-8B (0.7320).
  • Cost Efficiency: Reduces calls to the expensive 8B model by 60.1%.

Curated for Advanced Agentic Coding & Safety Guardrail Research.

README history 5 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2026-06-26Upload README.md with huggingface_hubf566b2a3.7 KB
    Loading...
  2. 2026-06-26Upload test_router.json with huggingface_hub930f6470 B
    Loading...
  3. 2026-06-26Upload valid_router.json with huggingface_hubb5468eb0 B
    Loading...
  4. 2026-06-26Upload train_router.json with huggingface_hubc178cb90 B
    Loading...
  5. 2026-06-26initial commitb27573c0 B
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2026-06-27[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · extract

Read further

Metadata

License
mit

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("StevenMup2004/DynaGuard-Data")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="StevenMup2004/DynaGuard-Data", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/StevenMup2004/DynaGuard-Data
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration