iproskurina commited on
Commit
94dd72a
1 Parent(s): 2bd63c9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -17
README.md CHANGED
@@ -1,41 +1,52 @@
1
  ---
2
- license: mit
3
  tags:
4
- - generated_from_trainer
5
  metrics:
6
  - accuracy
 
7
  model-index:
8
  - name: roberta-large-cased-en-cola_32_2e-05_lr_0.0001_decay_balanced_frozen
9
  results: []
 
 
 
 
10
  ---
11
 
12
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
- should probably proofread and complete it, then remove this comment. -->
14
 
15
- # roberta-large-cased-en-cola_32_2e-05_lr_0.0001_decay_balanced_frozen
16
 
17
- This model is a fine-tuned version of [roberta-large](https://huggingface.co/roberta-large) on an unknown dataset.
 
18
  It achieves the following results on the evaluation set:
19
  - Loss: 0.6793
20
  - Accuracy: 0.7400
21
  - Mcc: 0.3172
22
 
23
- ## Model description
24
 
25
- More information needed
26
 
27
- ## Intended uses & limitations
 
28
 
29
- More information needed
 
30
 
31
- ## Training and evaluation data
 
 
32
 
33
- More information needed
 
34
 
35
  ## Training procedure
36
 
37
  ### Training hyperparameters
38
 
 
39
  The following hyperparameters were used during training:
40
  - learning_rate: 2e-05
41
  - train_batch_size: 32
@@ -45,13 +56,9 @@ The following hyperparameters were used during training:
45
  - lr_scheduler_type: linear
46
  - num_epochs: 5.0
47
 
48
- ### Training results
49
-
50
-
51
-
52
  ### Framework versions
53
 
54
  - Transformers 4.27.0.dev0
55
  - Pytorch 1.13.1+cu116
56
  - Datasets 2.9.0
57
- - Tokenizers 0.13.2
 
1
  ---
2
+ license: apache-2.0
3
  tags:
4
+ - TDA
5
  metrics:
6
  - accuracy
7
+ - matthews_correlation
8
  model-index:
9
  - name: roberta-large-cased-en-cola_32_2e-05_lr_0.0001_decay_balanced_frozen
10
  results: []
11
+ datasets:
12
+ - shivkumarganesh/CoLA
13
+ language:
14
+ - en
15
  ---
16
 
17
+ [**Official repository**](https://github.com/upunaprosk/la-tda)
 
18
 
19
+ # RoBERTa-large-TDA
20
 
21
+ This model is a pre-trained version of [roberta-large](https://huggingface.co/roberta-large) with frozen weights and a linear layer
22
+ trained over [CLS]-pooled text representations on [CoLA](https://nyu-mll.github.io/CoLA/).
23
  It achieves the following results on the evaluation set:
24
  - Loss: 0.6793
25
  - Accuracy: 0.7400
26
  - Mcc: 0.3172
27
 
28
+ ## Features extracted from Transformer
29
 
30
+ The features extracted from attention maps include the following:
31
 
32
+ 1. **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
33
+ the first two Betti numbers: the number of connected components and the number of simple cycles, the matching number and the chordality.
34
 
35
+ 2. **Features derived from barcodes** include descriptive characteristics of 0/1-dimensional barcodes and reflect the survival (death and birth) of
36
+ connected components and edges throughout the filtration.
37
 
38
+ 3. **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
39
+ [SEP] of the sequence, attention to previous and
40
+ next token and to punctuation marks.
41
 
42
+ 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 somain test [CoLA dataset](https://www.kaggle.com/c/cola-out-of-domain-open-evaluation/overview).
43
+ Refer to the notebooks 4* and 5* from the [repository](https://github.com/upunaprosk/la-tda) to construct the classification pipeline with TDA features.
44
 
45
  ## Training procedure
46
 
47
  ### Training hyperparameters
48
 
49
+ Only a linear layer was trained over [CLS]-pooled text representations during training.
50
  The following hyperparameters were used during training:
51
  - learning_rate: 2e-05
52
  - train_batch_size: 32
 
56
  - lr_scheduler_type: linear
57
  - num_epochs: 5.0
58
 
 
 
 
 
59
  ### Framework versions
60
 
61
  - Transformers 4.27.0.dev0
62
  - Pytorch 1.13.1+cu116
63
  - Datasets 2.9.0
64
+ - Tokenizers 0.13.2