Learnware: small models do big

Zhi-Hua Zhou, Zhi-Hao Tan

Abstract

There are complaints about current machine learning techniques such as the requirement of a huge amount of training data and proficient training skills, the difficulty of continual learning, the risk of catastrophic forgetting, the leaking of data privacy/proprietary, etc. Most research efforts have been focusing on one of those concerned issues separately, paying less attention to the fact that most issues are entangled in practice. The prevailing big model paradigm, which has achieved impressive results in natural language processing and computer vision applications, has not yet addressed those issues, whereas becoming a serious source of carbon emissions. This article offers an overview of the learnware paradigm, which attempts to enable users not need to build machine learning models from scratch, with the hope of reusing small models to do things even beyond their original purposes, where the key ingredient is the specification which enables a trained model to be adequately identified to reuse according to the requirement of future users who know nothing about the model in advance.

Introduction

The modern machine learning landscape is dominated by two extremes: building massive "foundation" models that require astronomical resources, or starting every niche project from scratch. Both approaches face significant hurdles. Building high-performing models from scratch demands massive datasets and expert tuning, while incremental learning often leads to "catastrophic forgetting." Furthermore, sharing raw data for collaborative training is frequently impossible due to privacy and proprietary concerns. Finally, the environmental impact of training "big models" has become a major concern.

The Learnware paradigm proposes a middle ground: a global market of well-specified "small" models. Instead of reinventing the wheel, users can identify, reuse, and assemble existing models to solve new tasks, often outperforming models built from scratch with limited local data.

The Learnware Paradigm

A Learnware unit consists of two parts: a trained model and its specification. The specification is the "functional fingerprint" that allows the market to identify the model's utility without exposing the underlying private training data.

The Specification

The authors propose a dual-part specification:

  1. Semantic Part: Human-readable tags describing the task, input/output types, and objectives (e.g., "Sales Forecasting," "Regression").
  2. Functional Part (RKME): Using Reduced Kernel Mean Embedding (RKME), the market maps the distribution of the model's input/output space into a Reproducing Kernel Hilbert Space (RKHS). This acts as a mathematical signature of the model’s behavior.

The Market Workflow

The Learnware Market operates in two primary stages: the Submitting Stage and the Deploying Stage. Developers submit models with specifications, which undergo quality assurance. When a user has a task, they submit their requirement (semantic tags and their own data distribution). The market then searches for the most helpful models by calculating the "distance" between the user's requirement and the models' RKME specifications.

The Learnware Market workflow, illustrating the submitting and deploying stages.

Key Insights: The Specification World

A striking feature of the Learnware paradigm is the ability to reuse models beyond their original purpose. For instance, a text-only sentiment model and a video-only model can be combined to assist a user with a multi-modal task.

The authors visualize this as a "Specification World" composed of "islands" representing different functional spaces. As new models are accepted into the market—particularly those that handle multiple types of data—they act as bridges, merging previously separate islands into a more connected and capable functional space.

The concept of Specification Islands and how new models can bridge disparate functional spaces.

Empirical Evaluation

The paradigm was evaluated using a prototype market across several domains:

  • Sales Forecasting: A market of 53 models trained on various datasets. Reusing the "Top 1" model identified by the market provided a >20% performance improvement over building a model from scratch when the user had limited data (200–1,000 samples).
  • Sentiment Analysis: A market of 12 models (video and text). The system successfully identified and combined disparate models to solve multi-modal tasks, even when no specific multi-modal model existed in the market.
  • Ensemble Power: Using the "Top 3" models from the market consistently outperformed the user's own model, even when the user possessed a relatively large dataset (8,000 samples).

Conclusion and Future Work

The Learnware paradigm envisions a "GitHub for Models," where ML practitioners check the market first rather than starting from zero. However, several challenges remain. Future research must distinguish between functional "similarity" and actual "helpfulness." Additionally, robust quality assurance and incentive structures for developers are necessary to ensure the market remains healthy and trustworthy. While the theoretical framework for "intellectual ability emergence" from these interacting models is still in its infancy, the empirical results suggest that small models can indeed do big things.

Summary updated

BibTeX
@article{zhou2022learnware,
  author = {Zhi-Hua Zhou and Zhi-Hao Tan},
  title = {{Learnware: small models do big}},
  journal = {Science China Information Sciences},
  year = {2022},
  url = {https://openreview.net/forum?id=MEL32LbIpI},
}
Figure