Skip to main content
QUICK REVIEW

[Paper Review] A domain-specific language for describing machine learning datasets

Joan Giner-Miguelez, Abel Gómez|arXiv (Cornell University)|Jul 5, 2022
Scientific Computing and Data ManagementDecision Sciences25 references4 citations
TL;DR

This paper introduces a domain-specific language (DSL) for formally describing machine learning datasets, capturing structure, data provenance, and social concerns such as bias and fairness. Implemented as a Visual Studio Code plugin, the DSL enables machine-readable dataset documentation, supporting automated analysis, dataset comparison, and improved reproducibility in ML research.

ABSTRACT

Datasets play a central role in the training and evaluation of machine learning (ML) models. But they are also the root cause of many undesired model behaviors, such as biased predictions. To overcome this situation, the ML community is proposing a data-centric cultural shift where data issues are given the attention they deserve, and more standard practices around the gathering and processing of datasets start to be discussed and established. So far, these proposals are mostly high-level guidelines described in natural language and, as such, they are difficult to formalize and apply to particular datasets. In this sense, and inspired by these proposals, we define a new domain-specific language (DSL) to precisely describe machine learning datasets in terms of their structure, data provenance, and social concerns. We believe this DSL will facilitate any ML initiative to leverage and benefit from this data-centric shift in ML (e.g., selecting the most appropriate dataset for a new project or better replicating other ML results). The DSL is implemented as a Visual Studio Code plugin, and it has been published under an open source license.

Motivation & Objective

  • Address the lack of standardized, formal documentation for machine learning datasets, which hinders reproducibility and fairness.
  • Overcome limitations of natural language-based documentation (e.g., Datasheets for Datasets) by enabling machine-processable dataset descriptions.
  • Support data-centric ML practices by formalizing dataset metadata, including social impact, quality metrics, and provenance.
  • Enable automated analysis, comparison, and selection of datasets using model-driven engineering techniques.
  • Facilitate the creation of a future dataset marketplace by enabling search and discovery based on structured dataset requirements.

Proposed method

  • Design a domain-specific language (DSL) to model datasets with structured syntax for data structure, provenance, quality metrics, and social concerns.
  • Implement the DSL as a Visual Studio Code plugin with full language support (syntax highlighting, validation, auto-completion).
  • Use model-driven engineering (MDE) principles to treat dataset descriptions as first-class models, enabling manipulation with existing MDE tools.
  • Support operations such as dataset comparison, quality validation, and documentation/code generation from DSL models.
  • Integrate uncertainty modeling to express uncertain data attributes or provenance information.
  • Plan for future extensions to describe ML models and the full ML pipeline, enabling end-to-end analysis of model behavior.

Experimental results

Research questions

  • RQ1How can a domain-specific language (DSL) formalize key aspects of machine learning datasets, including structure, provenance, and social impact?
  • RQ2To what extent can a DSL improve the completeness and machine-readability of dataset documentation compared to natural language guidelines?
  • RQ3What automated operations (e.g., comparison, search, validation) can be enabled by representing datasets as structured models?
  • RQ4How can uncertainty in dataset metadata (e.g., ambiguous provenance or quality) be formally expressed in the DSL?
  • RQ5What role can a DSL play in enabling a future dataset marketplace or improving reproducibility in ML research?

Key findings

  • The DSL successfully models core dataset dimensions—structure, provenance, quality metrics, and social concerns—beyond the scope of natural language documentation.
  • Manual analysis of existing datasets revealed significant gaps in documentation, such as missing statistical summaries and incomplete provenance, which the DSL can help identify and formalize.
  • The DSL enables machine-processable dataset descriptions, paving the way for automated validation, comparison, and search across datasets.
  • The implementation as a VS Code plugin provides practical support for dataset authors, integrating modern IDE features for better usability.
  • The DSL’s model-based foundation allows for future extensibility, including uncertainty modeling, usage rights, and integration with ML model descriptions.
  • Preliminary evaluation confirms that the DSL can highlight missing or inconsistent information in existing datasets, prompting improved documentation practices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.