Operon: Incremental Construction of Ragged Data via Named Dimensions
Sungbin Moon, Jiho Park, Suyoung Hwang, Donghyun Koh, Seunghyun Moon, Minhyeong Lee
TL;DR
Operon tackles the challenge of processing ragged data in large-scale pipelines by introducing a formalism of named dimensions and partial shapes. It provides a Rust-based DSL that statically verifies pipeline correctness and a runtime that incrementally constructs data shapes while dynamically scheduling tasks, ensuring deterministic and confluent parallel execution. The work formalizes dimensions, resolutions, coordinates, and arrays, and proves progress, termination, and determinism under a fixed oracle for shape lengths. Empirically, Operon dramatically reduces baseline overhead (about 14.94x) versus Prefect and maintains near-linear throughput as workloads scale, while enabling robust persistence and recovery through a database-backed state. The approach enables robust data-centric, ragged-data pipelines for machine learning and data generation, with future work on richer type systems and broader workflow expressivity.
Abstract
Modern data processing workflows frequently encounter ragged data: collections with variable-length elements that arise naturally in domains like natural language processing, scientific measurements, and autonomous AI agents. Existing workflow engines lack native support for tracking the shapes and dependencies inherent to ragged data, forcing users to manage complex indexing and dependency bookkeeping manually. We present Operon, a Rust-based workflow engine that addresses these challenges through a novel formalism of named dimensions with explicit dependency relations. Operon provides a domain-specific language where users declare pipelines with dimension annotations that are statically verified for correctness, while the runtime system dynamically schedules tasks as data shapes are incrementally discovered during execution. We formalize the mathematical foundation for reasoning about partial shapes and prove that Operon's incremental construction algorithm guarantees deterministic and confluent execution in parallel settings. The system's explicit modeling of partially-known states enables robust persistence and recovery mechanisms, while its per-task multi-queue architecture achieves efficient parallelism across heterogeneous task types. Empirical evaluation demonstrates that Operon outperforms an existing workflow engine with 14.94x baseline overhead reduction while maintaining near-linear end-to-end output rates as workloads scale, making it particularly suitable for large-scale data generation pipelines in machine learning applications.
