1. Structure
  2. AI & ML
  3. ML Models
  4. Foundation
  5. Why TileDB for Machine Learning
  • Home
  • What is TileDB?
  • Get Started
  • Explore Content
  • Accounts
    • Individual Accounts
      • Apply for the Free Tier
      • Profile
        • Overview
        • Cloud Credentials
        • Storage Paths
        • REST API Tokens
        • Credits
    • Organization Admins
      • Create an Organization
      • Profile
        • Overview
        • Members
        • Cloud Credentials
        • Storage Paths
        • Billing
      • API Tokens
    • Organization Members
      • Organization Invitations
      • Profile
        • Overview
        • Members
        • Cloud Credentials
        • Storage Paths
        • Billing
      • API Tokens
  • Catalog
    • Introduction
    • Data
      • Arrays
      • Tables
      • Single-Cell (SOMA)
      • Genomics (VCF)
      • Biomedical Imaging
      • Vector Search
      • Files
    • Code
      • Notebooks
      • Dashboards
      • User-Defined Functions
      • Task Graphs
      • ML Models
    • Groups
    • Marketplace
    • Search
  • Collaborate
    • Introduction
    • Organizations
    • Access Control
      • Introduction
      • Share Assets
      • Asset Permissions
      • Public Assets
    • Logging
    • Marketplace
  • Analyze
    • Introduction
    • Slice Data
    • Multi-Region Redirection
    • Notebooks
      • Launch a Notebook
      • Usage
      • Widgets
      • Notebook Image Dependencies
    • Dashboards
      • Dashboards
      • Streamlit
    • Preview
    • User-Defined Functions
    • Task Graphs
    • Serverless SQL
    • Monitor
      • Task Log
      • Task Graph Log
  • Scale
    • Introduction
    • Task Graphs
    • API Usage
  • Structure
    • Why Structure Is Important
    • Arrays
      • Introduction
      • Quickstart
      • Foundation
        • Array Data Model
        • Key Concepts
          • Storage
            • Arrays
            • Dimensions
            • Attributes
            • Cells
            • Domain
            • Tiles
            • Data Layout
            • Compression
            • Encryption
            • Tile Filters
            • Array Schema
            • Schema Evolution
            • Fragments
            • Fragment Metadata
            • Commits
            • Indexing
            • Array Metadata
            • Datetimes
            • Groups
            • Object Stores
          • Compute
            • Writes
            • Deletions
            • Consolidation
            • Vacuuming
            • Time Traveling
            • Reads
            • Query Conditions
            • Aggregates
            • User-Defined Functions
            • Distributed Compute
            • Concurrency
            • Parallelism
        • Storage Format Spec
      • Tutorials
        • Basics
          • Basic Dense Array
          • Basic Sparse Array
          • Array Metadata
          • Compression
          • Encryption
          • Data Layout
          • Tile Filters
          • Datetimes
          • Multiple Attributes
          • Variable-Length Attributes
          • String Dimensions
          • Nullable Attributes
          • Multi-Range Reads
          • Query Conditions
          • Aggregates
          • Deletions
          • Catching Errors
          • Configuration
          • Basic S3 Example
          • Basic TileDB Cloud
          • fromDataFrame
          • Palmer Penguins
        • Advanced
          • Schema Evolution
          • Advanced Writes
            • Write at a Timestamp
            • Get Fragment Info
            • Consolidation
              • Fragments
              • Fragment List
              • Consolidation Plan
              • Commits
              • Fragment Metadata
              • Array Metadata
            • Vacuuming
              • Fragments
              • Commits
              • Fragment Metadata
              • Array Metadata
          • Advanced Reads
            • Get Fragment Info
            • Time Traveling
              • Introduction
              • Fragments
              • Array Metadata
              • Schema Evolution
          • Array Upgrade
          • Backends
            • Amazon S3
            • Azure Blob Storage
            • Google Cloud Storage
            • MinIO
            • Lustre
          • Virtual Filesystem
          • User-Defined Functions
          • Distributed Compute
          • Result Estimation
          • Incomplete Queries
        • Management
          • Array Schema
          • Groups
          • Object Management
        • Performance
          • Summary of Factors
          • Dense vs. Sparse
          • Dimensions vs. Attributes
          • Compression
          • Tiling and Data Layout
          • Tuning Writes
          • Tuning Reads
      • API Reference
    • Tables
      • Introduction
      • Quickstart
      • Foundation
        • Data Model
        • Key Concepts
          • Indexes
          • Columnar Storage
          • Compression
          • Data Manipulation
          • Optimize Tables
          • ACID
          • Serverless SQL
          • SQL Connectors
          • Dataframes
          • CSV Ingestion
      • Tutorials
        • Basics
          • Ingestion with SQL
          • CSV Ingestion
          • Basic S3 Example
          • Running Locally
        • Advanced
          • Scalable Ingestion
          • Scalable Queries
      • API Reference
    • AI & ML
      • Vector Search
        • Introduction
        • Quickstart
        • Foundation
          • Data Model
          • Key Concepts
            • Vector Search
            • Vector Databases
            • Algorithms
            • Distance Metrics
            • Updates
            • Deployment Methods
            • Architecture
            • Distributed Compute
          • Storage Format Spec
        • Tutorials
          • Basics
            • Ingestion & Querying
            • Updates
            • Deletions
            • Basic S3 Example
            • Running Locally
          • Advanced
            • Versioning
            • Time Traveling
            • Consolidation
            • Distributed Compute
            • RAG LLM
            • LLM Memory
            • File Search
            • Image Search
            • Protein Search
          • Performance
        • API Reference
      • ML Models
        • Introduction
        • Quickstart
        • Foundation
          • Basics
          • Storage
          • Cloud Execution
          • Why TileDB for Machine Learning
        • Tutorials
          • Ingestion
            • Data Ingestion
              • Dense Datasets
              • Sparse Datasets
            • ML Model Ingestion
          • Management
            • Array Schema
            • Machine Learning: Groups
            • Time Traveling
    • Life Sciences
      • Single-cell
        • Introduction
        • Quickstart
        • Foundation
          • Data Model
          • Key Concepts
            • Data Structures
            • Use of Apache Arrow
            • Join IDs
            • State Management
            • TileDB Cloud URIs
          • SOMA API Specification
        • Tutorials
          • Data Ingestion
          • Bulk Ingestion Tutorial
          • Data Access
          • Distributed Compute
          • Basic S3 Example
          • Multi-Experiment Queries
          • Appending Data to a SOMA Experiment
          • Add New Measurements
          • SQL Queries
          • Running Locally
          • Shapes in TileDB-SOMA
          • Drug Discovery App
        • Spatial
          • Introduction
          • Foundation
            • Spatial Data Model
            • Data Structures
          • Tutorials
            • Spatial Data Ingestion
            • Access Spatial Data
            • Manage Coordinate Spaces
        • API Reference
      • Population Genomics
        • Introduction
        • Quickstart
        • Foundation
          • Data Model
          • Key Concepts
            • The N+1 Problem
            • Architecture
            • Arrays
            • Ingestion
            • Reads
            • Variant Statistics
            • Annotations
            • User-Defined Functions
            • Tables and SQL
            • Distributed Compute
          • Storage Format Spec
        • Tutorials
          • Basics
            • Basic Ingestion
            • Basic Queries
            • Export to VCF
            • Add New Samples
            • Deleting Samples
            • Basic S3 Example
            • Basic TileDB Cloud
          • Advanced
            • Scalable Ingestion
            • Scalable Queries
            • Query Transforms
            • Handling Large Queries
            • Annotations
              • Finding Annotations
              • Embedded Annotations
              • External Annotations
              • Annotation VCFs
              • Ingesting Annotations
            • Variant Statistics
            • Tables and SQL
            • User-Defined Functions
            • Sample Metadata
            • Split VCF
          • Performance
        • API Reference
          • Command Line Interface
          • Python API
          • Cloud API
      • Biomedical Imaging
        • Introduction
        • Foundation
          • Data Model
          • Key Concepts
            • Arrays
            • Ingestion
            • Reads
            • User Defined Functions
          • Storage Format Spec
        • Quickstart
        • Tutorials
          • Basics
            • Ingestion
            • Read
              • OpenSlide
              • TileDB-Py
          • Advanced
            • Batched Ingestion
            • Chunked Ingestion
            • Machine Learning
              • PyTorch
            • Napari
    • Files
  • API Reference
  • Self-Hosting
    • Installation
    • Upgrades
    • Administrative Tasks
    • Image Customization
      • Customize User-Defined Function Images
      • AWS ECR Container Registry
      • Customize Jupyter Notebook Images
    • Single Sign-On
      • Configure Single Sign-On
      • OpenID Connect
      • Okta SCIM
      • Microsoft Entra
  • Glossary

On this page

  • Requirements
    • A stable format fully supported by an active community
    • Parsers in different programming languages
    • Streaming reads and writes, for easy conversion and memory efficiency
    • Version control
    • Detection of bitflip errors during storage or transmission
    • Fast reads and writes and efficient storage
    • Support for storing sparse data
    • Support for storing binary blobs and vectors of different lengths
    • Support for multiple resources
    • File metadata
  • Summary
  1. Structure
  2. AI & ML
  3. ML Models
  4. Foundation
  5. Why TileDB for Machine Learning

Why TileDB for Machine Learning

ai/ml
machine learning (ml)
foundation
TileDB meets or exceeds each requirement for finding a standard dataset format for Machine Learning.

Machine Learning (ML), at its core, starts with data.

This single term embodies the challenge of storing machine learning data in a common, shareable, and efficient data format. These data typically come into many forms, such as images, audio, video, tables, and so on. Data storage and manipulation are integral components of the machine learning workflow and offer the following benefits:

  • Data governance
  • Ensuring data quality
  • Feature engineering
  • Scalability
  • Efficient data preprocessing
  • Model training and evaluation
  • Model deployment and monitoring

Different groups are researching what are and should be the essential features, functionalities, and requirements of a storage system that would overcome common challenges in a typical machine learning application. Although this research is ongoing, TileDB satisfies most of the requirements for a successful ML application.

In March 2020, the OpenML community published a blog post, Finding a standard dataset format for machine learning, outlining a list of these requirements, in their quest to find a standard dataset format for machine learning.

Requirements

The blog post outlines the following 17 data format requirements for ML applications.

The blog post outlines the following soft format requirements for ML applications:

  1. The format should be stable and fully maintained by an active community.
  2. Parsers in various programming languages, including well-maintained and stable libraries.
  3. Streaming reads and writes, for easy conversion and memory efficiency.
  4. Version control, some way to see differences between versions.
  5. Ideally, there is a way to detect bitflip errors during storage or transmission.
  6. Ideally, fast reads and writes and efficient storage.
  7. Ideally, there should be support for storing sparse data.
  8. Support for storing binary blobs and vectors of different lengths.
  9. If possible, support for multiple “resources” (for example, collections of files or relational tables).
  10. Potentially, store some metadata inside the file.

A stable format fully supported by an active community

The TileDB team is 100% committed to supporting and improving upon the open source core of TileDB, and to growing TileDB’s user and developer community.

Parsers in different programming languages

Not just parsers, but instead a single, efficient C++ core implementation, along with numerous language APIs and integrations with popular SQL engines and data science tools.

TileDB offers more than just parsers. It has a single, efficient C++ core implementation, along with many supported language APIs and integrations with popular SQL engines

Streaming reads and writes, for easy conversion and memory efficiency

We firmly believe that no data is unstructured. With TileDB’s multi-dimensional array storage format, you can store many types of data, including images, video, and audio, that don’t align with what’s understood as tabular data. Also, with its use of immutable fragments, TileDB avoids rewriting existing data, which improves performance.

Version control

TileDB supports version control of data through immutable, time-stamped fragments.

Detection of bitflip errors during storage or transmission

TileDB supports a variety of filters that you can apply on a per-data tile basis, including MD5 and SHA256 checksums.

Fast reads and writes and efficient storage

TileDB’s storage engine is optimized for cloud object stores, allowing for fast read and write operations and for efficient storage and retrieval. When users add, update or delete cells in a TileDB array, TileDB generates a fragment with only the applied changes, yielding efficient writes. Through consolidation and vacuuming, you can improve read performance at the cost of granularity for time traveling.

Support for storing sparse data

TileDB supports storing both dense and sparse data by design.

Support for storing binary blobs and vectors of different lengths

TileDB allows storing variable-sized attributes of any data type.

Support for multiple resources

You can create TileDB groups to simulate a file system on cloud object stores, which don’t have a concept of a file hierarchy. Groups can have any number of assets of any TileDB asset type within them, including other groups.

File metadata

The TileDB multi-dimensional array model includes arbitrary key-value metadata, as well as labels for axes.

Summary

Efficient data storage ensures that data is stored securely and is readily accessible for all machine learning operations. TileDB as an Adaptive Intelligence database is a natural fit for the domain of machine learning. It supports fostering research across domains with different integrations and its multi-modal nature, with applications in imaging, healthcare, geospatial, finance, defense, telecommunications, and more.

Cloud Execution
Tutorials