[Paper Review] Data Motifs: A Lens Towards Fully Understanding Big Data and AI Workloads
This paper introduces 'data motifs'—abstract, reusable computational patterns that capture the core performance characteristics of big data and AI workloads. By identifying eight dominant motifs—Matrix, Sampling, Logic, Transform, Set, Graph, Sort, and Statistic—it enables systematic performance characterization and paves the way for domain-specific hardware and software co-design.
The complexity and diversity of big data and AI workloads make understanding them difficult and challenging. This paper proposes a new approach to modelling and characterizing big data and AI workloads. We consider each big data and AI workload as a pipeline of one or more classes of units of computation performed on different initial or intermediate data inputs. Each class of unit of computation captures the common requirements while being reasonably divorced from individual implementations, and hence we call it a data motif. For the first time, among a wide variety of big data and AI workloads, we identify eight data motifs that take up most of the run time of those workloads, including Matrix, Sampling, Logic, Transform, Set, Graph, Sort and Statistic. We implement the eight data motifs on different software stacks as the micro benchmarks of an open-source big data and AI benchmark suite ---BigDataBench 4.0 (publicly available from http://prof.ict.ac.cn/BigDataBench), and perform comprehensive characterization of those data motifs from perspective of data sizes, types, sources, and patterns as a lens towards fully understanding big data and AI workloads. We believe the eight data motifs are promising abstractions and tools for not only big data and AI benchmarking, but also domain-specific hardware and software co-design.
Motivation & Objective
- Address the challenge of understanding the complex and rapidly evolving nature of big data and AI workloads.
- Overcome limitations of existing benchmarks that are too large, complex, or not representative for simulation and performance analysis.
- Identify fundamental, time-consuming computational units common across diverse workloads to enable targeted optimization.
- Provide a foundation for domain-specific hardware and software co-design by abstracting performance-critical patterns.
- Enable reproducible, interpretable, and scalable performance characterization through micro-benchmarks derived from these motifs.
Proposed method
- Model big data and AI workloads as pipelines of one or more data motifs—abstract classes of computation independent of specific implementations.
- Identify eight dominant data motifs through analysis of runtime characteristics across diverse workloads: Matrix, Sampling, Logic, Transform, Set, Graph, Sort, and Statistic.
- Implement each motif on multiple software stacks (Hadoop, Spark, TensorFlow, Pthreads) to ensure portability and realism.
- Characterize motifs across data types (text, sequence), data sources, data sizes, and data access patterns to capture system and micro-architecture behavior.
- Use micro-benchmarks in BigDataBench 4.0 to measure performance across system-level metrics (CPU utilization, I/O, page faults) and micro-architectural bottlenecks.
- Analyze performance differences due to data representation (e.g., text vs. sequence) and their impact on memory, I/O, and CPU utilization.
Experimental results
Research questions
- RQ1What are the dominant, time-consuming computational patterns common across diverse big data and AI workloads?
- RQ2How do variations in data type, size, source, and access pattern affect the performance of these core computational units?
- RQ3To what extent can these abstracted motifs serve as effective building blocks for benchmarking and system co-design?
- RQ4How do system-level behaviors (e.g., I/O, memory access, page faults) differ between data motifs under varying data representations?
- RQ5What are the primary performance bottlenecks (e.g., memory, compute, I/O) in each data motif, and how do they vary with input characteristics?
Key findings
- The eight data motifs—Matrix, Sampling, Logic, Transform, Set, Graph, Sort, and Statistic—account for the majority of runtime in surveyed big data and AI workloads.
- Using sequence data type instead of text type can reduce performance by up to 7.29 times due to higher I/O bandwidth and memory access demands.
- Hadoop Sort and Spark Sort exhibit significant performance degradation due to major page faults, with 100–200 total page faults per run, impacting execution time.
- Sort with text format shows more severe backend memory-bound bottlenecks, indicating higher cache and memory latency compared to sequence format.
- The same data size produces vastly different I/O bandwidth requirements depending on data format, with sequence format demanding significantly more I/O bandwidth.
- Performance of data motifs is not only algorithm-dependent but also highly sensitive to input data type, source, size, and access pattern, especially in memory and I/O behavior.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.