StarSpace is a general-purpose embedding-based learning framework that trains embeddings for entities (words, sentences, users, items) under various supervision signals (classification, ranking, matching). Instead of focusing on one task, StarSpace supports multi-task and multi-domain setups—for instance, you can train embeddings so that textual queries match item descriptions, sentences map to labels, or users align with liked items in the same embedding space. The training objective is contrastive: for a given query embedding, positive and negative examples are sampled and the model is optimized to score positive higher than negatives. The library supports a variety of tasks (text classification, nearest-neighbor search, recommendation, entity linking) with simple configuration. It includes efficient batching, negative sampling strategies, and on-the-fly embedding updates.

Features

  • Contrastive embedding learning supporting classification, ranking, and matching
  • Multi-domain capability: embeddings for users, items, queries, entities in unified space
  • Efficient negative sampling and batching for scalable training
  • Support for multiple task types (text classification, recommendation, entity linking)
  • Command-line tools and configuration-driven workflows
  • Examples and sample datasets for quick experimentation and adoption

Project Samples

Project Activity

See All Activity >

Categories

AI Models

License

MIT License

Follow StarSpace

StarSpace Web Site

Other Useful Business Software
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of StarSpace!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C++

Related Categories

C++ AI Models

Registered

2025-10-07