Git Product home page Git Product logo

dtdbd's Introduction

Dual-Teacher De-biasing Distillation Framework for Multi-domain Fake News Detection(DTDBD)

This is a concrete implementation of our paper"Dual-Teacher De-biasing Distillation Framework for Multi-domain Fake News Detection"presented at ICDE2024.

Multi-domain fake news detection aims to identify whether various news from different domains is real or fake and has become urgent and important. However, existing methods are dedicated to improving the overall performance of fake news detection, ignoring the fact that unbalanced data leads to disparate treatment for different domains, i.e., the domain bias problem. To solve this problem, we propose the Dual-Teacher De-biasing Distillation framework (DTDBD) to mitigate bias across different domains. Following the knowledge distillation methods, DTDBD adopts a teacher-student structure, where pre-trained large teachers instruct a student model. In particular, the DTDBD consists of an unbiased teacher and a clean teacher that jointly guide the student model in mitigating domain bias and maintaining performance. For the unbiased teacher, we introduce an adversarial de-biasing distillation loss to instruct the student model in learning unbiased domain knowledge. For the clean teacher, we design domain knowledge distillation loss, which effectively incentivizes the student model to focus on representing domain features while maintaining performance. Moreover, we present a momentum-based dynamic adjustment algorithm to trade off the effects of two teachers. Extensive experiments on Chinese and English datasets show that the proposed method substantially outperforms the state-of-the-art baseline methods in terms of bias metrics while guaranteeing competitive performance.

Introduction

This repository provides specific implementations of the DTDBD framework and 13 baselines, please note that our student models are TextCNN-U and BiGRU-U.

Requirements

Python 3.8

PyTorch>1.0

Pandas

Numpy

Tqdm

Transformers

Run

dataset: the English(en) or Chinese dataset(ch1)

gpu: the index of gpu you will use, default for 0

model_name: model_name within textcnn bigru bert eann eddfn mmoe mose dualemotion stylelstm mdfend m3fend.

You can run this code through to train baseline model:

python main.py --gpu 0 --lr 0.0001 --model_name m3fend --dataset ch1

You can run this code to get the baseline model that joins adversarial learning :

python mainad.py --gpu 0 --lr 0.0001 --model_name textcnn-u --dataset ch1

You can run this code to run the DTDBD framework:

python mainCKD.py --gpu 0 --lr 0.0002 --teacher_name m3fend --student_name textcnn-u --dataset ch1

Reference

dtdbd's People

Contributors

ningljy 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.