Logo image
Towards solving NLP tasks with optimal transport loss
Journal article   Peer reviewed

Towards solving NLP tasks with optimal transport loss

Rishabh Bhardwaj, Tushar Vaidya and Soujanya Poria
Journal of King Saud University. Computer and information sciences, Vol.34(10), pp.10434-10443
01/11/2022

Abstract

Computer Science Computer Science, Information Systems Science & Technology Technology
Loss functions are essential to computing the divergence of a model's predicted distribution from the ground truth. Such functions play a vital role in machine learning algorithms as they steer the learning process. Most common loss functions in natural language processing (NLP), such as Kullback-Leibler (KL) and Jensen-Shannon (JS) divergences, do not base their computations on the properties of label coordinates. Label coordinates can help encode the inter-label relationships. For the sentiment classification task, strongly positive sentiment is closer to positive than strongly negative sentiment. Incorporating such information in the computations of the probability divergence can facilitate the model's learning dynamics. In this work, we study an under-explored loss function in NLP - Wasserstein Optimal Transport (OT) which takes label coordinates into account and thus allows the learning algorithm to incorporate inter-label relations. However, the limited applications of OT-based loss owe to the challenges in defining quality label coordinates. We explore the current limitations of learning with OT and provide an algorithm that jointly learns label coordinates with the model parameters. We show the efficacy of OT on several text classification tasks such as sentiment analysis and emotion recognition in conversation. We also discuss the limitations of the approach. The source codes pertaining to this work are publicly available at: https://github.com/declare-lab/NLP-OT.
url
https://doi.org/10.1016/j.jksuci.2022.10.031View
Published (Version of record) Open

Metrics

1 Record Views

Details

Logo image