Syntax-guided Neural Module Distillation to Probe Compositionality in Sentence Embeddings

Rohan Pandey


Abstract
Past work probing compositionality in sentence embedding models faces issues determining the causal impact of implicit syntax representations. Given a sentence, we construct a neural module net based on its syntax parse and train it end-to-end to approximate the sentence’s embedding generated by a transformer model. The distillability of a transformer to a Syntactic NeurAl Module Net (SynNaMoN) then captures whether syntax is a strong causal model of its compositional ability. Furthermore, we address questions about the geometry of semantic composition by specifying individual SynNaMoN modules’ internal architecture & linearity. We find differences in the distillability of various sentence embedding models that broadly correlate with their performance, but observe that distillability doesn’t considerably vary by model size. We also present preliminary evidence that much syntax-guided composition in sentence embedding models is linear, and that non-linearities may serve primarily to handle non-compositional phrases.
Anthology ID:
2023.eacl-main.229
Volume:
Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics
Month:
May
Year:
2023
Address:
Dubrovnik, Croatia
Editors:
Andreas Vlachos, Isabelle Augenstein
Venue:
EACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
3143–3149
Language:
URL:
https://aclanthology.org/2023.eacl-main.229
DOI:
10.18653/v1/2023.eacl-main.229
Bibkey:
Cite (ACL):
Rohan Pandey. 2023. Syntax-guided Neural Module Distillation to Probe Compositionality in Sentence Embeddings. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 3143–3149, Dubrovnik, Croatia. Association for Computational Linguistics.
Cite (Informal):
Syntax-guided Neural Module Distillation to Probe Compositionality in Sentence Embeddings (Pandey, EACL 2023)
Copy Citation:
PDF:
https://aclanthology.org/2023.eacl-main.229.pdf
Video:
 https://aclanthology.org/2023.eacl-main.229.mp4