Coder Social home page Coder Social logo

cdec's Introduction

Classifier Decomposition

Codes for our paper "Enhancing Continual Relation Extraction via Classifier Decomposition (Findings of ACL2023). In this paper:

  • We find that CRE models suffer from classifier and representation biases when learning the new relations.
  • We propose a simple yet effective classifier decomposition framework with empirical initialization and adversarial tuning to alleviate these two biases.
  • Extensive experiments on FewRel and TACRED verify the effectiveness of our method.

cdec

Environment

  • Python >= 3.7
  • Torch >= 1.5.0
conda create -n cdec python=3.8
conda activate cdec
pip install -r requirements.txt

Dataset

We use two datasets in our experiments, FewRel and TACRED:

  • FewRel: data/data_with_marker.json
  • TACRED: data/data_with_marker_tacred.json

We construct 5 CRE task sequences in both FewRel and TACRED the same as RP-CRE and CRL.

Run

bash ./bash/[dataset]/cdec.sh
    - dataset: the dataset name, e.g.,:
        - fewrel/tacred

Note

This code is based on ACA (https://github.com/Wangpeiyi9979/ACA).

Citation

@inproceedings{Xia:2023CDec,
  author       = {Heming Xia and
                  Peiyi Wang and
                  Tianyu Liu and
                  Binghuai Lin and
                  Yunbo Cao and
                  Zhifang Sui},
  editor       = {Anna Rogers and
                  Jordan L. Boyd{-}Graber and
                  Naoaki Okazaki},
  title        = {Enhancing Continual Relation Extraction via Classifier Decomposition},
  booktitle    = {Findings of the Association for Computational Linguistics: {ACL} 2023,
                  Toronto, Canada, July 9-14, 2023},
  pages        = {10053--10062},
  publisher    = {Association for Computational Linguistics},
  year         = {2023},
  url          = {https://doi.org/10.18653/v1/2023.findings-acl.638},
  doi          = {10.18653/V1/2023.FINDINGS-ACL.638},
  timestamp    = {Thu, 10 Aug 2023 12:35:45 +0200},
  biburl       = {https://dblp.org/rec/conf/acl/XiaW0LCS23.bib},
  bibsource    = {dblp computer science bibliography, https://dblp.org}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.