Downloads · 30 days
18
8% of all-time downloads
ELiRF/Longformer-es-m-base-ICE-MR23-ED
Longformer-es-m-base-ICE-MR23-ED is a text classification model from ELiRF. Use it when you need a label for a piece of text. It is set up for transformers.
Longformer-es-m-base-ICE-MR23-ED is a Spanish long-context language model for early detection of eating disorder risk, trained using the Incremental Context Expansion (ICE) methodology. This model builds upon the Long…
Downloads · 30 days
18
8% of all-time downloads
All-time downloads
236
Public
Parameters
149M
7.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors595 MB · 99%
From the Hugging Face model README
Longformer-es-m-base-ICE-MR23-ED is a Spanish long-context language model for early detection of eating disorder risk, trained using the Incremental Context Expansion (ICE) methodology. This model builds upon the Longformer-es-mental-base foundation model and represents the base-sized version of the ICE-adapted Longformer models for the Eating Disorder task.
Compared to its large counterpart, this version contains fewer parameters, offering a more computationally efficient alternative while preserving the ability to process long user message histories. The model is designed for scenarios where mental health–related evidence is distributed across multiple messages and predictions must be generated incrementally.
The ICE methodology restructures the training data at the context level, enabling the model to learn from progressively expanding user message histories rather than complete user timelines. This setup better reflects real-world early detection conditions.
The model is based on the Longformer architecture and supports input sequences of up to 4096 tokens. It has been fine-tuned for the Eating Disorder (ED) task using the MentalRisk 2023 (MR23) benchmark under early detection evaluation settings.
This model is intended for research purposes in early mental health risk detection.
The model can be used directly for early detection of eating disorder risk from Spanish user-generated content, where predictions are generated incrementally as new user messages become available.
Incremental Context Expansion (ICE) is a training methodology designed for early detection tasks. Instead of training on full user histories, ICE generates multiple incremental contexts per user, each corresponding to a partial message history.
This approach allows the model to:
ICE modifies the dataset construction process while keeping the standard fine-tuning pipeline unchanged.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ELiRF/Longformer-es-m-base-ICE-MR23-ED")
model = AutoModelForSequenceClassification.from_pretrained(
"ELiRF/Longformer-es-m-base-ICE-MR23-ED"
)
inputs = tokenizer(
"Ejemplo de historial de mensajes relacionado con trastornos alimentarios.",
return_tensors="pt",
truncation=True,
max_length=4096
)
outputs = model(**inputs)
The model was fine-tuned on the MentalRisk 2023 Eating Disorder (MR23-ED) dataset. Training data was restructured using the ICE methodology, generating incremental user contexts from original user timelines.
When evaluated on the MentalRisk 2023 Eating Disorder task, Longformer-es-m-base-ICE-MR23-ED shows competitive performance under early detection evaluation settings and strong results in full-context (user-level) scenarios, offering a favorable trade-off between performance and computational efficiency.
This model is part of an ongoing research project. The associated paper is currently under review and will be added to this model card once the publication process is completed.
ELiRF research group (VRAIN, Universitat Politècnica de València)