Formulating Neural Sentence Ordering as the Asymmetric Traveling Salesman Problem

Vishal Keswani, Harsh Jhamtani


Abstract
The task of Sentence Ordering refers to rearranging a set of given sentences in a coherent ordering. Prior work (Prabhumoye et al., 2020) models this as an optimal graph traversal (with sentences as nodes, and edges as local constraints) using topological sorting. However, such an approach has major limitations – it cannot handle the presence of cycles in the resulting graphs and considers only the binary presence/absence of edges rather than a more granular score. In this work, we propose an alternate formulation of this task as a classic combinatorial optimization problem popular as the Traveling Salesman Problem (or TSP in short). Compared to the previous approach of using topological sorting, our proposed technique gracefully handles the presence of cycles and is more expressive since it takes into account real-valued constraint/edge scores rather than just the presence/absence of edges. Our experiments demonstrate improved handling of such cyclic cases in resulting graphs. Additionally, we highlight how model accuracy can be sensitive to the ordering of input sentences when using such graphs-based formulations. Finally, we note that our approach requires only lightweight fine-tuning of a classification layer built on pretrained BERT sentence encoder to identify local relationships.
Anthology ID:
2021.inlg-1.13
Volume:
Proceedings of the 14th International Conference on Natural Language Generation
Month:
August
Year:
2021
Address:
Aberdeen, Scotland, UK
Editors:
Anya Belz, Angela Fan, Ehud Reiter, Yaji Sripada
Venue:
INLG
SIG:
SIGGEN
Publisher:
Association for Computational Linguistics
Note:
Pages:
128–139
Language:
URL:
https://aclanthology.org/2021.inlg-1.13
DOI:
10.18653/v1/2021.inlg-1.13
Bibkey:
Cite (ACL):
Vishal Keswani and Harsh Jhamtani. 2021. Formulating Neural Sentence Ordering as the Asymmetric Traveling Salesman Problem. In Proceedings of the 14th International Conference on Natural Language Generation, pages 128–139, Aberdeen, Scotland, UK. Association for Computational Linguistics.
Cite (Informal):
Formulating Neural Sentence Ordering as the Asymmetric Traveling Salesman Problem (Keswani & Jhamtani, INLG 2021)
Copy Citation:
PDF:
https://aclanthology.org/2021.inlg-1.13.pdf
Code
 vkeswani/bertsp