Self-Supervised Logic Induction for Explainable Fuzzy Temporal Commonsense Reasoning

Bibo Cai, Xiao Ding, Zhouhao Sun, Bing Qin, Ting Liu, Baojun Wang, Lifeng Shang

Abstract

Pre-trained language models (LMs) frequently struggle with complex temporal reasoning, particularly when encountering ambiguous or "fuzzy" time expressions in dialogue. We present LECTER, a self-supervised framework that enhances LMs with explicit logic induction and a neural-symbolic validator (DeepProbLog) to resolve temporal dependencies. By explicitly modeling temporal logic, LECTER achieves significant performance improvements on the TIMEDIAL benchmark, offering both increased accuracy and inherent explainability.

Introduction

Understanding temporal dimensions—such as event duration, chronological ordering, and specific points of occurrence—is fundamental for NLP applications ranging from dialogue assistants to clinical analysis. Despite their success, large-scale pre-trained LMs often rely on implicit pattern matching rather than robust logical reasoning. In multi-turn conversations, these models frequently fail to uncover the underlying logical rules governing time.

Furthermore, natural language is replete with "fuzzy" temporal concepts. Humans effortlessly use context to determine if "8 o'clock" refers to AM or PM, but LMs often lack this deductive capability. LECTER addresses this gap by injecting explicit, explainable logical reasoning into LMs without the need for expensive, manually annotated temporal commonsense datasets.

The LECTER Framework

The Logic Induction Enhanced Contextualized TEmporal Reasoning (LECTER) framework consists of three primary modules designed to bridge neural processing and symbolic logic.

The LECTER framework architecture, featuring the Context Embedder, Logic Induction Module, and Logic Validator.
  1. Context Embedder: Utilizing standard LMs like BERT or RoBERTa, this module encodes text and masks target temporal expressions (e.g., "10 am") to frame reasoning as a cloze task.
  2. Logic Induction Module: This component includes a Temporal Dependency Inducer to predict relational logic (e.g., before, after) and a Temporal Concept Defuzzifier to resolve ambiguities in fuzzy terms (e.g., AM vs. PM).
  3. Logic Validator: Powered by DeepProbLog, this module treats induction outputs as neural predicates. It computes the probability that a candidate answer logically entails the context, integrating strict symbolic logic within a differentiable neural network.

The system is trained end-to-end using two self-supervised objectives: a Regression-based Temporal Value Recovery loss and a Temporal Logical Entailment loss.

Experimental Setup and Results

To overcome the scarcity of annotated data, the authors constructed a self-supervised training set of 97k instances from a large public dialogue corpus. Evaluation was conducted on TIMEDIAL, a challenging multi-turn dialogue benchmark, using a zero-shot/out-of-domain transfer setting to test true generalization.

Comparison of LECTER against various baselines across T5, BERT, and RoBERTa architectures on the TIMEDIAL benchmark.

Key Findings

  • Performance Gains: LECTER with a RoBERTa-base backbone achieved a 71.5% 2-best accuracy, representing a >12% absolute improvement over continually pre-trained baselines.
  • Impact of Defuzzification: Explicitly mapping fuzzy terms to normalized numeric ranges proved critical. Ablation studies showed that removing the regression-based value recovery caused a 9.0% drop in accuracy.
  • Explainability: Unlike black-box LMs, LECTER's decision-making is transparent. It explicitly predicts logical relations (e.g., after('10 am', '9 thirty')), allowing users to inspect the reasoning behind a rejected or accepted answer.

Conclusion

LECTER demonstrates that neural-symbolic integration can significantly enhance temporal commonsense reasoning. While the model excels at numerical and relational logic, future work is needed to integrate broader event-centric commonsense—such as knowing that "dinner" typically implies evening—to handle cases where temporal logic depends on external world knowledge.

Summary updated

BibTeX
@inproceedings{cai2023self,
  author = {Bibo Cai and Xiao Ding and Zhouhao Sun and Bing Qin and Ting Liu and Baojun Wang and Lifeng Shang},
  title = {{Self-Supervised Logic Induction for Explainable Fuzzy Temporal Commonsense Reasoning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i11.26481},
}
Figure