The slurk Interaction Server Framework: Better Data for Better Dialog Models

Jana Götze, Maike Paetzel-Prüsmann, Wencke Liermann, Tim Diekmann, David Schlangen

Introduction

Building robust dialog models requires massive amounts of high-quality data, yet collecting such data is notoriously difficult. Unlike standard crowdsourcing tasks like image labeling, dialog is inherently synchronous, requiring multiple participants to coordinate in real-time. Existing tools often struggle with this coordination or are too rigid to support multimodal contexts, such as shared images or interactive elements. Consequently, researchers frequently build custom, "one-off" servers for every new experiment.

The slurk framework addresses these challenges as a lightweight, modular interaction server designed to simplify the collection of high-quality multimodal dialog data. By providing a flexible environment for human-human and human-bot interaction—complete with text, audio, video, and interactive visual contexts—it enables researchers to move beyond simple chat logs to complex, situated conversations.

System Architecture

slurk is built on a Python backend using Flask-SocketIO, paired with a customizable HTML/JavaScript frontend. Its architecture is centered around five core concepts that provide a "Swiss Army Knife" for dialog research:

  • Rooms: Virtual spaces where interactions occur.
  • Users: Both humans and software "bots" are treated as users with specific permissions.
  • Tasks: Definitions of how a room should behave and the required number of users.
  • Tokens: Secure strings encoding user permissions and task assignments.
  • Layouts: JSON-defined configurations determining the user interface (e.g., chat windows, image displays, or interactive tools).
The slurk main architecture showing the flow between the host server, bots, and human participants.

A standout feature is the Concierge Bot, which acts as an automated moderator. It monitors a "waiting room" and, once enough participants arrive, creates a new task room and moves them into it, effectively solving the coordination headache of real-time crowdsourcing.

Bots as Infrastructure and Channel Control

In slurk, bots are more than just conversation partners; they are integral to the experiment's logic. They can act as "hidden agents" that modify messages, enforce turn-taking, or manipulate the visual environment based on user actions. This allows for fine-grained control over the interaction channel. Researchers can implement "live-typing" (seeing characters as they are typed) or "push-to-talk" regimes to study how different communication constraints affect dialog.

Furthermore, the permission system facilitates the creation of "asymmetric" information tasks. For example, one participant might see a map while the other only sees a text description, forcing them to collaborate to solve a problem. This capability is crucial for studying referential communication and collaborative problem-solving.

Multimodality and Use Cases

The framework's versatility is demonstrated through several diverse tasks and datasets:

  • DiTo Task: A visual difference detection task using images from the CLEVR dataset.
  • MeetUp! Corpus: A navigation task where users move through a network of rooms.
  • RDG-Image: A referential communication task.
An example of the DiTo task interface, featuring a chat area on the left and a visual display area on the right.

slurk supports deep multimodality, including integration with OpenVidu for seamless live video and audio streaming within the chat interface. The UI can be split into a "chat area" and a "display area," which can host anything from static images to interactive games like Pentomino. Additionally, the framework integrates with Amazon Mechanical Turk (AMT), providing a mechanism to issue unique completion codes only after a dialog task is finished.

Conclusion

While slurk significantly lowers the barrier to collecting complex dialog data, challenges remain regarding data quality from crowdworkers and the privacy implications of video data collection. Future work includes expanding the framework to mobile-friendly platforms like Telegram and developing more sophisticated bots for collaborative manipulation tasks. By providing an open-source, extensible platform, slurk empowers the research community to generate the rich, situated data necessary for the next generation of dialog models.

Summary updated

BibTeX
@inproceedings{gotze2022slurk,
  author = {Jana Götze and Maike Paetzel-Prüsmann and Wencke Liermann and Tim Diekmann and David Schlangen},
  title = {{The slurk Interaction Server Framework: Better Data for Better Dialog Models}},
  booktitle = {LREC},
  year = {2022},
  url = {https://openreview.net/forum?id=NHAn21OJOw},
}
Figure