cs.AIMar 1, 2026

Semantic XPath: Structured Agentic Memory Access for Conversational AI

Authors: Yifan Simon Liu, Ruifan Wu, Liam Gallagher, Jiazhou Liang, Armin Toroghi, Scott Sanner

Organizations: University of Toronto, Canada · Vector Institute of Artificial Intelligence, Toronto, Canada

Abstract

Conversational AI (ConvAI) agents increasingly maintain structured memory to support long-term, task-oriented interactions. In-context memory approaches append the growing history to the model input, which scales poorly under context-window limits. RAG-based methods retrieve request-relevant information, but most assume flat memory collections and ignore structure. We propose Semantic XPath, a tree-structured memory module to access and update structured conversational memory. Semantic XPath improves performance over flat-RAG baselines by 176.7% while using only 9.1% of the tokens required by in-context memory. We also introduce SemanticXPath Chat, an end-to-end ConvAI demo system that visualizes the structured memory and query execution details. Overall, this paper demonstrates a candidate for the next generation of long-term, task-oriented ConvAI systems built on structured memory.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. APEX-MEM: Agentic Semi-Structured Memory with Temporal Reasoning for Long-Term Conversational AI

    Apr 15, 2026Pratyay Banerjee, Masud Moshtaghi, Shivashankar Subramanian +2Long-Term Conversational MemoryGraph-Based Agent Memory

  2. GRAVITY: Architecture-Agnostic Structured Anchoring for Long-Horizon Conversational Memory

    May 3, 2026Yushi Sun, Bowen Cao, Dong Fang +2LLM Agent MemoryPersistent Memory for Language Models