Elamur Research
☰
home / papers / 2017 / ParlAI: A Dialog Research Software Platform

ParlAI: A Dialog Research Software Platform

Written for the Research library (claude-opus-5-5) from the paper text. Original — aclanthology.org/D17-2014.pdf

Summary

Dialog research has been split across many datasets with incompatible formats. This encourages models tuned to one benchmark's quirks, such as span prediction in SQuAD or supporting facts in bAbI, rather than skills that transfer. ParlAI, an open-source Python platform from Facebook AI Research, addresses this by placing every task behind one shared interface. Its design rests on three abstractions: worlds, agents and teachers. These exchange a single extensible Python dict carrying text, labels, candidate answers, rewards, episode boundaries and, optionally, images. Because every dataset uses this format, training one model on several tasks is as easy as training on one. The first release bundles over 20 tasks, automatic dataset download, batch and hogwild training, and PyTorch and Lua Torch examples. It also integrates Amazon Mechanical Turk for data gathering, human evaluation and online learning. As a demonstration, the authors train DrQA jointly on SQuAD and bAbI, a pairing they say had not been reported before. ParlAI matters because it lowers the cost of reproducible, multitask and human-in-the-loop dialog experiments.

Key points

  • Tasks. The first release covers 20+ tasks, including SQuAD, bAbI tasks, MCTest, WikiQA, QACNN, QADailyMail, CBT, bAbI Dialog, Ubuntu, OpenSubtitles and VQA. They are grouped into five categories, among them question answering, sentence completion (cloze) and goal-oriented dialog.
  • Bundled agents. These include DrQA (an attentive LSTM in PyTorch) and an end-to-end memory network (memnn, in Lua Torch). seq2seq is also mentioned. ZeroMQ connects ParlAI to non-Python code.
  • Core library. It provides world classes for different settings: DialogPartnerWorld (two speakers), MultiAgentDialogWorld (more than two), BatchWorld (batch training) and HogwildWorld (multithreaded training). Model outputs are scored by the metrics.py module, which reports F1, exact-match accuracy and ranking-based measures.
  • MTurk examples. Two are included: qa collector, which gathers question–answer pairs from a context paragraph, and model evaluator, which collects human ratings of a bot. A sandbox mode allows testing before paid launches.
  • DrQA results. On SQuAD (dev, Exact Match), single-task training scores 66.4 and multitask 63.4. On the bAbI 10k subset, where answers appear verbatim in the text:
    • Task 2 drops from 98.1 to 54.3 under multitask training.
    • Task 3 rises from 45.4 to 58.1.
    • Several tasks reach 100 in both settings.

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: Natural language processing

Cited by

168 papers of our library cite it (of the 140673 whose bibliographies we read); 18 of them have a page here, 150 not yet.

Cite

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

@inproceedings{miller2017parlai,
  title = {{ParlAI: A Dialog Research Software Platform}},
  author = {Miller, Alexander and Feng, Will and Batra, Dhruv and Bordes, Antoine and Fisch, Adam and Lu, Jiasen and Parikh, Devi and Weston, Jason},
  booktitle = {Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing: System Demonstrations},
  year = {2017},
  doi = {10.18653/v1/d17-2014},
  eprint = {1705.06476},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/d17-2014}
}

References

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

  1. Jason Weston, Antoine Bordes, Sumit Chopra, Alexander M Rush, Bart van Merriënboer, Armand Joulin, and Tomas Mikolov. 2015. Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv:1502.05698. find our card
  2. Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. 2015. VQA: Visual Question Answering. In Proceedings of the IEEE International Conference on Computer Vision, pages 2425–2433. find
  3. Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. 2013. Semantic parsing on freebase from question-answer pairs. In EMNLP, volume 2, page 6. find
  4. Antoine Bordes and Jason Weston. 2016. Learning end-to-end goal-oriented dialog. arXiv preprint arXiv:1605.07683. find
  5. Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. 2017. Reading wikipedia to answer open-domain questions. arXiv:1704.00051. find our card
  6. David Crystal. 2004. The Cambridge encyclopedia of the English language. Ernst Klett Sprachen. find
  7. Abhishek Das, Satwik Kottur, José MF Moura, Stefan Lee, and Dhruv Batra. 2017. Learning cooperative visual dialog agents with deep reinforcement learning. arXiv preprint arXiv:1703.06585. — [arXiv:1703.06585](https://arxiv.org/abs/1703.06585) find