官术网_书友最值得收藏!

Mini-batch discrimination

Mini-batch discrimination is another approach to stabilize the training of GANs. It was proposed by Ian Goodfellow and others in Improved Techniques for Training GANs, which is available at https://arxiv.org/pdf/1606.03498.pdf. To understand this approach, let's first look in detail at the problem. While training GANs, when we pass the independent inputs to the discriminator network, the coordination between the gradients might be missing, and this prevents the discriminator network from learning how to differentiate between various images generated by the generator network. This is mode collapse, a problem we looked at earlier. To tackle this problem, we can use mini-batch discrimination. The following diagram illustrates the process very well:

Mini-batch discrimination is a multi-step process. Perform the following steps to add mini-batch discrimination to your network:

  1. Extract the feature maps for the sample and multiply them by a tensor, , generating a matrix, .
  2. Then, calculate the L1 distance between the rows of the matrix  using the following equation:
  1. Then, calculate the summation of all distances for a particular example, :
  1. Then, concatenate  with   and feed it to the next layer of the network:

To understand this approach mathematically, let's take a closer look at the various notions:

  • The activation or feature maps for  sample from an intermediate layer in the discriminator network
  • : A three-dimensional tensor, which we multiply by 
  • : The matrix generated when we multiply the tensor T and 
  • : The output after taking the sum of all distances for a particular example, 

Mini-batch discrimination helps prevent mode collapse and improves the chances of training stability.

主站蜘蛛池模板: 扶风县| 柳林县| 深泽县| 文登市| 株洲市| 山东省| 星座| 区。| 汕尾市| 万载县| 海门市| 景宁| 安化县| 陈巴尔虎旗| 肃宁县| 新田县| 沈阳市| 苍溪县| 肇东市| 陆良县| 松原市| 上高县| 隆昌县| 左贡县| 博乐市| 黎城县| 洪湖市| 马山县| 旬阳县| 临猗县| 安阳县| 大冶市| 西乡县| 屯留县| 汪清县| 漳平市| 彩票| 沁源县| 永靖县| 云梦县| 青冈县|