Both models both are parameterized with recursively structured neural networks that have access to the complete history of generation events.
the factorization of the tree probability is justified by the chain rule.