Archive of AI

Source Snapshot / 2024-04-23-microsoft-phi-3-open-slm-2

Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone

Linked event: 2024-04-23 · Microsoft Open-Sources On-Device Small Language Model Family Phi-3 Under MIT License

Publisher
Microsoft Research
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 794e437cbb13be92
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

Publications

Code, datasets and models

Artificial intelligence

Audio & acoustics

Computer vision

Graphics & multimedia

Human-computer interaction

Human language technologies

Search & information retrieval

Data platforms and analytics

Hardware & devices

Programming languages & software engineering

Quantum computing

Security, privacy & cryptography

Systems & networking

Ecology & environment

Medical, health & genomics

Social sciences

Technology for emerging markets

Academic programs

Events & academic conferences

Microsoft Research Forum

Microsoft Research Blog

Microsoft Research Podcast

Microsoft Research Stories

About Microsoft Research

Careers & internships

News & awards

AI for Science

Asia-Pacific

Catalyst Lab

New York City

Register: Research Forum

Microsoft Security

Dynamics 365

Microsoft 365

Microsoft Teams

Microsoft AI

Mixed reality

Microsoft HoloLens

Microsoft Viva

Sustainability

Financial services

Manufacturing

Find a partner

Become a partner

Partner Network

Microsoft Marketplace

Software companies

Microsoft Advertising

Developer Center

Documentation

Microsoft Learn

Microsoft Research

View Sitemap

Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone

Marah I Abdin

Sam Ade Jacobs

Ammar Ahmad Awan

Ahmed Awadallah

Hany Hassan Awadalla

Arash Bakhtiari

Harkirat Behl

Alon Benhaim

Misha Bilenko

Johan Bjorck

Sébastien Bubeck

Caio César Teodoro Mendes

Vishrav Chaudhary

Parul Chopra

Allie Del Giorno

Gustavo de Rosa

Matthew Dixon

Abhishek Goswami

Suriya Gunasekar

Emman Haider

Russell J. Hewett

Mojan Javaheripi

Piero Kauffmann

Nikos Karampatziakis

Mahmoud Khademi

Lev Kurilenko

James R. Lee

Weishung Liu

Xihui (Eric) Lin

Piyush Madan

Arindam Mitra

Brandon Norick

Daniel Perez-Becker

Thomas Portet

Reid Pryzant

Marko Radmilac

Corby Rosset

Sambudha Roy

Olli Saarikivi

Michael Santacroce

Hiteshi Sharma

Olatunji Ruwase

Guanhua Wang

Philipp Witte

Michael Wyatt

Sonali Yadav

Chengruidong Zhang

Jianwen Zhang

Li Lyna Zhang

MSR-TR-2024-12 | August 2024

Published by Microsoft

Download BibTex

We introduce phi-3-mini, a 3.8 billion parameter language model trained on 3.3 trillion tokens, whose overall performance, as measured by both academic benchmarks and internal testing, rivals that of models such as Mixtral 8x7B and GPT-3.5 (e.g., phi-3-mini achieves 69% on MMLU and 8.38 on MT-bench), despite being small enough to be deployed on a phone. The innovation lies entirely in our dataset for training, a scaled-up version of the one used for phi-2, composed of heavily filtered web data and synthetic data. The model is also further aligned for robustness, safety, and chat format. We also provide some initial parameter-scaling results with a 7B and 14B models trained for 4.8T tokens, called phi-3-small and phi-3-medium, both significantly more capable than phi-3-mini (e.g., respectively 75% and 78% on MMLU, and 8.7 and 8.9 on MT-bench).

Opens in a new tab

Related Tools

April 23, 2024

The Phi-3-Mini-128K-Instruct is a 3.8B parameters, lightweight, state-of-the-art open model trained with the Phi-3 datasets that includes both synthetic data and the filtered publicly available websites data with a focus on high-quality and reasoning dense properties. The model belongs to the Phi-3 family with the Mini version in two variants 4K and 128K which is the context length (in tokens) that it can support.

The model has underwent a post-training process that incorporates both supervised fine-tuning and direct preference optimization for the instruction following and safety measures. When assessed against benchmarks testing common sense, language understanding, math, code, long context and logical reasoning, Phi-3 Mini-4K-Instruct showcased a robust and state-of-the-art performance among models with less than 13 billion parameters.

Video playback requires cookie consent

Keynote: Phi-3-Vision: A highly capable and “small” language vision model

Presented by Jianfeng Gao at Microsoft Research Forum, Episode 4

Jianfeng Gao, Distinguished Scientist and Vice President in Microsoft Research Redmond, introduces Phi-3-Vision, an advanced and economical open-source multimodal model. As a member of the Phi-3 model family, Phi-3-Vision enhances language models by integrating multi-sensory skills, seamlessly combining language and vision capabilities.

All Research Forum sessions

Register for the series

JIANFENG GAO: Hi. Welcome to Microsoft Research Forum. My name is Jianfeng Gao. I’m a distinguished scientist and vice president at Microsoft Research. Today, I’m going to talk about our latest AI foundation model, Phi-3-Vision, a highly capable and cost-effective open-source vision-language model. The model seamlessly combines language and vision capabilities, and the model weights are released to the public to allow everyone to develop better models on top of it.

First, let me use a few examples to show you what the model can do. A typical use case of a vision-language model is vision question answering, where the model is asked to answer questions regarding an input image. As illustrated in this example, the question—what is the tower building in the image?—requires an understanding of language, vision, and commonsense knowledge to answer. For example, the model needs to not only recognize the tower is the Space Needle but also know that it is one of the most recognizable landmarks in the city and offers panoramic views of Seattle and the surrounding area. Compared to popular language-vision models on the market, including those released by Microsoft, such as Kosmos, LLaVA, and Florence, Phi-3-Vision is not only much smaller but has much stronger understanding and reasoning capabilities, especially in non-natural image domains, such as tables, charts, and diagrams.

As shown in this example, we presented the model a coffee shop menu, which is by no means a high-quality image, and asked such questions as, what is the price of a cappuccino with a large size, how much does it cost to add ice to the tea, and if someone wants to buy a pot of tea, how much would it cost? The model can produce correct answers by reasoning over relevant knowledge extracted from the image, such as “The price is $3.25,” “It costs an additional $1 to add ice to any tea,” and “A pot [of] tea will cost $4.” The model can also extract all the texts from the image and generate a table using the format specified by users, such as the Markdown table and the JSON representation.

Here is another example where the model is asked to generate an insightful report from a chart, and it’s told that the report will be used to make important decisions. We see that the model-generated report is very well structured. It starts with an introduction to what the chart is about, then gives four insights based on the chart, and concludes the report with a suggestion to the decision makers.

[...内容已截断,完整版请查看原文或 Wayback 快照]