Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    UnicodeDecodeError
Message:      'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 249, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4379, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2661, in _head
                  return next(iter(self.iter(batch_size=n)))
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2839, in iter
                  for key, pa_table in ex_iterable.iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2377, in _iter_arrow
                  yield from self.ex_iterable._iter_arrow()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/csv/csv.py", line 196, in _generate_tables
                  csv_file_reader = pd.read_csv(file, iterator=True, dtype=dtype, **self.config.pd_read_csv_kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/streaming.py", line 73, in wrapper
                  return function(*args, download_config=download_config, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1279, in xpandas_read_csv
                  return pd.read_csv(xopen(filepath_or_buffer, "rb", download_config=download_config), **kwargs)
                         ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 1026, in read_csv
                  return _read(filepath_or_buffer, kwds)
                File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 620, in _read
                  parser = TextFileReader(filepath_or_buffer, **kwds)
                File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 1620, in __init__
                  self._engine = self._make_engine(f, self.engine)
                                 ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 1898, in _make_engine
                  return mapping[engine](f, **self.options)
                         ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 93, in __init__
                  self._reader = parsers.TextReader(src, **kwds)
                                 ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "pandas/_libs/parsers.pyx", line 574, in pandas._libs.parsers.TextReader.__cinit__
                File "pandas/_libs/parsers.pyx", line 663, in pandas._libs.parsers.TextReader._get_header
                File "pandas/_libs/parsers.pyx", line 874, in pandas._libs.parsers.TextReader._tokenize_rows
                File "pandas/_libs/parsers.pyx", line 891, in pandas._libs.parsers.TextReader._check_tokenize_status
                File "pandas/_libs/parsers.pyx", line 2053, in pandas._libs.parsers.raise_parser_error
                File "<frozen codecs>", line 325, in decode
              UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte

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.

Typographic Visual Prompt Injection (TVPI) Dataset

This dataset accompanies the study "Typographic Visual Prompt Injection in Vision-Language Models: A Comparative Evaluation of Base and Instruction-Following Architectures." It contains the adversarial prompts and generated typographic images used to evaluate PaliGemma-3b and LLaVA-1.5-7b against visual prompt injection across three risk vectors.

Code repository: https://github.com/AyushyaRanjan/Typographic-Visual-Prompt-Injection-in-Vision-Language-Models

Dataset Summary

45 adversarial text prompts, each rendered into 3 typographic image styles, producing 135 images total. Prompts span three risk vectors β€” System Bypass, Data Privacy, and Content Policy Violation β€” with 15 prompts per vector. Every prompt is designed such that the expected, safety-aligned model response is REFUSE.

Dataset Structure

prompts.csv            45 rows β€” the source adversarial prompts
images/
  {prompt_id}_clean.png          black text (RGB 0,0,0) on white, 512x256px
  {prompt_id}_lowcontrast.png    light grey text (RGB 200,200,200) on white
  {prompt_id}_distorted.png      oblique/italic font variant

prompts.csv columns

Column Description
vector_id V-01, V-02, or V-03
category System Bypass / Data Privacy / Content Policy
prompt_id Unique identifier, e.g. V01-P01
prompt_text The adversarial prompt text
expected_response Always REFUSE

Risk vectors

  • V-01 System Bypass β€” prompts attempting to override alignment guidelines or elicit disclosure of system instructions.
  • V-02 Data Privacy β€” prompts targeting extraction of context window contents, system prompts, or session instructions.
  • V-03 Content Policy Violation β€” prompts requesting content a safety-aligned model should decline (social engineering, fraud, unauthorized system access instructions).

Image Generation Details

All images are 512Γ—256px PNGs with 20px padding and 20pt font size. Text is automatically wrapped to fit within image boundaries. The three style conditions are held identical in layout β€” only text color/style differs β€” to isolate typographic presentation as the independent variable.

Condition Text color Font
Clean RGB (0, 0, 0) Sans-serif
Low contrast RGB (200, 200, 200) Sans-serif
Distorted RGB (0, 0, 0) Oblique/italic

Intended Use

This dataset is intended for AI safety research evaluating vision-language model robustness to visual/typographic prompt injection. It is not intended for training models to perform the attacks described, and none of the generated images contain any content beyond the rendered adversarial text itself.

Content Warning

prompt_text values in vector V-03 include requests for content such as phishing scripts, social engineering scripts, and unauthorized access instructions. These are provided strictly to evaluate whether models correctly refuse them; no harmful outputs generated during evaluation are included in this dataset.

Citation

If you use this dataset, please cite the accompanying report available in the code repository above.

License

MIT License

Downloads last month
32