强化学习算法的实用性受限于其随问题规模的扩展性较差:在状态空间为$S$、动作空间为$A$、时域为$H$的马尔可夫决策过程(MDP)最坏情形下,学习一个$ε$-最优策略的样本复杂度为$\tildeΩ(|S||A|H^3 / ε^2)$。我们考虑一类其对应的最优$Q^*$函数为低秩的MDP,其中潜在特征是未知的。尽管人们可能期望借助低秩结构实现关于$|S|$和$|A|$的线性样本复杂度,但我们证明:若仅施加$Q^*$低秩这一假设,且仅能利用部分条目上的观测来估计$Q$函数,则存在最坏情形,此时学习近最优策略的样本复杂度必须随时域$H$呈指数增长。随后我们证明,在更强的低秩结构假设下,若可访问生成模型,低秩蒙特卡洛策略迭代(Low Rank Monte Carlo Policy Iteration, LR-MCPI)和低秩经验值迭代(Low Rank Empirical Value Iteration, LR-EVI)可达到期望的样本复杂度$\tilde{O}((|S|+|A|)\text{poly}(d,H)/ε^2)$($d$为秩参数),该复杂度在$|S|$、$|A|$和$ε$的缩放关系上是极小极大最优的。与线性MDP和低秩MDP相关文献不同,我们不需要已知的特征映射,算法计算简单,且结果在长时域下依然成立。我们的研究为MDP上关于转移核与最优动作-价值函数所需的最低限度低秩结构假设提供了洞见。
英文摘要:
The practicality of reinforcement learning algorithms has been limited due to poor scaling with respect to the problem size, as the sample complexity of learning an $ε$-optimal policy is $\tildeΩ\left(|S||A|H^3 / ε^2\right)$ over worst case instances of an MDP with state space $S$, action space $A$, and horizon $H$. We consider a class of MDPs for which the associated optimal $Q^*$ function is low rank, where the latent features are unknown. While one would hope to achieve linear sample complexity in $|S|$ and $|A|$ due to the low rank structure, we show that without imposing further assumptions beyond low rank of $Q^*$, if one is constrained to estimate the $Q$ function using only observations from a subset of entries, there is a worst case instance in which one must incur a sample complexity exponential in the horizon $H$ to learn a near optimal policy. We subsequently show that under stronger low rank structural assumptions, given access to a generative model, Low Rank Monte Carlo Policy Iteration (LR-MCPI) and Low Rank Empirical Value Iteration (LR-EVI) achieve the desired sample complexity of $\tilde{O}\left((|S|+|A|)\mathrm{poly}(d,H)/ε^2\right)$ for a rank $d$ setting, which is minimax optimal with respect to the scaling of $|S|, |A|$, and $ε$. In contrast to literature on linear and low-rank MDPs, we do not require a known feature mapping, our algorithm is computationally simple, and our results hold for long time horizons. Our results provide insights on the minimal low-rank structural assumptions required on the MDP with respect to the transition kernel versus the optimal action-value function.
BarrierSteer: LLM Safety via Learning Barrier Steering
Department of Computer Science, National University of Singapore(新加坡国立大学计算机科学系);Singapore-MIT Alliance for Research and Technology Centre(新加坡-麻省理工联合研究中心);CSAIL, Massachusetts Institute of Technology(麻省理工学院计算机科学与人工智能实验室);Worcester Polytechnic Institute(沃斯堡理工学院)
Barriers and Dynamical Paths in Alternating Gibbs Sampling of Restricted Boltzmann Machines
Laboratory of Physics of the \'Ecole Normale Sup\'erieure, CNRS UMR 8023 \& PSL Research, Sorbonne Universit\'e, 24 rue Lhomond, 75005 Paris, France
受限玻尔兹曼机(RBM)是一种双层神经网络,用于从数据中无监督地学习模型分布。RBM的二分体系结构自然定义了一个优雅的采样过程,称为交替吉布斯采样(AGS),其中潜变量层的配置被采样为数据变量层的条件,反之亦然。我们在这里研究的性能AGS几个分析听话的模型借用统计力学。我们表明,标准的AGS是不是更有效的比经典的大都会黑斯廷斯(MH)采样的有效能源景观上定义的数据层。然而,RBM可以识别训练数据在其潜在空间中的有意义的表示。此外,使用这些表示,并结合吉布斯采样与MH算法在潜在的空间可以提高RBM的采样性能时,隐藏单元编码弱相关的数据特征。我们在三个数据集上说明了我们的发现:在机器学习中众所周知的Bars and Stripes和MNIST,以及在理论生物学中引入的所谓的Lattice Proteins,用于研究蛋白质中的序列到结构映射。