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.pymodule, 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, andmodel 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.
Cited by
- Vision-and-Language Navigation: Interpreting visually-grounded navigation instructions in real environments
- The Second Conversational Intelligence Challenge (ConvAI2)
- Queens are Powerful too: Mitigating Gender Bias in Dialogue Generation
- AllenNLP: A Deep Semantic Natural Language Processing Platform
- OpenDialKG: Explainable Conversational Reasoning with Attention-based Walks over Knowledge Graphs
- What Can We Learn from Collective Human Opinions on Natural Language Inference Data?
- fairseq: A Fast, Extensible Toolkit for Sequence Modeling
- KILT: a Benchmark for Knowledge Intensive Language Tasks
- PragmatiCQA: A Dataset for Pragmatic Question Answering in Conversations
- Recipes for Building an Open-Domain Chatbot
- What makes a good conversation? How controllable attributes affect human judgments
- Retrieval Augmentation Reduces Hallucination in Conversation
- BlenderBot 3: a deployed conversational agent that continually learns to responsibly engage
- Can You Put it All Together: Evaluating Conversational Agents' Ability to Blend Skills
- Persuasion for Good: Towards a Personalized Persuasive Dialogue System for Social Good
- Dialogue Natural Language Inference
- HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering
- DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generation
Cite
@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
- 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
- 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
- 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
- Antoine Bordes and Jason Weston. 2016. Learning end-to-end goal-oriented dialog. arXiv preprint arXiv:1605.07683. find
- Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. 2017. Reading wikipedia to answer open-domain questions. arXiv:1704.00051. find our card
- David Crystal. 2004. The Cambridge encyclopedia of the English language. Ernst Klett Sprachen. find
- 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