Skip to main content
QUICK REVIEW

[Paper Review] The Design of an LLM-powered Unstructured Analytics System

Eric Anderson, Jonathan Fritz|arXiv (Cornell University)|Sep 1, 2024
Neural Networks and ApplicationsComputer Science5 citations
TL;DR

The paper presents Aryn, an end-to-end unstructured analytics system powered by LLMs, with a declarative document processing engine (Sycamore) and a query planner (Luna) to execute natural-language queries over large document collections.

ABSTRACT

LLMs demonstrate an uncanny ability to process unstructured data, and as such, have the potential to go beyond search and run complex, semantic analyses at scale. We describe the design of an unstructured analytics system, Aryn, and the tenets and use cases that motivate its design. With Aryn, users specify queries in natural language and the system automatically determines a semantic plan and executes it to compute an answer from a large collection of unstructured documents. At the core of Aryn is Sycamore, a declarative document processing engine, that provides a reliable distributed abstraction called DocSets. Sycamore allows users to analyze, enrich, and transform complex documents at scale. Aryn includes Luna, a query planner that translates natural language queries to Sycamore scripts, and DocParse, which takes raw PDFs and document images, and converts them to DocSets for downstream processing. We show how these pieces come together to achieve better accuracy than RAG on analytics queries over real world reports from the National Transportation Safety Board (NTSB). Also, given current limitations of LLMs, we argue that an analytics system must provide explainability to be practical, and show how Aryn's user interface does this to help build trust.

Motivation & Objective

  • Motivate enterprise needs for semantic analyses across large unstructured document repositories beyond simple retrieval.
  • Propose a declarative, plan-based approach to unstructured analytics that combines ETL-like processing with flexible analytics.
  • Introduce a scalable architecture enabling LLM-powered transformations and explanations with human-in-the-loop capabilities.

Proposed method

  • Introduce Aryn, an open-source system with Sycamore for document processing and DocSets as the core data abstraction.
  • Describe the Aryn Partitioner that converts raw PDFs/images into DocSets using a vision-based segmentation model (Deformable DETR) trained on DocLayNet.
  • Present Luna, a planner that translates natural language queries into semantic query plans executed by Sycamore.
  • Explain the data model where documents are hierarchical trees of elements and DocSets support multi-modal content and metadata.
  • Detail the execution model, based on a Spark-like lazy, distributed pipeline built on Ray, with traceability and debugging support.
  • Outline LLM-powered transforms (e.g., llm_query, extract_properties, summarize) integrated into the Sycamore pipeline.
Figure 1. Aryn Architecture
Figure 1. Aryn Architecture

Experimental results

Research questions

  • RQ1How can an end-to-end system leverage LLMs to perform complex analyses over unstructured document collections while maintaining explainability and control?
  • RQ2What architectural components are needed to align ETL-like processing with analytics in a multi-modal, hierarchical document setting?
  • RQ3Can a human-in-the-loop approach improve accuracy and trust in LLM-driven unstructured analytics ecosystems?

Key findings

  • Aryn demonstrates end-to-end querying over unstructured data using natural language to generate semantic plans that are executed to compute answers.
  • The Partitioner with Deformable DETR achieves higher document layout segmentation performance (mAP 0.602, mAR 0.743 on DocLayNet) than a competing cloud vendor's API (mAP 0.344, mAR 0.466).
  • Sycamore provides document-level transformations and LLM-powered enrichment with lineage for debugging and explainability.
  • Luna achieves 72% accuracy on a micro-benchmark over earnings and NTSB reports, with 13 correct, 3 plausible, and 2 incorrect answers; human-in-the-loop handling is acknowledged for ambiguous cases.
  • The system supports a combination of traditional operators and semantic LLM-based operators, with plan visualization and JSON-formatted plans for transparency.
Figure 2. Output of Aryn Partitioner (including table and cell identification) on a typical PDF NTSB accident report.
Figure 2. Output of Aryn Partitioner (including table and cell identification) on a typical PDF NTSB accident report.

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.