Phi-2 opens up as Microsoft pushes smaller AI models
Neutral AI models By What The Future Newsroom · January 6, 2024 · 4 min read

Phi-2 opens up as Microsoft pushes smaller AI models

Microsoft is releasing Phi-2 under the MIT Open-Source License, giving developers broad rights to use and modify the model. The 2.7 billion parameter model is presented by Microsoft as stronger than Google’s Gemini Nano across the company’s published benchmarks.

Microsoft’s Phi-2 has moved from a compact research model into a more accessible tool for developers. The company is releasing Phi-2 under the MIT Open-Source License, while also positioning the model as a serious small-language-model option for cloud and edge applications.

“This is mostly a routine open-licensing and product-positioning story about smaller AI models, with only mild capability-proliferation implications.”Why it scores Neutral

What Changed With Phi-2

Phi-2 is Microsoft’s smallest language model, but the company’s claims around it are ambitious. The model has 2.7 billion parameters, making it twice as large as Phi-1.5 while still remaining small compared with many other language models.

The major update is licensing. Microsoft is releasing Phi-2 under the MIT Open-Source License. That matters because the MIT license is permissive: it allows commercial use, distribution, modification, and private use, provided the copyright and license notices are retained.

The license also allows users to use, copy, modify, merge, publish, distribute, sublicense and/or sell copies of the software. As with many permissive licenses, there is an important limitation: the software, in this case the AI model, is provided "as is" without warranty or liability from the authors or copyright holders.

Why Microsoft Is Emphasizing Small Models

Phi-2 follows a sequence of compact Microsoft models. In June, Microsoft researchers presented Phi-1, a transformer-based language model built for code with only 1.3 billion parameters. It was trained on high-quality data and outperformed models up to ten times larger in benchmarks.

Phi-1.5 came a few months later, also with 1.3 billion parameters. It was trained on additional data made up of various AI-generated texts. According to the source article, Phi-1.5 can compose poems, write emails and stories, and summarize texts, and one variant can analyze images.

That earlier model also performed competitively in some benchmark areas related to common sense, language comprehension, and reasoning. In some areas, it was able to keep up with models with up to 10 billion parameters.

Phi-2 extends that direction. Microsoft says the newer model shows dramatic improvements in logical reasoning and safety compared with Phi-1.5. The company also says that, with the right fine-tuning and customization, the small language model can be a powerful tool for cloud and edge applications.

Benchmarks Put Phi-2 Against Gemini Nano

Microsoft has released more details on Phi-2, including benchmarks comparing the 2.7 billion parameter model with Llama-2, Mistral 7B, and Google’s Gemini Nano. In Microsoft’s presented results, Phi-2 performs better than Google’s smallest language model in the Gemini family across all listed benchmarks.

That comparison is significant because Gemini Nano is intended for use on end devices such as the Pixel 8. Microsoft’s framing therefore puts Phi-2 into the same broader conversation: smaller models that can be useful outside the largest cloud-based AI systems.

Microsoft also tested Phi-2 with frequently used prompts. Its conclusion was:

We observed a behavior in accordance with the expectation we had given the benchmark results.

The source article also notes that Sebastien Bubeck, head of the Machine Learning Foundations Group at Microsoft Research, published a screenshot on Twitter of the MT-Bench benchmark. MT-Bench attempts to test the real capabilities of large and small language models with powerful language models such as GPT-4.

According to those results, Phi-2 outperforms Meta’s Llama-2-7B model in some areas. A chat version of Phi-2 is also in the pipeline and may address some of the model’s current weaknesses in those areas.

Azure Adds Phi Models And More

Phi-2 and Phi-1.5 are now available in the Azure AI model catalog. They appear there alongside Stable Diffusion, Falcon, CLIP, Whisper V3, BLIP, and SAM. Microsoft is also adding Code Llama and Nemotron from Meta and Nvidia.

The model catalog update sits next to another Microsoft announcement: "Models as a Service." The company says pro developers will soon be able to integrate newer AI models such as Llama 2 from Meta, Command from Cohere, Jais from G42, and premium models from Mistral as API endpoints in their applications.

Microsoft says developers will also be able to fine-tune these models with their own data without managing GPU infrastructure. The point of that service is to reduce the complexity of provisioning resources and handling hosting.

What This Means For Developers

The practical message is straightforward: Microsoft is trying to make smaller AI models easier to access, easier to adapt, and easier to deploy. Phi-2 is part of that push because it combines a compact parameter count, claimed benchmark strength, and an open license that permits broad reuse.

For developers, the MIT Open-Source License is the most concrete change. It lowers friction for experimentation and commercial use while keeping the license notice requirement in place. For teams considering small language models, Phi-2 now has a clearer path from evaluation to integration.

The benchmark claims should still be read in context: they are results presented by Microsoft. But within the facts provided, Phi-2 is positioned as a smaller model that can compete with larger or high-profile alternatives in selected tests, including comparisons with Gemini Nano, Llama-2, and Mistral 7B.

← Back to the wire

Read next