RewriteNets: End-to-End Trainable String-Rewriting for Generative Sequence Modeling
Harshil Vejendla

TL;DR
RewriteNets introduce an end-to-end trainable string rewriting neural architecture that explicitly models structure, achieving high accuracy on systematic generalization tasks and improving computational efficiency over traditional Transformer models.
Contribution
The paper presents RewriteNets, a novel neural architecture that explicitly performs string rewriting with learnable rules, enabling systematic generalization and efficiency in sequence modeling.
Findings
Achieves 98.7% accuracy on SCAN length split
Outperforms LSTM and Transformer baselines on various tasks
Demonstrates stable end-to-end training with Gumbel-Sinkhorn estimator
Abstract
Dominant sequence models like the Transformer represent structure implicitly through dense attention weights, incurring quadratic complexity. We propose RewriteNets, a novel neural architecture built on an alternative paradigm: explicit, parallel string rewriting. Each layer in a RewriteNet contains a set of learnable rules. For each position in an input sequence, the layer performs four operations: (1) fuzzy matching of rule patterns, (2) conflict resolution via a differentiable assignment operator to select non-overlapping rewrites, (3) application of the chosen rules to replace input segments with output segments of potentially different lengths, and (4) propagation of untouched tokens. While the discrete assignment of rules is non-differentiable, we employ a straight-through Gumbel-Sinkhorn estimator, enabling stable end-to-end training. We evaluate RewriteNets on algorithmic,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Data Quality and Management
