arXiv:2608.22460cs.LGAug 2026

Manuscript Offprint

arXiv:2608.22460

MASH-Bench: Diagnosing Cross-Source Failure in Mass-Shooting Risk Classification

Neha Sharma, Ritesh Sharma

Neha Sharma

Department of Computer Science

Virginia Commonwealth University

Richmond, Virginia, United States

sharman20@vcu.edu

Ritesh Sharma

Department of Electrical and Computer Engineering

Virginia Commonwealth University

Richmond, Virginia, United States

sharmar33@vcu.edu

Abstract—Public mass-shooting databases differ substantially in coverage, feature availability, and reporting practices, creating challenges for machine-learning models that must generalize across data sources. We introduce MASH-Bench, a harmonized benchmark of 6,968 incidents from four U.S. databases—Kaggle, Mother Jones, Stanford MSA, and the Gun Violence Archive (GVA)—and evaluate cross-source risk classification using leave-one-dataset-out (LODO) evaluation. Random Forest, XGBoost, and LightGBM achieve VeryHigh-risk recall of 0.68–0.89 on the curated sources but generalize poorly to GVA, where mean recall drops to 0.20 and precision to 0.0004. To investigate the source of this degradation, we conduct a controlled feature-masking ablation that removes the five features unavailable in GVA from the curated sources. The resulting recall collapse to zero provides evidence that feature completeness is a major contributor to the observed cross-source failure. We further evaluate three domain-adaptation approaches: DANN, CORAL, and importance weighting. DANN improves VeryHigh-risk recall on GVA by 0.282 (95% CI [0.11, 0.47], p = 0.003), although precision remains low, whereas CORAL and importance weighting yield zero recall. Oracle prior-shift recalibration likewise fails to recover VeryHigh-risk predictions, indicating that label-side correction alone is insufficient under the observed feature deficiencies. A per-group audit further identifies substantial disparities associated with media-attributed mental-health labels. Overall, these results indicate that, in MASH-Bench, cross-source generalization is constrained more by feature completeness and label prevalence than by classifier choice. The benchmark provides a controlled setting for diagnosing these effects in cross-source risk classification.

Index Terms—cross-dataset generalization, benchmark evaluation, domain adaptation, data harmonization, algorithmic fairness

I. INTRODUCTION

Machine learning studies based on public data increasingly rely on multiple databases that differ substantially in coverage, inclusion criteria, and reporting practices. Mass-shooting research provides a concrete example of this cross-source heterogeneity. Journalistic sources typically apply editorial criteria when selecting incidents, academic databases may impose thresholds based on fatalities or other incident characteristics, and open-source repositories aggregate records from law-enforcement, media, and other public sources. These differences can support valid within-source analyses while creating uncertainty about whether models trained on one source generalize to another. Despite the growing use of machine learning for risk classification, cross-source generalization has received limited systematic evaluation.

Prior work by Sharma et al. [1] investigated cross-source mass-shooting risk classification across three curated sources—Kaggle, Mother Jones, and Stanford MSA—covering 806 incidents. That study established a common representation and found no statistically significant difference in cross-source performance among the evaluated feature configurations and stratification strategies. However, the strongest configuration was partially influenced by a distributional artifact in the Mother Jones data. Two limitations motivated the present study. First, the relatively small pooled sample limited the ability to distinguish systematic differences between sources from sampling variability. Second, the statistical analysis did not account for dependence among the 27 evaluated configurations, limiting the reliability of inference for the feature-set comparison.

We address these limitations by introducing MASH-Bench, an expanded benchmark that adds the Gun Violence Archive (GVA) [2] to the three curated sources, yielding 6,968 incidents and substantially expanding coverage of the post-2013 period. The expanded benchmark reveals a pronounced cross-source generalization gap. Models trained on the three curated sources achieve VeryHigh-risk recall between 0.68 and 0.89 under leave-one-dataset-out (LODO) evaluation, but performance degrades substantially when transferring to GVA, where mean VeryHigh-risk recall is 0.20 and precision is 0.0004. Rather than treating poor transfer as simply a difference between classifiers, we use controlled experiments to diagnose the underlying source of failure. A feature-masking ablation (Section VI-A) provides evidence for the feature-completeness mechanism: masking the five features GVA lacks on curated sources collapses their recall to zero, reproducing the qualitative failure pattern observed on GVA. Among the evaluated domain-adaptation methods, only domain-adversarial neural network (DANN) training produces a statistically significant improvement in GVA recall, whereas covariance alignment (CORAL) and importance weighting do not. Oracle prior-shift recalibration likewise fails to recover the missing signal, indicating that label-side correction alone is insufficient when the target feature representation is incomplete.

The main contributions of this work are as follows:

• MASH-Bench: We introduce a harmonized benchmark spanning four public U.S. mass-shooting databases, comprising 6,968 incidents and a common 12-variable schema for cross-source risk classification.

• Cross-source generalization analysis and mechanism ablation: We evaluate Random Forest, XGBoost, and LightGBM under LODO evaluation and show that models achieving strong recall on the curated sources (0.68–0.89) generalize poorly to GVA. A controlled feature-masking ablation provides evidence that feature completeness is a primary contributor: masking the five features GVA lacks collapses curated-source recall to zero.

• Domain adaptation analysis: We compare DANN, CORAL, and importance weighting under a common cross-source protocol and characterize their benefits and failure modes under feature heterogeneity.

• Inference under configuration dependence: We use clustered bootstrap confidence intervals and cluster-robust regression to account for dependence among experimental configurations, providing dependence-aware inference for the feature-set and domain-adaptation comparisons.

• Per-group audit: We examine VeryHigh-risk recall and precision across groups defined by media-attributed mental-health labels, identifying substantial differences in prediction behavior.

Overall, MASH-Bench is intended as a diagnostic benchmark rather than a deployable risk-prediction system. It provides a controlled setting for identifying whether cross-source failures arise from model capacity, feature availability, or distributional differences. The observed group-level disparities further underscore the need for careful evaluation before such models are considered for operational use.