The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests References Docs 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

Large language models drastically reduce false alarms in enterprise static-analysis: hybrid LLM+SAT methods remove 94–98% of false positives in Tencent’s advertising codebase and cut per-alarm review from 10–20 minutes to seconds at negligible cost. Results are promising for developer productivity but are drawn from one company, one customized tool and three bug types, so broader applicability remains to be tested.

Reducing False Positives in Static Bug Detection with LLMs: An Empirical Study in Industry
Xueying Du, Jiayi Feng, Yi Zou, Wei Xu, Jie Ma, Wei Zhang, Sisi Liu, Xin Peng, Yiling Lou · January 26, 2026
arxiv correlational medium evidence 8/10 relevance Full text usable extracted full text Source PDF

Structured author observations

Linked only from stored provider relations; the raw author line above is never matched by name.

Arxiv

Latest observation:

  1. Xueying Du unresolved corpus identity
  2. Jiayi Feng unresolved corpus identity
  3. Yi Zou unresolved corpus identity
  4. Wei Xu unresolved corpus identity
  5. Jie Ma unresolved corpus identity
  6. Wei Zhang unresolved corpus identity
  7. Sisi Liu unresolved corpus identity
  8. Xin Peng unresolved corpus identity
  9. Yiling Lou unresolved corpus identity

Semantic Scholar

Latest observation:

  1. Xueying Du provider ID
  2. Jiayi Feng provider ID
  3. Yi Zou provider ID
  4. Wei Xu provider ID
  5. Jie Ma provider ID
  6. Wei Zhang provider ID
  7. Sisi Liu provider ID
  8. Xin Peng provider ID
  9. Yiling Lou provider ID
In Tencent's enterprise codebase, hybrid LLM-plus-static-analysis methods eliminated 94–98% of static-analysis false positives and cut per-alarm review time and monetary cost by orders of magnitude compared with manual inspection.

Citation observations

Cumulative provider counts captured on specific dates; providers are never combined.

Static analysis tools (SATs) are widely adopted in both academia and industry for improving software quality, yet their practical use is often hindered by high false positive rates, especially in large-scale enterprise systems. These false alarms demand substantial manual inspection, creating severe inefficiencies in industrial code review. While recent work has demonstrated the potential of large language models (LLMs) for false alarm reduction on open-source benchmarks, their effectiveness in real-world enterprise settings remains unclear. To bridge this gap, we conduct the first comprehensive empirical study of diverse LLM-based false alarm reduction techniques in an industrial context at Tencent, one of the largest IT companies in China. Using data from Tencent's enterprise-customized SAT on its large-scale Advertising and Marketing Services software, we construct a dataset of 433 alarms (328 false positives, 105 true positives) covering three common bug types. Through interviewing developers and analyzing the data, our results highlight the prevalence of false positives, which wastes substantial manual effort (e.g., 10-20 minutes of manual inspection per alarm). Meanwhile, our results show the huge potential of LLMs for reducing false alarms in industrial settings (e.g., hybrid techniques of LLM and static analysis eliminate 94-98% of false positives with high recall). Furthermore, LLM-based techniques are cost-effective, with per-alarm costs as low as 2.1-109.5 seconds and $0.0011-$0.12, representing orders-of-magnitude savings compared to manual review. Finally, our case analysis further identifies key limitations of LLM-based false alarm reduction in industrial settings.

Summary

Main Finding

Large language models (LLMs), especially when combined with static-analysis-derived information (hybrid approaches), can dramatically reduce false positives from enterprise static analysis: in a Tencent production dataset of 433 alarms, hybrid LLM+static methods eliminated roughly 94–98% of false positives while maintaining high recall, at very low per-alarm time and monetary cost (2.1–109.5 seconds and $0.0011–$0.12 per alarm), producing orders-of-magnitude savings over manual review.

Key Points

  • Dataset and prevalence
    • Real-world enterprise dataset from Tencent’s Advertising & Marketing Services: 433 alarms (328 false positives, 105 true positives) across three bug types.
    • Bug-type breakdown: NPD (Null Pointer Deref) 136 total (107 FP / 29 TP), DBZ (Divide-by-Zero) 158 (139 FP / 19 TP), OOB (Out-of-Bounds) 139 (82 FP / 57 TP).
    • Overall false-positive rate ≈ 76%; manual inspection averages 10–20 minutes per alarm.
  • Techniques evaluated
    • Wide range: baseline supervised learning models, vanilla LLMs, advanced prompting (few-shot, chain-of-thought, etc.), and hybrid approaches that feed static-analysis outputs/path constraints into LLM reasoning (e.g., LLMPFA-like methods).
  • Performance highlights
    • Hybrid LLM+static-analysis methods eliminated 94–98% of false positives across backbone LLMs while maintaining high recall (i.e., few missed true bugs).
    • LLM-based techniques outperform traditional supervised learning approaches in this industrial setting (which often lack large labeled corpora).
    • Effectiveness varies by bug type: best results on DBZ, worst on NPD.
  • Costs
    • Time per alarm for LLM-based processing: 2.1–109.5 seconds (depending on method and model).
    • Monetary cost per alarm: $0.0011–$0.12 (depending on model / provider and prompt size).
    • These costs are tiny compared to manual-review labor (10–20 minutes), implying large per-alarm and aggregate savings.
  • Limitations observed
    • LLMs struggle with very long code contexts, complex cascaded constraints, and deep semantic reasoning; these cause remaining false positives/false negatives.
    • Dataset confidentiality prevented public release; replicability is supported via provided methods/replication package.

Data & Methods

  • Data collection
    • Source: Tencent’s in-house static analyzer BkCheck applied to AMS codebases (Sept 2024 – Jun 2025).
    • Workflow: automated scanning → two-round manual review (developer review + reviewer validation) → extraction and filtering of bug-report forms.
    • Filtering removed deprecated code, incomplete contexts, unresolved decisions, and duplicates.
  • Dataset composition
    • 433 validated instances: 328 false positives, 105 true positives; three prioritized categories (NPD, OOB, DBZ) covering 86% of warnings.
  • Evaluated methods
    • Supervised learning baselines (CNN, Transformer classifiers trained on warning+code features).
    • LLM approaches: direct classification prompts, few-shot and chain-of-thought prompts, retrieval/RAG-style augmentation, and hybrid methods that encode static-analysis path constraints or summarized contexts into LLM prompts.
  • Metrics and evaluation
    • Primary metrics: false-positive elimination rate (reduction), recall on true positives, per-alarm latency and monetary cost.
    • Qualitative case analysis to identify failure modes (long context, chained constraints, semantic gaps).

Implications for AI Economics

  • Labor cost reduction and ROI
    • Replacing or pre-filtering manual review (10–20 minutes per alarm) with LLM-based triage yields large labor savings. Example: at $50/hr developer cost, 10 minutes ≈ $8.3 saved vs. LLM cost ≤ $0.12 → ~69x cost ratio; with senior rates the multiple is larger. Even conservative estimates show substantial per-alarm ROI.
  • Scalability & marginal costs
    • Very low per-alarm monetary and time costs imply scalable deployment across large codebases and frequent CI scans; marginal cost of handling extra alarms is minimal relative to manual review.
  • Allocation of human capital
    • Developers/reviewers can be reallocated from routine alarm triage to higher-value tasks (complex reviews, fixes, architectural work), boosting productivity and potentially accelerating delivery cycles.
  • Investment trade-offs
    • Short-term: integrate LLM prompts/hybrid pipelines into CI to realize quick savings.
    • Medium-term: consider private/on-prem LLMs for data privacy and predictable costs—this entails infrastructure, fine-tuning, and maintenance expenses that must be weighed against recurring API costs and privacy risk.
  • Risk and governance costs
    • False negatives (missed real bugs) have asymmetric downstream costs; enterprises must preserve high recall and invest in monitoring, human-in-the-loop fail-safes, and coverage testing.
    • Legal/privacy/regulatory considerations when sending proprietary code to third-party LLM providers may necessitate on-premises models, changing the cost calculus.
  • Research and product priorities
    • Economics favors hybrid solutions (static-analysis + LLM) that both improve precision and limit model hallucination risks.
    • Prioritize research/product work on handling long contexts and complex constraint reasoning to capture remaining economic upside from harder cases.

Suggested practical next steps for firms considering adoption: pilot hybrid LLM triage on a high-volume subsystem, track false-negative incidents closely, estimate developer-hour savings to compute payback period, and evaluate whether on-prem or vendor LLMs best meet privacy and total-cost objectives.

Assessment

Paper Typecorrelational Evidence Strengthmedium — Uses real-world industrial data and developer labels from Tencent and reports large reductions in false positives and time/cost savings, providing credible empirical evidence of practical impact; however, the study is observational, based on a single company, a single enterprise-customized SAT, a modest sample (433 alarms) covering only three bug types, and lacks randomized or longitudinal deployment to establish broader causal claims. Methods Rigormedium — Combines quantitative evaluation, developer interviews, and cost/time accounting, and reports clear metrics (precision/recall, per-alarm time and dollar costs); nevertheless, the dataset is relatively small, potentially subject to selection and labeling bias, confined to one codebase and SAT configuration, and details on model variants, prompting, and validation procedures are not presented as a pre-registered experiment. Sample433 static-analysis alarms from Tencent's enterprise-customized SAT applied to a large Advertising and Marketing Services software codebase, labeled by developers (328 false positives, 105 true positives), covering three common bug types; supplemented by developer interviews and time-cost estimates for manual inspection and LLM inference. Themesproductivity human_ai_collab GeneralizabilitySingle firm (Tencent) and single application domain (advertising/marketing software) limit external validity, Single enterprise-customized SAT — results may not generalize to other tools or rule sets, Only three bug types studied — performance may differ for other vulnerability/bug categories, Modest sample size (433 alarms) may not capture rare cases or diverse code patterns, LLM model choice, prompts, latency/costs and integration details may vary across organizations, Labels and time estimates rely on developer assessments that could vary by team or company practices

Claims (10)

ClaimDirectionOutcomeConfidence & EvidenceDetails
Static analysis tools (SATs) are widely adopted in both academia and industry for improving software quality. Adoption Rate positive adoption of SATs
Reading fidelity high
Study strength low
not reported
0.15
Practical use [of SATs] is often hindered by high false positive rates, especially in large-scale enterprise systems. Error Rate negative false positive rate of SATs
Reading fidelity high
Study strength medium
not reported
0.3
These false alarms demand substantial manual inspection, creating severe inefficiencies in industrial code review. Task Completion Time negative manual inspection time per alarm
Reading fidelity high
Study strength medium
10-20 minutes of manual inspection per alarm
0.3
Recent work has demonstrated the potential of large language models (LLMs) for false alarm reduction on open-source benchmarks. Error Rate positive false alarm reduction by LLMs on benchmarks
Reading fidelity high
Study strength medium
not reported
0.3
This paper conducts the first comprehensive empirical study of diverse LLM-based false alarm reduction techniques in an industrial context at Tencent. Other neutral evaluation of LLM-based false alarm reduction techniques in industry
Reading fidelity high
Study strength medium
n=433
0.3
We construct a dataset of 433 alarms (328 false positives, 105 true positives) covering three common bug types. Other neutral alarm labels (false positive vs true positive) and bug-type coverage
Reading fidelity high
Study strength high
n=433
328 false positives, 105 true positives
0.5
Our results highlight the prevalence of false positives, which wastes substantial manual effort (e.g., 10-20 minutes of manual inspection per alarm). Task Completion Time negative manual inspection time per alarm and prevalence of false positives
Reading fidelity high
Study strength medium
n=433
10-20 minutes of manual inspection per alarm
0.3
Hybrid techniques of LLM and static analysis eliminate 94-98% of false positives with high recall. Error Rate positive fraction of false positives eliminated (false alarm reduction) and recall
Reading fidelity high
Study strength medium
n=328
94-98% of false positives eliminated
0.3
LLM-based techniques are cost-effective, with per-alarm costs as low as 2.1-109.5 seconds and $0.0011-$0.12, representing orders-of-magnitude savings compared to manual review. Organizational Efficiency positive computational/time cost and monetary cost per alarm; relative saving vs manual review
Reading fidelity high
Study strength medium
n=433
2.1-109.5 seconds and $0.0011-$0.12 per alarm
0.3
Case analysis further identifies key limitations of LLM-based false alarm reduction in industrial settings. Other mixed limitations / failure modes of LLM-based approaches in production
Reading fidelity high
Study strength medium
not reported
0.3

Notes