In the field of machine learning, source-free universal domain adaptation (SF-UniDA) presents a critical challenge: a model trained on labeled data from a source domain must be applied to a completely different target domain, without access to the original data and under both covariate and label shifts. Traditional approaches rely on costly techniques such as threshold tuning or clustering, which often fail in real-world scenarios where unknown classes appear unpredictably. However, the emergence of foundation models (FMs) —especially vision-language models (VLMs) and large language models (LLMs)— is transforming this area by offering unprecedented generalization and zero-shot learning capabilities.
The LFM (Leveraging Foundation Models) framework proposes an innovative solution for SF-UniDA that seamlessly integrates the strengths of VLMs and LLMs. Instead of relying on manual thresholds or iterative clustering, LFM uses a VLM to compute similarities between each target sample and textual descriptions of all possible classes, including those generated by an LLM for unknown classes. This approach automatically detects the type of label shift by analyzing the coefficient of variation of a similarity-based score. Next, unknown samples are identified using a binary Gaussian mixture model fitted to another similarity metric. Finally, a consensus strategy is applied: the pseudo-labels generated by the VLM are refined with the target model initialized from the pre-trained source model, merging knowledge from both the original domain and the foundation models. The result is a robust and accurate target model trained on high-quality pseudo-labels.
The advantages of LFM over previous methods are notable: it eliminates the need to tune domain-specific thresholds, reduces dependence on hyperparameter-sensitive clustering, and significantly improves accuracy in detecting unknown classes. This makes it an ideal tool for business environments where data constantly changes and manual labeling is impractical. For example, in image classification systems in logistics warehouses, or in detecting new products in dynamic catalogs, LFM maintains accuracy without requiring retraining from scratch.
At this point, the expertise of Q2BSTUDIO as a software development and technology company is key to bringing solutions like LFM into practice. Our team combines cutting-edge research in artificial intelligence with a deep understanding of business needs, offering services ranging from the creation of custom AI solutions to integration with cloud infrastructures such as AWS or Azure. Implementing a framework like LFM requires not only advanced models but also a robust cloud computing ecosystem to process large volumes of data, Business Intelligence platforms (Power BI) to visualize results, and cybersecurity measures to protect both models and sensitive data.
For instance, a retail client may need to adapt a product recognition model to a new line of items without access to the manufacturer's original images. With LFM and the right infrastructure —Azure databases, inference pipelines on AWS, and Power BI dashboards— Q2BSTUDIO can deploy a solution that automatically updates with new labels, reducing operational costs and time to market. Moreover, incorporating autonomous AI agents allows the system to detect and classify unknown samples without human intervention, improving efficiency in processes such as inventory management or quality inspection.
In short, LFM represents a significant advance in source-free universal domain adaptation, and its success depends on careful implementation that combines foundation models with a solid enterprise architecture. At Q2BSTUDIO, we help organizations harness the full potential of these technologies, offering custom software, cloud AWS/Azure services, cybersecurity, Business Intelligence with Power BI, and AI agent development. If your company faces the challenge of adapting models to new domains without access to source data, contact us to discover how we can turn that challenge into a competitive advantage.




