feiyang-k/curation-bench/coca-contrastive-captioners-are-image-text-foundation-models-arxiv-2205-01917v2

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install feiyang-k/curation-bench/coca-contrastive-captioners-are-image-text-foundation-models-arxiv-2205-01917v2

SKILL.md

The same SKILL.md was published earlier as jiachen-t-wang/curation-bench-pro/coca-contrastive-captioners-are-image-text-foundation-models-arxiv-2205-01917v2.

CoCa: Contrastive Captioners are Image-Text Foundation Models

One-line decision

Use this skill when you want to combine contrastive and captioning objectives on the same image-text data for a unified vision-language foundation model. Avoid it when you only need one objective (contrastive or captioning) and not both.

Skill metadata

  • Skill type: contrastive-captioning-data
  • Paper kind: operational-method
  • Actionability: high
  • Evidence quality: full_paper

Goal

Train a unified vision-language foundation model using both contrastive and captioning objectives on the same image-text data, combining the strengths of CLIP-style and generative approaches.

Problem signature

  • Modality: image-text pairs trained with both contrastive and captioning losses.
  • Data state: image-text pairs used for dual-objective training (contrastive + captioning).
  • Scale regime: web-scale image-text pairs (JFT, ALIGN data).
  • Model requirement: CoCa architecture with attentional pooler for contrastive + multimodal decoder for captioning.

Use when

  • You want a unified model for both retrieval and generation.
  • You can train with dual objectives on image-text data.
  • You want one model serving multiple downstream tasks.

Do not use when

  • You only need contrastive (CLIP-style) training.
  • You only need generative (captioning) training.
  • You cannot afford dual-objective training.

Required inputs

  • image_text_pairs: Web-scale image-text pairs.
  • dual_loss: Combined contrastive + captioning loss.
  • coca_architecture: CoCa architecture with attentional pooler + multimodal decoder.

Optional inputs

  • caption_augmentation: Additional caption data for generative quality.

Outputs

  • coca_model: Unified foundation model for retrieval and generation.
  • dual_representations: Embeddings suitable for both retrieval and generation.

Assumptions and prerequisites

  • Contrastive and captioning objectives are complementary.
  • Dual-objective training produces more versatile representations.
  • A single model can excel at both retrieval and generation.

Procedure

  1. Prepare image-text pairs

Action: Curate web-scale image-text data. Why: Both objectives operate on image-text pairs. Note: See paper for details.

  1. Apply contrastive loss

Action: Train the attentional pooler with contrastive loss. Why: Contrastive loss learns alignment for retrieval. Note: See paper for details.

  1. Apply captioning loss

Action: Train the multimodal decoder with captioning loss. Why: Captioning loss learns generation capability. Note: See paper for details.

  1. Joint training

Action: Train both objectives simultaneously. Why: Joint training produces versatile representations. Note: See paper for details.

Parameters to set

  • contrastive_weight — Role: Weight of contrastive loss. How to set: Balance with captioning loss. Default/range: 1.0. Effect: Higher weight emphasizes retrieval.
  • captioning_weight — Role: Weight of captioning loss. How to set: Balance with contrastive loss. Default/range: 1.0. Effect: Higher weight emphasizes generation.

Validation checks

  • CoCa should match CLIP on retrieval tasks.
  • CoCa should match generative models on captioning tasks.
  • Dual-objective training should not degrade either capability.

Failure modes

  • The two objectives may interfere.
  • Training may be slower than single-objective.
  • The architecture adds complexity.

Adaptation notes for VLM training

  • CoCa's dual-objective approach is used in subsequent VLMs.
  • The attentional pooler is reusable for other architectures.
  • CoCa representations are used as recaptioning models.

Implementation notes

  • Balance loss weights carefully.
  • Monitor both contrastive and generative metrics.
  • Use the attentional pooler for efficient feature extraction.

Evidence from the paper

  • CoCa achieves state-of-the-art on both retrieval and generation tasks.
  • Dual contrastive + captioning training produces more versatile representations.
  • CoCa models are used as recaptioning engines in VLM data pipelines.
  • The unified approach eliminates the need for separate contrastive and generative models.

Source paper

  • Title: CoCa: Contrastive Captioners are Image-Text Foundation Models
  • Year: 2022
  • Venue: TMLR
  • Paper ID: arxiv-2205.01917v2
  • URL: http://arxiv.org/abs/2205.01917v2
  • arXiv ID: 2205.01917v2

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/feiyang-k/curation-bench/coca-contrastive-captioners-are-image-text-foundation-models-arxiv-2205-01917v2/badge)](https://verified-skill.com/skills/feiyang-k/curation-bench/coca-contrastive-captioners-are-image-text-foundation-models-arxiv-2205-01917v2)

Something wrong with this skill or its page? Tell us.