Source code for EMNLP 2022 paper: Syntactically Robust Training on Partially-Observed Data for Open Information Extraction
Open Information Extraction models have shown promising results with sufficient supervision. However, these models face a fundamental challenge that the syntactic distribution of training data is partially observable in comparison to the real world. In this paper, we propose a syntactically robust training framework that enables models to be trained on a syntactic-abundant distribution based on diverse paraphrase generation. To tackle the intrinsic problem of knowledge deformation of paraphrasing, two algorithms based on semantic similarity matching and syntactic tree walking are used to restore the expressionally transformed knowledge. The training framework can be generally applied to other syntactic partial observable domains. Based on the proposed framework, we build a new evaluation set called CaRB-AutoPara, a syntactically diverse dataset consistent with the real-world setting for validating the robustness of the models. Experiments including a thorough analysis show that the performance of the model degrades with the increase of the difference in syntactic distribution, while our framework gives a robust boundary.
RobustOIE/
|-- src/
| |-- cluster/: clusters data into syntactic-specific subsets
| | |-- cluster.sh:
| | |-- k_means.py:
| | |-- correlation.ipynb
| | |-- plot.ipynb
| | |-- tag_dict.json
| |-- generation/: generates robust samples
| | |-- generate.sh
| |-- restoration/: restores structural knowledge
| | |-- restore.sh
| | |-- map_from_tree.py
| | |-- repair.py
| |-- run.sh: main script
|
|-- LICENSE
|-- README.md
- python (3.9.1)
- cuda (11.3)
- Ubuntu-18.0.4 (4.15.0-136-generic)
- numpy (1.23.4)
- matplotlib (3.6.2)
- torch (1.13.0)
- transformers (4.24.0)
Downloading dataset using the following command
>> zenodo_get 3775983
You might run each stage (e.g, generation, restoration and clustering) separately according to the main script.
>> cd src
>> ./run.sh
This project is licensed under the MIT License - see the LICENSE file for details.
If you use this work or code, please kindly cite the following paper:
@inproceedings{qi-etal-2022-syntactically,
title = "Syntactically Robust Training on Partially-Observed Data for Open Information Extraction",
author = "Qi, Ji and
Chen, Yuxiang and
Hou, Lei and
Li, Juanzi and
Xu, Bin",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2022",
year = "2022",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2022.findings-emnlp.465"
}
If you have any questions, please feel free to contact Ji Qi, we will reply it as soon as possible.