Cross encoders are high performing encoder models that compare two texts and output a 0-1 score.
I've found the cross-encoders/roberta-large-stsb model to be very useful in creating evaluators for LLM outputs.
They're simple to use, fast and very accurate.
To use NeoCE for semantic similarity tasks, you can load the model with the Hugging Face sentence-transformers library:
1from sentence_transformers import CrossEncoder
2
3# Load NeoCE model
4model = CrossEncoder("dleemiller/NeoCE-sts")
5
6# Predict similarity scores for sentence pairs
7sentence_pairs = [
8 ("It's a wonderful day outside.", "It's so sunny today!"),
9 ("It's a wonderful day outside.", "He drove to work earlier."),
10]
11scores = model.predict(sentence_pairs)
12
13print(scores) # Outputs: array([0.9184, 0.0123], dtype=float32)
The model was pretrained on the
pair-score-sampled subset of the
dleemiller/wiki-sim dataset. This dataset provides diverse sentence pairs with semantic similarity scores, helping the model build a robust understanding of relationships between sentences.
Fine-tuning was performed on the
sentence-transformers/stsb dataset.
Thanks to the chandra-lab team for providing the NeoBERT models, and the Sentence Transformers team for their leadership in transformer encoder models.
1@misc{moderncestsb2025,
2 author = {Miller, D. Lee},
3 title = {NeoCE STS: An STS cross encoder model},
4 year = {2025},
5 publisher = {Hugging Face Hub},
6 url = {https://huggingface.co/dleemiller/ModernCE-base-sts},
7}
This model is licensed under the
MIT License.