Syntax aids sentiment models without parsing at inference

Paper / preprint arXiv cs.CL · Reported findings, not independently verified by us.

A sentiment model can use syntactic knowledge during training while avoiding external parsing at evaluation time. A study compares two multitask-learning approaches to sentiment polarity classification and reports that one outperforms a syntax-naive baseline.

In Standard-MTL, a shared encoder and two task-specific heads jointly learn dependency parsing and sentiment classification. Contrastive-MTL does not directly predict syntactic labels: a contrastive auxiliary objective and syntax-biased attention pooling aim to provide syntax implicitly. Both approaches use syntactic annotations during training, but require neither hand-crafted compositional rules nor external parsing at inference.

The evaluation covers eleven datasets in seven languages: the MARC corpus in English, Spanish, French, and German, plus seven datasets from SemEval-2022 Task 10. The researchers test four established encodings for treating parsing as sequence labeling. With relative encoding, Contrastive-MTL beats the syntax-naive baseline on ten of the eleven datasets.

On the six datasets where an external rule-based parsing method applies, Contrastive-MTL performs better and is reported to be 1.5 to 9 times faster at evaluation. Standard-MTL depends more on the dataset and encoding. The paper provides further details on the datasets, encodings, and results: Original paper on arXiv

🇬🇧 https://arxiv.org/abs/2611.08323v1

Leave a Comment

The weekly brief: selected developments, projects and videos