Learning to Parse and Reconstruct: Bidirectional Modeling of Question-to-Program Mapping

Authors

  • Zeying Duan Xi'an Jiaotong University, Xi’an, China
  • Youtian Du Xi'an Jiaotong University, Xi’an, China
  • Yuanlin Chang Xi'an Jiaotong University, Xi’an, China
  • Bowen Lin Xi'an Jiaotong University, Xi’an, China
  • Weijia Wu Xi'an Jiaotong University, Xi’an, China

DOI:

https://doi.org/10.1609/aaai.v40i36.40315

Abstract

Neuro-symbolic learning has emerged as a promising paradigm for interpretable visual reasoning, where mapping natural language questions to executable programs plays a central role. However, most existing methods focus exclusively on the forward program generation from questions while overlooking the reverse process of reconstructing questions from programs. In this paper, we propose BiPaR (Bidirectional Parsing and Reconstruction), a Transformer-based framework that jointly models both program parsing and question reconstruction within a unified architecture. Unlike previous approaches that only perform forward parsing, BiPaR introduces reverse program-to-question reconstruction as a powerful auxiliary signal, which improves program generation quality and accelerates convergence, particularly under limited supervision. We further provide a theoretical analysis showing how reverse reconstruction facilitates faster optimization during training. The bidirectional modeling makes BiPaR well-suited for both supervised and semi-supervised learning scenarios. We present two architectural variants: BiPaR-Full, which employs encoder-decoder Transformers for both modules; and BiPaR-DOnly, a lightweight variant that employs a decoder-only structure for question reconstruction, reducing model complexity. Experiments on CLEVR and a GQA subset demonstrate that BiPaR significantly outperforms standard Transformer baselines. Furthermore, in the semi-supervised learning setting, BiPaR achieves notable improvements by leveraging additional questions without program annotations.

Downloads

Published

2026-03-14

How to Cite

Duan, Z., Du, Y., Chang, Y., Lin, B., & Wu, W. (2026). Learning to Parse and Reconstruct: Bidirectional Modeling of Question-to-Program Mapping. Proceedings of the AAAI Conference on Artificial Intelligence, 40(36), 30602–30610. https://doi.org/10.1609/aaai.v40i36.40315

Issue

Section

AAAI Technical Track on Natural Language Processing I