Sahaj.blogs
23 Apr 2024 · Paper summary

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

phi-3-mini is a 3.8B model trained on 3.3T tokens of heavily filtered web and synthetic data, reported to reach 69% on MMLU while being small enough to run on a phone.

Figure from the paper "Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone"
Figure from Abdin et al. (2024), licensed CC BY 4.0. Figure 1 : Toy illustration of the blocksparse attention in phi-3-small with 2 local blocks and vertical stride of 3. The table shows the Keys/values a query token in block 8 attended to. Blue =local blocks, orange …

Problem

Following phi-1.5 (summarised in September 2023), the question is how capable a model small enough for a phone can be.

Method

phi-3-mini has 3.8 billion parameters and is trained on 3.3 trillion tokens. The data scales up the phi-2 recipe: heavily filtered public web data plus synthetic data. The model is then aligned for robustness, safety and chat format. The report adds:

  • phi-3-small (7B) and phi-3-medium (14B), trained on 4.8T tokens
  • a phi-3.5 series: phi-3.5-mini, phi-3.5-MoE (16 × 3.8B experts, 6.6B active) and phi-3.5-Vision

Key results

As reported in the abstract:

  • phi-3-mini: 69% on MMLU and 8.38 on MT-bench, which the authors compare with Mixtral 8x7B and GPT-3.5
  • phi-3-small / phi-3-medium: 75% / 78% MMLU and 8.7 / 8.9 MT-bench

Limitations

The extracted text has no dedicated limitations section. Benchmark comparisons rely partly on “internal testing”, as the abstract says. The report itself notes that phi-3-mini is fundamentally limited by its size for some tasks: it doesn’t have the capacity to store much factual knowledge (visible in its lower TriviaQA score), which the authors suggest can be offset by pairing it with a search engine.

#llm#small-models

Sources

  1. Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone (arXiv:2404.14219) — arXiv
  2. Hugging Face Daily Papers, 2024-04-23 — Hugging Face

This is a summary written from the linked public sources. Figures and numbers are as reported there.