Reproduce “Enhancing Transformers for Generalizable First-Order Logical Entailment” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Tianshi Zheng, Jiazheng Wang, Zihao Wang, Jiaxin Bai, Hang Yin, Zheye Deng, Yangqiu Song, Jianxin Li
Researchers from HKUST and Beihang University developed TEGA, a transformer architecture, to enhance generalizable first-order logical entailment for Knowledge Graph Query Answering. The method achieved significant improvements in out-of-distribution knowledge and query type generalization by incorporating logic-aware inductive biases into the self-attention mechanism.
Key insights
- Relative Positional Encoding (RPE) and Rotary Positional Encoding (RoPE) consistently yield superior performance and out-of-distribution generalizability for transformers in logical entailment tasks compared to other positional encoding schemes.
- EFO (parallel) query syntax significantly enhances OOD generalizability for RPE transformers over Lisp-like (nested) syntax, as it maintains more consistent relative distances between logically related tokens.
- Existing architectural inductive biases designed for KGQA transformers are found to be effective only with Absolute Positional Encoding (APE) and can degrade performance or offer no improvement when combined with the superior RPE.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.