This work aims to improve the knowledge editing performance under the multi-hop reasoning settings.
Build the environement:
conda create -n cake python=3.10
pip install -r requirements.txt
Down load the wikidata for analysis from HoppingTooLate into Analysis/datasets
.
- Run
evaluate_dataset.py
to filter the data. - Run
generate_entity_description.py
to get the entity patch and relation patch. - Run
patch_activations.py
to do back-patching and cross-patching. - Run
analysis.ipynb
Just run the following commond:
run.sh
We thank for the project of EasyEdit, HoppingTooLate. The code in this work is built on top of these projects' codes.