Knowledge Editing of Large Language Models Unconstrained by Word Order

Ryoma Ishigaki, Jundai Suzuki, Masaki Shuzo, Eisaku Maeda


Abstract
Large Language Models (LLMs) are considered to have potentially extensive knowledge, but because their internal processing is black-boxed, it has been difficult to directly edit the knowledge held by the LLMs themselves. To address this issue, a method called local modification-based knowledge editing has been developed. This method identifies the knowledge neurons that encode the target knowledge and adjusts the parameters associated with these neurons to update the knowledge. Knowledge neurons are identified by masking the \it{o} part from sentences representing relational triplets (\it{s, r, o}), having the LLM predict the masked part, and observing the LLM�s activation during the prediction. When the architecture is decoder-based, the predicted \it{o} needs to be located at the end of the sentence. Previous local modification-based knowledge editing methods for decoder-based models have assumed SVO languages and faced challenges when applied to SOV languages such as Japanese. In this study, we propose a knowledge editing method that eliminates the need for word order constraints by converting the input for identifying knowledge neurons into a question where \it{o} is the answer. We conducted validation experiments on 500 examples and confirmed that the proposed method is effective for Japanese, a non-SVO language. We also applied this method to English, an SVO language, and demonstrated that it outperforms conventional methods.
Anthology ID:
2024.acl-srw.23
Volume:
Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop)
Month:
August
Year:
2024
Address:
Bangkok, Thailand
Editors:
Xiyan Fu, Eve Fleisig
Venue:
ACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
253–263
Language:
URL:
https://aclanthology.org/2024.acl-srw.23
DOI:
Bibkey:
Cite (ACL):
Ryoma Ishigaki, Jundai Suzuki, Masaki Shuzo, and Eisaku Maeda. 2024. Knowledge Editing of Large Language Models Unconstrained by Word Order. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop), pages 253–263, Bangkok, Thailand. Association for Computational Linguistics.
Cite (Informal):
Knowledge Editing of Large Language Models Unconstrained by Word Order (Ishigaki et al., ACL 2024)
Copy Citation:
PDF:
https://aclanthology.org/2024.acl-srw.23.pdf