You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
Latest research in robust machine learning, including adversarial/backdoor attack and defense, out-of-distribution (OOD) generalization, and safe transfer learning.
4
4
5
+
Hosted projects:
6
+
7
+
- ChatGPT robustness: [code](./chatgpt-robust/) | Paper: [On the Robustness of ChatGPT: An Adversarial and Out-of-distribution Perspective](xxx)
8
+
- Stay tuned for more upcoming projects!
9
+
5
10
## Contributing
6
11
7
12
This project welcomes contributions and suggestions. Most contributions require you to agree to a
Note that you will not get the final results by simply running the codes, since the outputs of generative models are not stable. We need some manual process. Bad cases of AdvGLUE and Flipkart are pvovided in [this folder](./result/chatgpt_results/).
'hug_zs': [ # zero-shot classification using fine-tuned models
16
+
'cross-encoder/nli-deberta-v3-large',
17
+
'sentence-transformers/nli-roberta-large',
18
+
'facebook/bart-large-mnli'
19
+
],
20
+
'hug_gen': [ # generative big models using text-generation
21
+
'google/flan-t5-large',
22
+
'facebook/opt-66b',
23
+
'bigscience/bloomz-7b1',
24
+
'bigscience/T0pp',
25
+
'bigscience/bloom',
26
+
'EleutherAI/gpt-j-6B',
27
+
'EleutherAI/gpt-neox-20b',
28
+
'BAAI/glm-10b'
29
+
30
+
],
31
+
'gpt': [
32
+
# 'text-ada-001',
33
+
'text-davinci-002',
34
+
'text-davinci-003',
35
+
],
36
+
'chat': ['bert-large-uncased']
37
+
}
38
+
39
+
PROMPT_SET= {
40
+
'sst2': [
41
+
'Is the following sentence positive or negative? Answer me with "positive" or "negative", just one word. ',
42
+
'Please classify the following sentence into either positive or negative. Answer me with "positive" or "negative", just one word. ',
43
+
],
44
+
'qqp': [
45
+
'Are the following two questions equivalent or not? Answer me with "equivalent" or "not_equivalent". ',
46
+
],
47
+
'mnli': [
48
+
'Are the following two sentences entailment, neutral or contradiction? Answer me with "entailment", "neutral" or "contradiction". ',
49
+
],
50
+
'anli': [
51
+
'Are the following paragraph entailment, neutral or contradiction? Answer me with "entailment", "neutral" or "contradiction". The answer should be a single word. The answer is: ',
52
+
],
53
+
'qnli': [
54
+
'Are the following question and sentence entailment or not_entailment? Answer me with "entailment" or "not_entailment". ',
55
+
],
56
+
'mnli-mm': [
57
+
'Are the following two sentences entailment, neutral or contradiction? Answer me with "entailment", "neutral" or "contradiction". ',
58
+
],
59
+
'flipkart': [
60
+
'Is the following sentence positive, neutral, or negative? Answer me with "positive", "neutral", or "negative", just one word. ',
61
+
],
62
+
'rte': [
63
+
'Are the following two sentences entailment or not_entailment? Answer me with "entailment" or "not_entailment". ',
64
+
],
65
+
'ddxplus': [
66
+
"Imagine you are an intern doctor. Based on the previous dialogue, what is the diagnosis? Select one answer among the following lists: ['spontaneous pneumothorax', 'cluster headache', 'boerhaave', 'spontaneous rib fracture', 'gerd', 'hiv (initial infection)', 'anemia', 'viral pharyngitis', 'inguinal hernia', 'myasthenia gravis', 'whooping cough', 'anaphylaxis', 'epiglottitis', 'guillain-barré syndrome', 'acute laryngitis', 'croup', 'psvt', 'atrial fibrillation', 'bronchiectasis', 'allergic sinusitis', 'chagas', 'scombroid food poisoning', 'myocarditis', 'larygospasm', 'acute dystonic reactions', 'localized edema', 'sle', 'tuberculosis', 'unstable angina', 'stable angina', 'ebola', 'acute otitis media', 'panic attack', 'bronchospasm / acute asthma exacerbation', 'bronchitis', 'acute copd exacerbation / infection', 'pulmonary embolism', 'urti', 'influenza', 'pneumonia', 'acute rhinosinusitis', 'chronic rhinosinusitis', 'bronchiolitis', 'pulmonary neoplasm', 'possible nstemi / stemi', 'sarcoidosis', 'pancreatic neoplasm', 'acute pulmonary edema', 'pericarditis', 'cannot decide']. The answer should be a single word. The answer is: "
67
+
],
68
+
'translation_en_to_zh': [
69
+
'Translate the following sentence from Engilish to Chinese. '
70
+
],
71
+
'translation_zh_to_en': [
72
+
'Translate the following sentence from Chinese to English. '
'Is the following sentence positive or negative? Answer me with "positive" or "negative", just one word. ',
130
+
'Please classify the following sentence into either positive or negative. If it is positive, reply 1, otherwise, reply 0. Just answer me with a single number. ',
131
+
],
132
+
'qqp': [
133
+
'Are the following two questions equivalent or not? If they are equivalent, answer me with 1, otherwise, answer me with 0. Just answer me with a single number. ',
134
+
],
135
+
'mnli': [
136
+
'Are the following two sentences entailment, neutral or contradiction? Answer me with 0 if they are entailment, answer me with 2 if they are contradiction, otherwise answer me with 1. ',
137
+
],
138
+
'anli': [
139
+
'Are the following two sentences entailment, neutral or contradiction? Answer me with 1 if they are entailment, answer me with 0 if they are contradiction, otherwise answer me with 2. ',
140
+
],
141
+
'qnli': [
142
+
'Are the following question and sentence entailment or not entailment? Answer me with 0 if they are entailment, otherwise 1. ',
143
+
],
144
+
'mnli-mm': [
145
+
'Are the following two sentences entailment, neutral or contradiction? Answer me with "entailment", "neutral" or "contradiction". ',
146
+
],
147
+
'flipkart': [
148
+
'Is the following sentence positive, neutral, or negative? Answer me with "positive", "neutral", or "negative", just one word. ',
149
+
],
150
+
'rte': [
151
+
'Are the following two sentences entailment or not? Answer me with 0 if they are entailment, otherwise answer me with 1. ',
152
+
],
153
+
'ddxplus': [
154
+
"Imagine you are an intern doctor. Based on the previous dialogue, what is the diagnosis? Select one answer among the following lists: ['spontaneous pneumothorax', 'cluster headache', 'boerhaave', 'spontaneous rib fracture', 'gerd', 'hiv (initial infection)', 'anemia', 'viral pharyngitis', 'inguinal hernia', 'myasthenia gravis', 'whooping cough', 'anaphylaxis', 'epiglottitis', 'guillain-barré syndrome', 'acute laryngitis', 'croup', 'psvt', 'atrial fibrillation', 'bronchiectasis', 'allergic sinusitis', 'chagas', 'scombroid food poisoning', 'myocarditis', 'larygospasm', 'acute dystonic reactions', 'localized edema', 'sle', 'tuberculosis', 'unstable angina', 'stable angina', 'ebola', 'acute otitis media', 'panic attack', 'bronchospasm / acute asthma exacerbation', 'bronchitis', 'acute copd exacerbation / infection', 'pulmonary embolism', 'urti', 'influenza', 'pneumonia', 'acute rhinosinusitis', 'chronic rhinosinusitis', 'bronchiolitis', 'pulmonary neoplasm', 'possible nstemi / stemi', 'sarcoidosis', 'pancreatic neoplasm', 'acute pulmonary edema', 'pericarditis', 'cannot decide']. The answer should be a single word. The answer is: "
155
+
],
156
+
'translation_en_to_zh': [
157
+
'Translate the following sentence from Engilish to Chinese. '
158
+
],
159
+
'translation_zh_to_en': [
160
+
'Translate the following sentence from Chinese to English. '
0 commit comments