Coder Social home page Coder Social logo

ckd's Introduction

CKD

ACL 2023 (Findings) paper: Distilling Calibrated Knowledge for Stance Detection.

Abstract

Stance detection aims to determine the position of an author toward a target and provides insights into people{'}s views on controversial topics such as marijuana legalization. Despite recent progress in this task, most existing approaches use hard labels (one-hot vectors) during training, which ignores meaningful signals among categories offered by soft labels. In this work, we explore knowledge distillation for stance detection and present a comprehensive analysis. Our contributions are: 1) we propose to use knowledge distillation over multiple generations in which a student is taken as a new teacher to transfer knowledge to a new fresh student; 2) we propose a novel dynamic temperature scaling for knowledge distillation to calibrate teacher predictions in each generation step. Extensive results on three stance detection datasets show that knowledge distillation benefits stance detection and a teacher is able to transfer knowledge to a student more smoothly via calibrated guiding signals.

Setup

You can download the project and install required packages using following commands:

git clone https://github.com/chuchun8/CKD.git
cd src
pip install -r requirements.txt

Running

BERTweet is used as our baseline for in this paper. For our proposed calibrated knowledge distillation (CKD), run

bash train.sh > ckd.log

Specifically, in train.sh,

-calib indicates that we run with CKD (temperature is dynamically updated in each generation).

-anneal indicates that we run our experiments with teacher annealing.

-t indicates the default temperature for knowledge distillation baselines (not used in CKD). For example, -t 2 and no -calib mean that we run normal knowledge distillation with fixed temperature 2 (KD-2).

Contact Info

Please contact Yingjie Li at [email protected] or [email protected] with any questions.

Citation

@inproceedings{li-caragea-2023-distilling,
    title = "Distilling Calibrated Knowledge for Stance Detection",
    author = "Li, Yingjie  and
      Caragea, Cornelia",
    booktitle = "Findings of the Association for Computational Linguistics: ACL 2023",
    month = jul,
    year = "2023",
    address = "Toronto, Canada",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.findings-acl.393",
    pages = "6316--6329",
}

ckd's People

Contributors

chuchun8 avatar

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.