SystemT: Declarative Text Understanding for Enterprise

Laura Chiticariu, Marina Danilevsky, Yunyao Li, Frederick Reiss, Huaiyu ZhuNAACL 2018

Abstract

Enterprise text understanding (TU) often relies on brittle, imperative "glue code" to manage complex NLP pipelines. SystemT addresses this by introducing a declarative, SQL-like language called AQL (Annotation Query Language). By decoupling extraction logic from execution strategy, SystemT employs a cost-based optimizer to achieve significant performance gains and improved maintainability across diverse industrial applications.

Introduction: The Challenge of Enterprise NLP

In industrial settings, text understanding extends beyond simple sentiment analysis. It requires parsing massive volumes of semi-structured data, such as financial reports, legal contracts, and system logs. Traditionally, developers have built these pipelines using cascading grammars or ad-hoc imperative code to link disparate NLP tools. This approach suffers from three primary flaws: performance bottlenecks due to unoptimized pipelines, maintenance difficulties as data formats evolve, and "impedance mismatch" between different NLP components' data models.

The SystemT Architecture

SystemT treats text extraction as a database problem. The system architecture separates the logical specification of what to extract from the physical execution of how to extract it.

The SystemT architecture separates the AQL compiler from the document-at-a-time runtime.

As illustrated in the architecture, the core components include:

  • AQL (Annotation Query Language): A declarative, relational language where annotations are treated as tuples.
  • Cost-Based Optimizer: Similar to a SQL optimizer, it evaluates multiple execution plans using a text-centric cost model to determine the most efficient order of operations.
  • DAAT (Document-at-a-Time) Runtime: A lightweight engine that processes each document entirely in memory, accelerating joins and aggregations.

Declarative Extraction with AQL

AQL allows developers to define extraction rules without specifying the underlying execution details. It provides algebraic operators like Extract (for regex or dictionary matching), Select, and Join to build complex pipelines.

Example AQL code demonstrating dictionary creation, pattern extraction, and relational views for complex recommendations.

As shown in the example code, AQL can define complex relationships, such as identifying financial recommendations by joining asset classes with polarity adjectives. This transparency is a key feature for enterprise compliance, as it allows developers to explain exactly why a specific entity was extracted.

Performance and Real-World Impact

SystemT achieves orders-of-magnitude higher throughput and a lower memory footprint than traditional grammar-based systems. Its DAAT model ensures linear scalability, making it suitable for high-volume environments like Spark or Hadoop.

The system has seen extensive real-world adoption, being embedded in over 10 commercial IBM products, including Watson for Drug Discovery. It has been successfully deployed across various domains including compliance (legal docs), finance (public records), life sciences (drug discovery), and security (PII redaction).

Conclusion and Future Directions

By bringing database rigor to NLP, SystemT provides a scalable and maintainable framework for enterprise text understanding. Future work focuses on integrating modern deep learning models while preserving the benefits of cost-based optimization, as well as using machine learning to automate the induction of AQL rules from labeled data.

Summary updated

BibTeX
@inproceedings{chiticariu2018systemt,
  author = {Laura Chiticariu and Marina Danilevsky and Yunyao Li and Frederick Reiss and Huaiyu Zhu},
  title = {{SystemT: Declarative Text Understanding for Enterprise}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=rybNazWObB},
}

Loading related content...

Figure