Tree structures have been widely used to model intelligent behavior, such as reasoning, problem-solving, and language processing. However, whether our brain uses tree-structured representations is still controversial. In particular, a key challenge remains to build such representations in conventional neural networks.