Prescriptive and Descriptive Approaches to Machine-Learning Transparency

David Adkins, Bilal Alsallakh, Adeel Cheema, Narine Kokhlikyan, Emily McReynolds, Pushkar Mishra, Chavez Procope, Jeremy Sawruk, Erin Wang, Polina Zvyagina · DOI

Abstract

As machine learning (ML) moves from research labs to production environments, the need for transparency has never been greater. However, current documentation standards—such as Model Cards and Datasheets for Datasets—primarily focus on "descriptive" transparency, detailing the contents and performance of specific artifacts. This paper argues for a shift toward "prescriptive" documentation. We introduce Method Cards, a standardized framework designed to capture the "recipes" and engineering nuances of ML techniques. By documenting the practical "how-to" alongside the descriptive "what," Method Cards aim to bridge the gap between high-level research and robust, reproducible engineering.

Introduction: The Descriptive Gap

In the current ML ecosystem, transparency is often treated as a post-hoc reporting requirement. Tools like Model Cards act as nutrition labels, providing a snapshot of a specific model's accuracy, training data, and intended use. While these are vital for accountability, they are often insufficient for the ML engineer tasked with implementing or adapting a method.

Knowing a model's top-1 accuracy does not help an engineer understand why it fails on specific edge cases or how to mitigate "blind spots" introduced by default framework settings. There is a significant amount of "tribal knowledge"—the subtle implementation details and troubleshooting steps—that rarely makes it into formal documentation. This paper identifies the need for prescriptive documentation: the equivalent of a car repair manual or a cookbook that provides actionable advice on reproducing results and avoiding common pitfalls.

The Method Card Framework

The authors propose the Method Card as a documentation template to guide developers through the entire lifecycle of an ML method, such as a specific architecture (e.g., SSD) or a technique (e.g., Data Augmentation). Unlike a Model Card, which describes a single trained instance, a Method Card describes the underlying algorithm and the best practices for its use.

The proposed structure is divided into several critical domains:

  • Safety and Troubleshooting: This section identifies common failure modes and inappropriate use cases. For instance, a specific object detection method might be documented as unreliable for low-light conditions.
  • Data Preparation: This covers the specifics of data handling, including normalization requirements, batching schemes, and necessary augmentations that are often omitted from high-level summaries.
  • Modelling and Optimization: This provides guidance on hyperparameter sensitivity, initialization strategies, and hardware-specific considerations like weight quantization or pruning.
  • Interpretability and Robustness: This section suggests which feature attribution methods are most compatible with the algorithm and how to effectively detect data drift in production.

Case Study: Traffic Light Detection

To demonstrate the utility of the framework, the authors developed a Method Card for a traffic light detection system using a Single-Shot Detector (SSD) and the Bosch Small Traffic Light Dataset (BSTLD). This example highlights how prescriptive documentation surfaces technical nuances that are often learned only through trial and error:

  1. Resolution Constraints: The card specifies a precise input resolution formula ($a \cdot 2^d + 1$) required to avoid asymmetric filters and aliasing artifacts.
  2. Small Object Sensitivity: It explicitly warns that SSDs struggle with distant traffic lights and suggests specific data augmentation strategies to improve performance on small objects.
  3. Class Confusion: The documentation notes that red traffic lights are frequently confused with vehicle tail lights, advising engineers to use specific masking or temporal consistency checks to mitigate false positives.

Discussion: Documentation as Developer Experience (DX)

The shift toward prescriptive documentation represents a move toward treating documentation as a core component of Developer Experience (DX). By providing clear "recipes," Method Cards can lower the barrier for onboarding new engineers and reduce implementation errors.

Furthermore, the paper suggests a hierarchical approach to documentation. Methods can inherit properties; for example, a specific object detection Method Card can inherit the general "best practices" and known "gotchas" of convolutional layers. This creates a structured, reusable knowledge base that evolves with the field.

Limitations and Future Work

While Method Cards offer a path toward better engineering, they introduce a documentation burden. The authors acknowledge that creating these cards requires significant effort and suggest that the community could collectively curate cards for popular methods, similar to existing catalogs like Papers With Code.

Future work should focus on integrating these cards into active development tools. This could include generating code templates directly from Method Cards or developing static analysis tools that flag implementation choices that contradict the "prescriptive" guidance in the card.

Conclusion

Transparency in machine learning must go beyond describing the final product. By adopting prescriptive documentation through Method Cards, the ML community can better capture the practical wisdom required to build reliable, reproducible, and safe systems. Moving from "nutrition labels" to "recipes" is a necessary step in maturing ML from a research craft into a rigorous engineering discipline.

Summary updated

BibTeX
@inproceedings{adkins2022prescriptive,
  author = {David Adkins and Bilal Alsallakh and Adeel Cheema and Narine Kokhlikyan and Emily McReynolds and Pushkar Mishra and Chavez Procope and Jeremy Sawruk and Erin Wang and Polina Zvyagina},
  title = {{Prescriptive and Descriptive Approaches to Machine-Learning Transparency}},
  booktitle = {CHI Extended Abstracts},
  year = {2022},
  doi = {10.1145/3491101.3519724},
}
Figure