misc 0 0 0

Alookhoshk/llama2-high-entropy-prompts

published by @Alookhoshk

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
214
Last 30 days
106
Likes
-
Size
3.4 MB
Created on HF
2026-09-06
Age
1 months ago

Description

High-entropy prompts for suffix-based backdoor detection

Prompts on which base meta-llama/Llama-2-7b-hf has high predictive

entropy, built to give a suffix-optimization backdoor detector measurable

headroom: a clean model should stay uncertain on these prompts, while a poisoned

model driven by a trigger-like suffix should collapse to low entropy. Prompts

where the base model is already confident cannot separate the two.

How the prompts were made

Short prefixes… See the full description on the dataset page: https://huggingface.co/datasets/Alookhoshk/llama2-high-entropy-prompts.

Tags

task_categories:text-generationlicense:llama2size_categories:1K<n<10Kformat:parquetmodality:tabularmodality:textlibrary:datasetslibrary:pandaslibrary:polarslibrary:mlcroissantregion:ustrojan-detectionbackdoor-detectionentropy

README current version from Hugging Face


license: llama2
task_categories:

  • text-generation
    tags:
  • trojan-detection
  • backdoor-detection
  • entropy

High-entropy prompts for suffix-based backdoor detection

Prompts on which base meta-llama/Llama-2-7b-hf has high predictive
entropy
, built to give a suffix-optimization backdoor detector measurable
headroom: a clean model should stay uncertain on these prompts, while a poisoned
model driven by a trigger-like suffix should collapse to low entropy. Prompts
where the base model is already confident cannot separate the two.

How the prompts were made

Short prefixes were sampled from a mix of public corpora (HuggingFaceFW/fineweb-edu, open-web-math/open-web-math, wikimedia/wikipedia, codeparrot/codeparrot-clean-valid), then
continued by base Llama-2-7b-hf at temperature 1.2-1.6
(top-p 0.98) with special and non-printable tokens banned. High-temperature
sampling walks the model off its own high-likelihood manifold, which is where
its predictive entropy stays high.

Every candidate was then re-scored with the detector's own objective:
normalized entropy H / log(V) over a greedy rollout of 10
tokens, aggregated with smooth_max (temperature 0.05),
under two conditions:

  • bare -- rollout straight off the prompt end;
  • control -- 3 fixed random control suffixes of
    10 tokens appended first, drawn from the same printable
    token filter the suffix search uses.

Rows are ranked on the control score, because that is the condition the search
actually runs in. Candidates whose greedy rollout hits EOS are dropped.

Columns

column meaning
text the prompt
token_count_capped content tokens (no special tokens), capped at the runtime limit
token_length_bin 32-64 / 65-128 / 129+
entropy_ctrl_smoothmax_mean mean smooth-max normalized entropy across control suffixes (selection metric)
entropy_ctrl_smoothmax_min worst-case across control suffixes
entropy_bare_smoothmax same metric with no suffix appended
entropy_bare_mean / entropy_ctrl_mean_mean mean-aggregated variants
pmax_bare / pmax_ctrl_mean mean top-1 probability over the rollout
early_stop_bare / early_stop_ctrl_rate whether the greedy rollout hit EOS
gen_entropy_mean mean entropy observed while the text was being sampled
seed_source corpus the seed prefix came from

Bins are balanced so a downstream stratified sampler with
disjoint_roles_by_document can fill every role x bin cell.

Caveat

Selection used the base model. Entropy on derived fine-tunes is correlated but
not identical, so expect some regression to the mean. --selection-strategy band
samples from a percentile band rather than the extreme tail to reduce this.

README history 13 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. 2026-09-07Add dataset card23bacf82.7 KB
    Loading...
  2. 2026-09-07High-entropy prompts scored with base Llama-2-7b-hfdc6a0ca3.8 KB
    Loading...
  3. 2026-09-06Add dataset cardf6856da2.7 KB
    Loading...
  4. 2026-09-06High-entropy prompts scored with base Llama-2-7b-hfdfc4ae43.8 KB
    Loading...
  5. 2026-09-06Add dataset cardc538b292.7 KB
    Loading...
  6. 2026-09-06High-entropy prompts scored with base Llama-2-7b-hfd6149333.8 KB
    Loading...
  7. 2026-09-06Add dataset cardbc2c0372.7 KB
    Loading...
  8. 2026-09-06High-entropy prompts scored with base Llama-2-7b-hf10af7f23.8 KB
    Loading...
  9. 2026-09-06Add dataset card8154c302.7 KB
    Loading...
  10. 2026-09-06High-entropy prompts scored with base Llama-2-7b-hf8bd30b23.8 KB
    Loading...
  11. 2026-09-06Add dataset cardf672cfd2.7 KB
    Loading...
  12. 2026-09-06High-entropy prompts scored with base Llama-2-7b-hf6005acc1.1 KB
    Loading...
  13. 2026-09-06initial commitea566e90 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 2 threads · 2 open · 2 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. 2026-09-11PRLibrarian Bot: Add language metadata for datasetopen1 💬#2
    Loading...
  2. 2026-09-07[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · misc

Read further

Metadata

License
llama2

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