Answers.Body: <p>The adversarial loss in a GAN represents the amount of information that the generator is able to trick the discriminator into believing is true.</p>
  <p><code>&quot;The adversarial loss influences whether the generator model can output images that are plausible in the target domain&quot;</code><span class="math-container">$\rightarrow$</span> means that the generator model should output images that look like they could plausibly belong to the target domain. This is important because if the generated images look too fake, it will be difficult for the discriminator to learn to correctly classify them. It's the data that determines whether and how it improves.</p>
  <p>In addition, the adversarial loss is based on the generator model's experience of its successes and failures in the data.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-21T08:34:35.180Z
Answers.Text: "if the generated images look too fake, it will be difficult for the discriminator to learn to correctly classify them" -> in that case wouldn't it be easy to classify them as fake?
Answers.UserDisplayName: NikoNyrh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-19T15:13:42.617Z
Answers.Text: The `adversarial loss` in a GAN represents the difference between the `predicted probability` distribution (produced by the discriminator) and the `actual probability` distribution (i.e., the distribution of real samples in the target domain). It is used to train the discriminator to correctly classify generated images as fake. `If the generated images look too fake`, it will be easy for the discriminator to classify them as fake, resulting in a `high adversarial loss`. This loss is used to improve the discriminator's ability to distinguish real from fake images.
Answers.UserDisplayName: Faizy
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-16T23:23:47.987Z
Answers.LastActivityDate: 2022-10-16T23:23:47.987Z
Answers.UserDisplayName: Faizy
Body: <p>I'm working on Pix2Pix an image-to-image translation GAN, and I noticed that there is an adversarial loss implemented using BCE, and a L1 loss implemented using MAE. I know L1 loss represents the difference between the predicted image and actual image, but I am not sure what does the GAN adversarial loss represent?</p>
  <p>This is the official definition
  <code>The adversarial loss influences whether the generator model can output images that are plausible in the target domain</code>
  but the meaning is tough to understand. Is it representing the difference between the predicted probability distribution and actual probability distribution?</p>
  
Tags: <generative-adversarial-networks><loss>
Title: What does the adversarial loss in a GAN represent?
UserDisplayName: CoderMath
ThreadText: # What does the adversarial loss in a GAN represent?
  
  (Asked by: username_0 on 2022-10-08)
  
  I'm working on Pix2Pix an image-to-image translation GAN, and I noticed that there is an adversarial loss implemented using BCE, and a L1 loss implemented using MAE. I know L1 loss represents the difference between the predicted image and actual image, but I am not sure what does the GAN adversarial loss represent?
  
  This is the official definition
  `The adversarial loss influences whether the generator model can output images that are plausible in the target domain`
  but the meaning is tough to understand. Is it representing the difference between the predicted probability distribution and actual probability distribution?
  
  **Tags:** generative-adversarial-networks, loss
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-10-16. Score: 0
  
  The adversarial loss in a GAN represents the amount of information that the generator is able to trick the discriminator into believing is true.
  
  `"The adversarial loss influences whether the generator model can output images that are plausible in the target domain"`$\rightarrow$ means that the generator model should output images that look like they could plausibly belong to the target domain. This is important because if the generated images look too fake, it will be difficult for the discriminator to learn to correctly classify them. It's the data that determines whether and how it improves.
  
  In addition, the adversarial loss is based on the generator model's experience of its successes and failures in the data.
  
  > **Comments:**
  > **username_2**: "if the generated images look too fake, it will be difficult for the discriminator to learn to correctly classify them" -> in that case wouldn't it be easy to classify them as fake?  
  > **username_1**: The `adversarial loss` in a GAN represents the difference between the `predicted probability` distribution (produced by the discriminator) and the `actual probability` distribution (i.e., the distribution of real samples in the target domain). It is used to train the discriminator to correctly classify generated images as fake. `If the generated images look too fake`, it will be easy for the discriminator to classify them as fake, resulting in a `high adversarial loss`. This loss is used to improve the discriminator's ability to distinguish real from fake images.  
  
  ---
  
  