Introduction of ESM_strombergnlp__nlpcc-stance_task_a
Model Details of ESM_strombergnlp__nlpcc-stance_task_a
ESM strombergnlp/nlpcc-stance
Model Details
Model Description
ESM
Developed by:
David Schulte
Model type:
ESM
Base Model:
bert-base-multilingual-uncased
Intermediate Task:
strombergnlp/nlpcc-stance
ESM architecture:
linear
ESM embedding dimension:
768
Language(s) (NLP):
[More Information Needed]
License:
Apache-2.0 license
ESM version:
0.1.0
Training Details
Intermediate Task
Task ID:
strombergnlp/nlpcc-stance
Subset [optional]:
task_a
Text Column:
text
Label Column:
target
Dataset Split:
train
Sample size [optional]:
2986
Sample seed [optional]:
Training Procedure [optional]
Language Model Training Hyperparameters [optional]
Epochs:
3
Batch size:
32
Learning rate:
2e-05
Weight Decay:
0.01
Optimizer
: AdamW
ESM Training Hyperparameters [optional]
Epochs:
10
Batch size:
32
Learning rate:
0.001
Weight Decay:
0.01
Optimizer
: AdamW
Additional trainiung details [optional]
Model evaluation
Evaluation of fine-tuned language model [optional]
Evaluation of ESM [optional]
MSE:
Additional evaluation details [optional]
What are Embedding Space Maps used for?
Embedding Space Maps are a part of ESM-LogME, a efficient method for finding intermediate datasets for transfer learning. There are two reasons to use ESM-LogME:
You don't have enough training data for your problem
If you don't have a enough training data for your problem, just use ESM-LogME to find more.
You can supplement model training by including publicly available datasets in the training process.
Fine-tune a language model on suitable intermediate dataset.
Fine-tune the resulting model on your target dataset.
This workflow is called intermediate task transfer learning and it can significantly improve the target performance.
But what is a suitable dataset for your problem? ESM-LogME enable you to quickly rank thousands of datasets on the Hugging Face Hub by how well they are exptected to transfer to your target task.
You want to find similar datasets to your target dataset
Using ESM-LogME can be used like search engine on the Hugging Face Hub. You can find similar tasks to your target task without having to rely on heuristics. ESM-LogME estimates how language models fine-tuned on each intermediate task would benefinit your target task. This quantitative approach combines the effects of domain similarity and task similarity.
How can I use ESM-LogME / ESMs?
We release
hf-dataset-selector
, a Python package for intermediate task selection using Embedding Space Maps.
hf-dataset-selector
fetches ESMs for a given language model and uses it to find the best dataset for applying intermediate training to the target task. ESMs are found by their tags on the Huggingface Hub.
from hfselect import Dataset, compute_task_ranking
# Load target dataset from the Hugging Face Hub
dataset = Dataset.from_hugging_face(
name="stanfordnlp/imdb",
split="train",
text_col="text",
label_col="label",
is_regression=False,
num_examples=1000,
seed=42
)
# Fetch ESMs and rank tasks
task_ranking = compute_task_ranking(
dataset=dataset,
model_name="bert-base-multilingual-uncased"
)
# Display top 5 recommendationsprint(task_ranking[:5])
For more information on how to use ESMs please have a look at the
official Github repository
. We provide documentation further documentation and tutorials for finding intermediate datasets and training your own ESMs.
How do Embedding Space Maps work?
Embedding Space Maps (ESMs) are neural networks that approximate the effect of fine-tuning a language model on a task. They can be used to quickly transform embeddings from a base model to approximate how a fine-tuned model would embed the the input text.
ESMs can be used for intermediate task selection with the ESM-LogME workflow.
How can I use Embedding Space Maps for Intermediate Task Selection?
Citation
If you are using this Embedding Space Maps, please cite our
paper
.
BibTeX:
@inproceedings{schulte-etal-2024-less,
title = "Less is More: Parameter-Efficient Selection of Intermediate Tasks for Transfer Learning",
author = "Schulte, David and
Hamborg, Felix and
Akbik, Alan",
editor = "Al-Onaizan, Yaser and
Bansal, Mohit and
Chen, Yun-Nung",
booktitle = "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing",
month = nov,
year = "2024",
address = "Miami, Florida, USA",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.emnlp-main.529/",
doi = "10.18653/v1/2024.emnlp-main.529",
pages = "9431--9442",
abstract = "Intermediate task transfer learning can greatly improve model performance. If, for example, one has little training data for emotion detection, first fine-tuning a language model on a sentiment classification dataset may improve performance strongly. But which task to choose for transfer learning? Prior methods producing useful task rankings are infeasible for large source pools, as they require forward passes through all source language models. We overcome this by introducing Embedding Space Maps (ESMs), light-weight neural networks that approximate the effect of fine-tuning a language model. We conduct the largest study on NLP task transferability and task selection with 12k source-target pairs. We find that applying ESMs on a prior method reduces execution time and disk space usage by factors of 10 and 278, respectively, while retaining high selection performance (avg. regret@5 score of 2.95)."
}
APA:
Schulte, D., Hamborg, F., & Akbik, A. (2024, November). Less is More: Parameter-Efficient Selection of Intermediate Tasks for Transfer Learning. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing (pp. 9431-9442).
Additional Information
Runs of davidschulte ESM_strombergnlp__nlpcc-stance_task_a on huggingface.co
29
Total runs
0
24-hour runs
0
3-day runs
14
7-day runs
18
30-day runs
More Information About ESM_strombergnlp__nlpcc-stance_task_a huggingface.co Model
More ESM_strombergnlp__nlpcc-stance_task_a license Visit here:
ESM_strombergnlp__nlpcc-stance_task_a huggingface.co is an AI model on huggingface.co that provides ESM_strombergnlp__nlpcc-stance_task_a's model effect (), which can be used instantly with this davidschulte ESM_strombergnlp__nlpcc-stance_task_a model. huggingface.co supports a free trial of the ESM_strombergnlp__nlpcc-stance_task_a model, and also provides paid use of the ESM_strombergnlp__nlpcc-stance_task_a. Support call ESM_strombergnlp__nlpcc-stance_task_a model through api, including Node.js, Python, http.
ESM_strombergnlp__nlpcc-stance_task_a huggingface.co is an online trial and call api platform, which integrates ESM_strombergnlp__nlpcc-stance_task_a's modeling effects, including api services, and provides a free online trial of ESM_strombergnlp__nlpcc-stance_task_a, you can try ESM_strombergnlp__nlpcc-stance_task_a online for free by clicking the link below.
davidschulte ESM_strombergnlp__nlpcc-stance_task_a online free url in huggingface.co:
ESM_strombergnlp__nlpcc-stance_task_a is an open source model from GitHub that offers a free installation service, and any user can find ESM_strombergnlp__nlpcc-stance_task_a on GitHub to install. At the same time, huggingface.co provides the effect of ESM_strombergnlp__nlpcc-stance_task_a install, users can directly use ESM_strombergnlp__nlpcc-stance_task_a installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
ESM_strombergnlp__nlpcc-stance_task_a install url in huggingface.co: