TL;QR: Querying Temporal Discursive Patterns in Textual Corpora
François Hublet, Vladimir Krsmanovic, Jesus Solano, Ahmed Bouhoula, Ana Oliveira da Costa
Abstract
Many questions about large textual corpora concern patterns that unfold over time, such as a political group whose stance on a topic drifts from support to criticism over several years of debates. We present TL;QR (Too Long; Query with logical temporal Reasoning), a declarative query language and open-source engine for finding such temporal discursive patterns. In TL;QR, a single query combines natural-language predicates, whose truth is judged by a Large Language Model (LLM), with regular expressions and the operators of a temporal logic. The LLM answers only local questions about individual text passages; a symbolic engine then aggregates these judgments over time and links every match to the recorded passages and predicate decisions behind it. With this division of labor, the temporal and relational reasoning stays exact and auditable even over long time horizons. In addition, when a query includes a regular-expression pre-filter, only a small fraction of the corpus ever reaches the LLM. On a suite of controlled synthetic benchmarks with temporally and semantically complex patterns, TL;QR is substantially more accurate than LLM-only baselines. In a case study on ten years of European Parliament debates (442,593 multilingual speeches), TL;QR identifies candidate shifts in the political groups' stances on the GDPR privacy regulation.
Create a lesson
Metadata
- Categories
- cs.CL, cs.CY, cs.DB, cs.LO
Related papers
TextualRL: Textual Reinforcement Learning for Context Management
Shared title terminologycs.CLTianyu Huai, Jie Zhou, Bo Mao et al.
Fan Out or Relay? Ownership-Aware Routing for LLM Agents Querying Siloed Tables
Shared title terminologycs.CLZhexi Feng
Evaluating Temporal Reasoning in Large Language Models: Event Temporal Relation Extraction with Allen's Interval Algebra, Logical Consistency, and Relative Time in Narratives
Shared title terminologycs.CLAdib Sakhawat, Fardeen Sadab, Tamjid Hasan Fahim et al.
Query Your Way Out: Benchmarking Multi-Turn Knowledge Reasoning through Generalized Puzzle Solving
Shared title terminologycs.CLXin Cheng, Junming Yang, Ning Xu
CliQ-RRG: Clinical-Knowledge Guided Disease-aware Visual-Textual Alignment for QA-Style Radiology Report Generation
Shared title terminologycs.CLChandravardhan Singh Raghaw, Shahid Shafi Dar, Arnav Nishith Sharma et al.