Large language models (LLMs) can learn from a few demonstrations provided at inference time. We study this in-context learning phenomenon through the lens of Gaussian Processes (GPs). We build controlled experiments where models observe sequences of multivariate scalar-valued function samples drawn from known GP priors. We evaluate prediction error in relation to the number of demonstrations and compare against two principled references: (i) an empirical GP-regression learner that gives a lower bound on achievable error, and (ii) the expected error of a 1-nearest-neighbor (1-NN) rule, which gives a data-driven upper bound. Across model sizes, we find that LLM learning curves are strongly influenced by the function-generating kernels and approach the GP lower bound as the number of demonstrations increases. We then study the inductive biases of these models using a likelihood-based analysis. We find that LLM predictions are most likely under less smooth GP kernels. Finally, we explore whether post-training can shift these inductive biases and improve sample-efficiency on functions sampled from GPs with smoother kernels. We find that both reinforcement learning and supervised fine-tuning can effectively shift inductive biases in the direction of the training data. Together, our framework quantifies the extent to which LLMs behave like GP learners and provides tools for steering their inductive biases for continuous function learning tasks.
Intrinsic Entropy of Context Length Scaling in LLMs
Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);Carnegie Mellon University(卡内基梅隆大学);CPHOS;University of Washington(华盛顿大学)
Long-Short Range Context Neural Networks for Language Modeling
Spoken Language Systems (LSV)(口语语言系统(LSV));Collaborative Research Center on Information Density and Linguistic Encoding(信息密度与语言编码合作研究中心)
语言建模技术的目标是从训练语料库中获取自然语言的统计和结构特性。该任务通常涉及学习短程依赖关系,其通常对语言的句法属性和/或长程依赖关系进行建模,其本质上是语义的。本文提出了一种新的多跨度体系结构,它分别对短和长上下文信息进行建模,同时动态地合并它们来执行语言建模任务。这是通过一种新的经常性长短范围上下文(LSRC)网络来实现的,该网络使用两个随时间演变的独立隐藏状态来显式地对局部(短)和全局(长)上下文进行建模。这种新架构是对长短期记忆网络(LSTM)的适应,以考虑语言属性。在Penn Treebank(PTB)和Large Text Compression Benchmark(LTCB)语料库上进行的大量实验表明,与最先进的语言建模技术相比,该方法显着减少了困惑。
L$^2$M: Mutual Information Scaling Law for Long-Context Language Modeling
NSF AI Institute for Artificial Intelligence and Fundamental Interactions(NSF人工智能与基础相互作用研究院);Massachusetts Institute of Technology(麻省理工学院);Polytechnic University of Catalonia(加泰罗尼亚理工大学);Harvard University(哈佛大学);University of California, Los Angeles(加州大学洛杉矶分校)