misc 0 0 0

zhili-liu/implicit-concept-dataset

published by @zhili-liu

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
1.3K
Last 30 days
54
Likes
-
Size
230.1 MB
Created on HF
2024-07-16
Age
2 years ago

Description

Implicit Concept Dataset (ICD)

This repo releases data introduced in our paper: Implicit Concept Removal of Diffusion Models

Text-to-image (T2I) diffusion models often inadvertently generate unwanted concepts such as watermarks and unsafe images. These concepts, termed as the "implicit concepts", could be unintentionally learned during training and then be generated uncontrollably during inference. Existing removal methods still struggle to eliminate implicit concepts primarily… See the full description on the dataset page: https://huggingface.co/datasets/zhili-liu/implicit-concept-dataset.

Tags

size_categories:1K<n<10Kformat:imagefoldermodality:imagelibrary:datasetslibrary:mlcroissantarxiv:2310.05873region:us

README current version from Hugging Face

Implicit Concept Dataset (ICD)

This repo releases data introduced in our paper: Implicit Concept Removal of Diffusion Models

Text-to-image (T2I) diffusion models often inadvertently generate unwanted concepts such as watermarks and unsafe images. These concepts, termed as the "implicit concepts", could be unintentionally learned during training and then be generated uncontrollably during inference. Existing removal methods still struggle to eliminate implicit concepts primarily due to their dependency on the model's ability to recognize concepts it actually can not discern. To address this, we utilize the intrinsic geometric characteristics of implicit concepts and present the Geom-Erasing, a novel concept removal method based on the geometric-driven control. Specifically, once an unwanted implicit concept is identified, we integrate the existence and geometric information of the concept into the text prompts with the help of an accessible classifier or detector model. Subsequently, the model is optimized to identify and disentangle this information, which is then adopted as negative prompts during generation. Moreover, we introduce the Implicit Concept Dataset (ICD), a novel image-text dataset imbued with three typical implicit concepts (i.e., QR codes, watermarks, and text), reflecting real-life situations where implicit concepts are easily injected. Geom-Erasing effectively mitigates the generation of implicit concepts, achieving the state-of-the-art results on the Inappropriate Image Prompts (I2P) and our challenging Implicit Concept Dataset (ICD) benchmarks.

main_method

Dataset Release

We release two datasets: ICD-QR & ICD-Text for academic use. To prevent the potential risk of hide content infringement through Geom-Erasing, we decide not to open-source the ICD-watermark. Contact us if you needs any help.

dataset_images_more

ICD-QR

Real QR codes are pasted on the Pokemon dataset. The total dataset contains 802 image-text pairs, which is divided into two portions: 80% for fine-tuning (ICD-QR/train.json), and the remaining 20% for testing (ICD-QR/test.json). In the training subset, QR codes are pasted to 25% of the images, with QR code lengths varying from 1/4 to 1/2 of the image length, placed randomly, occasionally overlapping with the original content to resemble real-world scenarios. Importantly, test images remain QR code-free for evaluation.

ICD-Text

The training dataset we used is provided by LAION-Glyph-1M. Please follow their download instruction. It comprises 1M samples, with each image containing text. For the evaluation dataset, additional 2k text-free images are collected from LAION (ICD-Text/laion_notext_eval/test.json).

README history 4 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-07-16upload assets for readme27484932.8 KB
    Loading...
  2. 2024-07-16Upload README.mdbd17c7a2.8 KB
    Loading...
  3. 2024-07-16upload ICD-QR & ICD-Text6a23e9e0 B
    Loading...
  4. 2024-07-16initial commit70823370 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-07-17[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · misc

Read further

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