CoolFace
Modelpublic

Lidor-Mashiach/roberta-large-anli

sourceHugging Facecc-by-nc-4.0updated 2mo agoView on Hugging Face
2likes11downloads
Model Card

RoBERTa Large fine tuned on ANLI

Model

This checkpoint is based on FacebookAI/roberta-large.

It was fine tuned only on the combined ANLI training rounds. The training set contained 162,865 premise and hypothesis pairs.

The model predicts one of three labels:

LabelMeaning
0entailment
1neutral
2contradiction

The input order is premise first and hypothesis second.

Evaluation

Accuracy was measured on the combined ANLI held out rounds.

SplitAccuracyExamples
Development55.72%3,200
Test55.09%3,200

These values are plain classification accuracy.

The checkpoint was trained on ANLI alone. Comparisons should use the same combined ANLI splits and the same label mapping.

The machine readable results are stored in baseline_eval.json.

Training

SettingValue
Base modelFacebookAI/roberta-large
Epochs3
Batch size16
Gradient accumulation steps1
Learning rate0.000008690336386137876
Weight decay0.09923494287492991
Warmup ratio0.15352519954015828
Label smoothing0.0
Adam beta 20.98
Maximum sequence length128
Seed1299843651
Numerical precisionBF16

The hyperparameters were selected for this model and dataset combination.

The full training record is stored in model_card.json.

Use

Load the repository with AutoTokenizer and AutoModelForSequenceClassification from the Transformers library.

Pass the premise and hypothesis as a text pair.

Use a maximum sequence length of 128 to match training.

Files

FilePurpose
model.safetensorsModel weights
config.jsonArchitecture and label mapping
tokenizer.jsonTokenizer data
tokenizer_config.jsonTokenizer settings
baseline_eval.jsonEvaluation results
model_card.jsonTraining record and provenance
README.mdModel card

Limitations

The model was trained and evaluated on English ANLI data.

ANLI is adversarial and difficult. Performance on other NLI datasets may differ.

The training accuracy was 98.09%, while held out accuracy was lower. This gap should be considered when using the checkpoint.

The model can inherit errors and biases from the base model and the training data.

The checkpoint has not been evaluated for high risk or safety critical use.

License

The base model FacebookAI/roberta-large is licensed under MIT.

The ANLI training data is licensed under CC BY-NC 4.0.

This checkpoint is released under CC BY-NC 4.0 as a conservative noncommercial choice. Users must follow the terms of the base model and the ANLI dataset.

Use of this checkpoint is limited to noncommercial purposes.

Associated research

This model was trained as part of the following research manuscript:

“Opening the Black Box: Localizing semantic inconsistency in NLI models with Deep k -Nearest Neighbors”

The manuscript is in preparation. It has not been submitted or published.

This section will be updated when a public preprint or an accepted version becomes available.

Citation

Until the paper is public, please cite this model repository:

bibtex
@misc{mashiach2026robertaanli,
  author = {Lidor Mashiach},
  title = {RoBERTa Large fine tuned on ANLI},
  year = {2026},
  publisher = {Hugging Face},
  url = {https://huggingface.co/Lidor-Mashiach/roberta-large-anli}
}

Please also cite the RoBERTa and ANLI papers.

Contact

Questions, corrections, and reproducibility reports can be posted in the Community tab of this repository.