# Florence-2

Florence-2 是微软推出的一个小型开放视觉基础模型，将图像描述、目标检测、视觉定位、指代表达分割及相关视觉-语言任务统一在单一模型中处理，其方式是将每项任务视为一段文本提示后跟生成的文本响应。描述该模型的论文于 2023 年 11 月发布（arXiv 2311.06242），该工作经过同行评审并发表于 CVPR 2024，模型检查点于 2024 年 6 月 16 日在 [Hugging Face](https://www.edgepedia.org/zh/hugging-face) 上以 MIT 许可证发布。<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup><sup> • </sup><sup>[2](https://openaccess.thecvf.com/content/CVPR2024/papers/Xiao_Florence-2_Advancing_a_Unified_Representation_for_a_Variety_of_Vision_CVPR_2024_paper.pdf)</sup><sup> • </sup><sup>[3](https://huggingface.co/microsoft/Florence-2-base)</sup><sup> • </sup><sup>[4](https://huggingface.co/docs/transformers/model_doc/florence2)</sup>

这里的“统一”意味着一个模型覆盖了通常分散在多个独立系统中的任务。微软将其描述为一个基于提示的模型，以文本提示作为任务指令，并以文本形式产出结果——无论是图像描述、目标检测、定位还是分割。<sup>[5](https://www.microsoft.com/en-us/research/publication/florence-2-advancing-a-unified-representation-for-a-variety-of-vision-tasks/)</sup> 它有两个小型变体：Florence-2-B 拥有 2.32 亿参数，Florence-2-L 拥有 7.71 亿参数。<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup>

| 关键事实 | 详情 |
|---|---|
| 开发方与发布时间 | 微软；论文 2023 年 11 月，CVPR 2024，Hugging Face 发布 2024 年 6 月 16 日<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup><sup> • </sup><sup>[2](https://openaccess.thecvf.com/content/CVPR2024/papers/Xiao_Florence-2_Advancing_a_Unified_Representation_for_a_Variety_of_Vision_CVPR_2024_paper.pdf)</sup><sup> • </sup><sup>[4](https://huggingface.co/docs/transformers/model_doc/florence2)</sup> |
| 规模 | Florence-2-B：2.32 亿参数；Florence-2-L：7.71 亿参数<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup> |
| 单模型任务 | 图像描述、目标检测、定位、指代分割，均通过文本提示实现<sup>[5](https://www.microsoft.com/en-us/research/publication/florence-2-advancing-a-unified-representation-for-a-variety-of-vision-tasks/)</sup> |
| 训练数据 | FLD-5B：覆盖 1.26 亿张图像的 54 亿条标注，通过自动标注与模型精炼构建<sup>[5](https://www.microsoft.com/en-us/research/publication/florence-2-advancing-a-unified-representation-for-a-variety-of-vision-tasks/)</sup> |
| 厂商公布的主要结果 | 大模型零样本 COCO 图像描述 CIDEr 135.6，对比 800 亿参数的 Flamingo 为 84.3<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup> |
| 许可证 | MIT，四个公开检查点（base/large，各含一个微调的 -ft 变体）<sup>[3](https://huggingface.co/microsoft/Florence-2-base)</sup> |
| Transformers 支持 | 2025 年 8 月 20 日加入 Hugging Face Transformers<sup>[4](https://huggingface.co/docs/transformers/model_doc/florence2)</sup> |

## 架构与训练

已发表的设计将 DaViT 视觉编码器（负责将图像转换为视觉 token 嵌入）与基于 transformer 的多模态编码器-解码器相结合，两个组件分别从 UniCL 和 BART 初始化。<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup><sup> • </sup><sup>[2](https://openaccess.thecvf.com/content/CVPR2024/papers/Xiao_Florence-2_Advancing_a_Unified_Representation_for_a_Variety_of_Vision_CVPR_2024_paper.pdf)</sup> 图像 token 嵌入与文本嵌入拼接后，由编码器-解码器生成响应。<sup>[2](https://openaccess.thecvf.com/content/CVPR2024/papers/Xiao_Florence-2_Advancing_a_Unified_Representation_for_a_Variety_of_Vision_CVPR_2024_paper.pdf)</sup>

每项任务都是一个翻译问题。给定输入图像和任务特定提示，模型生成相应输出，并以标准的语言建模目标进行训练。<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup> 区域和边界框使用 1,000 个量化坐标分箱以文本形式表达，区域格式根据各任务需求定制，因此检测和定位无需任务特定的输出头。<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup>

训练数据为 FLD-5B 数据集，由微软为本模型联合开发：覆盖 1.26 亿张图像的 54 亿条视觉标注，采用自动图像标注与模型精炼的迭代策略产出，而非大规模人工标注。<sup>[5](https://www.microsoft.com/en-us/research/publication/florence-2-advancing-a-unified-representation-for-a-variety-of-vision-tasks/)</sup><sup> • </sup><sup>[4](https://huggingface.co/docs/transformers/model_doc/florence2)</sup> 已发表的训练方案使用 2,048（base）和 3,072（large）的迷你批次，384×384 分辨率，直至 30 亿有效训练样本，随后进行 768×768 的高分辨率调优。<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup>

## 基准测试结果（厂商报告）

微软在论文和模型卡中报告了以下定量结果。

| 基准测试 | Florence-2-base（0.23B） | Florence-2-large（0.77B） |
|---|---|---|
| COCO 图像描述，零样本 CIDEr | 133.0 | 135.6 |
| NoCaps CIDEr | 118.7 | 120.8 |
| TextCaps CIDEr | 70.1 | 72.8 |
| Flickr30k 测试 Recall@1 | 83.6 | 84.4 |
| COCO 检测 val2017 mAP | 34.7 | 37.5 |
| RefCOCO val 准确率 | 53.9 | 56.3 |
| RefCOCO+ val 准确率 | 51.5 | 53.6 |
| RefCOCOg val 准确率 | 66.3 | 68.0 |
| RefCOCO 指代分割 mIoU | 34.6 | 35.8 |

来源：论文与 Hugging Face 模型卡。<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup><sup> • </sup><sup>[3](https://huggingface.co/microsoft/Florence-2-base)</sup>

两个厂商来源之间存在一处未解决的差异。论文报告零样本 COCO 检测 mAP 为 19.7（base）和 22.6（large），而模型卡表格列出 COCO 检测 val2017 为 34.7 和 37.5，但未标注评估条件。<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup><sup> • </sup><sup>[3](https://huggingface.co/microsoft/Florence-2-base)</sup> 两个来源未对这两个数字做出调和，因此读者应将检测数字视为依赖条件而定，并核实比较中使用的是哪种设定。

## 与更大模型及专用模型的比较

论文中的比较同样为厂商报告，对象是规模大得多的通用模型和任务专用模型。在零样本 COCO 图像描述上，Florence-2-L 取得 135.6 CIDEr，而 800 亿参数的 Flamingo 为 84.3，前者使用的参数量不到 Flamingo 的 1%。<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup> 在定位任务上，零样本 Florence-2-L 将 Flickr30k Recall@1 相比 16 亿参数的 Kosmos-2 提升了 5.7 个百分点（84.4 对 78.7），并在 RefCOCO、RefCOCO+ 和 RefCOCOg 上分别提升约 4、8 和 8 个百分点；35.8 mIoU 的指代分割结果是作者称此前基础模型不支持的能力。<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup>

在与专用模型的对比中，CVPR 论文报告称，在公开人工标注数据上微调后，紧凑的 Florence-2 可与更大的专用模型竞争，并在 RefCOCO/+/g 上创下新的最优结果。<sup>[2](https://openaccess.thecvf.com/content/CVPR2024/papers/Xiao_Florence-2_Advancing_a_Unified_Representation_for_a_Variety_of_Vision_CVPR_2024_paper.pdf)</sup> 具体而言，Florence-2-L 在 RefCOCO REC 上的 Accuracy@0.5 比专用指代表达模型 PolyFormer 高 3.0，在 RES 上的 mIoU 比其高 3.54。<sup>[1](https://ar5iv.labs.arxiv.org/html/2311.06242)</sup>

## 许可、可用性与生态

Hugging Face 上以 MIT 许可证发布了四个检查点：Florence-2-base（0.23B）和 Florence-2-large（0.77B），各自在 FLD-5B 上预训练，外加各自的微调 -ft 变体，在一系列下游任务上训练而成。<sup>[3](https://huggingface.co/microsoft/Florence-2-base)</sup> 模型于 2024 年 6 月 16 日在 Hugging Face 上发布，并于 2025 年 8 月 20 日加入 [Hugging Face Transformers](https://www.edgepedia.org/zh/hugging-face-transformers) 库，从而可通过标准 Transformers API 使用。<sup>[4](https://huggingface.co/docs/transformers/model_doc/florence2)</sup>

## References

1. [Florence-2: Advancing a Unified Representation for a Variety of Vision Tasks (arXiv 2311.06242)](https://ar5iv.labs.arxiv.org/html/2311.06242)
2. [Florence-2: Advancing a Unified Representation for a Variety of Vision Tasks (CVPR 2024)](https://openaccess.thecvf.com/content/CVPR2024/papers/Xiao_Florence-2_Advancing_a_Unified_Representation_for_a_Variety_of_Vision_CVPR_2024_paper.pdf)
3. [microsoft/Florence-2-base model card (Hugging Face)](https://huggingface.co/microsoft/Florence-2-base)
4. [Florence-2 in Hugging Face Transformers documentation](https://huggingface.co/docs/transformers/model_doc/florence2)
5. [Florence-2 publication page, Microsoft Research](https://www.microsoft.com/en-us/research/publication/florence-2-advancing-a-unified-representation-for-a-variety-of-vision-tasks/)

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Model families and named models › Multimodal, vision, and world models

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/florence-2

English original: https://www.edgepedia.org/florence-2
