Skip to main content
QUICK REVIEW

[Paper Review] Neurally-Guided Structure Inference

Sidi Lu, Jiayuan Mao|arXiv (Cornell University)|Jun 17, 2019
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

This paper proposes Neurally-Guided Structure Inference (NG-SI), a hybrid algorithm that uses a neural network to guide a hierarchical, layer-wise search over compositional structure spaces, combining the robustness of exhaustive search with the efficiency of data-driven methods. NG-SI outperforms both purely data-driven and search-based baselines in structure inference accuracy and efficiency on probabilistic matrix decomposition and symbolic program parsing tasks.

ABSTRACT

Most structure inference methods either rely on exhaustive search or are purely data-driven. Exhaustive search robustly infers the structure of arbitrarily complex data, but it is slow. Data-driven methods allow efficient inference, but do not generalize when test data have more complex structures than training data. In this paper, we propose a hybrid inference algorithm, the Neurally-Guided Structure Inference (NG-SI), keeping the advantages of both search-based and data-driven methods. The key idea of NG-SI is to use a neural network to guide the hierarchical, layer-wise search over the compositional space of structures. We evaluate our algorithm on two representative structure inference tasks: probabilistic matrix decomposition and symbolic program parsing. It outperforms data-driven and search-based alternatives on both tasks.

Motivation & Objective

  • To address the limitations of purely data-driven and search-based structure inference methods, which lack generalization or scalability, respectively.
  • To develop a hybrid approach that maintains the robustness of exhaustive search while achieving the efficiency of data-driven inference.
  • To enable accurate inference of complex, previously unseen structures beyond the scope of training data.
  • To demonstrate the effectiveness of neural guidance in reducing search space without sacrificing structural accuracy.

Proposed method

  • NG-SI uses a neural network to predict a probability distribution over applicable production rules at each layer of a hierarchical search over the compositional structure space.
  • The neural guider selects only the most promising production rules at each step, drastically reducing the number of nodes evaluated in the search tree.
  • The search process is performed layer-wise, starting from the root of the structure and recursively expanding only high-probability paths identified by the neural model.
  • The neural network is trained on synthetic data generated via a context-free grammar, using curriculum learning and teacher forcing with GRUs and attention mechanisms.
  • The method is evaluated using a GRU-based encoder and a classifier head to predict production rules, with training data derived from sub-trees of ASTs of generated programs.
  • The framework supports both probabilistic matrix decomposition and symbolic program parsing by defining appropriate domain-specific grammars and structure representations.

Experimental results

Research questions

  • RQ1Can a neural network effectively guide a hierarchical search to achieve both efficiency and robustness in structure inference?
  • RQ2Does the hybrid approach generalize to test data with more complex structures than seen during training?
  • RQ3How does NG-SI compare in accuracy and inference speed to purely data-driven and exhaustive search baselines?
  • RQ4To what extent can neural guidance reduce the search space while preserving structural fidelity?

Key findings

  • NG-SI achieved over 90% accuracy on program parsing tasks with AST depth 11, despite never being trained on such deep structures, while data-driven baselines achieved less than 20% accuracy.
  • The neural-guided search outperformed both data-driven models and exhaustive search in both inference accuracy and efficiency, especially on complex or longer programs.
  • On programs with length >24, the exhaustive search baseline exceeded the 1-hour time limit, whereas NG-SI maintained inference time under 1 second per instance.
  • The method demonstrated strong generalization: it successfully inferred structures beyond the maximum depth and length seen during training, indicating robustness to structural complexity.
  • The neural guider significantly reduced the number of search nodes evaluated by focusing on high-probability production rules at each layer.

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.