You need to agree to share your Hugging Face information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

JudiAct

JudiAct-Data

Paper | Citation

JudiAct-Data is the training and validation corpus for JudiAct. Its 20,126 main training audits teach a guard how to handle a request and whether a candidate answer can be delivered as written. The audits link four-action labels to diagnostic judgments and supporting evidence under the supplied rules.

Controlled comparisons vary the image, request, rules, or candidate answer to show when a judgment should change or stay the same. Use JudiBench for the companion test benchmark.

License scope: CC BY 4.0 covers our original annotations and documentation only. Third-party materials retain their source-specific terms.

Tasks and actions

A request audit considers the user's request, supplied images or OCR text, and the complete rules. An answer audit additionally considers the actual candidate answer. The four actions specify how assistance should proceed.

Action Request handling Candidate-answer auditing
allow Provide ordinary assistance. Publish the answer unchanged.
warn Provide permissible help with a necessary warning or restriction. Revise the answer while preserving its permissible core purpose, then audit it again.
review Clarify a condition needed to decide what help is permitted, or verify what a rule requires. Resolve a necessary condition before deciding whether to publish the answer.
refuse Withhold assistance prohibited by the applicable rules. Withhold an answer that contains prohibited assistance.

The rules supplied with each example determine the scope, exceptions, and required intervention. A safe refusal to a harmful request can receive allow in an answer audit.

Composition

Split Request audits Answer audits Total audits Verified pairs Image-request quartets
Training 10,281 9,845 20,126 2,605 288
Validation 1,357 1,688 3,045 174 20

The paper uses 2,419 validation audits for model selection (958 requests and 1,461 candidate answers). The Hugging Face validation split includes all 3,045 audits; select natural == True for the paper's subset. The other 626 validation audits support contextual comparisons. The stored split value in the JSONL records is dev.

The two files in auxiliary/ contain 36,188 source records (33,197 text and 2,991 image). They expand to 59,748 supervision cases under source-native labels: 33,050 request, 23,707 answer, and 2,991 image cases. These are separate from the 20,126 four-action training audits.

Relations and quartets reference existing audit IDs. Each quartet crosses two images with two requests under the same rules. Its interaction annotation records whether changing the request has a different effect on the image-request risk judgment for the two images. The training quartets comprise 200 determined nonzero interactions, 63 zero-interaction controls, and 25 groups containing an uncertain corner.

Annotation

The diagnostic dimensions describe the grounds for a safety decision.

Dimension Judgment
S1 Risk evidence in the image or supplied OCR text.
S2 Risk in the combination of the image and request.
S3 Malicious or evasive user intent.
S4 An intervention required by the applicable rules.
S5 Harmful execution in the actual candidate answer.

Each dimension has three independently annotated fields. R indicates whether that diagnostic capability is needed, E records evidence availability, and F records whether the dimension's risk condition holds. Request audits use S1 through S4; candidate-answer audits use S5. Evidence annotations identify text spans and image regions where applicable.

Two annotators from a pool of five independently label each example without LLM assistance, while a language model provides a third assessment. For disputed cases, a sixth human annotator and a separate language model independently propose judgments. The other three annotators review the proposals with their authorship concealed and vote on the final judgment. Further review rounds check action boundaries and visual evidence.

Files and record format

Path Contents
data/train.jsonl Main training audits.
data/validation.jsonl Validation audits, including the natural subset.
viewer/ Image-enabled Parquet views of all main training and validation audits.
auxiliary/ Source-native text and image supervision.
process_references/train.jsonl Reference source facts, rule conditions, and boundary conditions for training.
relations/ Paired examples, relation targets, and component eligibility. The *_noncausal.jsonl files retain additional relations for reference.
quartets/ Four-member image-request groups and interaction annotations.
media/ Images referenced by the data files, with 8,703 files in total.
sources/ Dataset provenance, image attribution, and source terms.
manifest.json Counts and file-format metadata.

Each line in a main data file is one JSON object.

Field Meaning
sample_id, group_id The audit identifier and its contextual group.
task request_decision or response_audit, matching task_type.
natural Membership in the designated natural evaluation subset.
model_input The request, ordered images, supplied OCR, full rule cards, and candidate answer when present.
gold Action labels, diagnostic states, intent, policy judgments, behavior labels, and evidence annotations.
supervision Valid targets, field masks, and evidence-localization status.
source Request and candidate-answer provenance.
root_id The training context used to group related members for sampling.

Use supervision.target_mask to identify usable targets. Fields listed in supervision.withheld_fields remain excluded even when a historical value is present in gold. Missing values, uncertain, and not_applicable have different meanings and should retain their stored types.

Text evidence uses Unicode-code-point offsets [start, end) into the named source field. Rule spans refer to the identified card's rule_text. Image boxes use normalized [x, y, width, height] coordinates and a zero-based media_index. Image URIs are relative to this repository's root.

Read the data

The Dataset Viewer uses the Parquet files in viewer/, with the train and validation splits. Each row contains the request, original images, candidate answer when present, and valid action and diagnostic targets. Diagnostic values are represented as strings for a consistent table schema; unavailable targets are null. The record_json column preserves the complete original record, including its stored value types and supervision masks. The source JSONL files remain available in data/.

Install datasets, huggingface_hub, and Pillow. Authenticate with hf auth login if access is required. To load the paper's model-selection subset:

import json
from datasets import load_dataset

dataset = load_dataset("Devin6666/JudiAct-Data", split="validation")
natural_validation = dataset.filter(
    lambda record_json: json.loads(record_json)["natural"],
    input_columns=["record_json"],
)
record = json.loads(natural_validation[0]["record_json"])

To work directly with JSONL, download the validation file and one image from the model-selection subset:

import json

from huggingface_hub import hf_hub_download
from PIL import Image

repo_id = "Devin6666/JudiAct-Data"
data_path = hf_hub_download(
    repo_id=repo_id,
    filename="data/validation.jsonl",
    repo_type="dataset",
)
with open(data_path, encoding="utf-8") as handle:
    records = [json.loads(line) for line in handle]

natural_validation = [record for record in records if record["natural"]]
record = next(record for record in natural_validation if record["model_input"]["images"])
image_path = hf_hub_download(
    repo_id=repo_id,
    filename=record["model_input"]["images"][0]["uri"],
    repo_type="dataset",
)
with Image.open(image_path) as image:
    image.load()
    print(record["sample_id"], image.size)

The JSON reader preserves the numeric, string, and null values used by the annotation schema. Construct evaluation prompts from model_input, keeping reference labels separate.

Sources and use

The data include harmful or offensive content for safety research. Third-party datasets and images retain their source-specific licenses and access terms. Source conditions can include noncommercial use, attribution, or share-alike requirements.

See dataset provenance, image provenance, and third-party terms. Consult these records and the linked source terms when reusing or redistributing the material.

Citation

If you use JudiAct-Data, please cite the JudiAct paper:

@misc{he2026guardingjudgmentlearningintervene,
  title         = {Guarding with Judgment: Learning to Intervene for Multimodal Safety},
  author        = {Jipei He and Cheng Cheng and Liuguo Wang and Zihan Wen and Changlin Yu and Wentao Song and Suyun Zhao},
  year          = {2026},
  eprint        = {2611.28849},
  archivePrefix = {arXiv},
  primaryClass  = {cs.AI},
  url           = {https://arxiv.org/abs/2611.28849},
}

Contact

Maintainer: Jipei He, hejipei0228@ruc.edu.cn.

Downloads last month
106

Paper for Devin6666/JudiAct-Data