Skip to content

New feature: text/text contrastive #304

Closed

Description

@rom1504

Can we adapt openclip to be able to train text/text contrastive models?

And beyond that maybe, text/test/image models ?

use case:

  • train pure contrastive text models either for multilingual pairs, or mono lingual
  • use similarity between text pairs and also with images to have a better text understanding while having a good text,image understanding

options:

  • single tower for text1 and text2
  • two towers

It would be nice to find a way to do this without making the code overly complicated.

It goes in a direction of supporting more modalities combination in openclip

A motivation is there are few good models for text,text surprisingly, even though the community on this is quite active

a related idea is image/image as inspired by https://arxiv.org/abs/2212.08045

reference of private models to beat:

Activity

  1. jn2clark commented on Jan 26, 2023

    @jn2clark

    Hi @rom1504, I am very interested in this, particularly text/text/image using a single tower for text. If you have started anything I would love to see it, otherwise I will probably try and get something going in the next couple of weeks.

  2. rom1504 commented on Jan 26, 2023

    @rom1504
    CollaboratorAuthor

    Check #323

  3. jn2clark commented on Jan 27, 2023

    @jn2clark

    Amazing! Thank you!

  4. locked and limited conversation to collaborators on Jun 16, 2026
  5. converted this issue into a discussion #1176 on Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions