Skip to main content
QUICK REVIEW

[Paper Review] Exploring Microtask Crowdsourcing as a Means of Fault Localization

C. Adriano, André van der Hoek|arXiv (Cornell University)|Dec 9, 2016
Mobile Crowdsensing and CrowdsourcingComputer Science83 references3 citations
TL;DR

This paper investigates microtask crowdsourcing as a novel approach to fault localization in software engineering. Using Amazon Mechanical Turk, the authors distributed microtasks to workers who assessed whether specific code fragments contained faults, demonstrating that crowds can effectively distinguish faulty from non-faulty code segments with high accuracy, though with limitations in coverage and cost.

ABSTRACT

Microtask crowdsourcing is the practice of breaking down an overarching task to be performed into numerous, small, and quick microtasks that are distributed to an unknown, large set of workers. Microtask crowdsourcing has shown potential in other disciplines, but with only a handful of approaches explored to date in software engineering, its potential in our field remains unclear. In this paper, we explore how microtask crowdsourcing might serve as a means of fault localization. We particularly take a first step in assessing whether a crowd of workers can correctly locate known faults in a few lines of code (code fragments) taken from different open source projects. Through Mechanical Turk, we collected the answers of hundreds of workers to a pre-determined set of template questions applied to the code fragments, with a replication factor of twenty answers per question. Our findings show that a crowd can correctly distinguish questions that cover lines of code that contain a fault from those that do not. We also show that various filters can be applied to identify the most effective subcrowds. Our findings also presented serious limitations in terms of the proportion of lines of code selected for inspection and the cost to collect answers. We describe the design of our experiment, discuss the results, and provide an extensive analysis of different filters and their effects in terms of speed, cost, and effectiveness. We conclude with a discussion of limitations and possible future experiments toward more full-fledged fault localization on a large scale involving more complex faults.

Motivation & Objective

  • To evaluate whether microtask crowdsourcing can effectively localize faults in small code fragments.
  • To assess the feasibility of using a large, anonymous crowd to distinguish faulty from non-faulty code lines.
  • To identify effective filtering strategies to improve crowd accuracy and efficiency in fault localization.
  • To analyze the trade-offs between cost, speed, and effectiveness in large-scale fault localization using crowds.

Proposed method

  • The authors extracted small code fragments from open-source projects, including known faults.
  • They designed standardized template questions to assess whether a given code fragment contained a fault.
  • Each question was submitted 20 times via Amazon Mechanical Turk to collect 20 worker responses per question.
  • Crowd consensus was computed using majority voting across responses to determine whether a fragment was considered faulty.
  • Various filtering techniques were applied to identify high-performing subcrowds based on response quality and consistency.
  • The study evaluated filters based on speed, cost, and effectiveness in identifying correct fault locations.

Experimental results

Research questions

  • RQ1Can a crowd of non-expert workers accurately identify whether a small code fragment contains a fault using microtasks?
  • RQ2How effective are different filtering strategies in improving the accuracy and efficiency of fault localization using crowds?
  • RQ3What is the trade-off between cost, speed, and accuracy when using microtask crowdsourcing for fault localization?
  • RQ4To what extent do workers correctly identify faulty code fragments compared to non-faulty ones?
  • RQ5Can consensus-based aggregation of crowd responses reliably distinguish faulty from non-faulty code segments?

Key findings

  • The crowd achieved high accuracy in distinguishing faulty from non-faulty code fragments, with consensus responses correctly identifying faults in a significant proportion of cases.
  • Filtering workers based on response consistency and reliability improved the accuracy of fault localization without significantly increasing cost.
  • Despite high accuracy in identifying faults, only a small proportion of code lines were selected for inspection, indicating limited code coverage.
  • The cost per question remained high due to the need for 20 responses per question, highlighting scalability challenges.
  • Subcrowds filtered by performance metrics showed improved effectiveness, suggesting that quality control mechanisms can enhance results.
  • The study revealed that while microtask crowdsourcing is viable for fault localization, it is currently limited by cost and low code coverage in practical deployment.

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.