Elamur Research⌕
☰
home / papers / 2016 / Language to Logical Form with Neural Attention

Language to Logical Form with Neural Attention

Summary

The paper addresses semantic parsing: a natural language sentence must be converted into a formal meaning representation that a machine can execute, such as a logical form or a query. Previously, such systems typically relied on hand-crafted lexicons, templates and features, which made them difficult to transfer to another domain or another formalism. The authors propose a general neural approach based on an encoder-decoder architecture with LSTM. The encoder converts the sentence into vectors, and the decoder, conditioned on them, generates the logical form. The model comes in two variants: SEQ2SEQ outputs the logical form as an ordinary sequence of tokens, while SEQ2TREE builds it hierarchically, as a tree. An attention mechanism learns to softly align sentence words with predicates, and a separate argument identification step handles rare entities and numbers. On four corpora, the model performs on par with or better than the best systems of its time, even though it uses no domain- or formalism-specific features. It can therefore be easily adapted to new tasks.

Key points

  • The model was evaluated on JOBS (Prolog-style logical forms), GEO and ATIS (lambda calculus), and IFTTT. In all cases the architecture was left unchanged.
  • SEQ2TREE ranks second on JOBS and shares first place with ZC07 on ATIS. On IFTTT, both variants outperform posclass and the baseline methods of Quirk et al. (2015).
  • The SEQ2TREE decoder marks subtrees with a special token <n>. The hidden state of the parent node is fed as input to the LSTM when generating the child tokens (parent-feeding).
  • Training maximizes likelihood using RMSProp, and dropout between LSTM layers curbs overfitting on small corpora.
  • The main weakness identified is under-mapping: attention does not take the history of alignments into account, so in long questions the model sometimes skips words. The authors propose explicitly modeling coverage.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

Fields: AI & machine learning

Topics Semantic parsing & meaning representation

Cite

Cite as Li Dong and Mirella Lapata. 2016. Language to Logical Form with Neural Attention. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/p16-1004 · arXiv 1601.01280

@inproceedings{dong2016language,
  title = {{Language to Logical Form with Neural Attention}},
  author = {Li Dong and Mirella Lapata},
  booktitle = {Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2016},
  doi = {10.18653/v1/p16-1004},
  eprint = {1601.01280},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/p16-1004}
}

References

1 references, 0 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Jacob Andreas, Andreas Vlachos, and Stephen Clark. 2013. Semantic parsing as machine translation. In Proceedings of the 51st ACL, pages 47–52, Sofia, Bulgaria. find

This page in Markdown → https://md.research.elamur.ai/free/en/papers/dong-2016-language-logical-form-neural-attention/