Terminating Differentiable Tree Experts
Jonathan Thomm, Michael Hersche, Giacomo Camposampiero, Aleksandar Terzić, Bernhard Schölkopf, Abbas Rahimi
TL;DR
The paper addresses the parameter growth and termination bottlenecks of the Differentiable Tree Machine by introducing Differentiable Tree Experts, which reuse a single Transformer encoder across steps and instantiate a Mixture of Experts to propose operations. A sluggish termination mechanism enables automatic, horizon-aware stopping without oracle guidance, yielding constant parameter scaling with respect to the number of steps. Empirically, DTE and its terminating variant achieve ID and OOD performance on several tree-transformation tasks comparable to the original DTM, while sparse MoE variants offer potential speedups. A key insight is that stronger generalization requires moving beyond the fixed Lisp-operator biases, as highlighted by the tree reversal experiments, which reveal invariance versus genuine OOD generalization limits.
Abstract
We advance the recently proposed neuro-symbolic Differentiable Tree Machine, which learns tree operations using a combination of transformers and Tensor Product Representations. We investigate the architecture and propose two key components. We first remove a series of different transformer layers that are used in every step by introducing a mixture of experts. This results in a Differentiable Tree Experts model with a constant number of parameters for any arbitrary number of steps in the computation, compared to the previous method in the Differentiable Tree Machine with a linear growth. Given this flexibility in the number of steps, we additionally propose a new termination algorithm to provide the model the power to choose how many steps to make automatically. The resulting Terminating Differentiable Tree Experts model sluggishly learns to predict the number of steps without an oracle. It can do so while maintaining the learning capabilities of the model, converging to the optimal amount of steps.
