CoolFace
Modelpublic

s-nlp/E5-EverGreen-Multilingual-Large

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes11downloads
Model Card

E5-EG-large

A lightweight multilingual model for temporal classification of questions, fine-tuned from intfloat/multilingual-e5-large-instruct.

Model Details

Model Description

E5-EG-small (E5 EverGreen - Large) is an efficient multilingual text classification model that determines whether questions have temporally mutable or immutable answers. This model offers a balanced trade-off between performance and computational efficiency.

  • Model type: Text Classification
  • Base model: intfloat/multilingual-e5-small
  • Language(s): Russian, English, French, German, Hebrew, Arabic, Chinese
  • License: MIT

Model Sources

How to Get Started with the Model

python
from transformers import pipeline
import torch

# Load model and tokenizer
model_name = "s-nlp/E5-EverGreen-Multilingual-Large"
pipe = pipeline("text-classification", model_name)

# Batch classification example
questions = [
    "What is the capital of France?",
    "Who won the latest World Cup?",
    "What is the speed of light?",
    "What is the current Bitcoin price?"
    "How old is Elon Musk",
    "How old was Leo Tolstoy when he died?"
]

# Classify
results = pipe(questions)

Training Details

Training Data

Same multilingual dataset as E5-EG-small:

  • ~4,000 questions per language
  • Balanced class distribution
  • Augmented with synthetic and translated data

Training Procedure

Preprocessing
  • Identical to E5-EG-small
  • Maximum sequence length: 64 tokens
  • Multilingual tokenization
Training Hyperparameters
  • Training regime: fp16 mixed precision
  • Epochs: 10
  • Batch size: 32
  • Learning rate: 5e-05
  • Warmup steps: 300
  • Weight decay: 0.01
  • Optimizer: AdamW
  • Loss function: Focal Loss (γ=2.0, α=0.25) with class weighting
  • Gradient accumulation steps: 1
Hardware
  • GPUs: Single NVIDIA V100
  • Training time: ~8 hours

Evaluation

Testing Data

Same test sets as E5-EG-large (2100 samples per language).

Metrics

Overall Performance
MetricScore
Overall F10.89
Overall Accuracy0.88
Per-Language F1 Scores
LanguageF1 Score
English0.92
Chinese0.91
French0.90
German0.89
Russian0.88
Hebrew0.87
Arabic0.86
Class-wise Performance
ClassPrecisionRecallF1
Immutable0.870.900.88
Mutable0.900.870.88

Model Comparison

ModelParametersOverall F1Inference Time (ms)
E5-EG-large560M0.8945
E5-EG-small118M0.8512
mDeBERTa-base278M0.8728
mBERT177M0.8520

Citation

BibTeX:

bibtex
@misc{pletenev2025truetomorrowmultilingualevergreen,
      title={Will It Still Be True Tomorrow? Multilingual Evergreen Question Classification to Improve Trustworthy QA}, 
      author={Sergey Pletenev and Maria Marina and Nikolay Ivanov and Daria Galimzianova and Nikita Krayko and Mikhail Salnikov and Vasily Konovalov and Alexander Panchenko and Viktor Moskvoretskii},
      year={2025},
      eprint={2505.21115},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2505.21115}, 
}