Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic Study
DOI:
https://doi.org/10.1609/aaai.v40i23.39024Abstract
Incorporating explicit reasoning rules within the latent space of language models (LMs) offers a promising pathway to enhance generalisation, interpretability, and controllability. While current Transformer-based language models have shown strong performance on Natural Language Inference (NLI) tasks, they often rely on memorisation rather than explicit rule-based generalisation. This work investigates how human-interpretable reasoning rules can be explicitly encoded within LMs with the support of Language Variational Autoencoders (VAEs), as a mechanism for generative control. We propose a complete pipeline for learning reasoning rules within Transformer-based language VAEs. This pipeline encompasses three rule-based reasoning tasks, a supporting theoretical framework, and a practical end-to-end architecture. The experiment illustrates the following findings: Disentangled reasoning: Under explicit signal supervision, reasoning rules (viewed as functional mappings) can be disentangled within the encoder’s parametric space. This separation results in distinct clustering of rules in the output feature space. Prior knowledge injection: injecting rule-based constraints into the Query enables the model to more effectively retrieve the stored Value from memory based on Key. This approach offers a simple method for integrating prior knowledge into decoder-only language models. Moreover, we found that FFN layers are better than attention layers at preserving the separation of reasoning rules in the model's parameters.Downloads
Published
2026-03-14
How to Cite
Zhang, Y., Valentino, M., Carvalho, D., & Freitas, A. (2026). Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic Study. Proceedings of the AAAI Conference on Artificial Intelligence, 40(23), 19458–19466. https://doi.org/10.1609/aaai.v40i23.39024
Issue
Section
AAAI Technical Track on Knowledge Representation and Reasoning