Skip to main content
QUICK REVIEW

[Paper Review] A Flexible Approach to Automated RNN Architecture Generation

Martin Schrimpf, Stephen Merity|arXiv (Cornell University)|Dec 20, 2017
Topic ModelingComputer Science19 references11 citations
TL;DR

This paper proposes a domain-specific language (DSL) for flexible, automated generation of recurrent neural network (RNN) architectures, enabling the discovery of novel, non-intuitive RNN structures through random search and reinforcement learning. The DSL supports arbitrary depth and width, includes standard and non-standard operators (e.g., trigonometric functions, layer normalization), and produces architectures that outperform baselines on language modeling and machine translation tasks despite defying human intuition.

ABSTRACT

The process of designing neural architectures requires expert knowledge and extensive trial and error. While automated architecture search may simplify these requirements, the recurrent neural network (RNN) architectures generated by existing methods are limited in both flexibility and components. We propose a domain-specific language (DSL) for use in automated architecture search which can produce novel RNNs of arbitrary depth and width. The DSL is flexible enough to define standard architectures such as the Gated Recurrent Unit and Long Short Term Memory and allows the introduction of non-standard RNN components such as trigonometric curves and layer normalization. Using two different candidate generation techniques, random search with a ranking function and reinforcement learning, we explore the novel architectures produced by the RNN DSL for language modeling and machine translation domains. The resulting architectures do not follow human intuition yet perform well on their targeted tasks, suggesting the space of usable RNN architectures is far larger than previously assumed.

Motivation & Objective

  • To address the limitations of existing automated RNN architecture search methods, which are constrained in flexibility and component diversity.
  • To enable the discovery of novel RNN architectures beyond human-designed patterns using a highly expressive domain-specific language (DSL).
  • To explore whether architectures generated via automated search—especially those using non-standard operators—can achieve strong performance on real-world NLP tasks.
  • To evaluate the effectiveness of two candidate generation strategies: random search with a ranking function and reinforcement learning.

Proposed method

  • A domain-specific language (DSL) is defined to represent RNN architectures as trees of operations, including unary (e.g., ReLU, Sigmoid), binary (e.g., Add, Mult), and ternary (e.g., Gate3) operators.
  • The DSL supports arbitrary depth and width, allows re-use of intermediate nodes, and enables modeling of long-term memory states (c_t) via node numbering.
  • A ranking function based on a recursive neural network unrolls the DSL representation to predict model performance by modeling hidden state dynamics over time.
  • Two candidate generation strategies are employed: (1) random search guided by the ranking function, and (2) reinforcement learning using REINFORCE to improve architecture proposals.
  • The generator produces candidate architectures, which are compiled and evaluated on downstream tasks (e.g., language modeling, machine translation), forming feedback for retraining the ranking function and generator.
  • The framework supports non-standard components such as sine curves, division, and layer normalization, expanding the search space beyond conventional RNN components.

Experimental results

Research questions

  • RQ1Can a flexible DSL enable the automatic discovery of novel RNN architectures that outperform standard models like LSTM and GRU on NLP tasks?
  • RQ2To what extent do architectures generated by automated search—especially those using non-standard operators—perform well despite defying human intuition?
  • RQ3How effective are random search with a ranking function versus reinforcement learning in discovering high-performing RNN architectures?
  • RQ4Does the performance of generated architectures generalize across datasets, or is it sensitive to training data size and distribution?
  • RQ5How well do standard metrics like loss and BLEU correlate with qualitative model performance?

Key findings

  • The DSL successfully generated novel RNN architectures that outperformed the LSTM baseline on the Multi30k translation dataset, achieving a test BLEU score of 36.53 compared to LSTM's 34.05.
  • A five-layer nested Gate3 architecture with layer normalization achieved a validation loss of 5.66 on Multi30k and a test BLEU of 36.35, surpassing the LSTM baseline.
  • On the larger IWSLT’16 dataset, the best generated architecture achieved a test BLEU of 23.04, slightly outperforming the LSTM baseline of 24.39, though performance was inconsistent across datasets.
  • Architectures incorporating non-standard components such as sine curves and division showed strong performance, indicating that the search space of usable RNNs is far larger than previously assumed.
  • The correlation between validation loss and BLEU score was suboptimal, with models scoring highly on one metric but poorly on the other, suggesting limitations in current evaluation metrics.
  • The reinforcement learning agent and ranking function improved over time, with the generator learning to propose increasingly better architectures through feedback from evaluation results.

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.