名詞役割入れ替えに頑健な日本語含意関係認識
Summary
The paper addresses Japanese natural language inference (NLI) in a hard case: two sentences share the same vocabulary, but their nouns have swapped roles, for example subject and object. This changes the meaning of the sentence. BERT-based models trained on existing corpora almost never recognize such pairs as contradictions. The authors automatically built "shuffled" pairs from sentences in Japanese Wikipedia and the Chunichi Shimbun newspaper archive. The original sentence is the premise, the sentence with swapped nouns is the hypothesis, and the label is "contradiction". To keep the model from guessing the answer from unnatural text, they filtered the pairs using morphological subcategories and the Kyoto University Case Frames dictionary. They then added these data to JSNLI or JSICK and fine-tuned a Japanese BERT. Accuracy on the shuffled data rose from almost zero to 92–99%. Accuracy on the standard test sets stayed about the same. The model therefore distinguishes the meaning of a sentence from a mere bag of words. For Japanese, with its flexible word order, this is essential.
Key points
- How the data were generated. Morphological analysis was done with JUMAN++ and syntactic analysis with KNP (pyknp 0.6.1). Only sentences of up to 40 characters were used, and in each one the first two nouns with the same part-of-speech subcategory were swapped. Only pairs in which every predicate–case combination appears in Kyoto University Case Frames Ver 2.0 were kept.
- Manual check. The authors manually reviewed 100 examples from each source. The meaning actually changed in 81% (Wikipedia) and 84% (newspaper) of cases. It did not change in 12% and 11%. Unnatural sentences made up 7% and 5%.
- Model and training. They used
cl-tohoku/bert-base-japanese-whole-word-maskingwith Hugging FaceBertForSequenceClassification. Parameters: AdamW, 10 epochs, lr 2e-5, batch 16. In the JSNLI training data, about 20k pairs labeled contradiction were replaced with roughly the same number of shuffled Wikipedia pairs. About 300 such pairs were added to JSICK. - Results. Models trained only on JSNLI or JSICK reached 0.1–4.4% accuracy on the shuffled test sets (Wikipedia about 14k pairs, newspaper 10,599 pairs): they labeled almost all pairs as "entailment". With the added data, accuracy reached 99.69/96.85 (JSNLI+) and 98.96/92.34 (JSICK+). On the standard test sets: JSNLI 91.93 → 91.34, JSICK 86.44 → 87.94.
- Limitations. The model most often errs on swaps around the particle "の", because there the meaning sometimes does not change. In future work, the authors want to handle swaps that preserve meaning and to test the method on longer sentences.
Cite
@inproceedings{2023,
title = {{名詞役割入れ替えに頑健な日本語含意関係認識}},
author = {雨宮正弥 and 増川哲太 and 仲田明良 and 狩野芳伸},
booktitle = {言語処理学会 第29回年次大会 発表論文集 (NLP2023)},
year = {2023},
url = {https://www.anlp.jp/proceedings/annual_meeting/2023/#P4-4}
}References
- [2]. 谷中瞳, 峯島宏次. JSICK: 日本語構成的推論・ 類似度データセットの構築. 人工知能学会 第 35 回 人工知能学会全国大会, 2021. find
- [3]. 林部祐太. 知識の整理のための根拠付き自然文 間含意関係コーパスの構築. 言語処理学会 第 26 回 年次大会, 2020. find
- [4]. Hideki Shima, Hiroshi Kanayama, Cheng-Wei Lee, Chuan-Jie Lin, Teruko Mitamura, Yusuke Miyao, Shuming Shi, Koichi Takeda. Overview of NTCIR-9 RITE: Recognizing Inference in TExt. Proceedings of NTCIR-9 Workshop Meeting, 2011. 291-301. find
- [5]. Hideo Joho, Tetsuya Sakai. Overview of NTCIR-10. Proceedings of the 10th NTCIR Conference, 2013. find
- [6]. Hideo Joho, Kazuaki Kishida. Overview of NTCIR-11. Proceedings of the 11th NTCIR Conference, 2014. find
This page in Markdown → https://md.research.elamur.ai/free/en/papers/amemiya-2023-japanese-textual-entailment-robust/