• 学习理论:在线弃权学习


    上个月京吹新剧场版上映,宇治各种宣发力度挺足的。正好读研时的同学来京都玩,一起去逛了宇治,顺便品抹茶赏樱花。上图就是在宇治市观光中心拍的(#^.^#)。

    关于自己的科研进展,目前是读博期间第一份工作已经基本结束,之前先参加了个AISTATS 2026在摩洛哥办的首届workshop并进行了poster发表(论文链接:Multi-Class Classification with absention Based on Crammer–Singer Surrogate with Linear Growth Rate[1]),然后在摩洛哥的卡萨布兰卡机场完成了往NeurIPS的正式论文提交。这份工作的贡献主要在于基于Crammer-Singer损失为多分类弃权学习给出了凸的代理损失函数族,并在一定的函数配置下可以达到 O(t)" role="presentation">O(t)的excess risk rate,好于目前Mao et al.[2]那份工作的O(max{t,t})" role="presentation">O(max{t,t})的结果(PS: excess risk rate考虑的是t0" role="presentation">t0的渐进结果)。关于弃权学习和Mao et al.那份工作的介绍可参见我往期的博客《学习理论:预测器-拒绝器多分类弃权学习[3],后续如果我的那份工作被正式录用了的话也计划写一篇博客进行分享(包括一些在其中用到的证明技巧)。目前的话导师那边已经让我开始构思下一份工作了,于是我接着调研了一下在线弃权学习[4]的领域情况,本篇博客也就拟对这些领域进行一个大致的介绍。

    1 在线弃权学习问题定义

    X" role="presentation">X为输入空间(例如Rd" role="presentation">Rd的有界子集),H" role="presentation">H为预测器h:XY" role="presentation">h:XY的函数类,并假设hH" role="presentation">hH 在有标签样本对(x,y)X×Y" role="presentation">(x,y)X×Y所计算的损失l(y,h(x))" role="presentation">l(y,h(x))可以定义为0/1损失Ih(x)y" role="presentation">Ih(x)y或一些其它满足Lipschitz性质的变体。 在在线弃权学习中,有K" role="presentation">K专家(expert) 对应不同的预测器h1(),,hK()" role="presentation">h1(),,hK()(可能还会有拒绝器),分别对应K" role="presentation">K个不同的动作(类似bandit中arm)。依赖于设置,K" role="presentation">K可以为有限或(不可数)无限的。假设可供选择的专家集合对学习算法是事先已知的。

    大致地说,在线弃权学习的一般流程如下:

    在第t[T]" role="presentation">t[T]轮时,在线算法接收输入xtX" role="presentation">xtX,并根据专家1,2,,K" role="presentation">1,2,,K的输出结果来判定是做预测还是弃权(可能是随机抽取一个专家It" role="presentation">It,也可能是多个专家的加权平均):

    • 若选择弃权,则算法弃权并产生一个大小为弃权代价c(xt)[0,1]" role="presentation">c(xt)[0,1]的损失;

    • 否则,根据专家1,,K" role="presentation">1,,K的输出h1(xt),,hK(xt)" role="presentation">h1(xt),,hK(xt)的来进行预测(可能是随机抽取一个专家It" role="presentation">It,也可能是多个专家的加权平均)。

    然后,各个专家计算各自的损失Lt,i" role="presentation">Lt,i,并根据损失更新各个专家的加权参数(如果有的话)。

    专家i" role="presentation">i在有标签样本对z=(x,y)X×Y" role="presentation">z=(x,y)X×Y上的弃权损失(absention loss) 的典型定义方式为:

    L(hi,z)=l(y,hi(x))I选择预测+cI选择弃权" role="presentation">L(hi,z)=l(y,hi(x))I选择预测+cI选择弃权

    (出于简洁,我们假设弃权代价c(x)" role="presentation">c(x)为一个独立于x" role="presentation">x的已知常数c[0,1]" role="presentation">c[0,1]

    这个弃权损失与我们在博客《学习理论:预测器-拒绝器多分类弃权学习》[3]中所介绍的类似,不过这里需要注意的是,标签y" role="presentation">y不一定对所有专家都是可知的:标签y" role="presentation">y可能仅当不弃权时可知[4],也可能仅当弃权的时候可知[8],也可能无论弃权与否都可知[9]。而这也就导致了如上式所示的弃权损失函数并不一定对所有专家都是可观测的。对于前两种情况,仅有部分专家可以观测到如上式所示的损失函数,我们称其为是部分信息(partial information) 的 ,而最后一种情况所有专家都可以观测到如上式所示的损失函数,我们称其是 完全信息(full information) 的。

    所谓部分信息设置可以视为介于完全信息和传统bandit之间的一种设置[5][7]。此三者的对比如下:

    • 完全信息: 每一轮t" role="presentation">t中,学习器可以观测到完整的损失函数Lt()" role="presentation">Lt(),因此可以利用函数的信息(比如梯度)更新模型。
    • bandit: 每一轮t" role="presentation">t中,学习器通常只能观测到损失函数在所选决策ξIt" role="presentation">ξIt上的值Lt(ξIt)" role="presentation">Lt(ξIt),不能观测到损失函数在其它决策上的值。
    • 部分信息: 每一轮t" role="presentation">t中,学习器可以观测到损失函数在一个决策集合{ξi}" role="presentation">{ξi}(包括所选决策ξIt" role="presentation">ξIt在内)上的值{Lt(ξi)}i" role="presentation">{Lt(ξi)}i

    部分信息设置的在线学习有时也被称为附加信息的bandit(bandit with side-information)

    和传统bandit问题相似,在线弃权学习也会考虑对抗(adversarial)随机(stochastic) 两种设置[5][7]

    传统bandit问题中的对抗和随机设置如下:

    • 对抗设置 每一轮t" role="presentation">t中,学习器选择arm ξIt" role="presentation">ξIt后,一个对手(adversary)对其行动赋予代价Lt(ξIt)" role="presentation">Lt(ξIt)。学习器可以观察到行动ξIt" role="presentation">ξIt的代价,除此之外什么也得不到。学习器的目标是最小化它的regret。
    • 随机设置 每一轮t" role="presentation">t中,学习器选择arm ξIt" role="presentation">ξIt后,根据从一个分布中i.i.d采样的损失函数Lt()" role="presentation">Lt()来计算其代价Lt(ξIt)" role="presentation">Lt(ξIt)。学习器可以观察到行动ξIt" role="presentation">ξIt的代价,除此之外什么也得不到。学习器的目标是最小化它的regret。

    具体在在线弃权学习中,它们的区别在于:对抗设置不会对序列zt=(xt,yt),t[T]" role="presentation">zt=(xt,yt),t[T]做出分布假设,而随机设置则会假设zt" role="presentation">zt i.i.d.地采自某个在X×Y" role="presentation">X×Y上的分布D" role="presentation">D。在这两种设置中,都可以通过算法A" role="presentation">A的(伪)regret RT(A)" role="presentation">RT(A) 来度量算法A" role="presentation">A的表现,如果在第t" role="presentation">t轮随机抽取了专家It" role="presentation">It,那么它可以采用如下的方式来定义:

    RT(A)=E[t=1TL(hIt,zt)infi[K]t=1TL(hi,zt)]" role="presentation">RT(A)=E[t=1TL(hIt,zt)infi[K]t=1TL(hi,zt)]

    其中期望所对应的随机性一是来源于算法所选择的{It}t=1T" role="presentation">{It}t=1T,二是来源于在随机情形下所采样的{zt}t=1T" role="presentation">{zt}t=1T。对于专门设置拒绝器的情况,式子中的hIt" role="presentation">hIth" role="presentation">h可以分别替换为(hIt,rIt)" role="presentation">(hIt,rIt)(h,r)" role="presentation">(h,r)

    在随机设置下,考虑专家集合有限的情况,设此时有K" role="presentation">K个专家,则可以将专家 i[K]" role="presentation">i[K]的期望损失和最优专家的期望损失分别表示为:

    μi=EzD[L(hi,z)],μ=mini[K]μi" role="presentation">μi=EzD[L(hi,z)],μ=mini[K]μi

    其中对于有拒绝器的情况hi" role="presentation">hi可以替换为h" role="presentation">h。然后,可以Δi" role="presentation">Δi表示μi" role="presentation">μiμ" role="presentation">μ之间的差距:

    Δi=μiμ" role="presentation">Δi=μiμ

    这一项经常出现在随机设置相关的regret界中。

    2 仅当不弃权时反馈可知

    现考虑仅当不弃权时反馈可知的情况,其代表性论文为《Online learning with absention》[4]。该论文考虑在线二分类场景,设此时的预测器为h:XR" role="presentation">h:XR(根据其正负号判断0/1类别),于是0/1损失可以写为Iyh(x)0" role="presentation">Iyh(x)0。此外,论文还另外设置有拒绝器r:XR" role="presentation">r:XR。设R" role="presentation">R为弃权函数r:XR" role="presentation">r:XR的函数类,r0" role="presentation">r0表示对xX" role="presentation">xX进行弃权(或者说拒绝),r>0" role="presentation">r>0表示对x" role="presentation">x进行预测(或者说接受)。给定hi" role="presentation">hi,一个与之相关的弃权函数ri" role="presentation">ri的自然选择是形如 ri(x)=|hi(x)|θ" role="presentation">ri(x)=|hi(x)|θ 的基于置信度的弃权函数,其中θ" role="presentation">θ为某个阈值。除此之外,也可以考虑更多一般形式的ri" role="presentation">ri

    论文算法的基本流程大致如下:在第t[T]" role="presentation">t[T]轮时,在线算法接收输入xtX" role="presentation">xtX并选择(可能是随机地)一个专家It" role="presentation">It

    • rIt(xt)0" role="presentation">rIt(xt)0,则算法弃权并产生一个大小为弃权代价c[0,1]" role="presentation">c[0,1]的损失。

    • 否则,根据hIt(xt)" role="presentation">hIt(xt)的符号来进行预测,并接收真实标签yt{±1}" role="presentation">yt{±1}来计算损失l(yt,hIt(xt))" role="presentation">l(yt,hIt(xt))

    因此,(h,r)" role="presentation">(h,r)在标签对z=(x,y)" role="presentation">z=(x,y)上整个弃权损失L" role="presentation">L定义为:

    L(h,r)=l(y,h(x))Ir(x)>0+cIr(x)0" role="presentation">L(h,r)=l(y,h(x))Ir(x)>0+cIr(x)0

    这里需要注意的是,如果学习器在第t" role="presentation">t轮选择预测(也即当rIt(x)>0" role="presentation">rIt(x)>0时),由于标签yt" role="presentation">yt已经暴露给了它,它可以观察到每个专家 i[K]" role="presentation">i[K]的损失L(hi,ri,zt)" role="presentation">L(hi,ri,zt)。然而,如果它在第t" role="presentation">t轮选择弃权(也即rIt(x)0" role="presentation">rIt(x)0),则它将只观测到与在该轮中选择弃权的专家j" role="presentation">j相关的损失 L(hj,rj,zt)=c" role="presentation">L(hj,rj,zt)=c,其中j" role="presentation">j取自满足rj(xt)0" role="presentation">rj(xt)0j" role="presentation">j集合。这是因为此时对所有这样的j" role="presentation">j,我们都有L(hj,rj,zt)=c" role="presentation">L(hj,rj,zt)=c。这里需要注意的是,在这两种情况中学习器都可以观测它自己动作It" role="presentation">It的损失。

    这种部分信息的在线学习设置可以用反馈图(feedback graph) 来描述。带反馈图的在线学习是一个囊括了多种在线学习设置的一般性框架,在完全信息设置下图是全连接的,而在传统bandit设置下顶点通常是只有自环且分离的。设依赖于xt" role="presentation">xt的有向图Gtabs=(V,Et)" role="presentation">Gtabs=(V,Et)。这里,V={ξ1,,ξK}" role="presentation">V={ξ1,,ξK}表示图的有限顶点集,对应专家组成的有限集。Et" role="presentation">Et表示第t" role="presentation">t轮时的有向边集合。如果当t" role="presentation">t轮时算法选择专家i" role="presentation">i时,专家j[K]" role="presentation">j[K]的损失被观测到,则Et" role="presentation">Et中将会存在边ξiξj" role="presentation">ξiξj

    因此,在仅当不弃权时反馈可知的设置下,反馈图是一个带自环的接近全连接的图,不过在预测顶点和弃权顶点之间,只有从预测顶点到弃权顶点的单向边(下图展示了一个当专家数K" role="presentation">K为5时的一个例子)。

    从上图中可以看到反馈图Gtabs" role="presentation">Gtabs完全由xt" role="presentation">xt确定,这是由于xt" role="presentation">xt确定后则可根据{ri(xt)}" role="presentation">{ri(xt)}决定每个专家i" role="presentation">i的弃权情况,从而确定反馈图。

    依据《Online learning with absention》[4]这篇论文的作者的观点,对于这种设置下的弃权损失L(hi,ri,z)" role="presentation">L(hi,ri,z),难以找到其代理凸上界来使用在线凸优化方法。事实上,论文作者更多地是采用离散的视角,使用bandit中的许多技术来设计的算法。论文作者讨论了对抗和随机两种设置,我们下面以对抗设置为例进行介绍。而对抗设置又可以具体分为有限和无限个专家的场景。

    我们先讨论有限多个专家的对抗设置。论文作者同时结合了诸如EXP3的标准有限arm的bandit算法和反馈图Gtabs" role="presentation">Gtabs来为弃权场景设计在线算法,并将其称为EXP3-ABS(EXP3 with absention)[4]。该算法为EXP3的变种,其中为了达到对Lt(hi,ri,zt)" role="presentation">Lt(hi,ri,zt)无偏损失估计的重要性采样参数是根据被观测到的专家的损失来计算的,而不是根据被选中的专家的损失来计算的。EXP3-ABS算法的大致流程如下:

    • 对每一轮迭代t[T]" role="presentation">t[T]:
      • 采样专家索引

      Itpt=wt,iwt,j,i[K]" role="presentation">Itpt=wt,iwt,j,i[K]

      • 如果rIt(xt)>0" role="presentation">rIt(xt)>0则获得标签yt" role="presentation">yt
      • 对所有i[K]" role="presentation">i[K],计算

        L^t(hi,ri,zt)=Lt(hi,ri,zt)Pt,i(IrIt(xt)0Iri(xt)0+IrIt(xt)>0)" role="presentation">L^t(hi,ri,zt)=Lt(hi,ri,zt)Pt,i(IrIt(xt)0Iri(xt)0+IrIt(xt)>0)

        其中

        Pt,i={1if ri(xt)0i:ri(xt)>0pt,iif ri(xt)>0" role="presentation">Pt,i={1if ri(xt)0i:ri(xt)>0pt,iif ri(xt)>0

      • 对所有i[K]" role="presentation">i[K],做如下更新:

        wt+1,i=wt,iexp(ηL^t(hi,ri,zt))" role="presentation">wt+1,i=wt,iexp(ηL^t(hi,ri,zt))

    该算法满足下列bound:

    定理 1 设EXP3-ABS在K" role="presentation">K个专家上以学习率η" role="presentation">η运行,于是该算法在T" role="presentation">T轮后满足下列regret保证:

    RT(EXP3-ABS)(logK)/η+ηT(c2+1)/2" role="presentation">RT(EXP3-ABS)(logK)/η+ηT(c2+1)/2

    特别地,如果EXP3-ABS以η=2logK(c2+1)T" role="presentation">η=2logK(c2+1)T运行,则有RT(EXP3-ABS)2(c2+1)TlogK" role="presentation">RT(EXP3-ABS)2(c2+1)TlogK

    这个界对专家个数K" role="presentation">K的依赖相比标准的EXP3更有优势(为logK" role="presentation">logK而不是K" role="presentation">K)。可以由此联系到使用上下文bandit算法(contextual bandit algorithm) EXP4达到的界。

    接下来考虑不可数无限的专家的情况。为了建模这个更一般的框架,读者可能想要尝试关注函数h" role="presentation">hr" role="presentation">r的参数化类,也即下列线性函数的类E" role="presentation">E:

    {(h,r):h(x)=wx,r(x)=|wx|θ,wRd,θ>0}" role="presentation">{(h,r):h(x)=wx,r(x)=|wx|θ,wRd,θ>0}

    并引入一些前文提到的弃权损失L(h,r,z)" role="presentation">L(h,r,z)的凸代理并在(w,θ)" role="presentation">(w,θ)的参数空间中运行在线凸优化算法[3]。不过论文作者认为这并不容易,因为这里的代理损失不仅需要确保凸性以及某种形式的校准,也需要确保算法能够观测其自身动作的的损失(也即反馈图Gtabs" role="presentation">Gtabs中的自环)。

    论文作者没有通过仅仅求助于凸代理损失来解决这个问题。取而代之地,论文作者引入了满足Lipschitz性质而非凸的代理弃权损失。设每轮迭代的专家(h,r)" role="presentation">(h,r)从值域为E=[1,1]×[1,1]" role="presentation">E=[1,1]×[1,1]的连续函数类中采样得到,且假设函数h" role="presentation">hr" role="presentation">r关于某个Rd" role="presentation">Rd上的合适度量是LE" role="presentation">LE-Lipschitz的(这里常数LE" role="presentation">LE决定了函数类E" role="presentation">E的大小)。考虑l(y,h(x))=fγ(yh(x))" role="presentation">l(y,h(x))=fγ(yh(x))的弃权损失L(h,r,z)" role="presentation">L(h,r,z)

    L(h,r,z)=fγ(yh(x))Ir(x)>0+c(x)Ir(x)0" role="presentation">L(h,r,z)=fγ(yh(x))Ir(x)>0+c(x)Ir(x)0

    其中fγ" role="presentation">fγ是一个做为0-1损失函数的变体的分段函数,它在原点斜率为1/2γ" role="presentation">1/2γ,其定义如下:

    fγ(a)=(γ+a2γ)I|a|γ+Ia0I|a|>γ" role="presentation">fγ(a)=(γ+a2γ)I|a|γ+Ia0I|a|>γ

    其图像如下:

    对于这种不可数无限的情况,使用Cesa-Bianchi等人论文[5]的idea,作者提出一个在使用弃权设置结构的同时通过有限覆盖来近似动作空间的算法,其中用到了经典的“ϵ" role="presentation">ϵ-网”[10][11],在假设原集合有界的情况下尝试用半径为ϵ" role="presentation">ϵ的球去覆盖原集合。这里假设除了E" role="presentation">E之外,输出空间X" role="presentation">X亦有界,则存在常数CX>0" role="presentation">CX>0使得对所有0<ϵ1" role="presentation">0<ϵ1X" role="presentation">X都能被至多CXϵd" role="presentation">CXϵd个半径为ϵ" role="presentation">ϵ的球覆盖。类似地,存在常数CE>0" role="presentation">CE>0使得对所有0<ϵ1" role="presentation">0<ϵ1E" role="presentation">E都能至多被CEϵ2" role="presentation">CEϵ2个半径为ϵ" role="presentation">ϵ的球覆盖。记专家集合E" role="presentation">E关于常数Cϵ" role="presentation">Cϵ的覆盖为Cϵ" role="presentation">Cϵ。此外,作者在保持反馈假设(即反馈图Gtabs" role="presentation">Gtabs不变的条件下,定义了做为弃权损失上界的Lipschitz函数L~" role="presentation">L~。其中一个能够精确解决问题的Lipschitz函数如下:

    L~(h,r,z)={cif r(x)γ1+(1cγ)r(x)if r(x)(γ,0)1(1fγ(yh(x))γ)r(x)if r(x)[0,γ)fγ(yh(x))if r(x)γ" role="presentation">L~(h,r,z)={cif r(x)γ1+(1cγ)r(x)if r(x)(γ,0)1(1fγ(yh(x))γ)r(x)if r(x)[0,γ)fγ(yh(x))if r(x)γ

    其中γ(0,1)" role="presentation">γ(0,1)L~(h,r,z)" role="presentation">L~(h,r,z)的图像如下图所示:

    该图的解释:给定x" role="presentation">x和间隔a=yh(x)" role="presentation">a=yh(x)的值(间隔确定后则函数值fγ(a)[0,1]" role="presentation">fγ(a)[0,1]亦确定),描绘目标弃权损失函数L(a,r)" role="presentation">L(a,r)(蓝色虚线)和代理弃权损失函数L~(a,r)" role="presentation">L~(a,r)(红色实线)随r=r(x)[1,1]" role="presentation">r=r(x)[1,1]的变化。

    注意该函数满足反馈假设的要求:若rIt(x)0" role="presentation">rIt(x)0,则对使得r(xt)0" role="presentation">r(xt)0(h,r)E" role="presentation">(h,r)E,算法可以得知L~((h(xt),r(xt)),zt)" role="presentation">L~((h(xt),r(xt)),zt)的值(独立于yt" role="presentation">yt);若rIt(x)>0" role="presentation">rIt(x)>0,则由于yt" role="presentation">yt被观测到,算法可以得到L~((h(xt),r(xt)),zt)" role="presentation">L~((h(xt),r(xt)),zt)关于所有(h,r)E" role="presentation">(h,r)E的完全知识。

    论文作者设计了EXP3-ABS的上下文版本以应用于代理损失序列L~(ξ,zt),t[T]" role="presentation">L~(ξ,zt),t[T]。该算法用固定半径ϵ" role="presentation">ϵ的球来自适应地覆盖X" role="presentation">X,每个球对应一个可以运行EXP3-ABS算法的实例。论文作者称这个算法为CONTEXP3-ABS。CONTEXP3-ABS的大致流程如下:

    • 对每一轮迭代t[T]" role="presentation">t[T]:
      • 接收xt" role="presentation">xt
      • 如果xt" role="presentation">xt不属于任何已存在的球,则创建以xt" role="presentation">xt为中心的半径为ϵ" role="presentation">ϵ的新球,并分配一个EXP3-ABS的新实例;
      • 找到离xt" role="presentation">xt最近的现有球中心xs" role="presentation">xs,将该球所对应的实例记为“Active EXP3-ABS”;
      • 使用“Active EXP3-ABS”采样专家

        (h,r)ItEϵ" role="presentation">(h,r)ItEϵ

      • 获得关于(h,r)It" role="presentation">(h,r)It的损失反馈并用其来更新“Active EXP3-ABS”的状态。

    定理 2 考虑弃权损失L(h,r,z)=fγ(yh(x))Ir(x)>0+cIr(x)0" role="presentation">L(h,r,z)=fγ(yh(x))Ir(x)>0+cIr(x)0并设(h,r)=argmin(h,r)Et=1TL(h,r,zt)" role="presentation">(h,r)=argmin(h,r)Et=1TL(h,r,zt),其中E={(h,r)}" role="presentation">E={(h,r)}由之前提到过的满足Lipschitz性质的函数对组成。如果CONTEXP3-ABS以参数ϵT12+dγ22+d" role="presentation">ϵT12+dγ22+d和一个合适的学习率运行,则它满足以下的regret保证:

    RT(CONTEXP3-ABS)O~(Td+1d+2γdd+2)+MT(γ)" role="presentation">RT(CONTEXP3-ABS)O~(Td+1d+2γdd+2)+MT(γ)

    其中MT(γ)" role="presentation">MT(γ)是使得|r(xt)|γ" role="presentation">|r(xt)|γxt" role="presentation">xt的数量。在上面的叙述中,O~" role="presentation">O~隐藏了常量与ln(T)" role="presentation">ln(T)因子,而" role="presentation">则忽视了诸如LE" role="presentation">LE的常量与各类log因子。

    3 仅当弃权时反馈可知

    也有论文假设当学习器选择弃权时反馈可知的,比如《Online Selective Classification with Limited Feedback》[6]这篇文章。接下来假设不设置拒绝器,而是将标签空间增广为Y{}" role="presentation">Y{}。设H" role="presentation">H为在增广标签空间上定义的预测器h(x):XY{}" role="presentation">h(x):XY{}组成的函数类。

    与之前提到的那篇论文类似,该论文也讨论了对抗和随机两种设置。我们下面以随机设置为例进行介绍。专家 h" role="presentation">h在有标签样本对z=(x,y)X×{±1}" role="presentation">z=(x,y)X×{±1}上的弃权损失可以定义为:

    L(h,x,y)=Ctl(y,h(x))Ih(xt)+cIh(xt)=" role="presentation">L(h,x,y)=Ctl(y,h(x))Ih(xt)+cIh(xt)=

    在此基础上,论文提出的Mixed-Loss-Prod算法大致流程如下:

    • 对每一轮迭代t[T]" role="presentation">t[T]:
      • 采样专家索引

        Itpt=wt,iwt,j,i[K]" role="presentation">Itpt=wt,iwt,j,i[K]

      • 采样伯努利变量 CtBern(p)" role="presentation">CtBern(p)
      • 如果Ct=1" role="presentation">Ct=1则直接返回y^t=" role="presentation">y^t=并获得标签yt" role="presentation">yt,反之返回y^t=hi(xt)Y{}" role="presentation">y^t=hi(xt)Y{}
      • 对所有i[K]" role="presentation">i[K], 计算

        Lt,i={l(yt,y^ti)Iy^ti+cIy^ti=if Ct=1cIy^ti=if Otherwise" role="presentation">Lt,i={l(yt,y^ti)Iy^ti+cIy^ti=if Ct=1cIy^ti=if Otherwise

      • 对所有i[K]" role="presentation">i[K], 做如下更新:

        wt+1,i=wt,i(1ηL(hi,zt))" role="presentation">wt+1,i=wt,i(1ηL(hi,zt))

    论文定义了以下两个指标做为算法性能的度量,分别是学习器的犯错数和弃权次数:

    MT:=tTIy^{,yt},AT=tTIy^t=" role="presentation">MT:=tTIy^{,yt},AT=tTIy^t=

    此外,论文还定义了最佳事后分类器(best-in-hindsight)的概念,也即需要在不犯错的情况下尽量少弃权:

    fargminfFtTIy^t=,s.t.tTIy^{,yt}=0" role="presentation">fargminfFtTIy^t=,s.t.tTIy^{,yt}=0

    对于Mixed-Loss-Prod算法,有如下定理成立:

    定理 3 若Mixed-Loss-Prod算法以η=1/2" role="presentation">η=1/2λc" role="presentation">λc运行,则满足:

    E[MT]2logKp+2λpE[AT],E[ATAT]pT+2logKλ" role="presentation">E[MT]2logKp+2λpE[AT],E[ATAT]pT+2logKλ

    4 无论弃权与否反馈都可知

    也有论文假设无论学习器是否弃权与否反馈都可知的。比如《Fast Rates for Online Prediction with Abstention》[9]这篇文章。现考虑预测器h(x):XY" role="presentation">h(x):XY组成的函数类。论文提出的算法大致流程如下:

    • 对每一轮迭代t[T]" role="presentation">t[T]:
      • 对所有专家i[K]" role="presentation">i[K],计算预测标签y^t,i=hi(xt)Y" role="presentation">y^t,i=hi(xt)Y

      • 对所有专家的预测标签进行加权平均,得到一个软概率:

        pt=i[K]wt,iyt,ij[K]wt,j" role="presentation">pt=i[K]wt,iyt,ij[K]wt,j

      • 计算置信度参数pt=max{pt,1pt}" role="presentation">pt=max{pt,1pt}(用于决定是否弃权);

      • 设弃权概率αt=2(1pt)" role="presentation">αt=2(1pt)

        y^t={with probability αtIpt12with probability 1αt" role="presentation">y^t={with probability αtIpt12with probability 1αt

      • 对所有i[K]" role="presentation">i[K], 计算

        Lt,i=l(yt,y^t,i)" role="presentation">Lt,i=l(yt,y^t,i)

      • 对所有i[K]" role="presentation">i[K], 做如下更新:

        wt+1,i=wt,iexp(ηLt,i)" role="presentation">wt+1,i=wt,iexp(ηLt,i)

    注意由于pt12" role="presentation">pt12,弃权概率α[0,1]" role="presentation">α[0,1]。为了从直觉上理解这个规则,可以发现当分配给弃权操作一个数值=12" role="presentation">=12时,预测结果的期望

    E[pt]=12αt+(1αt)Ipt12=(1pt)+(2pt1)Ipt12={(1pt)+(2pt1)if pt12ptif pt<12=pt" role="presentation">E[pt]=12αt+(1αt)Ipt12=(1pt)+(2pt1)Ipt12={(1pt)+(2pt1)if pt12ptif pt<12=pt

    该算法对应的regret可定义如下:

    RT=E[t=1TL^tinfi[K]t=1TLt,i]" role="presentation">RT=E[t=1TL^tinfi[K]t=1TLt,i]

    其中

    L^t={l(yt,y^t)if y^t{0,1}cif y^t=" role="presentation">L^t={l(yt,y^t)if y^t{0,1}cif y^t=

    关于该算法的表现有下列结果:

    定理 4 假设c<12" role="presentation">c<12η2(12c)" role="presentation">η2(12c)。则上述算法的regret满足

    RTlogKη" role="presentation">RTlogKη

    特别地,该定理只要弃权损失c" role="presentation">c远离1/2" role="presentation">1/2,我们都可以设置η=2(12c)" role="presentation">η=2(12c)且算法可以达到独立于迭代轮数T" role="presentation">T的regret界。然而,当c" role="presentation">c很接近1/2" role="presentation">1/2时,可能会退回到regret保证为TlogK" role="presentation">TlogK阶的标准最坏情形。在这种不利情形下,这个阶可以通过选择一个保守的η" role="presentation">η值而轻易达到。下面这个关于定理4的推论总结了算法在不同情况下所能达到的率。

    推论 1η=max{2(12c),8logKT}" role="presentation">η=max{2(12c),8logKT},算法的regret满足

    RTmin{logK2(12c),TlogK2}" role="presentation">RTmin{logK2(12c),TlogK2}

    参考

    • [1] Zhang, Hongyu, Han Bao, and Junya Honda. "Multi-Class Classification with Abstention Based on Crammer–Singer Surrogate with Linear Growth Rate." Towards Trustworthy Predictions: Theory and Applications of Calibration for Modern AI.
    • [2] Mao, Anqi, Mehryar Mohri, and Yutao Zhong. "Predictor-rejector multi-class abstention: Theoretical analysis and algorithms." International Conference on Algorithmic Learning Theory. PMLR, 2024.
    • [3] 《学习理论:预测器-拒绝器多分类弃权学习》
    • [4] Cortes, Corinna, et al. "Online learning with absention." International Conference on Machine Learning. PMLR, 2018.
    • [5] Hazan, Elad. "Introduction to online convex optimization." Foundations and Trends in Optimization 2.3-4 (2016): 157-325.
    • [6] Cesa-Bianchi, Nicolò, et al. "Algorithmic chaining and the role of partial feedback in online nonparametric learning." Conference on Learning Theory. PMLR, 2017.
    • [7] 周志华, 王魏, 高尉, 张利军. 机器学习理论导引[M]. 机械工业出版社, 2020.
    • [8] Gangrade, Aditya, et al. "Online selective classification with limited feedback." Advances in Neural Information Processing Systems 34 (2021): 14529-14541.
    • [9] Neu, Gergely, and Nikita Zhivotovskiy. "Fast rates for online prediction with abstention." Conference on Learning Theory. PMLR, 2020.
    • [10] Zhou, Quan, Mark Kozdoba, and Shie Mannor. "Representative Action Selection for Large Action Space Meta-Bandits." arXiv preprint arXiv:2505.18269 (2025).
    • [11] 《学习理论:凸代理、代理与估计误差界》

    __EOF__

  • 本文作者: 猎户座
  • 本文链接: https://www.cnblogs.com/orion-orion/p/20086331
  • 关于博主: PhD在读学生一枚,目前主要方向是学习理论和在线优化。
  • 版权声明: 欢迎您对我的文章进行转载,但请务必保留原始出处哦(*^▽^*)。
  • 声援博主: 如果您觉得文章对您有帮助,可以点击文章右下角推荐一下。
  • 相关阅读:
    Python如何使用PyMySQL连接数据库
    【管理运筹学】第 9 章 | 网络计划(2,时间参数的计算 —— 工作的时间参数)
    vue——后台权限界面(el-tree)
    软考入门级了解(时间,费用,流程),无广告成分
    bootstrap5 常用类大全
    C++ 20 内存模型(一)
    软件成分分析(SCA)完全指南
    现货白银有哪些优势
    为什么测试/开发程序员有很多都是秃头?现实居然是这样......
    JavaWeb传统商城(MVC三层架构)的促销功能模块【进阶版】
  • 原文地址:https://www.cnblogs.com/orion-orion/p/20086331