Skip to main content
QUICK REVIEW

[Paper Review] Task-agnostic Indexes for Deep Learning-based Queries over Unstructured Data.

Daniel Kang, John Guibas|arXiv (Cornell University)|Sep 9, 2020
Advanced Image and Video Retrieval TechniquesComputer Science41 references8 citations
TL;DR

This paper proposes Task-agnostic Semantic Trainable Index (TASTI), a method that generates reusable, query-agnostic embeddings from unstructured data using a target DNN's induced schema. By clustering these embeddings, TASTI enables efficient query processing across diverse queries without training per-query proxy models, achieving up to 24x faster query performance and 10x lower construction cost than existing proxy model approaches.

ABSTRACT

Unstructured data is now commonly queried by using target deep neural networks (DNNs) to produce structured information, e.g., object types and positions in video. As these target DNNs can be computationally expensive, recent work uses proxy models to produce query-specific proxy scores. These proxy scores are then used in downstream query processing algorithms for improved query execution speeds. Unfortunately, proxy models are often trained per-query, require large amounts of training data from the target DNN, and new training methods per query type. In this work, we develop an index construction method (task-agnostic semantic trainable index, TASTI) that produces reusable embeddings that can be used to generate proxy scores for a wide range of queries, removing the need for query-specific proxies. We observe that many queries over the same dataset only require access to the schema induced by the target DNN. For example, an aggregation query counting the number of cars and a selection query selecting frames of cars require only the object types per frame of video. To leverage this opportunity, TASTI produces embeddings per record that have the key property that close embeddings have similar extracted attributes under the induced schema. Given this property, we show that clustering by embeddings can be used to answer downstream queries efficiently. We theoretically analyze TASTI and show that low training error guarantees downstream query accuracy for a natural class of queries. We evaluate TASTI on four video and text datasets, and three query types. We show that TASTI can be 10x less expensive to construct than proxy models and can outperform them by up to 24x at query time.

Motivation & Objective

  • To eliminate the need for query-specific proxy models in deep learning-based querying of unstructured data.
  • To address the high training cost and data requirements of existing proxy models that are trained per query.
  • To develop a reusable index that captures semantic structure from target DNNs for broad query compatibility.
  • To enable efficient query processing through clustering of learned embeddings that preserve schema-relevant attributes.
  • To theoretically guarantee query accuracy under a natural class of queries using low training error.

Proposed method

  • TASTI learns a single, shared embedding function for unstructured data records using a target DNN's feature space.
  • The embeddings are trained to ensure that semantically similar records (in terms of DNN-extracted attributes) have close vector representations.
  • The method leverages the induced schema from the target DNN—such as object types and positions in video frames—to define the relevant semantic structure.
  • Clustering is applied to the learned embeddings to group records with similar attributes, enabling efficient query processing.
  • A contrastive loss objective is used during training to enforce proximity between embeddings of records sharing attributes under the induced schema.
  • The index is reusable across multiple query types, including selection, aggregation, and range queries, without retraining.

Experimental results

Research questions

  • RQ1Can a single, reusable embedding index be constructed to support diverse queries over unstructured data without per-query proxy models?
  • RQ2How does the quality of the learned embeddings affect downstream query accuracy and efficiency?
  • RQ3Can the index construction cost be significantly reduced compared to training query-specific proxy models?
  • RQ4To what extent can clustering on embeddings replace query-specific proxy inference in query processing pipelines?
  • RQ5What theoretical guarantees can be provided for query accuracy based on embedding training error?

Key findings

  • TASTI reduces index construction cost by up to 10x compared to training query-specific proxy models.
  • TASTI achieves up to 24x faster query execution than proxy model-based approaches on the same workloads.
  • The method maintains high query accuracy, with theoretical guarantees linking low embedding training error to downstream query correctness.
  • TASTI demonstrates consistent performance gains across four video and text datasets and three query types.
  • Clustering on TASTI embeddings enables efficient processing of selection, aggregation, and range queries without retraining.
  • The approach is robust to query diversity, as embeddings capture schema-relevant attributes without query-specific adaptation.

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.