Firenze: Model Evaluation Using Weak Signals

Bhavna Soman, Ali Torkamani, Michael J. Morais, Jeffrey Bickford, Baris CoskunarXiv 2022 · DOI

Introduction

In the domain of information security, machine learning models are often deployed into environments where high-quality, ground-truth labels are scarce. While malware classifiers or domain reputation systems may process millions of samples, only a minute fraction typically receive expert verification. Furthermore, existing labels are frequently biased toward known threats, leaving models vulnerable to novel, "in-the-wild" attacks that traditional metrics like Accuracy, Precision, and Recall fail to capture effectively.

Currently, security teams often rely on manual "vibe checks"—labor-intensive audits by domain experts—to determine if a new model's predictions are trustworthy. This creates a significant bottleneck in the model development lifecycle. Firenze is a novel framework designed to address this challenge by providing a statistically rigorous method for pairwise, comparative model evaluation using weak signals and expert intuition.

The Firenze Framework

Firenze shifts the focus from absolute performance metrics to comparative evaluation between a "Test Model" and an existing "Reference Model." The framework is built upon three primary pillars:

  1. Markers: Instead of relying on ground-truth labels, Firenze utilizes "markers"—simple, scalable functions that encode domain expertise into weak signals. For instance, a marker might identify if a file is "packed" (a common malware obfuscation technique) or if a domain name exhibits unusual popularity. While individual markers are not definitive, they provide a valuable semantic signal when aggregated.
  2. Regions of Interest (ROI): Rather than evaluating the entire dataset, Firenze focuses on the "extremes" where model decisions are most critical. These include the Top-K (highest confidence malicious), Bottom-K (highest confidence benign), and Movers (samples where the Test Model's ranking differs significantly from the Reference Model).
  3. Statistical Hypothesis Testing: To distinguish genuine performance improvements from random noise, Firenze applies Welch’s t-tests to compare the average marker scores between models within the ROIs. This allows teams to determine with statistical confidence whether a model update is truly beneficial.
Overview of the Firenze framework, illustrating the integration of expert markers, region selection, and statistical testing.

Experimental Validation

The authors validated Firenze across three distinct scenarios to ensure robustness:

  • Simulated Data: A controlled environment demonstrated that Firenze correctly identifies superior models even when markers are noisy and training labels are inaccurate.
  • EMBER Dataset: Using a large open-source dataset of Windows malware, the authors simulated "concept drift" by training on 2017 data and evaluating on 2018 data.
  • Passive DNS Data: A massive real-world dataset of anonymized domain queries was used to evaluate production-grade domain reputation models.

Key Results and Insights

Firenze provides a "black-box" advantage, as it evaluates models based solely on output scores, allowing for the comparison of disparate architectures (e.g., a deep neural network vs. a gradient-boosted tree).

A critical finding of the study was that standard metrics like Area Under the Curve (AUC) can be deceptive. In the domain reputation case study, a new model exhibited a higher AUC (0.985 vs. 0.983) than the reference model. However, Firenze revealed that this new model actually failed the Top-K test ($p < 10^{-16}$), meaning it was significantly worse at identifying the most dangerous malicious domains.

Statistical results for the domain reputation case study, showing significant p-values that highlight performance discrepancies hidden by AUC.

As shown in the table above, while the Test Model succeeded in the Bottom-K region (better identification of benign domains), its failure in the Top-K region indicated it was not ready for production. This "aha" moment demonstrated Firenze's ability to prevent the deployment of models that look better on paper but perform worse in critical real-world scenarios.

Conclusion and Future Work

Firenze bridges the semantic gap between raw model scores and expert intuition. While the framework's effectiveness is dependent on the quality of the markers designed by domain experts, it offers a scalable, interpretable alternative to manual audits. Future research will explore more sophisticated marker combination methods and the application of Firenze to other label-poor domains beyond cybersecurity.

Summary updated

BibTeX
@misc{soman2022firenze,
  author = {Bhavna Soman and Ali Torkamani and Michael J. Morais and Jeffrey Bickford and Baris Coskun},
  title = {{Firenze: Model Evaluation Using Weak Signals}},
  year = {2022},
  eprint = {2207.00827},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.00827},
}
Figure