Compositional Reasoning with Transformers, RNNs, and Chain of Thought - Yehudai, Gilad; Amsel, Noah; Bruna, Joan (Advances in Neural Information Processing Systems, 2025)