Reproduce “Earliest query answering over streamed trees” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Mateusz Gienieczko, Martín Muñoz, Filip Murlak, Charles Paperman

An automata-based streaming framework answers unary monadic second-order (MSO) queries over ordered, nested forests at the earliest prefix where each node’s status is logically determined. The algorithm processes every stream event in query-dependent constant time, uses space proportional to unresolved candidate nodes plus current nesting depth, and provides constant-delay output without materializing the full tree.

Key insights

  • Earliest answering is defined semantically: a node is emitted only when every possible continuation makes it an answer, and discarded only when every continuation makes it a nonanswer.
  • Memory need not scale with the entire document; it can be tied to unresolved candidates and the current depth, reflecting the information that remains logically relevant.
  • The same framework accommodates answers determined before subtree closure, at closure, or only after later parts of the forest, showing why fixed syntactic output rules are insufficient for general queries.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.