What's in a Tree ? Hierarchical $n$-gram models as controlled approximators of language

Das, Aritra, Cagnetta, Francesco, Doshi, Darshil, Albert, Victor V., Barkeshli, Maissam, Gromov, Andrey

–arXiv.org Artificial Intelligence 

Its statistical structure has been studied using classical and modern language models, including Markov-chain and n-gram models (Shannon, 1951; Brown et al., 1992; Bengio et al., 2003a). Synthetic datasets inspired by context-free gramars (Chomsky, 1956; Hopcroft & Ullman, 1979; Klein & Manning, 2004; Kim et al., 2019) have also been proposed as tractable testbeds to understand language modeling. In particular, (Cagnetta et al., 2024) propose a family of tree-like generative models where a hierarchy of latent nodes determines the probability distribution of the leaves. Tree-like generative models can successfully represent compositional dependencies and improve language modeling (Dyer et al., 2016; Kuncoro et al., 2018); however, learning linguistically meaningful tree structures directly from data remains difficult (Klein & Manning, 2004; Kim et al., 2019; Hewitt & Manning, 2019). It is also important to understand what tree-like properties are present in real data, which can be accomplished by creating trainable versions of such models. In this work, we propose such a trainable model. In particular, we propose tree-grams, which are hybrid n-gram models based on hierarchy and local connectivity.