Skip to main content
QUICK REVIEW

[Paper Review] DDRprog: A CLEVR Differentiable Dynamic Reasoning Programmer

Joseph Suárez, Justin Johnson|arXiv (Cornell University)|Mar 30, 2018
Multimodal Machine Learning ApplicationsComputer Science14 references26 citations
TL;DR

DDRprog introduces a differentiable dynamic reasoning framework that jointly learns program generation and execution in a recurrent, forking architecture, enabling end-to-end backpropagation through logical branching. It achieves state-of-the-art performance on CLEVR with improved subtask consistency and generalization on RPN, outperforming LSTMs on long sequences by explicitly modeling stack-based reasoning.

ABSTRACT

We present a novel Dynamic Differentiable Reasoning (DDR) framework for jointly learning branching programs and the functions composing them; this resolves a significant nondifferentiability inhibiting recent dynamic architectures. We apply our framework to two settings in two highly compact and data efficient architectures: DDRprog for CLEVR Visual Question Answering and DDRstack for reverse Polish notation expression evaluation. DDRprog uses a recurrent controller to jointly predict and execute modular neural programs that directly correspond to the underlying question logic; it explicitly forks subprocesses to handle logical branching. By effectively leveraging additional structural supervision, we achieve a large improvement over previous approaches in subtask consistency and a small improvement in overall accuracy. We further demonstrate the benefits of structural supervision in the RPN setting: the inclusion of a stack assumption in DDRstack allows our approach to generalize to long expressions where an LSTM fails the task.

Motivation & Objective

  • To resolve the non-differentiability of dynamic program architectures in neural reasoning models.
  • To enable end-to-end training of recurrent controllers that predict and execute modular programs in sequence.
  • To incorporate structural supervision—such as stack behavior and logical branching—into neural networks for improved reasoning generalization.
  • To demonstrate that explicit modeling of discrete data structures (e.g., stacks, trees) enhances performance and scalability beyond implicit learning.
  • To enable high-level reasoning in neural networks by integrating discrete logic with deep learning through differentiable forking and state management.

Proposed method

  • A recurrent controller predicts the next program module and immediately executes it, creating a differentiable path from prediction to execution.
  • A novel forking mechanism maintains a stack of saved network states to handle logical branching and tree-structured reasoning.
  • Program modules are differentiable functions that operate on visual and textual features, with gradients backpropagated through both module selection and execution.
  • The framework uses program annotations from CLEVR to provide structural supervision, explicitly modeling question logic as executable programs.
  • DDRstack extends the framework to evaluate reverse Polish notation (RPN) expressions by embedding stack behavior directly into the architecture.
  • The model is trained end-to-end using Adam with a learning rate of 1e-3, minimizing L1 loss on predicted answers.

Experimental results

Research questions

  • RQ1Can a neural network jointly learn to predict and execute modular programs in a differentiable manner?
  • RQ2How does explicit structural supervision (e.g., stack behavior) improve generalization in reasoning tasks?
  • RQ3Can a differentiable forking mechanism enable effective handling of logical branching in visual question answering?
  • RQ4Does incorporating discrete data structure assumptions (e.g., stacks) allow better performance and generalization than implicit learning in recurrent models?
  • RQ5Can a compact, differentiable architecture outperform larger, non-differentiable baselines on complex reasoning tasks like RPN?

Key findings

  • DDRprog improves subtask consistency on CLEVR, achieving 96.5% accuracy on the Count task (up from 94.5%) and 98.4% on Compare Integer (up from 93.8%).
  • DDRprog achieves state-of-the-art performance on CLEVR with a much smaller model (17k parameters) compared to prior approaches.
  • DDRstack generalizes effectively to longer RPN sequences (n=30), while a standard LSTM baseline fails to generalize and shows rapid error decay beyond n=10.
  • The LSTM baseline achieves a test L1 error of 0.28 on n=10 sequences, while DDRstack achieves 0.17 with a much smaller model, and generalizes smoothly to n=30.
  • The performance gap between the LSTM and DDRstack grows significantly from n=6 to n=10, indicating the LSTM fails to learn the underlying stack structure.
  • DDRstack’s smooth generalization curve on increasing sequence lengths confirms that explicit stack modeling enables robust generalization, unlike the LSTM’s memorization of short subproblems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.