Robust and Scalable Differentiable Neural Computer for Question Answering

Jörg Franke, Jan Niehues, Alex Waibel

Abstract

Deep learning models are often not easily adaptable to new tasks and require task-specific adjustments. The differentiable neural computer (DNC), a memory-augmented neural network, is designed as a general problem solver which can be used in a wide range of tasks. But in reality, it is hard to apply this model to new tasks. We analyze the DNC and identify possible improvements within the application of question answering. This motivates a more robust and scalable DNC (rsDNC). The objective precondition is to keep the general character of this model intact while making its application more reliable and speeding up its required training time. The rsDNC is distinguished by a more robust training, a slim memory unit and a bidirectional architecture. We not only achieve new state-of-the-art performance on the bAbI task, but also minimize the performance variance between different initializations. Furthermore, we demonstrate the simplified applicability of the rsDNC to new tasks with passable results on the CNN RC task without adaptions.

Introduction

Deep learning models typically require significant architectural modifications to transition between different types of tasks. The Differentiable Neural Computer (DNC), introduced by Graves et al. in 2016, was envisioned as a "general problem solver"—a neural network equipped with an external memory matrix to store and retrieve information dynamically.

Despite its theoretical potential, the original DNC suffered from several practical limitations: high memory overhead due to complex temporal linkage mechanisms, extreme training instability where performance varied wildly based on random initialization, and slow convergence. Furthermore, its unidirectional nature made it less effective for tasks where context is distributed throughout a sequence. This research introduces the rsDNC (Robust and Scalable DNC) to address these bottlenecks while maintaining the model's general-purpose utility.

The rsDNC Architecture

The rsDNC incorporates three primary structural enhancements to improve efficiency and reliability:

  1. Content-Based Memory Unit (CBMU): The authors found that for Question Answering (QA), tracking the exact temporal order of memory writes is often unnecessary. By removing the "temporal linkage" mechanism and focusing solely on content-based addressing, memory consumption was reduced by 30–70%.
  2. Bypass Dropout (BD): Standard DNCs often suffer from the "easy path" problem, where the controller learns to solve tasks using only its internal state, ignoring the complex memory unit. Bypass Dropout randomly zeroes out the direct connection between the controller and the output, forcing the model to utilize its external memory from the beginning of training.
  3. Normalization: Layer Normalization was applied to both controller and memory signals to stabilize gradients and accelerate convergence.
Schematic of the rsDNC architecture showing the controller, memory unit, and the critical bypass connection.

Additionally, the authors developed a bidirectional variant (BrsDNC) that utilizes forward and backward controllers feeding into a shared memory unit, providing the model with a global view of the input context.

Performance and Reliability

The rsDNC was evaluated on the bAbI reasoning dataset and the CNN Reading Comprehension (RC) task. On the bAbI tasks, the rsDNC achieved an 80% performance improvement over the original DNC. When trained jointly on all 20 bAbI tasks, the bidirectional BrsDNC reached a mean Word Error Rate (WER) of just 3.2%.

Beyond raw accuracy, the rsDNC significantly improved training reliability. The variance between different random initializations was reduced by up to 90%, moving the architecture from a research curiosity toward a reliable engineering tool.

Mean Word Error Rate (WER) on the bAbI task, demonstrating the cumulative impact of CBMU, Normalization, and Bypass Dropout (BD).

In terms of scalability, the memory optimizations allowed the rsDNC to train on the large-scale CNN RC task in just 4 days, compared to the 12 days required by standard DNC configurations. Without any task-specific tuning, the model achieved a competitive 69.0% accuracy, demonstrating its strength as a generalist architecture.

Conclusion

The rsDNC successfully addresses the core weaknesses of the original DNC—instability and overhead—without sacrificing its general-purpose nature. By simplifying the memory unit and introducing Bypass Dropout, the researchers created a model that is both more accurate and significantly more reliable. While specialized models still hold an edge on specific benchmarks, the rsDNC represents a major step forward for general-purpose memory-augmented neural networks.

Summary updated

BibTeX
@inproceedings{franke2018robust,
  author = {Jörg Franke and Jan Niehues and Alex Waibel},
  title = {{Robust and Scalable Differentiable Neural Computer for Question Answering}},
  booktitle = {QA @ ACL},
  year = {2018},
  url = {https://openreview.net/forum?id=HJZf_jl_ZB},
}
Figure