Git Product home page Git Product logo

Comments (6)

zhuchen03 avatar zhuchen03 commented on May 26, 2024 1

I have added the hyperparameters for 8 of the GLUE tasks in the bash script.

For epsilon, in the current setting, you can set it to 0 first, which will put no restriction on the maximum norm, and tune other hyperparameters. In this way, the maximum norm will be restricted by the ascent step size, number of ascent steps and the initialization.

In the context of security, epsilon restricts the strength of the adversary for better comparisons. However, in our case, you should first observe the norm of the embeddings to choose a strength/epsilon that is not ignorable but also won't outweigh the embeddings.

from freelb.

PantherYan avatar PantherYan commented on May 26, 2024

There are only 4 tasks' hyper parameters in this file, would you please release others?

Do you have any comments for the scale of norm( $\epsilon$-ball )?
Is it directly to the adversarial effect or general capability?

from freelb.

FFYYang avatar FFYYang commented on May 26, 2024

@PantherYan
In my opinion, the selection of epsilon is tricky and depend on your task's dataset, large epsilon may lead the generated adversarial example to change the golden label, while the small epsilon cannot threaten the model.
I was curious:

  1. Is there any guide rule to select a proper epsilon?
  2. How to make sure the adversarial perturbation won't change the sentence's semantic and the golden label?

from freelb.

PantherYan avatar PantherYan commented on May 26, 2024

@YasinQiu
Thanks for your reply.

#1. Leave this question to @zhuchen03
#2. In my option, the adversarial perturbation similar to the denoise autoencoder, which adding noise to robust or adds the general capability to language model.

I will read more literature to answer our confusion question.
Before yesterday. I training my implemented of freeLB in a plugin format without dropout mask.https://github.com/zhuchen03/FreeLB/issues/8#issuecomment-627669810. It works well with a setting of hypermeter. But after I added the mask_drooout implement and I changed to another set of hyper meter, the FreeLB AT goes to the wrong way. Accuracy falls with training.

It confused me a lot. I will figure out why and post it out.

from freelb.

PantherYan avatar PantherYan commented on May 26, 2024

@YasinQiu
The \epsilon is small.
There are a lot of papers to explain how to choose the minimum or different scales of \epsilon.
Here are for your reference.

  1. Deepfool: a simple and accurate method to fool deep neural networks
  2. FGSM. different scale of \epsilon attack.
    The author was given a reference in the lunch files.

To the explicit value. Should be around 1e-1?

from freelb.

FFYYang avatar FFYYang commented on May 26, 2024

@zhuchen03 @PantherYan thx ~!!!

from freelb.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.