用预训练网络提升小模型在上下文猜谜中的学习效率
Contextual Bandit Optimization with Pre-Trained Neural Networks
- 设计双阶段探索算法E2TC,利用预训练权重加速收敛
- 证明在小模型下仍可实现亚线性损失,条件依赖预训练质量
- 适合研究神经网络强化学习、带预训练的在线优化者
上下文猜谜是困难问题,尤其当奖励模型维度高时。当奖励由神经网络建模时,仅有强假设下(如网络极宽)才可证明亚线性损失。本文研究预训练对小型模型的帮助。考虑一个随机上下文猜谜问题,奖励由多层神经网络建模,最后一层为线性预测器,前层为黑箱表示网络。将预训练视为对表示网络权重的初始猜测。提出新算法Explore Twice then Commit(E2TC):第一阶段用岭回归估计最后一层权重;第二阶段联合使用随机梯度下降更新所有权重。对于局部凸损失函数,在预训练权重满足特定条件时,证明了当最后一层维度和动作数K远小于总轮次T时,可实现亚线性损失。在弱训练情形下(仅学习最后一层),问题退化为误设线性猜谜,引入误设度量ε₀,给出两种损失界:O(ε₀√dKT+(KT)^{4/5}) 或 ~O(ε₀√dKT+d^{1/3}(KT)^{2/3}),前者不依赖维度,得益于上下文的随机性。实验验证了E2TC的损失与探索样本复杂度。
原文摘要 · Abstract (English)
Bandit optimization is a difficult problem, especially if the reward model is high-dimensional. When rewards are modeled by neural networks, sublinear regret has only been shown under strong assumptions, usually when the network is extremely wide. In this thesis, we investigate how pre-training can help us in the regime of smaller models. We consider a stochastic contextual bandit with the rewards modeled by a multi-layer neural network. The last layer is a linear predictor, and the layers before it are a black box neural architecture, which we call a representation network. We model pre-training as an initial guess of the weights of the representation network provided to the learner. To leverage the pre-trained weights, we introduce a novel algorithm we call Explore Twice then Commit (E2TC). During its two stages of exploration, the algorithm first estimates the last layer's weights using Ridge regression, and then runs Stochastic Gradient Decent jointly on all the weights. For a locally convex loss function, we provide conditions on the pre-trained weights under which the algorithm can learn efficiently. Under these conditions, we show sublinear regret of E2TC when the dimension of the last layer and number of actions $K$ are much smaller than the horizon $T$. In the weak training regime, when only the last layer is learned, the problem reduces to a misspecified linear bandit. We introduce a measure of misspecification $ε_0$ for this bandit and use it to provide bounds $O(ε_0\sqrt{d}KT+(KT)^{4 /5})$ or $\tilde{O}(ε_0\sqrt{d}KT+d^{1 /3}(KT)^{2 /3})$ on the regret, depending on regularization strength. The first of these bounds has a dimension-independent sublinear term, made possible by the stochasticity of contexts. We also run experiments to evaluate the regret of E2TC and sample complexity of its exploration in practice.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。