Abstract
Recent Vision-Language Model Adaptation (VLMA) methods tune VLMs for specific domains under various settings, often requiring direct access to VLM during inference, which incurs high computational costs. Moreover, cloud-deployed VLMs introduce additional challenges such as network latency and API request costs. Distilling a local, lightweight target model, as in Black-Box Domain Adaptation (Black-Box DA), can mitigate these issues. However, existing methods are primarily focused on source domain models rather than cloud VLMs. To address this gap, we extend Black-Box Domain Adaptation to cloudenvironments, enabling the flexible deployment and learning of virtually any target domain model. This extension, however, introduces a unique task shift. To address this, we present a novel method HUG . The key idea is to explore unbiased optimization directions for a two-branch network under the principle of "better guiding worse" based on bilevel optimization. This two-branch network consists of a shared feature extractor and two classifiers. Forward and reverse learning are collaboratively used to mine reliable supervision for confident, tentative, and unconfident data subsets. Specifically, self-training on these subsets is first utilized to alleviate task shift, and then bilevel optimization is employed to explore the optimizing direction on confusing samples by requiring the classifier trained on these samples optimized well on non-confusing samples. Distilling from cloud model is also periodically incorporated to avoid overconfidence in explored optimization directions. Finally, guided by the discovered optimization directions, two classifiers gradually converge toward better consensus.