Skip to main content
QUICK REVIEW

[Paper Review] Deep Lake: a Lakehouse for Deep Learning

Sasun Hambardzumyan, Abhinav Tuli|arXiv (Cornell University)|Sep 22, 2022
Data Quality and ManagementDecision Sciences8 citations
TL;DR

Deep Lake introduces a lakehouse architecture optimized for deep learning workloads by natively storing complex data—such as images, videos, and annotations—as tensors, enabling high-throughput, GPU-optimized streaming to PyTorch, TensorFlow, and JAX. It achieves state-of-the-art performance in data ingestion and streaming, outperforming WebDataset and Parquet on large-scale tensor data while supporting SQL-like queries, in-browser visualization, and ACID-compliant versioning.

ABSTRACT

Traditional data lakes provide critical data infrastructure for analytical workloads by enabling time travel, running SQL queries, ingesting data with ACID transactions, and visualizing petabyte-scale datasets on cloud storage. They allow organizations to break down data silos, unlock data-driven decision-making, improve operational efficiency, and reduce costs. However, as deep learning usage increases, traditional data lakes are not well-designed for applications such as natural language processing (NLP), audio processing, computer vision, and applications involving non-tabular datasets. This paper presents Deep Lake, an open-source lakehouse for deep learning applications developed at Activeloop. Deep Lake maintains the benefits of a vanilla data lake with one key difference: it stores complex data, such as images, videos, annotations, as well as tabular data, in the form of tensors and rapidly streams the data over the network to (a) Tensor Query Language, (b) in-browser visualization engine, or (c) deep learning frameworks without sacrificing GPU utilization. Datasets stored in Deep Lake can be accessed from PyTorch, TensorFlow, JAX, and integrate with numerous MLOps tools.

Motivation & Objective

  • To address the lack of scalable, performant data infrastructure tailored for deep learning workloads involving unstructured data like images, videos, and audio.
  • To enable seamless integration of complex, multi-modal datasets into deep learning pipelines without sacrificing GPU utilization.
  • To provide a unified, versioned data layer with time travel, ACID transactions, and query capabilities—natively supporting tensors—comparable to data lakes but optimized for deep learning.
  • To streamline the machine learning lifecycle by enabling on-the-fly data materialization, visualization, and efficient data loading across major deep learning frameworks.

Proposed method

  • Introduces a novel Tensor Storage Format (TSF) that stores dynamically shaped tensors on object storage using a hierarchical, chunked, and typed storage layout.
  • Employs a streaming dataloader that schedules fetching, decompression, and user-defined transformations to maximize GPU utilization during training.
  • Develops a Tensor Query Language (TQL) that enables SQL-like operations on multi-dimensional tensor data, supporting filtering, aggregation, and projection.
  • Builds an in-browser visualization engine using WebGL to stream and render complex data directly from cloud storage without local preprocessing.
  • Enables native interoperability with PyTorch, TensorFlow, and JAX by exposing datasets as tensor-compatible data loaders.
  • Supports version control and time travel through a built-in, ACID-compliant transaction model, eliminating dependency on external versioning tools.

Experimental results

Research questions

  • RQ1How can a data lakehouse natively store and stream complex, high-dimensional data such as images and videos with minimal I/O overhead?
  • RQ2Can a lakehouse architecture achieve GPU-optimized data streaming for deep learning without sacrificing throughput or requiring data preloading?
  • RQ3To what extent can a SQL-like query language be effectively extended to multi-dimensional tensor data for analytical and preprocessing workloads?
  • RQ4How does a lakehouse for deep learning compare to existing formats like WebDataset, Parquet, and TFRecord in terms of ingestion and streaming performance?
  • RQ5Can in-browser visualization of petabyte-scale tensor datasets be achieved efficiently using modern web technologies and cloud storage?

Key findings

  • Deep Lake outperforms WebDataset and Parquet in data ingestion and streaming performance, especially on large images, due to its optimized tensor storage and streaming pipeline.
  • The streaming dataloader achieves high GPU utilization by overlapping data fetching, decompression, and transformation with model training computations.
  • TQL enables efficient, SQL-like querying on tensor data, supporting filtering, aggregation, and projection operations directly on stored tensors.
  • The in-browser visualization engine renders complex data such as images and videos in real time by streaming and decoding data on-demand using WebGL.
  • Deep Lake’s built-in version control and ACID transactions provide time travel and data lineage capabilities without external dependencies like Git.
  • Benchmark results show Deep Lake achieves state-of-the-art performance in large-scale deep learning data workflows, particularly in scenarios involving high-resolution, variable-sized tensors.

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.