WhoBuilt

The Hierarchy of Needs for Training Dataset Development

Oct 15, 2024· 17 min· 3.0K views·Watch on YouTube

Speakers

Chang She, CEO and co-founder of LanceDB, and Noah Shpak, who leads the AI data platform at Character.AI, discuss training dataset development and multimodal data infrastructure at AI Engineer.

A hierarchy for dataset development

Shpak argues that teams should care about what they train on and store it in a useful format. Pre-training calls for broad choices about domains and data volume, while post-training requires more granular understanding of task type and difficulty. He places clean data and evaluations at the foundation, then builds toward dataset management, analytics, selection, synthetic data, and human labeling.

Analytics and tools for iteration

Shpak says dataset mixtures should be understood by their contents, not just by their source. Beyond token counts and sequence lengths, code data might be analyzed by language, difficulty, function count, and expected classes. His team uses retrieval, clustering, classifiers, synthetic examples, and human labeling to study and improve datasets.

Materializing and loading training data

Shpak describes separating dataset materialization from the training job so researchers can iterate without repeatedly changing training code. A materialization service returns files, while Lance supports inexpensive shuffling by letting teams shuffle row references instead of moving the rows themselves. He says this helps with data loading, especially as multimodal datasets grow.

Lance for AI data workloads

Chang She describes training as filtering samples, shuffling them, and streaming observations from object storage to GPUs. Those steps call for fast scans, random access, and support for large binary data, which he says existing formats often do not provide together. Lance is a columnar format with fast scans and lookups, inline blobs, versioning, zero-copy schema evolution, and time travel.

One table across search and training

She says Lance supports vector, scalar, and full-text indexes, including vector search over billions of vectors directly from S3. The same table can connect to DuckDB, Trino, or Spark for SQL and to PyTorch for training with large blobs and tensors. She frames multimodal data systems as supporting different data types, workloads, and uses, from analysis and retrieval to production services and model training.

Takeaways

  • Start dataset work with clean data and evaluations so changes can be measured against a clear reference.
  • Track meaningful properties of datasets, such as task difficulty and code structure, alongside token counts.
  • Separate data materialization from training logic to make dataset experiments easier to run.
  • Choose storage that supports the scans, random access, and large data blobs your AI workload needs.
  • Use versioning and time travel to test dataset changes and restore a known-good version.

Mentioned in this talk

Search inside this talk

What was claimed 12

  • built
    co-author
    “starting as one of the co-authors of the pandas library”
    YouTube
    Verified3 sources· Talk, Web· archived
  • previously at
    Noah Shpak previously at Character.AI
    Led the AI data platform
    “I currently lead the AI data platform at Character.AI”
    YouTube
    Verified2 sources· Talk, Web· archived
  • uses
    “that's our motivation for designing the Lance format, around which we've built LanceDB”
    YouTube
    Unverified2 sources· Talk
  • feature
    Lance: Fast scans and fast random access
    “It gives you the ability to do fast scans like Parquet, and it supports fast lookups”
    YouTube
    Unverified1 source· Talk
  • feature
    Lance: Automatic versioning, zero-copy schema evolution, and time travel
    “As you add data, it's automatically versioned.”
    YouTube
    Unverified1 source· Talk
  • feature
    Lance: Embedding, scalar, and full-text search indexes
    “we've added indexing extensions for embeddings”
    YouTube
    Unverified1 source· Talk
  • integrates with
    Lance integrates with PyTorch
    “you can plug the same Lance table into PyTorch for training”
    YouTube
    Unverified1 source· Talk
  • integrates with
    Lance integrates with Spark
    “plugging Lance directly into DuckDB, Trino, or Spark”
    YouTube
    Unverified1 source· Talk
Show all 12 facts

Related talks