NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Adapting in the Dark: Efficient and Stable Test-Time Adaptation for Black-Box Models

Yunbei Zhang, Shuaicheng Niu, Chengyi Cai, Feng Liu, Jihun Hamm

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Graphs, OOD Detection & Medical Imaging › Test-Time Adaptation and Robustness · Type: new method · Keywords: test-time adaptation, black-box models, zero-order optimization, prediction harmonization, consistency regularization

Areas: Continual Learning & Adaptation › Long-Tailed Incremental Recognition › Test-Time Adaptation

Summary

BETA introduces a lightweight white-box steering model that creates a tractable gradient pathway, enabling stable, low-cost test-time adaptation for black-box models without extra API calls.

Explained to a 5-year-old

When a computer model is locked up (black-box) and we want it to work better on new pictures without changing its inside, we need a small helper. This helper looks at the model’s guesses and smooths them, making the model more stable. It does this without asking the model many questions, so it is fast and cheap. It helps the model get better at recognizing things it hasn’t seen before. This makes the model useful in real life where we can’t change the model directly.

Explained to a 5-year-old, longer

Imagine you have a toy robot that can only answer questions by using a secret recipe you can’t see. Sometimes the robot makes mistakes when you show it new things. We want the robot to get better without changing its secret recipe or asking it too many questions. So we create a tiny helper that watches what the robot says and smooths out its answers. This helper uses a special way to keep the robot’s answers consistent, like making sure all its answers match each other. It also filters out confusing guesses, keeping only the clear ones. Because the helper works inside the robot’s brain, it doesn’t need extra calls to the robot’s service. This makes the robot faster and cheaper to improve. The robot then becomes better at recognizing new pictures and objects. It works well on many different test sets, like ImageNet, and even on real commercial services. This helps people use smart models in everyday apps without needing huge computing power. It makes AI more practical for everyday use.

For a technical reader

The paper tackles adapting black-box models at inference time without access to their internal weights. It introduces a lightweight local steering model that creates a pseudo-gradient, allowing optimization using only the model’s outputs. By adding consistency regularization and filtering noisy predictions, the adaptation stays stable and requires no extra API calls. This results in significant accuracy gains on standard benchmarks while cutting query costs by two orders of magnitude. The solution is ready for production use with minimal overhead.

Problem

Adapting black-box models at test time is challenging because existing methods either have limited adaptive capacity or require many API queries and suffer from unstable optimization in unsupervised settings.

Method

The approach uses a lightweight local white-box steering model to create a tractable gradient pathway, applies prediction harmonization and consistency regularization, and incorporates prompt-learning-oriented filtering to achieve stable adaptation without additional API calls.

Results

The approach yields a +7.1% accuracy gain on ViT-B/16 with ImageNet-C and a +3.4% gain on CLIP with ImageNet-S/R, and on a commercial API it matches ZOO performance at 250× lower query cost while staying real-time.

Contributions

It provides a stable, low-cost black-box TTA framework that avoids extra API calls, introduces prediction harmonization and consistency regularization, and demonstrates superior performance over existing white-box and gray-box methods.

Practical relevance

It enables real-world deployment of black-box models with efficient, real-time adaptation on limited hardware.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction