{ "id": "2211.00053", "annotator": "jiangshu", "input": [ "\\documentclass{article} \n", "\\usepackage{iclr2023_conference,times}\n", "\\usepackage{amsmath,amsfonts,bm}\n", "\\newcommand{\\figleft}{{\\em (Left)}}\n", "\\newcommand{\\figcenter}{{\\em (Center)}}\n", "\\newcommand{\\figright}{{\\em (Right)}}\n", "\\newcommand{\\figtop}{{\\em (Top)}}\n", "\\newcommand{\\figbottom}{{\\em (Bottom)}}\n", "\\newcommand{\\captiona}{{\\em (a)}}\n", "\\newcommand{\\captionb}{{\\em (b)}}\n", "\\newcommand{\\captionc}{{\\em (c)}}\n", "\\newcommand{\\captiond}{{\\em (d)}}\n", "\\newcommand{\\newterm}[1]{{\\bf #1}}\n", "\\def\\figref#1{figure~\\ref{#1}}\n", "\\def\\Figref#1{Figure~\\ref{#1}}\n", "\\def\\twofigref#1#2{figures \\ref{#1} and \\ref{#2}}\n", "\\def\\quadfigref#1#2#3#4{figures \\ref{#1}, \\ref{#2}, \\ref{#3} and \\ref{#4}}\n", "\\def\\secref#1{section~\\ref{#1}}\n", "\\def\\Secref#1{Section~\\ref{#1}}\n", "\\def\\twosecrefs#1#2{sections \\ref{#1} and \\ref{#2}}\n", "\\def\\secrefs#1#2#3{sections \\ref{#1}, \\ref{#2} and \\ref{#3}}\n", "\\def\\eqref#1{equation~\\ref{#1}}\n", "\\def\\Eqref#1{Equation~\\ref{#1}}\n", "\\def\\plaineqref#1{\\ref{#1}}\n", "\\def\\chapref#1{chapter~\\ref{#1}}\n", "\\def\\Chapref#1{Chapter~\\ref{#1}}\n", "\\def\\rangechapref#1#2{chapters\\ref{#1}--\\ref{#2}}\n", "\\def\\algref#1{algorithm~\\ref{#1}}\n", "\\def\\Algref#1{Algorithm~\\ref{#1}}\n", "\\def\\twoalgref#1#2{algorithms \\ref{#1} and \\ref{#2}}\n", "\\def\\Twoalgref#1#2{Algorithms \\ref{#1} and \\ref{#2}}\n", "\\def\\partref#1{part~\\ref{#1}}\n", "\\def\\Partref#1{Part~\\ref{#1}}\n", "\\def\\twopartref#1#2{parts \\ref{#1} and \\ref{#2}}\n", "\\def\\ceil#1{\\lceil #1 \\rceil}\n", "\\def\\floor#1{\\lfloor #1 \\rfloor}\n", "\\def\\1{\\bm{1}}\n", "\\newcommand{\\train}{\\mathcal{D}}\n", "\\newcommand{\\valid}{\\mathcal{D_{\\mathrm{valid}}}}\n", "\\newcommand{\\test}{\\mathcal{D_{\\mathrm{test}}}}\n", "\\def\\eps{{\\epsilon}}\n", "\\def\\reta{{\\textnormal{$\\eta$}}}\n", "\\def\\ra{{\\textnormal{a}}}\n", "\\def\\rb{{\\textnormal{b}}}\n", "\\def\\rc{{\\textnormal{c}}}\n", "\\def\\rd{{\\textnormal{d}}}\n", "\\def\\re{{\\textnormal{e}}}\n", "\\def\\rf{{\\textnormal{f}}}\n", "\\def\\rg{{\\textnormal{g}}}\n", "\\def\\rh{{\\textnormal{h}}}\n", "\\def\\ri{{\\textnormal{i}}}\n", "\\def\\rj{{\\textnormal{j}}}\n", "\\def\\rk{{\\textnormal{k}}}\n", "\\def\\rl{{\\textnormal{l}}}\n", "\\def\\rn{{\\textnormal{n}}}\n", "\\def\\ro{{\\textnormal{o}}}\n", "\\def\\rp{{\\textnormal{p}}}\n", "\\def\\rq{{\\textnormal{q}}}\n", "\\def\\rr{{\\textnormal{r}}}\n", "\\def\\rs{{\\textnormal{s}}}\n", "\\def\\rt{{\\textnormal{t}}}\n", "\\def\\ru{{\\textnormal{u}}}\n", "\\def\\rv{{\\textnormal{v}}}\n", "\\def\\rw{{\\textnormal{w}}}\n", "\\def\\rx{{\\textnormal{x}}}\n", "\\def\\ry{{\\textnormal{y}}}\n", "\\def\\rz{{\\textnormal{z}}}\n", "\\def\\rvepsilon{{\\mathbf{\\epsilon}}}\n", "\\def\\rvtheta{{\\mathbf{\\theta}}}\n", "\\def\\rva{{\\mathbf{a}}}\n", "\\def\\rvb{{\\mathbf{b}}}\n", "\\def\\rvc{{\\mathbf{c}}}\n", "\\def\\rvd{{\\mathbf{d}}}\n", "\\def\\rve{{\\mathbf{e}}}\n", "\\def\\rvf{{\\mathbf{f}}}\n", "\\def\\rvg{{\\mathbf{g}}}\n", "\\def\\rvh{{\\mathbf{h}}}\n", "\\def\\rvu{{\\mathbf{i}}}\n", "\\def\\rvj{{\\mathbf{j}}}\n", "\\def\\rvk{{\\mathbf{k}}}\n", "\\def\\rvl{{\\mathbf{l}}}\n", "\\def\\rvm{{\\mathbf{m}}}\n", "\\def\\rvn{{\\mathbf{n}}}\n", "\\def\\rvo{{\\mathbf{o}}}\n", "\\def\\rvp{{\\mathbf{p}}}\n", "\\def\\rvq{{\\mathbf{q}}}\n", "\\def\\rvr{{\\mathbf{r}}}\n", "\\def\\rvs{{\\mathbf{s}}}\n", "\\def\\rvt{{\\mathbf{t}}}\n", "\\def\\rvu{{\\mathbf{u}}}\n", "\\def\\rvv{{\\mathbf{v}}}\n", "\\def\\rvw{{\\mathbf{w}}}\n", "\\def\\rvx{{\\mathbf{x}}}\n", "\\def\\rvy{{\\mathbf{y}}}\n", "\\def\\rvz{{\\mathbf{z}}}\n", "\\def\\erva{{\\textnormal{a}}}\n", "\\def\\ervb{{\\textnormal{b}}}\n", "\\def\\ervc{{\\textnormal{c}}}\n", "\\def\\ervd{{\\textnormal{d}}}\n", "\\def\\erve{{\\textnormal{e}}}\n", "\\def\\ervf{{\\textnormal{f}}}\n", "\\def\\ervg{{\\textnormal{g}}}\n", "\\def\\ervh{{\\textnormal{h}}}\n", "\\def\\ervi{{\\textnormal{i}}}\n", "\\def\\ervj{{\\textnormal{j}}}\n", "\\def\\ervk{{\\textnormal{k}}}\n", "\\def\\ervl{{\\textnormal{l}}}\n", "\\def\\ervm{{\\textnormal{m}}}\n", "\\def\\ervn{{\\textnormal{n}}}\n", "\\def\\ervo{{\\textnormal{o}}}\n", "\\def\\ervp{{\\textnormal{p}}}\n", "\\def\\ervq{{\\textnormal{q}}}\n", "\\def\\ervr{{\\textnormal{r}}}\n", "\\def\\ervs{{\\textnormal{s}}}\n", "\\def\\ervt{{\\textnormal{t}}}\n", "\\def\\ervu{{\\textnormal{u}}}\n", "\\def\\ervv{{\\textnormal{v}}}\n", "\\def\\ervw{{\\textnormal{w}}}\n", "\\def\\ervx{{\\textnormal{x}}}\n", "\\def\\ervy{{\\textnormal{y}}}\n", "\\def\\ervz{{\\textnormal{z}}}\n", "\\def\\rmA{{\\mathbf{A}}}\n", "\\def\\rmB{{\\mathbf{B}}}\n", "\\def\\rmC{{\\mathbf{C}}}\n", "\\def\\rmD{{\\mathbf{D}}}\n", "\\def\\rmE{{\\mathbf{E}}}\n", "\\def\\rmF{{\\mathbf{F}}}\n", "\\def\\rmG{{\\mathbf{G}}}\n", "\\def\\rmH{{\\mathbf{H}}}\n", "\\def\\rmI{{\\mathbf{I}}}\n", "\\def\\rmJ{{\\mathbf{J}}}\n", "\\def\\rmK{{\\mathbf{K}}}\n", "\\def\\rmL{{\\mathbf{L}}}\n", "\\def\\rmM{{\\mathbf{M}}}\n", "\\def\\rmN{{\\mathbf{N}}}\n", "\\def\\rmO{{\\mathbf{O}}}\n", "\\def\\rmP{{\\mathbf{P}}}\n", "\\def\\rmQ{{\\mathbf{Q}}}\n", "\\def\\rmR{{\\mathbf{R}}}\n", "\\def\\rmS{{\\mathbf{S}}}\n", "\\def\\rmT{{\\mathbf{T}}}\n", "\\def\\rmU{{\\mathbf{U}}}\n", "\\def\\rmV{{\\mathbf{V}}}\n", "\\def\\rmW{{\\mathbf{W}}}\n", "\\def\\rmX{{\\mathbf{X}}}\n", "\\def\\rmY{{\\mathbf{Y}}}\n", "\\def\\rmZ{{\\mathbf{Z}}}\n", "\\def\\ermA{{\\textnormal{A}}}\n", "\\def\\ermB{{\\textnormal{B}}}\n", "\\def\\ermC{{\\textnormal{C}}}\n", "\\def\\ermD{{\\textnormal{D}}}\n", "\\def\\ermE{{\\textnormal{E}}}\n", "\\def\\ermF{{\\textnormal{F}}}\n", "\\def\\ermG{{\\textnormal{G}}}\n", "\\def\\ermH{{\\textnormal{H}}}\n", "\\def\\ermI{{\\textnormal{I}}}\n", "\\def\\ermJ{{\\textnormal{J}}}\n", "\\def\\ermK{{\\textnormal{K}}}\n", "\\def\\ermL{{\\textnormal{L}}}\n", "\\def\\ermM{{\\textnormal{M}}}\n", "\\def\\ermN{{\\textnormal{N}}}\n", "\\def\\ermO{{\\textnormal{O}}}\n", "\\def\\ermP{{\\textnormal{P}}}\n", "\\def\\ermQ{{\\textnormal{Q}}}\n", "\\def\\ermR{{\\textnormal{R}}}\n", "\\def\\ermS{{\\textnormal{S}}}\n", "\\def\\ermT{{\\textnormal{T}}}\n", "\\def\\ermU{{\\textnormal{U}}}\n", "\\def\\ermV{{\\textnormal{V}}}\n", "\\def\\ermW{{\\textnormal{W}}}\n", "\\def\\ermX{{\\textnormal{X}}}\n", "\\def\\ermY{{\\textnormal{Y}}}\n", "\\def\\ermZ{{\\textnormal{Z}}}\n", "\\def\\vzero{{\\bm{0}}}\n", "\\def\\vone{{\\bm{1}}}\n", "\\def\\vmu{{\\bm{\\mu}}}\n", "\\def\\vtheta{{\\bm{\\theta}}}\n", "\\def\\va{{\\bm{a}}}\n", "\\def\\vb{{\\bm{b}}}\n", "\\def\\vc{{\\bm{c}}}\n", "\\def\\vd{{\\bm{d}}}\n", "\\def\\ve{{\\bm{e}}}\n", "\\def\\vf{{\\bm{f}}}\n", "\\def\\vg{{\\bm{g}}}\n", "\\def\\vh{{\\bm{h}}}\n", "\\def\\vi{{\\bm{i}}}\n", "\\def\\vj{{\\bm{j}}}\n", "\\def\\vk{{\\bm{k}}}\n", "\\def\\vl{{\\bm{l}}}\n", "\\def\\vm{{\\bm{m}}}\n", "\\def\\vn{{\\bm{n}}}\n", "\\def\\vo{{\\bm{o}}}\n", "\\def\\vp{{\\bm{p}}}\n", "\\def\\vq{{\\bm{q}}}\n", "\\def\\vr{{\\bm{r}}}\n", "\\def\\vs{{\\bm{s}}}\n", "\\def\\vt{{\\bm{t}}}\n", "\\def\\vu{{\\bm{u}}}\n", "\\def\\vv{{\\bm{v}}}\n", "\\def\\vw{{\\bm{w}}}\n", "\\def\\vx{{\\bm{x}}}\n", "\\def\\vy{{\\bm{y}}}\n", "\\def\\vz{{\\bm{z}}}\n", "\\def\\evalpha{{\\alpha}}\n", "\\def\\evbeta{{\\beta}}\n", "\\def\\evepsilon{{\\epsilon}}\n", "\\def\\evlambda{{\\lambda}}\n", "\\def\\evomega{{\\omega}}\n", "\\def\\evmu{{\\mu}}\n", "\\def\\evpsi{{\\psi}}\n", "\\def\\evsigma{{\\sigma}}\n", "\\def\\evtheta{{\\theta}}\n", "\\def\\eva{{a}}\n", "\\def\\evb{{b}}\n", "\\def\\evc{{c}}\n", "\\def\\evd{{d}}\n", "\\def\\eve{{e}}\n", "\\def\\evf{{f}}\n", "\\def\\evg{{g}}\n", "\\def\\evh{{h}}\n", "\\def\\evi{{i}}\n", "\\def\\evj{{j}}\n", "\\def\\evk{{k}}\n", "\\def\\evl{{l}}\n", "\\def\\evm{{m}}\n", "\\def\\evn{{n}}\n", "\\def\\evo{{o}}\n", "\\def\\evp{{p}}\n", "\\def\\evq{{q}}\n", "\\def\\evr{{r}}\n", "\\def\\evs{{s}}\n", "\\def\\evt{{t}}\n", "\\def\\evu{{u}}\n", "\\def\\evv{{v}}\n", "\\def\\evw{{w}}\n", "\\def\\evx{{x}}\n", "\\def\\evy{{y}}\n", "\\def\\evz{{z}}\n", "\\def\\mA{{\\bm{A}}}\n", "\\def\\mB{{\\bm{B}}}\n", "\\def\\mC{{\\bm{C}}}\n", "\\def\\mD{{\\bm{D}}}\n", "\\def\\mE{{\\bm{E}}}\n", "\\def\\mF{{\\bm{F}}}\n", "\\def\\mG{{\\bm{G}}}\n", "\\def\\mH{{\\bm{H}}}\n", "\\def\\mI{{\\bm{I}}}\n", "\\def\\mJ{{\\bm{J}}}\n", "\\def\\mK{{\\bm{K}}}\n", "\\def\\mL{{\\bm{L}}}\n", "\\def\\mM{{\\bm{M}}}\n", "\\def\\mN{{\\bm{N}}}\n", "\\def\\mO{{\\bm{O}}}\n", "\\def\\mP{{\\bm{P}}}\n", "\\def\\mQ{{\\bm{Q}}}\n", "\\def\\mR{{\\bm{R}}}\n", "\\def\\mS{{\\bm{S}}}\n", "\\def\\mT{{\\bm{T}}}\n", "\\def\\mU{{\\bm{U}}}\n", "\\def\\mV{{\\bm{V}}}\n", "\\def\\mW{{\\bm{W}}}\n", "\\def\\mX{{\\bm{X}}}\n", "\\def\\mY{{\\bm{Y}}}\n", "\\def\\mZ{{\\bm{Z}}}\n", "\\def\\mBeta{{\\bm{\\beta}}}\n", "\\def\\mPhi{{\\bm{\\Phi}}}\n", "\\def\\mLambda{{\\bm{\\Lambda}}}\n", "\\def\\mSigma{{\\bm{\\Sigma}}}\n", "\\DeclareMathAlphabet{\\mathsfit}{\\encodingdefault}{\\sfdefault}{m}{sl}\n", "\\SetMathAlphabet{\\mathsfit}{bold}{\\encodingdefault}{\\sfdefault}{bx}{n}\n", "\\newcommand{\\tens}[1]{\\bm{\\mathsfit{#1}}}\n", "\\def\\tA{{\\tens{A}}}\n", "\\def\\tB{{\\tens{B}}}\n", "\\def\\tC{{\\tens{C}}}\n", "\\def\\tD{{\\tens{D}}}\n", "\\def\\tE{{\\tens{E}}}\n", "\\def\\tF{{\\tens{F}}}\n", "\\def\\tG{{\\tens{G}}}\n", "\\def\\tH{{\\tens{H}}}\n", "\\def\\tI{{\\tens{I}}}\n", "\\def\\tJ{{\\tens{J}}}\n", "\\def\\tK{{\\tens{K}}}\n", "\\def\\tL{{\\tens{L}}}\n", "\\def\\tM{{\\tens{M}}}\n", "\\def\\tN{{\\tens{N}}}\n", "\\def\\tO{{\\tens{O}}}\n", "\\def\\tP{{\\tens{P}}}\n", "\\def\\tQ{{\\tens{Q}}}\n", "\\def\\tR{{\\tens{R}}}\n", "\\def\\tS{{\\tens{S}}}\n", "\\def\\tT{{\\tens{T}}}\n", "\\def\\tU{{\\tens{U}}}\n", "\\def\\tV{{\\tens{V}}}\n", "\\def\\tW{{\\tens{W}}}\n", "\\def\\tX{{\\tens{X}}}\n", "\\def\\tY{{\\tens{Y}}}\n", "\\def\\tZ{{\\tens{Z}}}\n", "\\def\\gA{{\\mathcal{A}}}\n", "\\def\\gB{{\\mathcal{B}}}\n", "\\def\\gC{{\\mathcal{C}}}\n", "\\def\\gD{{\\mathcal{D}}}\n", "\\def\\gE{{\\mathcal{E}}}\n", "\\def\\gF{{\\mathcal{F}}}\n", "\\def\\gG{{\\mathcal{G}}}\n", "\\def\\gH{{\\mathcal{H}}}\n", "\\def\\gI{{\\mathcal{I}}}\n", "\\def\\gJ{{\\mathcal{J}}}\n", "\\def\\gK{{\\mathcal{K}}}\n", "\\def\\gL{{\\mathcal{L}}}\n", "\\def\\gM{{\\mathcal{M}}}\n", "\\def\\gN{{\\mathcal{N}}}\n", "\\def\\gO{{\\mathcal{O}}}\n", "\\def\\gP{{\\mathcal{P}}}\n", "\\def\\gQ{{\\mathcal{Q}}}\n", "\\def\\gR{{\\mathcal{R}}}\n", "\\def\\gS{{\\mathcal{S}}}\n", "\\def\\gT{{\\mathcal{T}}}\n", "\\def\\gU{{\\mathcal{U}}}\n", "\\def\\gV{{\\mathcal{V}}}\n", "\\def\\gW{{\\mathcal{W}}}\n", "\\def\\gX{{\\mathcal{X}}}\n", "\\def\\gY{{\\mathcal{Y}}}\n", "\\def\\gZ{{\\mathcal{Z}}}\n", "\\def\\sA{{\\mathbb{A}}}\n", "\\def\\sB{{\\mathbb{B}}}\n", "\\def\\sC{{\\mathbb{C}}}\n", "\\def\\sD{{\\mathbb{D}}}\n", "\\def\\sF{{\\mathbb{F}}}\n", "\\def\\sG{{\\mathbb{G}}}\n", "\\def\\sH{{\\mathbb{H}}}\n", "\\def\\sI{{\\mathbb{I}}}\n", "\\def\\sJ{{\\mathbb{J}}}\n", "\\def\\sK{{\\mathbb{K}}}\n", "\\def\\sL{{\\mathbb{L}}}\n", "\\def\\sM{{\\mathbb{M}}}\n", "\\def\\sN{{\\mathbb{N}}}\n", "\\def\\sO{{\\mathbb{O}}}\n", "\\def\\sP{{\\mathbb{P}}}\n", "\\def\\sQ{{\\mathbb{Q}}}\n", "\\def\\sR{{\\mathbb{R}}}\n", "\\def\\sS{{\\mathbb{S}}}\n", "\\def\\sT{{\\mathbb{T}}}\n", "\\def\\sU{{\\mathbb{U}}}\n", "\\def\\sV{{\\mathbb{V}}}\n", "\\def\\sW{{\\mathbb{W}}}\n", "\\def\\sX{{\\mathbb{X}}}\n", "\\def\\sY{{\\mathbb{Y}}}\n", "\\def\\sZ{{\\mathbb{Z}}}\n", "\\def\\emLambda{{\\Lambda}}\n", "\\def\\emA{{A}}\n", "\\def\\emB{{B}}\n", "\\def\\emC{{C}}\n", "\\def\\emD{{D}}\n", "\\def\\emE{{E}}\n", "\\def\\emF{{F}}\n", "\\def\\emG{{G}}\n", "\\def\\emH{{H}}\n", "\\def\\emI{{I}}\n", "\\def\\emJ{{J}}\n", "\\def\\emK{{K}}\n", "\\def\\emL{{L}}\n", "\\def\\emM{{M}}\n", "\\def\\emN{{N}}\n", "\\def\\emO{{O}}\n", "\\def\\emP{{P}}\n", "\\def\\emQ{{Q}}\n", "\\def\\emR{{R}}\n", "\\def\\emS{{S}}\n", "\\def\\emT{{T}}\n", "\\def\\emU{{U}}\n", "\\def\\emV{{V}}\n", "\\def\\emW{{W}}\n", "\\def\\emX{{X}}\n", "\\def\\emY{{Y}}\n", "\\def\\emZ{{Z}}\n", "\\def\\emSigma{{\\Sigma}}\n", "\\newcommand{\\etens}[1]{\\mathsfit{#1}}\n", "\\def\\etLambda{{\\etens{\\Lambda}}}\n", "\\def\\etA{{\\etens{A}}}\n", "\\def\\etB{{\\etens{B}}}\n", "\\def\\etC{{\\etens{C}}}\n", "\\def\\etD{{\\etens{D}}}\n", "\\def\\etE{{\\etens{E}}}\n", "\\def\\etF{{\\etens{F}}}\n", "\\def\\etG{{\\etens{G}}}\n", "\\def\\etH{{\\etens{H}}}\n", "\\def\\etI{{\\etens{I}}}\n", "\\def\\etJ{{\\etens{J}}}\n", "\\def\\etK{{\\etens{K}}}\n", "\\def\\etL{{\\etens{L}}}\n", "\\def\\etM{{\\etens{M}}}\n", "\\def\\etN{{\\etens{N}}}\n", "\\def\\etO{{\\etens{O}}}\n", "\\def\\etP{{\\etens{P}}}\n", "\\def\\etQ{{\\etens{Q}}}\n", "\\def\\etR{{\\etens{R}}}\n", "\\def\\etS{{\\etens{S}}}\n", "\\def\\etT{{\\etens{T}}}\n", "\\def\\etU{{\\etens{U}}}\n", "\\def\\etV{{\\etens{V}}}\n", "\\def\\etW{{\\etens{W}}}\n", "\\def\\etX{{\\etens{X}}}\n", "\\def\\etY{{\\etens{Y}}}\n", "\\def\\etZ{{\\etens{Z}}}\n", "\\newcommand{\\pdata}{p_{\\rm{data}}}\n", "\\newcommand{\\ptrain}{\\hat{p}_{\\rm{data}}}\n", "\\newcommand{\\Ptrain}{\\hat{P}_{\\rm{data}}}\n", "\\newcommand{\\pmodel}{p_{\\rm{model}}}\n", "\\newcommand{\\Pmodel}{P_{\\rm{model}}}\n", "\\newcommand{\\ptildemodel}{\\tilde{p}_{\\rm{model}}}\n", "\\newcommand{\\pencode}{p_{\\rm{encoder}}}\n", "\\newcommand{\\pdecode}{p_{\\rm{decoder}}}\n", "\\newcommand{\\precons}{p_{\\rm{reconstruct}}}\n", "\\newcommand{\\laplace}{\\mathrm{Laplace}} \n", "\\newcommand{\\E}{\\mathbb{E}}\n", "\\newcommand{\\Ls}{\\mathcal{L}}\n", "\\newcommand{\\R}{\\mathbb{R}}\n", "\\newcommand{\\emp}{\\tilde{p}}\n", "\\newcommand{\\lr}{\\alpha}\n", "\\newcommand{\\reg}{\\lambda}\n", "\\newcommand{\\rect}{\\mathrm{rectifier}}\n", "\\newcommand{\\softmax}{\\mathrm{softmax}}\n", "\\newcommand{\\sigmoid}{\\sigma}\n", "\\newcommand{\\softplus}{\\zeta}\n", "\\newcommand{\\KL}{D_{\\mathrm{KL}}}\n", "\\newcommand{\\Var}{\\mathrm{Var}}\n", "\\newcommand{\\standarderror}{\\mathrm{SE}}\n", "\\newcommand{\\Cov}{\\mathrm{Cov}}\n", "\\newcommand{\\normlzero}{L^0}\n", "\\newcommand{\\normlone}{L^1}\n", "\\newcommand{\\normltwo}{L^2}\n", "\\newcommand{\\normlp}{L^p}\n", "\\newcommand{\\normmax}{L^\\infty}\n", "\\newcommand{\\parents}{Pa} \n", "\\DeclareMathOperator*{\\argmax}{arg\\,max}\n", "\\DeclareMathOperator*{\\argmin}{arg\\,min}\n", "\\DeclareMathOperator{\\sign}{sign}\n", "\\DeclareMathOperator{\\Tr}{Tr}\n", "\\let\\ab\\allowbreak\n", "\\usepackage{hyperref}\n", "\\usepackage{paralist}\n", "\\usepackage{amsmath}\n", "\\usepackage{amssymb}\n", "\\usepackage{wrapfig}\n", "\\usepackage{multirow}\n", "\\usepackage{multicol}\n", "\\usepackage{multirow}\n", "\\usepackage{dsfont}\n", "\\usepackage{tabularx}\n", "\\usepackage{graphicx}\n", "\\usepackage{xcolor}\n", "\\usepackage{soul}\n", "\\usepackage{xspace}\n", "\\usepackage{booktabs}\n", "\\usepackage{caption}\n", "\\usepackage{enumitem}\n", "\\usepackage{algorithm}\n", "\\usepackage[noend]{algorithmic}\n", "\\usepackage{pythonhighlight}\n", "\\usepackage{pifont}\n", "\\usepackage[most]{tcolorbox}\n", "\\usepackage[framemethod=tikz]{mdframed}\n", "\\definecolor{qualcolor}{RGB}{128,64,0}\n", "\\gdef\\Sepline{\n", " \\par\\noindent\\makebox[\\linewidth][l]{\n", " \\hspace*{-\\mdflength{innerleftmargin}}\n", " \\tikz\\draw[thick,dashed,gray!60] (0,0) --\n", " (\\textwidth+\\the\\mdflength{innerleftmargin}+\\the\\mdflength{innerrightmargin},0);\n", " }\\par\\nobreak}\n", "\\newcommand{\\cmark}{\\ding{51}}\n", "\\newcommand{\\xmark}{\\ding{55}}\n", "\\newcommand{\\sbf}{\\ensuremath{\\mathbf{s}}}\n", "\\newcommand{\\txb}{\\ensuremath{\\tilde{\\mathbf{x}}}}\n", "\\newcommand{\\tyb}{\\ensuremath{\\tilde{\\mathbf{y}}}}\n", "\\newcommand{\\ty}{\\ensuremath{\\tilde{y}}}\n", "\\newcommand{\\xb}{\\ensuremath{\\mathbf{x}}}\n", "\\newcommand{\\eb}{\\ensuremath{\\mathbf{e}}}\n", "\\newcommand{\\yb}{\\ensuremath{\\mathbf{y}}}\n", "\\newcommand{\\Tmc}{\\ensuremath{\\mathcal{T}}}\n", "\\newcommand{\\Pmc}{\\ensuremath{\\mathcal{P}}}\n", "\\newcommand{\\Omc}{\\ensuremath{\\mathcal{O}}}\n", "\\newcommand{\\Vmc}{\\ensuremath{\\mathcal{V}}}\n", "\\newcommand{\\Emc}{\\ensuremath{\\mathcal{E}}}\n", "\\newcommand{\\Yhatmc}{\\ensuremath{\\hat{\\mathcal{Y}}}}\n", "\\newcommand{\\vocab}{\\ensuremath{\\mathcal{V}}}\n", "\\DeclareMathOperator*{\\argtopK}{arg\\,\\mathrm{top}\\text{-}\\mathrm{K}}\n", "\\newcommand{\\corr}{\\xspace}\n", "\\usepackage[normalem]{ulem}\n", "\\setlength{\\marginparwidth}{2cm}\n", "\\usepackage[colorinlistoftodos]{todonotes}\n", "\\definecolor{green(pigment)}{rgb}{0.0, 0.65, 0.31}\n", "\\usepackage{array}\n", "\\usepackage{makecell}\n", "\\renewcommand\\theadfont{}\n", "\\usepackage{framed}\n", "\\usepackage{hhline}\n", "\\usepackage{courierten}\n", "\\usepackage[T1]{fontenc} \n", "\\newcommand\\modelfont[1]{{\\usefont{T1}{courierten}{m}{n}#1}}\n", "\\newcommand\\myfontsize{\\fontsize{8.3pt}{10.3pt}\\selectfont}\n", "\\newcommand{\\methodnamelong}{\\modelfont{Self-Correction for Sequence Generation}\\xspace}\n", "\\newcommand{\\methodnamewithacronymhighlighted}{\\modelfont{\\ul{Pre}diction-\\ul{C}orrect\\ul{i}on for \\ul{Se}quence Generation}\\xspace}\n", "\\newcommand{\\methodnameshort}{\\modelfont{Self-Correction}\\xspace}\n", "\\newcommand{\\methodnamenospace}{\\modelfont{Self-Correction}\\xspace}\n", "\\newcommand{\\method}{\\textsc{Self-Correct}\\xspace}\n", "\\newcommand{\\myparagraph}[1]{\\par\\noindent\\textbf{{#1}}} \n", "\\newcommand{\\myparagraphsmall}[1]{\\par\\noindent\\textit{{#1}}}\n", "\\title{Generating Sequences by \\\\Learning to [Self-]Correct}\n", "\\author{Sean Welleck\\textsuperscript{1,3,*} \\hspace{1pt}\n", "Ximing Lu\\textsuperscript{1,*}\n", "\\AND Peter West\\textsuperscript{3,$\\dagger$} \\hspace{1pt} Faeze Brahman\\textsuperscript{1,$\\dagger$}\n", "\\AND Tianxiao Shen\\textsuperscript{3} \\hspace{1pt} Daniel Khashabi\\textsuperscript{2} \\hspace{1pt} Yejin Choi\\textsuperscript{1,3} \\\\\n", "\\textsuperscript{1}Allen Institute for Artificial Intelligence\\\\\n", " \\textsuperscript{2}Center for Language and Speech Processing, Johns Hopkins University \\\\\n", " \\textsuperscript{3}Paul G. Allen School of Computer Science \\& Engineering, University of Washington \\\\\n", "}\n", "\\newcommand{\\fix}{\\marginpar{FIX}}\n", "\\newcommand{\\new}{\\marginpar{NEW}}\n", "\\iclrfinalcopy \n", "\\begin{document}\n", "\\maketitle\n", "\\renewcommand*\\thefootnote{\\textbf{$*$}}\\footnotetext{First authors, contributed equally. \\textbf{$\\dagger$}Second authors, contributed equally.}\n", "\\renewcommand*{\\thefootnote}{\\arabic{footnote}}\n", "\\setcounter{footnote}{0}\n", "\\begin{abstract}\n", "Language models, whether fine-tuned or prompted with few-shot demonstrations, frequently violate these constraints, and lack a mechanism to iteratively revise their outputs.\n", "Moreover, some powerful language models are of extreme scale or inaccessible, making it inefficient, if not infeasible, to update their parameters for task-specific adaptation. \n", "We present \\textsc{self-correction}, \n", "\\end{abstract}\n", "\\section{Introduction}\n", "The standard practice for natural language generation tasks is inherently single-pass: applying a decoding procedure \n", "to either a few-shot prompted language model or one tuned for a given task, then considering the generation as ``finished''~(e.g. \\citet{radford2019language,brown2020,chen2021codex}).\n", "Powerful generation models\n", "often meet most of the task requirements, yet miss a few\n", "(e.g., omitting a subset of keywords), \n", "or generate incorrect hypotheses that nevertheless provide useful structure \n", "(e.g., a correct problem solving strategy with a missing step). \n", "However, after generating even a slightly sub-optimal sequence, the single-pass paradigm requires models to ``start from scratch'', \n", "effectively discarding work already done. \n", "A more natural, intuitive approach\n", "is leveraging the generation as a useful starting point\n", "to refine \n", "into a higher quality output.\n", "To formalize this intuition, we introduce \\methodnamelong. \n", "\\autoref{fig:teaser} demonstrates its central principle: a generation model is re-framed as a base\n", "\\begin{figure}[t]\n", " \\centering\n", " \\includegraphics[width=0.99\\textwidth]{images/summary_figure}\n", " \\caption{\\textsc{Self-corrector}s decompose generation into a base generator that proposes an initial hypothesis, and a corrector that iteratively improves its quality.}\n", " \\label{fig:teaser}\n", "\\end{figure}\n", "\\section{Self-correcting sequence generators}\n", "\\label{sec:method}\n", "A typical autoregressive text generator (e.g. GPT-3~\\citep{brown2020}) maps an input prompt to a distribution over outputs using a single parameterized module (e.g. a large transformer), $p_0(y|x)$.\n", "\\begin{align}\n", "\\label{eqn:model-onestep}\n", "p(y|x)=\\sum_{y_0}\\underbrace{p_0(y_0|x)}_{\\text{generator}}\\underbrace{p_\\theta(y|y_0,x)}_{\\text{corrector}}\n", "\\end{align}\n", "Since a model of this form can both generate and correct its generations, we call it a \\modelfont{Self-Corrector}.\n", "Self-correctors have several unique properties compared to typical generators.\n", "First, a self-corrector \n", "decouples generation and correction, \n", "allowing us to \\emph{freely parameterize each module} -- \n", "for instance, by prompting a single language model or using two different language models. \n", "In this paper, we develop a framework to train a separate corrector model\n", "(\\S\\ref{ssec:learning}).\n", "In \\S\\ref{ssec:learning}, we propose a training algorithm for the corrector that is dedicated to improving generations, where the improvement can be in any aspect, measured by scalar values.\n", "The feedback can be of many forms, e.g. a sentence, a compiler trace, etc. \n", "In contrast, a typical generator that generates in a single pass does not leverage feedback on its own generation.\n", "In this paper, \n", "Next, we describe our training framework of the corrector.\n", "\\subsection{Learning a Corrector}\n", "\\label{ssec:learning}\n", "Our goal is to have the generator generate an initial hypothesis, \n", "Here, quality is measured with a scalar value function $v(y)$ which we assume is accessible at training time (e.g. a classifier).\n", "Since direct supervision on how to improve hypotheses is not available, we design a new algorithm to train the corrector, which we refer to as self-corrective learning.\n", "The algorithm collects a pool of generations, \n", "groups them and \n", "As training progresses, more \n", "Algorithm~\\ref{alg:main} summarizes self-corrective learning, detailed below.\n", "\\begin{figure}[t]\n", " \\centering\n", " \\includegraphics[width=0.99\\textwidth]{images/learning_figure_v2.png}\n", " }\n", " \\label{fig:learning}\n", "\\end{figure}\n", "\\myparagraph{Initialization.}\n", "Self-corrective learning begins with a generator $p_0(y_0|x)$, a corrector \n", "$p_\\theta(y'|y,x)$\n", ", a set of training prompts $X$, and a value function \n", "$v:\\mathcal Y \\rightarrow\\mathbb R$.\n", "Optionally,\n", "$f: \\mathcal Y \\rightarrow \\mathcal F$ and learn $p_\\theta(y'|y,x,f(y))$,\n", "where $\\mathcal F$ \n", "is arbitrary.\n", "Formally, \n", "\\begin{align}\n", "D_x=\\{(x,y,v(y), f(y))\\ |\\ \\text{for all } y\\in y^{1:N}\\sim q(p_0(\\cdot|x))\\},\\quad D=\\bigcup_{x\\in X} D_x,\n", "\\label{eqn:d0}\n", "\\end{align}\n", "where $y^{1:N}$ denotes $N$ outputs generated with decoding algorithm $q$ (e.g. temperature sampling).\n", "When available, $(x, y, v(y), f(y))$ examples from another source (e.g. a dataset) can also be added.\n", "\\newcommand{\\algcomment}[1]{{\\footnotesize \\fontfamily{cmtt}\\selectfont // #1}}\n", "\\renewcommand{\\algorithmiccomment}[1]{\\hfill{\\(\\triangleright\\)~#1}\\par}\n", "\\begin{figure}[t]\n", "\\vspace{-1em}\n", "\\begin{algorithm}[H]\n", "\\small\n", "\\begin{algorithmic}\n", "\\\\\n", "\\text{Initialize datapool }$D$ by sampling from $p_0$\\algorithmiccomment{Initialization: Eq.~\\ref{eqn:d0}}\n", "\\FOR{$\\text{iteration}\\in\\{1,2,\\ldots\\}$}\n", "\\FOR{$x \\in X$} \n", "\\STATE Sample hypotheses $y$ from datapool $D$ \n", "\\STATE Generate corrections $y'\\sim p_\\theta(\\cdot|y,x,f(y))$\n", "\\STATE Add all $(x,y',v(y'),f(y'))$ to the datapool $D$\n", "\\ENDFOR\n", "\\FOR{step in $1,2,\\ldots,M$ }\n", "\\item Compute the loss and update $\\theta$ using gradient descent\n", "\\algorithmiccomment{Learning}\n", "\\ENDFOR\n", "\\ENDFOR\n", "\\end{algorithmic}\n", "\\caption{Self-corrective learning}\n", "\\label{alg:main}\n", "\\end{algorithm}\n", "\\vspace{-1em}\n", "\\end{figure}\n", "We use \n", "\\begin{align}\n", "\\label{eqn:pairing}\n", " P_x=\\{(x,y,y')\\mid v(y)