Question about implementation details of the detection method
chunsanHong opened this issue · 1 comments
Dear,
Yuxin.
I have a question about the implementation details of the detection method. I find it seems different from the equation in Sec.3.3 in your paper. In the paper, it is written that the norm of the difference between conditional and unconditional noise is leveraged as the detection metric, ||\epsilon(x,c) - \epsilon(x, \pi)||. However, in lines 190~195 in local_sd_pipeline.py, it seems that the norm of each noise is calculated first, and then delivered to detect_mem.py. (However, in aug_prompt it seems it aligns with the paper.) May I ask you which one would I use as the detection method? Or is there anything that I have misunderstood?
Best,
Chunsan.
I’ve just founded I have misunderstood.
Sorry for the confusion.
Thanks a lot.