newsfilter
← Interviews
AI Engineer27 min

Ontologies as Guardrails for Agents — Frank Coyle, UC Berkeley

Frank Coyle

Conference Presentation, Keynote
  • Current market enthusiasm for AI is compared to the 1983 release of the Intel 8080 chip, with industry focus shifting from hardware to capabilities provided by chips, specifically AI and large language models.
  • An emerging "neurosymbolic AI" approach is expected to combine probabilistic reasoning within large language model agent universes with external logical constraints derived from formal ontologies.
  • Large language models operate within a multi-dimensional latent space defined by embeddings of 4,096 numbers and are characterized as "brains in a box" that process tokens without functioning as databases to store or lookup facts.
  • Hallucinations are identified as inherent system features resulting from probabilistic operations rather than flaws, leading to concerns regarding infinite loops that render models Turing computable.
  • Future system architecture will model agent loops as data flow, a methodology established since the 1960s, to enable the insertion of guardrails between loop steps for controlling LLM behavior.
  • Developers will utilize hooks on major frontier models to implement pre- and post-tool use guardrails without direct code modification, allowing for validation of input shapes and output semantics.
  • Organizations are expected to transition from non-scaling expert systems to models where organizational rules are defined by leveraging existing ontologies like Schema.org and FOOF.
  • The "onto Explorer" online tool will assist in identifying relevant existing ontologies based on domain descriptions, serving as a starting point for building custom ontological rules.
  • Ontology hierarchies will be essential for defining classes and attributes to enable reasoning, utilizing RDFS to infer relationships between entities such as customers and products.
  • The OWL language will enable the definition of transitive properties for inference (e.g., inferring Denver is in the USA) and inverse properties to allow query directionality (e.g., "ordered by").
  • Knowledge graphs will treat relations as entities capable of holding their own properties, allowing users to attach provenance data such as creators or sources to relationships.
  • Technical validation tools will be employed to enforce data integrity, with Pydantic catching regex errors and "Shackle" ensuring JSON structures meet specific minimum and maximum count constraints.
  • A query language named "Sparkle" and a dedicated rule language will be used to interrogate knowledge bases regarding relationships and to govern the surrounding logical rules of the ontology.