The features extracted from attention maps include the following:
Topological features
are properties of attention graphs. Features of directed attention graphs include the number of strongly connected components, edges, simple cycles and average vertex degree. The properties of undirected graphs include
the first two Betti numbers: the number of connected components and the number of simple cycles, the matching number and the chordality.
Features derived from barcodes
include descriptive characteristics of 0/1-dimensional barcodes and reflect the survival (death and birth) of
connected components and edges throughout the filtration.
Distance-to-pattern
features measure the distance between attention matrices and identity matrices of pre-defined attention patterns, such as attention to the first token [CLS] and to the last
[SEP] of the sequence, attention to previous and
next token and to punctuation marks.
The
computed features and barcodes
can be found in the subdirectories of the repository.
test_sub
features and barcodes were computed on the out-of-domain test RuCoLA dataset.
Refer to notebooks 4* and 5* from the
repository
to construct the classification pipeline with TDA features.
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
learning_rate: 1e-05
train_batch_size: 32
eval_batch_size: 8
seed: 42
optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
lr_scheduler_type: linear
num_epochs: 5.0
Framework versions
Transformers 4.27.0.dev0
Pytorch 1.13.1+cu116
Datasets 2.9.0
Tokenizers 0.13.2
Runs of iproskurina tda-ruroberta-large-ru-cola on huggingface.co
27
Total runs
0
24-hour runs
0
3-day runs
13
7-day runs
23
30-day runs
More Information About tda-ruroberta-large-ru-cola huggingface.co Model
More tda-ruroberta-large-ru-cola license Visit here:
tda-ruroberta-large-ru-cola huggingface.co is an AI model on huggingface.co that provides tda-ruroberta-large-ru-cola's model effect (), which can be used instantly with this iproskurina tda-ruroberta-large-ru-cola model. huggingface.co supports a free trial of the tda-ruroberta-large-ru-cola model, and also provides paid use of the tda-ruroberta-large-ru-cola. Support call tda-ruroberta-large-ru-cola model through api, including Node.js, Python, http.
tda-ruroberta-large-ru-cola huggingface.co is an online trial and call api platform, which integrates tda-ruroberta-large-ru-cola's modeling effects, including api services, and provides a free online trial of tda-ruroberta-large-ru-cola, you can try tda-ruroberta-large-ru-cola online for free by clicking the link below.
iproskurina tda-ruroberta-large-ru-cola online free url in huggingface.co:
tda-ruroberta-large-ru-cola is an open source model from GitHub that offers a free installation service, and any user can find tda-ruroberta-large-ru-cola on GitHub to install. At the same time, huggingface.co provides the effect of tda-ruroberta-large-ru-cola install, users can directly use tda-ruroberta-large-ru-cola installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
tda-ruroberta-large-ru-cola install url in huggingface.co: