misc 0 0 0

zjunlp/ConceptEdit

published by @zjunlp

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
1.8K
Last 30 days
53
Likes
4
Size
5.0 MB
Created on HF
2024-03-10
Age
2 years ago

Description

Editing Conceptual Knowledge for Large Language Models

Overview β€’

How To Use β€’

Citation β€’

Paper β€’

Website

πŸ’‘ Conceptual Knowledge Editing

Task Definition

Concept is a generalization of the world in the process of cognition, which represents the shared features and essential characteristics of a class of entities.

Therefore, the endeavor of concept editing aims to modify the definition of concepts, thereby altering the behavior of LLMs… See the full description on the dataset page: https://huggingface.co/datasets/zjunlp/ConceptEdit.

Tags

license:cc-by-nc-sa-4.0arxiv:2403.06259region:us

README current version from Hugging Face


license: cc-by-nc-sa-4.0

Editing Conceptual Knowledge for Large Language Models


Overview β€’ How To Use β€’ Citation β€’ Paper β€’ Website

πŸ’‘ Conceptual Knowledge Editing

Task Definition

Concept is a generalization of the world in the process of cognition, which represents the shared features and essential characteristics of a class of entities.
Therefore, the endeavor of concept editing aims to modify the definition of concepts, thereby altering the behavior of LLMs when processing these concepts.

Evaluation

To analyze conceptual knowledge modification, we adopt the metrics for factual editing (the target is the concept $C$ rather than factual instance $t$).

  • Reliability: the success rate of editing with a given editing description
  • Generalization: the success rate of editing within the editing scope
  • Locality: whether the model's output changes after editing for unrelated inputs

Concept Specific Evaluation Metrics

  • Instance Change: capturing the intricacies of these instance-level changes
  • Concept Consistency: the semantic similarity of generated concept definition

🌟 Usage

🎍 Current Implementation

As the main Table of our paper, four editing methods are supported for conceptual knowledge editing.

Method GPT-2 GPT-J LlaMA2-13B-Chat Mistral-7B-v0.1
FT βœ… βœ… βœ… βœ…
ROME βœ… βœ… βœ… βœ…
MEMIT βœ… βœ… βœ… βœ…
PROMPT βœ… βœ… βœ… βœ…

πŸ’» Run

You can follow EasyEdit to run the experiments.

πŸ“– Citation

Please cite our paper if you use ConceptEdit in your work.

@misc{wang2024editing,
      title={Editing Conceptual Knowledge for Large Language Models}, 
      author={Xiaohan Wang and Shengyu Mao and Ningyu Zhang and Shumin Deng and Yunzhi Yao and Yue Shen and Lei Liang and Jinjie Gu and Huajun Chen},
      year={2024},
      eprint={2403.06259},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

πŸŽ‰ Acknowledgement

We would like to express our sincere gratitude to DBpedia,Wikidata,OntoProbe-PLMs and ROME.

Their contributions are invaluable to the advancement of our work.

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-03-12Upload flow1.gif9ce8f142.8 KB
    Loading...
  2. 2024-03-12Update README.md983c94d2.8 KB
    Loading...
  3. 2024-03-10Upload 9 filesf6a7f0733 B
    Loading...
  4. 2024-03-10initial commit0928e3433 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-09-16PRImprove ConceptEdit dataset card: Add metadata, links, and sample usageopen1 πŸ’¬#1
    Loading...

Related datasets same stage Β· misc

Read further

Metadata

License
cc-by-nc-sa-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("zjunlp/ConceptEdit")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="zjunlp/ConceptEdit", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/zjunlp/ConceptEdit
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