Summary
This paper proposes Wildflare GuardRail, a guardrail pipeline to enhance the LLMs' safety and reliability. Wildflare GuardRail integrates safety detector, grounding, customizer, and repairer, which offers a comprehensive safety pipeline.
Strengths
1. The author proposes Wildflare GuardRail, a safety guardrail pipeline that can effectively improve the model's safety and reliability.
2. The author developed Wildflare GuardRail with their own model, which can have better accuracy, efficiency, and flexibility.
Weaknesses
1. Compared to the related work like Llamagurad, the advantage claimed by this work is vague. To be more specific, in Table 1, there are several metrics that are unnecessary, including "Deployable on edge devices" (The author did not provide details on how they evaluate this metric, also, I believe that Llamaguard can be developed in the edge devices with techniques like pruning or quantization ([Li et al, 2024](https://proceedings.mlsys.org/paper_files/paper/2024/file/42a452cbafa9dd64e9ba4aa95cc1ef21-Paper-Conference.pdf)), "Explainable Results" (Is it necessary to explain the results as long as the guard model can fix the misaligned output?). Authors should provide more explanations or experiment details to prove that these metrics matter when evaluating the effectiveness of the guardrails.
2. The experiment results showed in Figure 4, 5, 6 also cannot show the advantage of Wildflare GuardRail. In figure 4, it achieves a similar performance to the other works. In Figure 5 and Figure 6, there lack of baseline comparisons. The author should also provide a comparison with other works and report the results in Figure 5 and Figure 6. Based on my understanding, "GROUNDING" has no difference with existing RAG models ([Lewis et al, 2020](https://proceedings.neurips.cc/paper/2020/file/6b493230205f780e1bc26945df7481e5-Paper.pdf), [Min et al, 2024](https://arxiv.org/pdf/2308.04430)). The author should provide a comparison with these models.
2. Many details for data preparation, model training, and evaluation are missing, including:
1. The basic information of the "self-trained" model. What is the architecture? What is the number of parameters? How it is trained? All this information is missing and the author should provide more details.
2. The author does not mention the experiment's details on randomness analysis, including the sampling strategies they are using, how many repetitions for each experiment. The author should report the confidence intervals for all results to show the randomness.
3. In line 193, "the outputs are difficult to fix" lacks a clear definition, author should provide more explanation on when the repairer will call a fixing model to fix the answer
4. In line 219, the definition of "labels for hallucination" is missing. How do we obtain this label for each example? Is it included in the original training dataset, or is it needed to be labeled during the filtering process?
5. In Line 257, "randomly selected from 15 public datasets" is vague. How many examples are randomly sampled from each dataset? Is each dataset evenly sampled? Did the author filter the identical examples? I also did not find the number of examples for the final training dataset.
6. In line 330, why there are a set of tokens that correspond to Yes and No? I assume there is only one token that corresponds to "Yes" (tokenid=9642 in Llama3) and one token that corresponds to "No" (tokenid=2822 in Llama3)? Is the author referring to the tokens like " Yes"(tokenid=7566 in Llama3) and " No" (tokenid=2360 in Llama3)? If so, what tokens are included when computing the probability? Also, is there a possibility that none of the candidate tokens are in the top-k (10 in paper) tokens? Why don't we just determine based on the logit order of the candidate tokens? The author should provide more details on how they compute the probability of hallucinations.
7. In line 455, when training the hallucination detector, the author segment the HaluEval dataset as (train, val, test)=(8000, 1500, 500), but when training the repairer, the author segments the HaluEval datasets as (train, val, test) = (8000, 1000, 1000). Any explanation on this?
3. The role of the safety detector is somewhat misleading. In Figure 1, the author shows that the safety detector works for both "unsafe input detection" and "output hallucination detection", but based on the descriptions in the later paragraph, it looks like the safety detector and hallucination detector are two modules that are fine-tuned with different strategies (See line 429-430). The author should provide further clarification on this.
4. Based on my understanding, the hallucination detector's success is based on its capability to factual knowledge. The author only tested the performance of the hallucination detector on the same HaluEval dataset (in-distribution dataset). I am curious about its performance on the out-of-domain data and the author should provide this ablation study if possible.
5. In Line 247, the claim "A binary classification of “safe” and “unsafe” is both efficient and sufficient for LLM services" is misleading. There are a lot of discussions on the definition of AI safety and security ([Qi, et al 2024](https://arxiv.org/pdf/2405.19524)) and it is not that simple. Different countries have different policies and definitions regarding what is allowed and what is not allowed for AI generation. The author should provide more details or proofs to show the sufficiency of binary classification.