对比中英翻译与本地化数据,提升巴西葡语图像描述生成效果
Brazilian Portuguese Image Captioning with Transformers: A Study on Cross-Native-Translated Dataset
- 用本地葡语和机器翻译的葡语数据对比训练模型
- 本地数据集上模型表现更优,但翻译数据也具一定泛化能力
- 发现模型存在性别、数量、空间等系统性偏差
图像描述(IC)指自动生成图像的自然语言描述,应用涵盖社交媒体内容生成和视障人士辅助。尽管多数研究聚焦英语模型,低资源语言如巴西葡语因缺乏专用数据集和模型而面临挑战。现有研究常通过自动翻译现有数据来缓解资源不足。本文提出对基于Transformer的视觉语言模型在巴西葡语图像描述任务中的跨本地化翻译评估。使用由母语巴西葡语者人工撰写标题的Flickr30K版本,并与从英语自动翻译成葡语的版本进行对比。实验采用跨上下文方法:在一种数据集上训练的模型在另一数据集上测试,以评估翻译影响。同时引入注意力图进行推理解释,并使用CLIP-Score衡量图像-描述匹配度。结果表明,Swin-DistilBERTimbau在所有数据集上均表现最佳,具有强泛化能力;ViTucano(巴西葡语预训练模型)在传统文本评价指标上超越更大规模多语言模型(GPT-4o、LLaMa 3.2 Vision),而GPT-4系列模型在CLIP-Score上最高,显示更强的图文对齐能力。注意力分析揭示了系统性偏差,包括性别误判、物体数量错误和空间关系不一致。本研究的数据集与模型已开源:https://github.com/laicsiifes/transformer-caption-ptbr。
原文摘要 · Abstract (English)
Image captioning (IC) refers to the automatic generation of natural language descriptions for images, with applications ranging from social media content generation to assisting individuals with visual impairments. While most research has been focused on English-based models, low-resource languages such as Brazilian Portuguese face significant challenges due to the lack of specialized datasets and models. Several studies create datasets by automatically translating existing ones to mitigate resource scarcity. This work addresses this gap by proposing a cross-native-translated evaluation of Transformer-based vision and language models for Brazilian Portuguese IC. We use a version of Flickr30K comprised of captions manually created by native Brazilian Portuguese speakers and compare it to a version with captions automatically translated from English to Portuguese. The experiments include a cross-context approach, where models trained on one dataset are tested on the other to assess the translation impact. Additionally, we incorporate attention maps for model inference interpretation and use the CLIP-Score metric to evaluate the image-description alignment. Our findings show that Swin-DistilBERTimbau consistently outperforms other models, demonstrating strong generalization across datasets. ViTucano, a Brazilian Portuguese pre-trained VLM, surpasses larger multilingual models (GPT-4o, LLaMa 3.2 Vision) in traditional text-based evaluation metrics, while GPT-4 models achieve the highest CLIP-Score, highlighting improved image-text alignment. Attention analysis reveals systematic biases, including gender misclassification, object enumeration errors, and spatial inconsistencies. The datasets and the models generated and analyzed during the current study are available in: https://github.com/laicsiifes/transformer-caption-ptbr.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。