File size: 5,090 Bytes
49525af
 
 
 
13758e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49525af
262bea9
49525af
 
 
afac8eb
49525af
afac8eb
 
 
 
 
 
 
49525af
 
 
 
 
 
 
 
 
 
 
 
afac8eb
49525af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
license: apache-2.0
tags:
- generated_from_trainer
widget:
- text: "Instruction: Edit the provided response into a response that is fluent and\
    \ coherent to the dialogue context. \n\nInput: [CONTEXT] How may I help you? [ENDOFTURN]\
    \ I left a suitcase on the train to London the other day. [RESPONSE] Can describe\
    \ itit , sir ? It will help us find [ENDOFDIALOGUE] [QUESTION] Given this context\
    \ and response provided, the edited response is"
- text: "Instruction: Generate a response that starts with the provided initial phrase.\
    \ \n\nInput: [INITIAL_PHRASE] Please describe [CONTEXT] How may I help you? [ENDOFTURN]\
    \ I left a suitcase on the train to London the other day. [ENDOFDIALOGUE] [QUESTION]\
    \ A response with the provided initial phrase is"
- text: "Instruction: Generate a response that starts with the provided initial phrase\
    \ and contains the provided keywords. \n\nInput: [INITIAL PHRASE] Please describe\
    \ [KEYWORDS] color, any documents [CONTEXT] How may I help you? [ENDOFTURN] I\
    \ left a suitcase on the train to London the other day. [ENDOFDIALOGUE] [QUESTION]\
    \ A response with the provided initial phrase and keywords is"
- text: "Instruction: What is the intent of the response \n\nInput: [CONTEXT] How\
    \ may I help you? [RESPONSE] I left a suitcase on the train to London the other\
    \ day. [ENDOFDIALOGUE] [OPTIONS] booking, reservation change, checkout, lost&found,\
    \ time information, security, schedules [QUESTION] The intent of the response\
    \ is"
- text: "Instruction: Generate a summary for the following dialog context. \n\nInput:\
    \ [CONTEXT] Ann: Wanna go out? [ENDOFTURN] Kate: Not really, I feel sick. [ENDOFTURN]\
    \ Ann: Drink mint tea, they say it helps. Ok, so we'll meet up another time. Take\
    \ care! [ENDOFTURN] Kate: Thanks! [ENDOFDIALOGUE] [QUESTION] For this dialogue,\
    \ the summary is: "
- text: "Instruction: Consider the context of the conversation and a document and\
    \ generate an answer accordingly \n\nInput:  [CONTEXT] How may I help you? [ENDOFTURN]\
    \ I left a suitcase on the train to London the other day. [ENDOFDIALOGUE] [QUESTION]\
    \ What is the response of the following question: Where was the person going to?"
- text: "Instruction: Generate a response using the provided background knowledge.\
    \ \n\nInput: [KNOWLEDGE] Emailid for cases related to lost and found is x@gmail.com\
    \ [CONTEXT] How may I help you? [ENDOFTURN] I left a suitcase on the train to\
    \ London the other day. [ENDOFDIALOGUE] [QUESTION] Generate a response using the\
    \ information from the background knowledge."
base_model: yuchenlin/BART0pp
model-index:
- name: DIAL_BART0
  results: []
---

# InstructDial

Instruction tuning is an emergent paradigm in NLP wherein natural language instructions are leveraged with language models to induce zero-shot performance on unseen tasks. Instructions have been shown to enable good performance on unseen tasks and datasets in both large and small language models. Dialogue is an especially interesting area to explore instruction tuning because dialogue systems perform multiple kinds of tasks related to language (e.g., natural language understanding and generation, domain-specific interaction), yet instruction tuning has not been systematically explored for dialogue-related tasks. We introduce InstructDial, an instruction tuning framework for dialogue, which consists of a repository of 48 diverse dialogue tasks in a unified text-to-text format created from 59 openly available dialogue datasets. Next, we explore cross-task generalization ability on models tuned on InstructDial across diverse dialogue tasks. Our analysis reveals that InstructDial enables good zero-shot performance on unseen datasets and tasks such as dialogue evaluation and intent detection, and even better performance in a few-shot setting. To ensure that models adhere to instructions, we introduce novel meta-tasks. We establish benchmark zero-shot and few-shot performance of models trained using the proposed framework on multiple dialogue tasks. 

[Paper](https://arxiv.org/abs/2205.12673)


# Dial_BART0
BART-large type model trained on InstructDial tasks. This model is a fine-tuned version of [yuchenlin/BART0pp](https://huggingface.co/yuchenlin/BART0pp) on the InstructDial datasets.


## Model description

More information needed

## Intended uses & limitations

More information needed

## Training and evaluation data

All tasks in InstructDial framework (including all dialogue eval tasks)

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 9
- eval_batch_size: 9
- seed: 42
- distributed_type: multi-GPU
- num_devices: 8
- total_train_batch_size: 72
- total_eval_batch_size: 72
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3.0


### Framework versions

- Transformers 4.20.1
- Pytorch 1.11.0
- Datasets 2.3.2
- Tokenizers 0.12.1