newsfilter
← Interviews
AI Engineer27 min

Ontologies as Guardrails for Agents — Frank Coyle, UC Berkeley

Frank Coyle

Conference Presentation, Keynote
  • The speaker draws a parallel between the 1983 West Coast Computer Fair, which focused on hardware chips (Intel 8080, Motorola 6502, Apple II), and the current AI conference, which focuses on the software capabilities provided by those chips: large language models (LLMs) and agentic AI.
  • Two distinct lineages of AI are identified:
    • Agentic AI: Roots traced to John McCarthy's definition of artificial intelligence and Marvin Minsky's "society of mind" concepts.
    • Ontologies: Rooted in Aristotelian philosophy and Thomas Gruber's definition of a "formal specification of a shared conceptualization."
  • Neurosymbolic AI is proposed as the convergence of these lineages, combining the probabilistic reasoning of LLMs with the logical constraints of ontologies (described as "probabilistic reasoning on the inside, logical constraints on the outside").
  • LLMs are characterized as "brains in a box" (token in, token out) rather than databases; they do not store facts but operate within a multi-dimensional latent space defined by 4,096-number embeddings.
  • Hallucinations are defined not as system flaws but as inherent probabilistic behaviors of LLMs, similar to human dreaming.
  • The primary concern regarding LLM takeover is their ability to control loops; Beeman and Jacopini's proof confirms that sequence, conditionals, and loops make a system Turing-complete, enabling LLMs to compute anything computable.
  • Agent loops function as data-flow diagrams where tools execute actions (e.g., code execution) while the LLM provides the decision logic; this structure allows for the insertion of guardrails between loop steps.
  • Major frontier models (specifically Anthropic's Claude) now offer hooks as native guardrail opportunities, including:
    • Session events (start/end).
    • User prompt submission.
    • Permission requests.
    • Pre-tool and post-tool use events.
  • Ontology construction is framed as a critical step requiring agreement on definitions, illustrated by the debate over whether a "hot dog" is a sandwich, which impacts organizational knowledge bases.
  • A hierarchical approach to building ontologies is recommended:
    • Taxonomy: Establishing a glossary and defining synonyms.
    • Ontology: Defining classes, attributes, and hierarchies (e.g., customer as a subclass of person).
    • Knowledge Graph: Encoding specific facts and relationships.
    • Guardrails: Enforcing constraints and logical rules.
  • Existing ontologies should be leveraged to jumpstart development, including Schema.org, FOAF (Friend of a Friend), and SCOS.
  • The speaker introduced Onto Explorer, a tool available at codesupreme.ai, which analyzes domain descriptions to suggest relevant existing ontologies and terms.
  • RDFS (RDF Schema) and OWL (Web Ontology Language) are highlighted as tools for defining relationships and inference rules, such as:
    • Domain/Range: Inferring that an entity is a customer if it orders a product.
    • Transitive Properties: Inferring that if Denver is in Colorado and Colorado is in the USA, Denver is in the USA.
    • Inverse Properties: Allowing bidirectional queries (e.g., "ordered by" vs. "orders").
    • Functional Properties: Merging duplicate entities under a single identity.
  • A unique feature of knowledge graphs compared to relational databases is that the relation itself is an entity, allowing properties like provenance (creator, source, timestamp) to be attached to the relationship.
  • Specific technical tools are recommended for governance and validation:
    • Pydantic: Validates data structure and regular expressions (e.g., refund fields).
    • Shackle: Enforces JSON schema shapes and field counts.
    • Sparkle: A query language for testing claims against the knowledge base.
    • Swirl: Allows the definition of logical policy rules.
  • Policy and provenance standards such as ODRL and PROV-O are recommended for broader governance contexts.
  • The speaker concludes with a teaching philosophy attributed to Sister Corita Kent (popularized by John Cage): "Carry it forth. Nothing is a mistake. There's no win and no fail. Only make."