AI Skills AI技能 3h ago Updated 2h ago 更新于 2小时前 43

Why We Fine-Tuned SigLip (And Why That's Not Always the Right Call) 为什么我们微调了 SigLip(以及为什么这并不总是正确的选择)

Alma Media built a multi-label image classifier for real estate listings with 23 classes (room types, floor plans, aerial shots, etc.) by fine-tuning the open-source SigLIP model rather than relying on third-party VLM APIs The article provides a practical business-context framework for choosing between API-based VLM prompting and custom-trained classifiers, covering promptability, training data needs, cost, and confidence calibration Cost analysis reveals a dramatic divergence at scale: API-base Alma Media针对房地产房源图片开发自动标签系统,涵盖23个类别(房间类型+内容类型),属于典型的多标签分类任务 对比了基于VLM API提示与基于开源ViT模型(如SigLIP)微调两种技术路线的适用场景与权衡 大规模场景下自建分类器成本极低:百万张图片推理成本约0.37美元,仅为API方案(约1500美元)的1/4000 自建模型可提供可校准的置信度分数,而VLM的置信度估计普遍存在校准不良问题 产品冷启动阶段可先用VLM API积累标注数据,再过渡到微调模型,形成数据飞轮

55
Hot 热度
70
Quality 质量
60
Impact 影响力

Analysis 深度分析

TL;DR

  • Alma Media built a multi-label image classifier for real estate listings with 23 classes (room types, floor plans, aerial shots, etc.) by fine-tuning the open-source SigLIP model rather than relying on third-party VLM APIs
  • The article provides a practical business-context framework for choosing between API-based VLM prompting and custom-trained classifiers, covering promptability, training data needs, cost, and confidence calibration
  • Cost analysis reveals a dramatic divergence at scale: API-based classification costs ~$1,500 per million images vs. ~$0.37 for a self-hosted SigLIP classifier on AWS EC2 g4dn.xlarge (T4 GPU), a ~4,000x difference
  • VLM-derived confidence scores are poorly calibrated, making custom classifiers preferable when reliable per-class confidence is needed for production decision-making
  • A phased launch strategy is recommended: start with a prompted VLM to accumulate annotated data, then transition to a fine-tuned custom classifier once sufficient labeled data is available

Why It Matters

This article addresses a gap in the AI literature by focusing on business-context trade-offs rather than pure benchmark performance, providing actionable guidance for practitioners who must decide between quick-to-deploy API solutions and longer-term custom classifier investments. The cost analysis at scale is particularly relevant for any organization processing large volumes of image data, where API costs can become a significant operational expense.

Technical Details

  • Model: Fine-tuned google/siglip-base-patch16-224 (open-source ViT foundation model from Google), deployed on AWS EC2 g4dn.xlarge instances with T4 GPUs, achieving 400+ images per second inference throughput
  • Task: Multi-label classification across 23 classes including LIVING ROOM, KITCHEN, BEDROOM, HALLWAY, LOFT, ALCOVE, floor plans, site plans, aerial shots, garden photos, and realtor marketing materials
  • Data strategy: Leveraged a phased approach — initial predictions from a prompted VLM were used to bootstrap an annotated dataset, followed by a cleanup pass to correct inherited VLM errors before fine-tuning
  • Cost comparison: API approach (Google Agent Platform, gemini-3.5-flash) at ~$1.50 per 1,000 images; self-hosted approach at ~$0.53/hour on EC2, yielding ~$0.37 per million images for inference compute only
  • Confidence calibration: Custom classifiers provide well-calibrated per-class probability scores, whereas VLM token log-likelihoods and verbalized confidence estimates are known to be poorly calibrated for downstream decision-making

Industry Insight

  • Organizations processing image data at scale should model total cost of ownership carefully before committing to API-based solutions; the 4,000x cost difference demonstrated here can be decisive for high-volume production systems
  • The phased "VLM-first, then fine-tune" strategy is a practical blueprint for teams launching new classification products without existing labeled data, turning an initial accuracy trade-off into a long-term cost and calibration advantage
  • Reliable confidence estimation should be treated as a first-class requirement in classifier design; when downstream systems depend on confidence thresholds (e.g., filtering search results), custom-trained models with calibrated scores are likely to outperform API-based VLMs despite potentially lower raw accuracy

TL;DR

  • Alma Media针对房地产房源图片开发自动标签系统,涵盖23个类别(房间类型+内容类型),属于典型的多标签分类任务
  • 对比了基于VLM API提示与基于开源ViT模型(如SigLIP)微调两种技术路线的适用场景与权衡
  • 大规模场景下自建分类器成本极低:百万张图片推理成本约0.37美元,仅为API方案(约1500美元)的1/4000
  • 自建模型可提供可校准的置信度分数,而VLM的置信度估计普遍存在校准不良问题
  • 产品冷启动阶段可先用VLM API积累标注数据,再过渡到微调模型,形成数据飞轮

为什么值得看

本文从业务落地视角系统对比了VLM API与自建分类器的工程决策路径,填补了纯性能评测之外关于成本、置信度、数据策略的空白。对AI从业者而言,提供了可复用的"API→微调"渐进式落地框架。

技术解析

  • 任务定义:23类多标签图像分类,包含房间类型(LIVING ROOM、KITCHEN、BEDROOM等)和内容类型(floor plan、aerial shot、garden等),同一图片可标注多个标签。
  • 模型选型:基于Google SigLIP-base-patch16-224进行微调,保留ViT基础架构,适配房地产场景的细粒度语义区分。
  • 成本测算:API方案(gemini-3.5-flash,1K分辨率)约1.50美元/千张;自建方案(AWS EC2 g4dn.xlarge + T4 GPU,400张/秒)约0.37美元/百万张,推理成本差距达四个数量级。
  • 置信度处理:VLM输出的token log-likelihood与真实类别概率不对应,需依赖PROBABLE/POSSIBLE/UNLIKELY等粗粒度标签;微调模型可输出可校准的per-class概率分数。
  • 数据策略:冷启动阶段使用VLM API生成伪标签,积累数千张/类的标注数据后微调,需人工清洗继承的VLM错误。

行业启示

  • 成本结构决定技术选型:低吞吐量场景API与自建成本差异可忽略,但百万级以上规模必须优先考虑自建推理以控制OPEX。
  • 置信度是可落地的关键指标:业务场景(如"只展示厨房为焦点的照片")依赖可靠置信度,VLM的校准缺陷使其在精细化推荐中受限。
  • 渐进式数据飞轮是务实路径:先用VLM快速验证需求并积累数据,再迁移到微调模型,兼顾上线速度与长期性能优化。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Fine-tuning 微调 Multimodal 多模态 Training 训练 Open Source 开源