Redefining crowdsourced test report prioritization: An innovative approach with large language model

Yuchen Ling, Shengcheng Yu, Chunrong Fang, Guobin Pan, Jun Wang, Jia Liu

TL;DR

Researchers have developed LLMPrior, a new framework that uses Large Language Models (LLMs) to automatically prioritize crowdsourced test reports. By combining semantic clustering with a custom selection algorithm, LLMPrior outperforms state-of-the-art methods by nearly 13%, helping developers find unique bugs much faster in a sea of redundant data.

What Problem Does This Paper Address?

Crowdsourced testing is a double-edged sword. On one hand, it allows mobile app developers to test their software across thousands of real-world devices and environments. On the other hand, it generates a mountain of paperwork: studies show that roughly 82% of crowdsourced test reports are redundant.

Reviewing these reports manually is a massive bottleneck. Traditional automated approaches try to prioritize reports so that "unique" bugs appear at the top of the list, but they often rely on shallow NLP techniques (like Word2Vec or BERT) that struggle with the nuances of human language. If two testers describe the same crash using entirely different words, older models might miss the connection. Furthermore, simply asking an LLM to "rank these 500 reports" fails because of token limits and the model's tendency to lose track of logic over long sequences.

Methods

The authors introduce LLMPrior, which breaks the prioritization task into two distinct stages:

  1. Semantic Clustering (The LLM Phase): Instead of asking the LLM to rank reports directly, they use GPT-4-Turbo to cluster them. They employ Zero-shot Chain-of-Thought (CoT) prompting, instructing the model to group reports based on "fine-grained" bug types. The LLM outputs a hierarchical tree structure where reports are grouped by the specific functionality they affect.
  2. Recurrent Selection (The Algorithmic Phase): To turn these clusters into a prioritized list, the authors use a deterministic Recurrent Selection Algorithm. The algorithm "walks" the cluster tree, picking one report from each cluster in a round-robin fashion. This ensures that the final sequence is diverse—developers see a report for a "Login Bug," then a "Display Bug," then a "Payment Bug," rather than seeing ten variations of the same login crash in a row.

This hybrid approach leverages the LLM's "human-like" understanding of text while using a stable algorithm to handle the final ordering, bypassing the "randomness" and token limits of raw LLM output.

Datasets

The study utilized a dataset of 1,417 crowdsourced test reports collected from 20 diverse mobile applications (ranging from finance apps like GnuCash to social tools like Meituan). The data was sourced from MoocTest, a major crowdsourced testing platform in China. Each report includes a textual description of the bug and the steps taken to trigger it.

Key Insights and Ideas

  • Semantics Over Syntax: The "aha moment" is that LLMs can identify that "The list is blank" and "No content appears after clicking" refer to the same bug, even if they share zero keywords.
  • The "Direct Ranking" Trap: The authors found that asking an LLM to prioritize reports directly (DirectLLMPrior) leads to inconsistent results and "incomplete responses" because the model runs out of memory (tokens) or gets confused by the sheer volume of data.
  • Clustering as a Buffer: By using the LLM only for categorization and a traditional algorithm for selection, the system becomes much more robust and "token-efficient" (using fewer resources for better results).
  • Hierarchical Granularity: The use of a tree structure allows the model to distinguish between broad categories (e.g., "Functional Issues") and specific bugs (e.g., "Invitation Link Timeout"), preventing the prioritization from becoming too lopsided.

Key Results

The researchers used the Average Percentage of Fault Detected (APFD) metric, which measures how quickly a technique finds all unique bugs.

  • Superiority: LLMPrior achieved an average APFD of 0.8877, outperforming the previous state-of-the-art (DeepPrior) by 12.77%.
  • Vs. Traditional NLP: It beat BERT-based and XLNet-based prioritization by 11.59% and 21.02%, respectively.
  • Efficiency: Compared to a "Direct LLM" approach, LLMPrior saved an average of 53.3 tokens per report, making it more cost-effective for large-scale industrial use.
  • Stability: Qualitative analysis (box plots) showed that LLMPrior produces much more consistent results across multiple runs compared to simpler LLM prompting methods.

Limitations and Future Work

  • Computational Overhead: LLMPrior takes about 0.2 seconds per report. While fast, this is nearly twice as long as traditional NLP models that don't require LLM API calls.
  • Cost: While token-efficient, using GPT-4-Turbo still incurs a cost (estimated at $0.0003 per report), which might add up for massive projects.
  • Text-Only Focus: The current version ignores screenshots, which are common in test reports. The authors suggest that moving to Multimodal LLMs (like GPT-4V) to analyze images alongside text is a logical next step.
  • Language Bias: The dataset was exclusively in Chinese. While LLMs are multilingual, the framework's performance on other languages remains to be formally tested.

Summary updated

BibTeX
@article{ling2025redefining,
  author = {Yuchen Ling and Shengcheng Yu and Chunrong Fang and Guobin Pan and Jun Wang and Jia Liu},
  title = {{Redefining crowdsourced test report prioritization: An innovative approach with large language model}},
  journal = {Inf. Softw. Technol.},
  year = {2025},
  doi = {10.1016/j.infsof.2024.107629},
}
Figure