Dataset Viewer
Auto-converted to Parquet Duplicate
The dataset viewer is not available for this split.
Server error while post-processing the rows. Please report the issue.
Error code:   RowsPostProcessingError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

RuleMark

RuleMark is a synthetic image classification dataset for reading checkboxes in context. Each image shows a two-line instruction legend and one labeled checkbox. The task is to read the instruction, identify the mark, and predict one of three labels: selected, canceled, or blank.

The first release, v1.0, contains 24,000 grayscale PNGs at 608 × 176 pixels. The ZIP is approximately 25 MB. Bodhisatta Maiti created and curated the dataset. It is released under CC BY 4.0.

Dataset Details

The same mark can mean different things on different forms. For example, the legend can tell the reader that an X selects an option or that an X cancels it. An empty box is always labeled blank.

Printed instruction X in the box Checkmark in the box Empty box
X selects and ✓ cancels selected canceled blank
✓ selects and X cancels canceled selected blank

The release contains 4,000 groups of six images. Each base form is rendered with both instruction variants and all three checkbox states. The option text and layout stay fixed within a group.

Uses

RuleMark can be used to prototype and evaluate checkbox classification, document understanding, and visual reasoning. The matched examples let users test whether a model changes its answer when the printed rule changes and whether it still returns blank for an empty box.

Use separate real-world data to validate systems intended for scanned forms, handwriting, or production document processing.

Dataset Structure

RuleMark-24K.zip contains the images/ directory and a single metadata.csv. Each row matches one image.

Column Description
file_name Relative path to the PNG, such as images/000ae0df3a96909b01cf-1c130858b18d36d22188.png.
label One of selected, canceled, or blank.
Label Images
selected 8,000
canceled 8,000
blank 8,000
Total 24,000

The release is unsplit. To create your own training, validation, and test sets, assign whole groups to splits. The part of each filename before the hyphen identifies its base-form group. Keep all six variants together to avoid leakage from near-identical images.

Dataset Creation

Curation Rationale

For a checkbox reader, recognizing an X or a checkmark is only part of the task. The reader must also apply the form’s instructions. RuleMark isolates that skill by pairing images where the checkbox is identical but the printed legend gives the mark a different meaning.

Source Data and Annotations

A procedural generator created the English instructions, option text, layouts, and marks. It varied instruction wording, placement, text scale, mark position, pen width, and grayscale tones. Labels were assigned programmatically from the instruction and checkbox state. All form content is synthetic and uses generic option text. The source contains no real completed forms or personal records.

Quality Checks

A separate checker used the synthetic font and layout coordinates to read the legend and identify the mark from each exported PNG. It recomputed the labels and checked that paired images changed only in the expected image regions. The final ZIP was reopened and all 24,000 images were matched to their CSV rows. The audit found zero label mismatches, missing or unreferenced images, and duplicate images.

Bias, Risks, and Limitations

  • The dataset uses clean English forms, a custom bitmap alphabet, and two mark types. It does not represent the variety of real handwriting, scan artifacts, erasures, languages, or conflicting form instructions.
  • Classes are balanced by design. Their proportions do not estimate how often states occur in real documents.
  • Report class-level performance and accuracy on matched pairs. On marked examples, each symbol is equally likely to mean selected or canceled, so pair-level results help show whether a model follows the printed rule.

Citation

@dataset{maiti2026rulemark,
  author = {Maiti, Bodhisatta},
  title = {RuleMark},
  year = {2026},
  version = {1.0},
  publisher = {Hugging Face},
  url = {https://huggingface.co/datasets/bodhisattamaiti/RuleMark}
}

Dataset Card Contact

For questions or corrections, open a discussion in the RuleMark dataset repository.

Downloads last month
32