misc 0 0 0

ScaleAI/BrowserART

published by @ScaleAI

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
4.1K
Last 30 days
162
Likes
7
Size
653 KB
Created on HF
2024-10-10
Age
2 years ago

Description

Refusal-Trained LLMs Are Easily Jailbroken As Browser Agents

Paper PDF

Homepage

Github

This project contains the behavior dataset in BrowserART, a red teaming test suit tailored particularly for browser agents.

Abstract

For safety reasons, large language models (LLMs) are trained to refuse harmful user instructions, such as assisting dangerous activities. We study an open question in this work: Can the desired safety refusal, typically enforced in… See the full description on the dataset page: https://huggingface.co/datasets/ScaleAI/BrowserART.

Tags

task_categories:text-generationlanguage:enlicense:cc-by-nc-4.0size_categories:n<1Kformat:imagefoldermodality:imagelibrary:datasetslibrary:mlcroissantarxiv:2402.04249arxiv:2407.17436arxiv:2410.13886region:usadversarial robustnesshuman red teamingagent

README current version from Hugging Face


license: cc-by-nc-4.0
task_categories:

  • text-generation
    language:
  • en
    tags:
  • adversarial robustness
  • human red teaming
  • agent
    size_categories:
  • n<1K

Refusal-Trained LLMs Are Easily Jailbroken As Browser Agents

This project contains the behavior dataset in BrowserART, a red teaming test suit tailored particularly for browser agents.

Abstract

For safety reasons, large language models (LLMs) are trained to refuse harmful user instructions, such as assisting dangerous activities. We study an open question in this work: Can the desired safety refusal, typically enforced in chat contexts, be generalized to non-chat and agentic use cases? Unlike chatbots, LLM agents equipped with general-purpose tools, such as web browsers and mobile devices, can directly influence the real world, making it even more crucial to refuse harmful instructions. In this work, we primarily focus on red-teaming browser agents – LLMs that manipulate information via web browsers.

To this end, we introduce Browser Agent Red teaming Toolkit (BrowserART), a comprehensive test suite designed specifically for red-teaming browser agents. BrowserART consists of 100 diverse browser-related harmful behaviors (including original behaviors and ones sourced from HarmBench [Mazeika et al., 2024] and[AirBench 2024 [Zeng et al., 2024b]) across both synthetic and real websites.

Our empirical study on state-of-the-art browser agents reveals that, while the backbone LLM refuses harmful instructions as a chatbot, the corresponding agent does not. Moreover, attack methods designed to jailbreak refusal-trained LLMs in the chat settings transfer effectively to browser agents. With human rewrites, GPT-4o and o1-preview-based browser agents attempted 98 and 63 harmful behaviors (out of 100), respectively. We publicly release BrowserART and call on LLM developers, policymakers, and agent developers to collaborate on improving agent safety.

BrowserART Behavior Dataset

BrowserART consists of 100 harmful browser-related behaviors (including original behaviors and ones sourced from HarmBench [Mazeika et al., 2024] and AirBench 2024 [Zeng et al., 2024b]) that an agent is not supposed to assist. We divided all behaviors into two main categories: harmful content and harmful interaction. Under each main category, we created sub-categories for the harm semantics. We created 40 synthetic websites under 19 domains for red teaming browser behaviors that target specific websites (e.g., Twitter/X). These synthetic pages are hosted locally for running red teaming experiments in a sandbox without polluting the real world, especially the social media and government sites.

If you are using the behavior set of BrowserART, in addition to this work, please consider to cite
HarmBench and AirBench 2024 using the following citations:

@misc{kumar2024refusaltrainedllmseasilyjailbroken,
      title={Refusal-Trained LLMs Are Easily Jailbroken As Browser Agents}, 
      author={Priyanshu Kumar and Elaine Lau and Saranya Vijayakumar and Tu Trinh and Scale Red Team and Elaine Chang and Vaughn Robinson and Sean Hendryx and Shuyan Zhou and Matt Fredrikson and Summer Yue and Zifan Wang},
      year={2024},
      eprint={2410.13886},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2410.13886}, 
}

@InProceedings{mazeika2024harmbench,
title = {{H}arm{B}ench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal},
author = {Mazeika, Mantas and Phan, Long and Yin, Xuwang and Zou, Andy and Wang, Zifan and Mu, Norman and Sakhaee, Elham and Li, Nathaniel and Basart, Steven and Li, Bo and Forsyth, David and Hendrycks, Dan},
booktitle = {Proceedings of the 41st International Conference on Machine Learning},
year = {2024},
series = {Proceedings of Machine Learning Research},
publisher = {PMLR},
}

@article{zeng2024air,
title={AIR-Bench 2024: A Safety Benchmark Based on Risk Categories from Regulations and Policies},
author={Zeng, Yi and Yang, Yu and Zhou, Andy and Tan, Jeffrey Ziwei and Tu, Yuheng and Mai, Yifan and Klyman, Kevin and Pan, Minzhou and Jia, Ruoxi and Song, Dawn and others},
journal={arXiv preprint arXiv:2407.17436},
year={2024}
}

BrowserART Websites

The source code of synthetic websites are hosted at our Github page.

Ethics and Disclosure

This research — including the methodology detailed in the paper, the code, and the content of this webpage — contains material that may enable users to generate harmful content using certain publicly available LLM agents. While we recognize the associated risks, we believe it is essential to disclose this research in its entirety. The agent frameworks, beyond those used in this study, are publicly accessible and relatively easy to use. Comparable results will inevitably be achievable by any determined team seeking to utilize language models to produce harmful content and interactions.

In releasing BrowserART and our main results, we carefully weighed the benefits of empowering research in defense robustness with the risks of enabling further malicious use. Following Zou et al. (2024), we believe the publication of this work helps the agent safety community to release this frontier challenge.

Prior to release, we have also disclosed our findings and datasets to the companies providing the API access to the models, together with the creators of browser agent frameworks. Our findings highlight the crucial alignment gap between chatbots and browser agents and call upon the research community to explore safeguarding techniques for LLM agents.

README history 8 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. 2024-10-21Merge branch 'main' of hf.co:datasets/ScaleAI/BrowserART84d3e4b6.9 KB
    Loading...
  2. 2024-10-21add our citationb0bf11e7 KB
    Loading...
  3. 2024-10-13Update README.mdcf37d786.4 KB
    Loading...
  4. 2024-10-13Update README.md8cfb4486.5 KB
    Loading...
  5. 2024-10-13add behaviors7ef16506.5 KB
    Loading...
  6. 2024-10-13initial commit with readme31eac2d6.5 KB
    Loading...
  7. 2024-10-11Update README.md24d1cd7202 B
    Loading...
  8. 2024-10-10initial commit8400dcc33 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. 2024-10-14[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · misc

Read further

Metadata

License
cc-by-nc-4.0

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("ScaleAI/BrowserART")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="ScaleAI/BrowserART", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/ScaleAI/BrowserART
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