Trace and Edit Relation Associations in GPT
Abstract
This study introduces a novel approach for analyzing and modifying entity relationships in GPT models, diverging from ROME's entity-focused methods. We develop a relation tracing technique to understand the influence of language model computations on relationship judgments. Using the FewRel dataset, we identify key roles of MLP modules and attention mechanisms in processing relationship information. Our method, tested against ROME on a new dataset, shows improved balance in specificity and generalization, underscoring the potential of manipulating early-layer modules for enhanced model understanding and accuracy.
- Publication:
-
arXiv e-prints
- Pub Date:
- December 2023
- DOI:
- 10.48550/arXiv.2401.02976
- arXiv:
- arXiv:2401.02976
- Bibcode:
- 2024arXiv240102976L
- Keywords:
-
- Computer Science - Computation and Language;
- Computer Science - Artificial Intelligence