Differentiable Tree Operations Promote Compositional Generalization
Paul Soulos, Edward J. Hu, Kate McCurdy, Yunmo Chen, Roland Fernandez, Paul Smolensky, Jianfeng Gao
Abstract
In the context of structure-to-structure transformation tasks, learning sequences of discrete symbolic operations poses significant challenges due to their non-differentiability. To facilitate the learning of these symbolic sequences, we introduce a differentiable tree interpreter that compiles high-level symbolic tree operations into subsymbolic matrix operations on tensors. We present a novel Differentiable Tree Machine (DTM) architecture that integrates our interpreter with an external memory and an agent that learns to sequentially select tree operations to execute the target transformation in an end-to-end manner. With respect to out-of-distribution compositional generalization on synthetic semantic parsing and language generation tasks, DTM achieves 100% while existing baselines such as Transformer, Tree Transformer, LSTM, and Tree2Tree LSTM achieve less than 30%. DTM remains highly interpretable in addition to its perfect performance.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Compositional Generalization Across Distributional Shifts with Sparse Tree Operations cites COGS: A Compositional Generalization Challenge Based on Semantic Interpretation
- Compositional Generalization Across Distributional Shifts with Sparse Tree Operations cites The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformers
- The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformers cites COGS: A Compositional Generalization Challenge Based on Semantic Interpretation
- Recursive Binding on a Budget: Subspace Carving in Order-p Tensor Memories cites Compositional Generalization Across Distributional Shifts with Sparse Tree Operations
- Recursive Binding on a Budget: Subspace Carving in Order-p Tensor Memories cites COGS: A Compositional Generalization Challenge Based on Semantic Interpretation
Cited by top-tier papers3
- Compositional Generalization Across Distributional Shifts with Sparse Tree OperationsPaul Soulos, Henry Conklin, Mattia Opper, Paul Smolensky et al.NeurIPS 2024 · 8 citations
- Discrete Dictionary-based Decomposition Layer for Structured Representation LearningTaewon Park, Hyun-Chul Kim, Minho LeeNeurIPS 2024 · 1 citation
- Recursive Binding on a Budget: Subspace Carving in Order- Tensor MemoriesTravis Pence, Daisuke Yamada, Vikas SinghICML 2026
Builds on3
- COGS: A Compositional Generalization Challenge Based on Semantic InterpretationNajoung Kim, Tal LinzenEMNLP 2020 · 149 citations
- The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of TransformersRóbert Csordás, Kazuki Irie, Jürgen SchmidhuberEMNLP 2021 · 55 citations
- Mapping natural-language problems to formal-language solutions using structured neural representationsKezhen Chen, Qiuyuan Huang, Hamid Palangi, Paul Smolensky et al.ICML 2020 · 28 citations
Related papers
- Learning Algebraic Recombination for Compositional GeneralizationChenyao Liu, Shengnan An, Zeqi Lin, Qian Liu et al.ACL Findings 2021 · 22 citations
- Gradient-Based Program Synthesis with Neurally Interpreted LanguagesMatthew Macfarlane, Clément Bonnet, Herke van Hoof, Levi LelisICLR 2026 · 3 citations
- Compositional Generalization via Neural-Symbolic Stack MachinesXinyun Chen, Chen Liang, Adams Wei Yu, Dawn Song et al.NeurIPS 2020 · 112 citations
- Differentiable Synthesis of Program ArchitecturesGuofeng Cui, He ZhuNeurIPS 2021 · 20 citations
- Structural generalization is hard for sequence-to-sequence modelsYuekun Yao, Alexander KollerEMNLP 2022 · 8 citations
