Subtree Constraints for Syntactically Controlled Paraphrase Generation

Abstract

(To appear)
Syntactically controlled paraphrase generation rewrites a sentence into a paraphrase with a specified syntactic structure. Existing methods specify the target structure as a single skeleton, typically a constituency tree pruned at a fixed height, which over-specifies unrelated structure and cannot express partial or multiple requirements. We instead propose emph subtree constraints: a set of wildcard regular expressions over a constituency tree’s S-expression, each requiring a substructure somewhere in the tree, which strictly generalize the single skeleton. The constraints go directly into a prompt, and Qwen3-14B satisfies most of them by reasoning first, though reasoning is costly at inference. Because satisfaction is checked mechanically, we use it as a verifiable reward and train with GRPO on constraints extracted from parsed paraphrase pairs. The trained answer-only model matches or exceeds the reasoning baseline’s constraint satisfaction with about 1/14–1/17 as many output tokens. The control transfers across languages: training on English alone improves the four non-English PAWS-X languages over the answer-only base model, and multilingual training improves them further, bringing meaning preservation nearly on par with English. Without a reference paraphrase, reusing the constraints of the input’s nearest neighbor in a precomputed bank performs on par with reference-derived ones.

Publication
Proceedings of the 20th Conference of the European Chapter of the Association for Computational Linguistics