extract 0 0 0

Bravansky/dataset-featurization

published by @Bravansky

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
1.2K
Last 30 days
11
Likes
-
Size
26.7 MB
Created on HF
2025-02-17
Age
1 years ago

Description

Dataset Featurization: Experiments

This repository contains datasets used in evaluating Dataset Featurization against the prompting baseline. For datasets used in the case studies, please refer to Compositional Preference Modeling and Compact Jailbreaks.

The evaluation focuses on three datasets: The New York Times Annotated Corpus (NYT), Amazon Reviews (Amazon), and DBPEDIA. For each dataset, we sample 15 different categories and construct three separate subsets, each containing… See the full description on the dataset page: https://huggingface.co/datasets/Bravansky/dataset-featurization.

Tags

task_categories:feature-extractiontask_ids:language-modelinglanguage:enlicense:mitsize_categories:1K<n<10Kformat:csvmodality:tabularmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsregion:us

README current version from Hugging Face


pretty_name: Dataset Featurization
language:

  • en
    license:
  • mit
    task_categories:
  • feature-extraction
    task_ids:
  • language-modeling
    configs:
  • config_name: nyt
    data_files:
    • split: train
      path: data/nyt/samples.csv
  • config_name: nyt-evaluation-0
    data_files:
    • split: train
      path: data/nyt/evaluation/evaluation_df_group_0.csv
  • config_name: nyt-evaluation-1
    data_files:
    • split: train
      path: data/nyt/evaluation/evaluation_df_group_1.csv
  • config_name: nyt-evaluation-2
    data_files:
    • split: train
      path: data/nyt/evaluation/evaluation_df_group_2.csv
  • config_name: amazon
    data_files:
    • split: train
      path: data/amazon/samples.csv
  • config_name: amazon-evaluation-0
    data_files:
    • split: train
      path: data/amazon/evaluation/evaluation_df_group_0.csv
  • config_name: amazon-evaluation-1
    data_files:
    • split: train
      path: data/amazon/evaluation/evaluation_df_group_1.csv
  • config_name: amazon-evaluation-2
    data_files:
    • split: train
      path: data/amazon/evaluation/evaluation_df_group_2.csv
  • config_name: dbpedia
    data_files:
    • split: train
      path: data/dbpedia/samples.csv
  • config_name: dbpedia-evaluation-0
    data_files:
    • split: train
      path: data/dbpedia/evaluation/evaluation_df_group_0.csv
  • config_name: dbpedia-evaluation-1
    data_files:
    • split: train
      path: data/dbpedia/evaluation/evaluation_df_group_1.csv
  • config_name: dbpedia-evaluation-2
    data_files:
    • split: train
      path: data/dbpedia/evaluation/evaluation_df_group_2.csv

Dataset Featurization: Experiments

This repository contains datasets used in evaluating Dataset Featurization against the prompting baseline. For datasets used in the case studies, please refer to Compositional Preference Modeling and Compact Jailbreaks.

The evaluation focuses on three datasets: The New York Times Annotated Corpus (NYT), Amazon Reviews (Amazon), and DBPEDIA. For each dataset, we sample 15 different categories and construct three separate subsets, each containing 5 categories with 100 samples per category. We evaluate the featurization method's performance on each subset.

NYT

From the NYT corpus, we utilize manually reviewed tags from the NYT taxonomy classifier, specifically focusing on articles under "Features" and "News" categories, to construct a dataset of texts with their assigned categories. Below is how to access the input datasets and the proposed features with their assignments from the evaluation stage:

import datasets
text_df = load_dataset("Bravansky/dataset-featurization", "nyt", split="train").to_pandas()
evaluation_df_0 = load_dataset("Bravansky/dataset-featurization", "nyt-evaluation-0", split="train").to_pandas()
evaluation_df_1 = load_dataset("Bravansky/dataset-featurization", "nyt-evaluation-1", split="train").to_pandas()
evaluation_df_2 = load_dataset("Bravansky/dataset-featurization", "nyt-evaluation-2", split="train").to_pandas()

Amazon

Using a dataset of half a million customer reviews, we focus on identifying high-level item categories (e.g., Books, Fashion, Beauty), excluding reviews labeled "Unknown". The input datasets and the proposed features with their assignments from the evaluation stage can be accessed as follows:

import datasets
text_df = load_dataset("Bravansky/dataset-featurization", "amazon", split="train").to_pandas()
evaluation_df_0 = load_dataset("Bravansky/dataset-featurization", "amazon-evaluation-0", split="train").to_pandas()
evaluation_df_1 = load_dataset("Bravansky/dataset-featurization", "amazon-evaluation-1", split="train").to_pandas()
evaluation_df_2 = load_dataset("Bravansky/dataset-featurization", "amazon-evaluation-2", split="train").to_pandas()

DBPEDIA

Using the pre-processed DBPEDIA dataset, we focus on reconstructing categories labeled as level l2:

import datasets
text_df = load_dataset("Bravansky/dataset-featurization", "dbpedia", split="train").to_pandas()
evaluation_df_0 = load_dataset("Bravansky/dataset-featurization", "dbpedia-evaluation-0", split="train").to_pandas()
evaluation_df_1 = load_dataset("Bravansky/dataset-featurization", "dbpedia-evaluation-1", split="train").to_pandas()
evaluation_df_2 = load_dataset("Bravansky/dataset-featurization", "dbpedia-evaluation-2", split="train").to_pandas()

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. 2025-02-17README fixed5b5815e4.7 KB
    Loading...
  2. 2025-02-17README updateddab8a624.8 KB
    Loading...
  3. 2025-02-17Dataset Featurization Added75868364.8 KB
    Loading...
  4. 2025-02-17initial commit3cac2f20 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. 2025-02-25[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · extract

Read further

Metadata

License
mit

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