PORTAL:控制测试时干预时机的自适应框架
When Should We Intervene at Test Time?
测试时适配容易一批起效一批翻车,这篇论文的 PORTAL 教模型自己决定何时干预、何时标注,做部署优化的话值得看看原理。
论文提出 PORTAL,一个决定何时在测试时部署干预的控制器,可判断哪些输入需要标注以及何时停止查询。它把每个候选预测规则作为比较对象,利用共享比较将查询集中在仍有希望超越当前最优候选的选项上。实验显示,一个总体上损失准确率的干预策略在选定批次上变得可用,且能避免因数据到达顺序变化导致的严重失败。理论分析把所需反馈量与候选间准确率差距和共享错误联系起来,解释了为什么部分选择只需很少证据。
When Should We Intervene at Test Time?
Test-time adaptation helps a deployed model respond to changing inputs, but the same intervention can rescue one batch and damage the next. Updating normalization statistics, for example, can improve corrupted images yet fail when a batch contains mostly one class. Average accuracy hides these failures and cannot tell a model when to use an intervention. Target labels can guide this decision, but they are scarce and some choices are already clear. We introduce PORTAL, a controller that chooses when to deploy an intervention, which inputs to label, and when to stop querying. Each available prediction rule is a candidate, and its predictions are fixed before current feedback arrives. Every acquired label therefore evaluates all candidates on the same input. PORTAL combines these shared comparisons and directs queries toward candidates that can still overtake the current leader. It stops when the remaining labels cannot change the choice or when the possible accuracy gain no longer justifies another query. Our analysis links the required feedback to accuracy gaps and shared mistakes, explaining why some choices need much less evidence. Experiments show that this control turns an intervention that loses accuracy overall into a useful choice on selected batches. It prevents severe failures caused by changes in arrival order and preserves gains across complete corruption streams. When a fixed rule already works well, PORTAL uses little feedback to retain its performance. Periodic label checks reveal when past evidence needs refreshing and help the controller recover as conditions change. The acquired labels also train stronger candidates for future batches, and selection brings nearly all of their accuracy gains into deployment. The same feedback therefore improves both the choice made now and the predictions available to later batches.