Deriving Machine Attention from Human Rationales
Yujia Bao, Shiyu Chang, Mo Yu, Regina Barzilay
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/YujiaBao/R2AOfficialIn paperpytorch★ 0
- github.com/Sein-Jang/Deriving-Machine-Attention-from-Human-Rationalespytorch★ 1
- github.com/rizwan09/papernone★ 0
Abstract
Attention-based models are successful when trained on large amounts of data. In this paper, we demonstrate that even in the low-resource scenario, attention can be learned effectively. To this end, we start with discrete human-annotated rationales and map them into continuous attention. Our central hypothesis is that this mapping is general across domains, and thus can be transferred from resource-rich domains to low-resource ones. Our model jointly learns a domain-invariant representation and induces the desired mapping between rationales and attention. Our empirical results validate this hypothesis and show that our approach delivers significant gains over state-of-the-art baselines, yielding over 15% average error reduction on benchmark datasets.