Scaling laws have transformed our understanding of large language models by linking upstream metrics like cross-entropy loss to design factors such as model size, training data, and compute. However, these conventional laws fail to capture downstream task performance, where context plays a critical role. In this work, we propose a straightforward, interpretable framework that jointly models downstream performance as a function of the training compute and the provided context. We empirically validate our framework by fitting it on the observed downstream performance of extended-context variants of Llama-2-7B and Llama-2-13B across 65,500 unique instances spanning three tasks: arithmetic reasoning, common sense reasoning, and machine translation. Our results demonstrate that our framework accurately models in-distribution downstream performance, generalizes across three orders of magnitude in training compute, and reliably extrapolates performance as the amount of context increases. These findings offer valuable insights into the interplay between training compute and context utilization, providing guidance for designing more efficient long-context LLMs for diverse downstream tasks. Our code is available at https://github.com/wang-research-lab/context-scaling.
Towards Lawful Autonomous Driving: Deriving Scenario-Aware Driving Requirements from Traffic Laws and Regulations
College of Transportation, Tongji University(同济大学交通运输学院);The Key Laboratory of Road and Traffic Engineering, Ministry of Education(教育部道路与交通工程重点实验室);School of Vehicle and Mobility, Tsinghua University(清华大学车辆与移动性学院);College of Computer Science, University of Central Florida(佛罗里达中央大学计算机科学学院);Optixway AI
Predicting Liquidity-Aware Bond Yields using Causal GANs and Deep Reinforcement Learning with LLM Evaluation
School of Computer Science and Engineering, Vellore Institute of Technology, India(印度维杰雷理工学院计算机科学与工程学院);Indian Institute of Science, Bangalore, India(印度班加罗尔印度科学学院)
NTUA-SLP at SemEval-2018 Task 2: Predicting Emojis using RNNs with Context-aware Attention
National Technical University of Athens(雅典国家技术大学);Athens University of Economics and Business(雅典经济与商业大学);Behavioral Signal Technologies(行为信号技术公司);University of Athens(雅典大学)