CoolFace
Modelpublic

WilliamRabuel/roberta-student-fine-tuned

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes12downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

roberta-student-fined-tunned

This model is a fine-tuned version of roberta-base on a dataset provided by Kim Taeuk (김태욱), NLP teacher at Hanyang University.

The model was trained for multi-intent detection using the BlendX dataset, focusing on complex utterances containing multiple intents.

It achieves the following results on the evaluation set:

  • Loss: 0.0053
  • Exact Match Accuracy: 0.9075

Model description

The model is based on roberta-base, a robust transformer model pretrained on a large corpus of English text.

Fine-tuning was conducted on a specialized dataset focusing on multi-intent detection in utterances with complex intent structures.

Model Architecture

  • Base Model: roberta-base
  • Task: Multi-Intent Detection
  • Languages: English

Strengths

High accuracy on evaluation data.

Capable of detecting multiple intents within a single utterance.

Limitations

Fine-tuned on a specific dataset; performance may vary on other tasks.

Limited to English text.

Intended uses & limitations

Use Cases

Multi-intent detection tasks such as customer service queries, virtual assistants, and dialogue systems.

Academic research and educational projects.

Limitations

May require additional fine-tuning for domain-specific applications.

Not designed for multilingual tasks.

Training and evaluation data

The model was trained on the BlendX dataset, a multi-intent detection benchmark focusing on realistic combinations of user intents in task-oriented dialogues.

Data Details:

The dataset used for training this model is based on the BlendX dataset, focusing on multi-intent detection in task-oriented dialogues. While the actual BlendX dataset covers instances that can have varying number of intents between 1 to 3, the dataset for this assignment only includes instances where there are 2 intents for simplicity.

Dataset License and Source

The dataset used for training this model is licensed under the [GNU General Public License v2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html).

Important Notes:

  • Any use, distribution, or modification of this dataset must comply with the terms of the GPL v2 license.
  • The dataset source and its original license can be found in its official GitHub repository.
  • Dataset File: Download Here

Dataset Format:

  • File Type: JSON
  • Size: 28,815 training samples, 1,513 validation samples
  • Data Fields:
  • split (string): Indicates if the sample belongs to the training or validation set.
  • utterance (string): The text input containing multiple intents.
  • intent (list of strings): The associated intents.

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 1e-05
  • trainbatchsize: 32
  • evalbatchsize: 32
  • seed: 42
  • optimizer: Use OptimizerNames.ADAMWTORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • lrschedulertype: cosinewithrestarts
  • warmup_steps: 200
  • num_epochs: 20
  • savetotallimit: 3
  • weight_decay: 0.01
  • eval_strategy: epoch
  • save_strategy: epoch
  • metricforbestmodel: evalexactmatchaccuracy
  • loadbestmodelatend: True
  • dataloaderpinmemory: True
  • fp16: False
  • greaterisbetter: True

Training results

Training LossEpochStepValidation LossExact Match Accuracy
0.07231.022970.07200.0
0.05762.045940.05160.0
0.03283.068910.02640.0839
0.0154.091880.01410.6907
0.00865.0114850.00920.8771
0.00466.0137820.00690.8929
0.00277.0160790.00610.9002
0.00188.0183760.00590.8936
0.00129.0206730.00560.8995
0.000910.0229700.00530.9075
0.000711.0252670.00550.9055
0.000512.0275640.00610.8976
0.000413.0298610.00570.9061

Framework versions

  • Transformers 4.47.0
  • Pytorch 2.5.1+cu124
  • Datasets 3.2.0
  • Tokenizers 0.21.0

Improvement Perspectives

To achieve better results, several improvement strategies could be explored:

  • Model Capacity Expansion: Test larger models like roberta-large or other bigger models.
  • Batch Size Increase: Use larger batches for more stable updates.
  • Gradient accumulation steps parameter: Play with the number of updates steps to accumulate the gradients for, before performing a backward/update pass.
  • Learning Rate Management:
  • Experiment with strategies like polynomial or others, with dynamic adjustment.
  • Further reduce the learning rate
  • Enhanced Preprocessing:
  • Test data augmentation techniques such as random masking or synonym replacement.
  • Further reduce the gap between the different categories.
  • Change the weights according to the representativeness of the category.
  • Use another dataset.
  • Longer Training Duration: Increase the number of epochs and refine stopping criteria for more precise convergence.
  • Model Ensembling: Use multiple models to improve prediction robustness.
  • Advanced Attention Mechanisms: Test models using hierarchical attention or enhanced multi-head architectures.
  • Metric: Choosing the best metric based on our problem.

These strategies require significant computational resources and extended training time but offer substantial potential for performance improvement.