Official Review of Paper125 by Reviewer RNND
UAI 2022 Conference Paper125 Reviewer RNND
16 Apr 2022UAI 2022 Conference Paper125 Official ReviewReaders: Program Chairs, Paper125 Area Chairs, Paper125 Reviewers Submitted, Paper125 Authors
Q1 Summary And Contributions:
This paper proposed a fast inference method for BERT. The core contributions are two folds: 1) a new distillation method that redirects the intermediate outputs directly to the last layer; 2) an approximated exit layer prediction that saves the effort of computing the exit score at each layer. Experiments on a set of benchmark datasets show that the proposed method is able to achieve similar results as the vanilla BERT while being more efficient in terms of memory and runtime.
Q2 Assessment Of The Paper: More detailed information regarding each of these aspects is given below:
Q2(1) Originality/Novelty: 2: Fair: The paper contributes some new ideas.
Q2(2) Significance/Impact: 3: Good: The paper is likely to have high impact within a subfield of AI OR moderate impact across more than one subfield of AI.
Q2(3) Correctness/Technical Quality: 3: Good: The paper appears to be technically sound, but I have not carefully checked the details.
Q2(4) Quality Of Experiments (Optional): 2: Fair: The experimental evaluation is weak: important baselines are missing, or the results do not adequately support the main claims.
Q2(5) Reproducibility: 3: Good: Key resources (e.g., proofs, code, data) are available and key details (e.g., proofs, experimental setup) are sufficiently well-described for competent researchers to confidently reproduce the main results.
Q2(6) Clarity Of Writing: 3: Good: The paper is well organized but the presentation could be improved.
Q3 Main Strengths:
- Making large models more efficient is a hot topic and this paper has made some progress along this line;
- The solution proposed by the paper is simple to carry out;
- The paper has done experiments on realistic benchmark datasets and shows the improvements.
Q4 Main Weakness:
- The approach proposed is rather empirical without much understanding or justification besides the domain specific experiments.
- The batching approach requires 2 rounds of processing of data, which may not be suitable for online serving of the model.
Q5 Detailed Comments To The Authors:
While the paper has shown some empirical gains, there are some concerns with the current draft:
- The approach proposed is rather empirical without much understanding or justification besides the domain specific experiments. a) Specifically, the teacher classifier is trained with the output from layer 12; feeding outputs from early layers directly to the teacher classifier seems interesting, but is not natural as it is different from the expected distribution of the input to the teacher. It would be good to justify this in addition to presenting the final accuracy number. For example, how different would it be for the outputs from different layers? b) it is also a bit strange to formulate the exit-layer prediction as a token-wise independent model. Table 2 provided some interesting information, but it would be interesting to see if the current predictor aligns with the optimal exit-layer, i.e., what if we try out all the layers and see which one gets the best performance.
- The batching approach requires 2 rounds of processing of data, which may not be suitable for online serving of the model. It seems that during evaluation one needs to process the data in two rounds. In first pass we compute all the exit-layer info, and in the second we do actual bert computation. However it might not be feasible in practice as we would expect online serving of the model, where the data comes in a streaming fashion.
Q6 Overall Score: 5: Borderline accept: Technically solid paper where reasons to accept, e.g., novelty, outweigh reasons to reject, e.g., limited evaluation. Please use sparingly.
Q7 Justification For Your Score:
Overall the paper has made some contributions to the line of works in distillation/efficient inference, and the experimental results are also promising. There are some concerns with the methodology, the practical usage though.
Q8 Confidence In Your Score: 4: Quite confident. I tried to check the important points carefully. It is unlikely, though conceivable, that I missed some aspects that could otherwise have impacted my evaluation.
Q9 Complying With Reviewing Instructions: 1: Yes.
AddOfficial Comment
[–]#)
To Reviewer RNND:
We thank you for the constructive comment.
(1) We agree that GEEP has a different teacher classifier distribution compared to the FastBERT. The distance of distribution could be measured by metrics e.g. the Wasserstein distance. In fact, Transformer layers 1-11 consist of a power set whose capacity is 2^11=2048. Each element in the power set (i.e. a combination of Transformer layers e.g. 1,2,3,6,9 sent to the final Transformer layer) would produce a new teacher classifier distribution and corresponding accuracy-speedup curve. For different data and applications, the best accuracy-speedup curve is diverse. Thus, we let users decide which layers should be sent to the final Transformer layer.
(2) We formulate the exit-layer prediction as a token-wise independent model, and then proposed a GPU efficient hash-based implementation. This approach helps to speedup the inference stage while preserving model effectiveness. It could be extended to support token-based techniques e.g. bag-of-words and n-gram in our future work. In contrast, neural network approaches are not applicable for the exit-layer prediction since they are time-consuming and make the total inference time longer than FastBERT.
(3) For online serving, a high QPS(Query Per Second) application could obtain higher speedup using GEEP, compared to FastBERT. Because we can treat it as an offline processing task in a short time window(e.g. 1 second). For low QPS applications (i.e. data comes in a streaming fashion), GEEP can fall back to running like FastBERT. Thus, we can guarantee that GEEP would not behave worse than FastBERT in online services.
Official Review of Paper125 by Reviewer b6Xg
UAI 2022 Conference Paper125 Reviewer b6Xg
12 Apr 2022UAI 2022 Conference Paper125 Official ReviewReaders: Program Chairs, Paper125 Area Chairs, Paper125 Reviewers Submitted, Paper125 Authors
Q1 Summary And Contributions:
This paper focuses on speeding up BERT inference with GPU-efficient Exit Prediction (GEEP). The motivation is that, existing methods such as fastBERT are limited by a list of factors such as the teacher classifier that is not knowledgeable enough, the batch size shrinkage. GEEP leverages the shared exit loss, exit layer prediction to avoid batch size shrinkage and redundant computation of student classifiers.
Q2 Assessment Of The Paper: More detailed information regarding each of these aspects is given below:
Q2(1) Originality/Novelty: 3: Good: The paper makes non-trivial advances over the current state-of-the-art.
Q2(2) Significance/Impact: 3: Good: The paper is likely to have high impact within a subfield of AI OR moderate impact across more than one subfield of AI.
Q2(3) Correctness/Technical Quality: 3: Good: The paper appears to be technically sound, but I have not carefully checked the details.
Q2(4) Quality Of Experiments (Optional): 3: Good: The experimental evaluation is adequate, and the results convincingly support the main claims.
Q2(5) Reproducibility: 3: Good: Key resources (e.g., proofs, code, data) are available and key details (e.g., proofs, experimental setup) are sufficiently well-described for competent researchers to confidently reproduce the main results.
Q2(6) Clarity Of Writing: 3: Good: The paper is well organized but the presentation could be improved.
Q3 Main Strengths:
- GEEP’s motivation is strong for solving FastBERT’s problems and the application is wide;
- shared exit loss and exit layer prediction are well described as GEEP’s modules.
- detailed experiments in table 1 with complete comparison with BERT/FastBERT inferences.
Q4 Main Weakness:
- try inference-specific GPUs (such as T4) besides V100 which is mainly for training models;
- the ablation study part is a bit difficult to follow and ambiguous of understanding the three lines and the observations.
Q5 Detailed Comments To The Authors:
- besides V100-16GB, did you also try other types of GPUs? How far with different GPU types bring differences of model comparison?
- it seems that most of citing are in forms of “Author [year]” and possibly you can also use formats of [Author, year].
- section 4.4 is a bit difficult to follow, can you express the four figures in more details? such as why the black line is shorter than the green GEEP without SEL?
Q6 Overall Score: 6: Weak Accept: Technically solid, moderate to high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.
Q7 Justification For Your Score:
- inference of bert itself is an important direction and GEEP significantly improved bert/fastbert’s inference time without accuracy losses;
- the paper is clearly written with detailed technical description, motivation and experiments.
Q8 Confidence In Your Score: 3: Somewhat confident, but there’s a chance I missed some aspects. I did not carefully check some of the details, e.g., novelty, proof of a theorem, experimental design, or statistical validity of conclusions.
Q9 Complying With Reviewing Instructions: 1: Yes.
AddOfficial Comment
[–]#)
To Reviewer b6Xg:
We thank you for the constructive comment.
(1) Although GEEP does not depend on a specific type of GPU, some hardware properties may slightly affect the GEEP performance: (1) GPU memory will limit the batch size and influence the training process of the Shared Exit Loss; (2) more CUDA cores manipulating parallelly GPU hashtables will result in a shorter time for computing exit scores. (3) We are glad to offer a list of the best GEEP settings for various hardware(e.g. CPU, GPU, TPU) in future work.
(2) We will elaborate our writing and formats.
(3) Curves in Figure 5 (y-axis: accuracy, x-axis: inference time) are made by connecting points obtained from experiments. The green line represents GEEP without Exit Layer Prediction which is equivalent to FastBERT trained by Shared Exit Loss. It still introduces the redundant sub-classifier computation described in Figure 1. For similar accuracy, it consumes more time than GEEP, and its curve is longer on the x-axis which represents inference time.
FWwhi gure
Official Review of Paper125 by Reviewer jVxo
UAI 2022 Conference Paper125 Reviewer jVxo
11 Apr 2022UAI 2022 Conference Paper125 Official ReviewReaders: Program Chairs, Paper125 Area Chairs, Paper125 Reviewers Submitted, Paper125 Authors
Q1 Summary And Contributions:
BERT is a representative LM but suffers from slow speed at model inference time. The authors proposed a high-speed BERT inference method called GEEP. GEEP accelerate the BERT inference by reducing the gap between the teacher classifier and student classifier, and allowing the exit layer prediction from the training set. The experiments are sufficient and 12 datasets including English datasets and Chinese datasets are considered.
Q2 Assessment Of The Paper: More detailed information regarding each of these aspects is given below:
Q2(1) Originality/Novelty: 2: Fair: The paper contributes some new ideas.
Q2(2) Significance/Impact: 2: Fair: The paper is likely to have moderate impact within a subfield of AI.
Q2(3) Correctness/Technical Quality: 2: Fair: The paper has minor, easily fixable, technical flaws that do not impact the validity of the main results.
Q2(4) Quality Of Experiments (Optional): 3: Good: The experimental evaluation is adequate, and the results convincingly support the main claims.
Q2(5) Reproducibility: 3: Good: Key resources (e.g., proofs, code, data) are available and key details (e.g., proofs, experimental setup) are sufficiently well-described for competent researchers to confidently reproduce the main results.
Q2(6) Clarity Of Writing: 2: Fair: The paper is somewhat clear, but some important details are missing or unclear.
Q3 Main Strengths:
The motivation is clear and the experiments are sufficient. The authors proposed a high-speed BERT inference method called GEEP which equipped with the shared exit loss (SEL) and exit layer prediction (ELP). The most related art is FastBERT which realized adaptive inference with an acceptable drop in accuracy based on knowledge distillation and the early-exit technique. GEEP further accelerate the BERT inference by reducing the gap between the teacher classifier and student classifier, and allowing the exit layer prediction from the training set. The experiments are sufficient and 12 datasets including English datasets and Chinese datasets are considered.
Q4 Main Weakness:
The novalty is not so strong and the two main contributions need more supporting and evidence. (1) The intuition of SEL is not so clear. The authors argued that the BERT inference is accelerating by reducing the gap between the teacher classifier and student classifiers in the shared exit loss. Based on my understanding, this effect should be forced onto the total loss, i.e. D{KL}(p{s_i}||p_t). (2) If Hypothesis 1 is wrong then the result will be bad. (3) In the introduction, the authors argued that the 2x acceleration but I think the baseline is BERT not FastBERT.
Q5 Detailed Comments To The Authors:
In formula (7), what is the relationship between pti and pt ? Does pt=pt12?
How to calculate “exit scores” and “exit distribution”? Would you please provide the formulas?
Detailed information and figure caption of ablation study?
Q6 Overall Score: 5: Borderline accept: Technically solid paper where reasons to accept, e.g., novelty, outweigh reasons to reject, e.g., limited evaluation. Please use sparingly.
Q7 Justification For Your Score:
The motivation is clear and the experiments are sufficient. However, the novalty is not so strong and the two main contributions need more supporting and evidence.
Q8 Confidence In Your Score: 3: Somewhat confident, but there’s a chance I missed some aspects. I did not carefully check some of the details, e.g., novelty, proof of a theorem, experimental design, or statistical validity of conclusions.
Q9 Complying With Reviewing Instructions: 1: Yes.
AddOfficial Comment
[–]#)
To Reviewer jVxo:
We thank you for the constructive comment.
(1) It is obvious that there is a tradeoff between performance and inference time for neural networks. Shared Exit Loss (SEL) bridging the gap between the teacher classifier and student classifiers, aims at improving model performance which can be traded off for inference time reduction. In contrast, Exit Layer Prediction is designed to directly reduce the inference time.
(2) We agree that users should validate Hypothesis 1 on their own data before deploying GEEP.
(3) pt includes Transformer layer 1~12 and the teacher classifier. pti includes Transformer layer 1~i, Transformer layer 12, and the teacher classifier. We can say that pt(i=11) is equivalent to pt.
(4) You can refer to Figures 3 and 4 for calculating “exit scores”. Assume that our BERT is 4-layer and we use it to infer the training dataset, token “hello” exits from layers 1-4 for probabilities [0.1,0.2,0.3,0.4], “world” exits from layers 1-4 for probabilities [0.2,0.2,0.5,0.1]. For a sequence “hello world” in test dataset, we summing up [0.1,0.2,0.3,0.4] and [0.2,0.2,0.5,0.1] to get the exit score [0.3,0.4,0.8,0.5], and we predict that this sequence will exit from layer 3.
(5) Curves in Figure 5 are made by connecting points (y-axis: accuracy, x-axis: inference time) obtained from experiments. We will elaborate it in the revised version.
Official Review of Paper125 by Reviewer Z6of
UAI 2022 Conference Paper125 Reviewer Z6of
11 Apr 2022UAI 2022 Conference Paper125 Official ReviewReaders: Program Chairs, Paper125 Area Chairs, Paper125 Reviewers Submitted, Paper125 Authors
Q1 Summary And Contributions:
This paper tackles the task of accelerating the inference speed of BERT models. The proposed method consists of two improvements over the existing FastBERT. First, the teacher classifier is applied to every prior BERT layer instead of only the last layer. Second, the authors propose to predict and directly exit at the destined layer in inference. In addition, they have a CUDA efficient implementation on the classifier.
Q2 Assessment Of The Paper: More detailed information regarding each of these aspects is given below:
Q2(1) Originality/Novelty: 2: Fair: The paper contributes some new ideas.
Q2(2) Significance/Impact: 2: Fair: The paper is likely to have moderate impact within a subfield of AI.
Q2(3) Correctness/Technical Quality: 2: Fair: The paper has minor, easily fixable, technical flaws that do not impact the validity of the main results.
Q2(4) Quality Of Experiments (Optional): 2: Fair: The experimental evaluation is weak: important baselines are missing, or the results do not adequately support the main claims.
Q2(5) Reproducibility: 2: Fair: Key resources (e.g., proofs, code, data) are unavailable but key details (e.g., proof sketches, experimental setup) are sufficiently well-described for an expert to confidently reproduce the main results.
Q2(6) Clarity Of Writing: 3: Good: The paper is well organized but the presentation could be improved.
Q3 Main Strengths:
The proposed methods are well motivated and straightforward. The authors address some of the weaknesses of the existing FastBERT, and their system can achieve better performance while being faster in inference.
Q4 Main Weakness:
The novelty of the proposed methods is limited. The shared exit loss is essentially deep supervision, which is commonly used to ensure the consistency of each intermediate layer. The proposed classifier is simply token-level querying from the training set.
There is a lack of baselines to justify the effectiveness of the layer prediction. From Table 2, some of the JSD scores are not “much smaller” than the random baseline. It is necessary to show how accurate the exit layer is and how it affects the performance.
Q5 Detailed Comments To The Authors:
What is the performance of only having a FastBERT-like exit strategy?
What is the X-axis in Figure 5?
Q6 Overall Score: 4: Borderline reject: Technically solid paper where reasons to reject, e.g., lack of novelty, outweigh reasons to accept, e.g., good evaluation. Please use sparingly.
Q7 Justification For Your Score:
Not much novelty
Q8 Confidence In Your Score: 4: Quite confident. I tried to check the important points carefully. It is unlikely, though conceivable, that I missed some aspects that could otherwise have impacted my evaluation.
Q9 Complying With Reviewing Instructions: 1: Yes.
To Reviewer Z6of:
We thank you for the constructive comment.
(1) We formulate the exit-layer prediction as a token-wise independent model, and then proposed a GPU efficient hash-based implementation. This approach helps to speedup the inference stage while preserving model effectiveness. It could be extended to support token-based techniques e.g. bag-of-words and n-gram in our future work. In contrast, neural network approaches are not applicable for the exit-layer prediction since they are time-consuming and make the total inference time longer than FastBERT.
(2) Curves in Figure 5 (y-axis: accuracy, x-axis: inference time) are made by connecting points obtained from experiments. The green line represents GEEP without Exit Layer Prediction which is equivalent to FastBERT trained by Shared Exit Loss. It still introduces the redundant sub-classifier computation described in Figure 1. With similar accuracy, it consumes more time than GEEP, and its curve is longer on the x-axis which represents longer inference time.
(3) We agree that users should validate Hypothesis 1 on their own data before deploying GEEP.
(4) We will not let the GEEP model exit strictly from the layer predicted by “exit scores”. In contrast, we increase or decrease the predicted layer to adjust the performance and inference time of the GEEP model.
(5) As for novelty, we argue that previous works always focus on studying criteria of the early exit method, however, these works suffer from batch size shrinkage and redundant sub-classifier computation. GEEP including Shared Exit Loss and Exit Layer Prediction(efficient GPU hashtables) is a promising and effective solution for these two challenges.
