tree-grams:用分层 n-gram 模型可控逼近语言
What's in a Tree ? Hierarchical $n$-gram models as controlled approximators of language
研究提出 tree-grams,一种通过二阶与三阶张量分层组合构建条件概率张量的自回归生成式 n-gram 模型,由 n 控制最大上下文窗口、秩超参数 d 控制模型容量。该模型性能优于现有 n-gram 基线,并与基于 Transformer 的深度语言模型保持竞争力。在允许跨候选拓扑路由时,tree-grams 呈现涌现稀疏性,可剪枝多达 95% 的拓扑而性能无显著变化。
arXiv:2611.23093v1 Announce Type: new Abstract: Hierarchical models have been proposed as synthetic settings for studying language. However, their relevance to realistic language corpora remains underexplored. In this work, we introduce tree-grams, autoregressive generative $n$-gram models that build the conditional probability tensor $p(x_n \mid x_{1:n-1})$ through a hierarchical composition of order-2 and order-3 tensors. $n$ controls the maximal context window, whereas a rank hyperparameter $d$ controls model capacity, yielding an interpretable and systematically scalable family of approximators of language. We show how tree-grams outperform existing $n$-gram baselines, while remaining competitive with deep transformer-based language models. We demonstrate the utility of such controlled approximations by using tree-grams as generative models. In particular, we show that hyperparameter transfer under $\mu$P can be made more robust when narrower models are tuned on simpler data, generated by tree-grams with moderate $n$ and $d$. In addition, we show that entropy and effective range of correlations control performance gap after fine-tuning. This is because tree-grams allow us to explicitly control horizon and capacity. When allowed to route across candidate topologies, we observe emergent sparsity in tree-grams. Such concentrated routing permits pruning upto 95\% of topologies without significant change in performance.
来源:arXiv (AI + Vision + Imaging) · arxiv.org