22
votes
Accepted
what is the main difference between GAN and autoencoder?
The main differences are the philosophy that drives the loss metric, and consequently the architecture (the latter goes without saying, obviously).
Autoencoders
The job of an autoencoder is to ...
21
votes
Accepted
How to calculate the output shape of conv2d_transpose?
Here is the correct formula for computing the size of the output with tf.layers.conv2d_transpose():
...
11
votes
Accepted
Find optimal P(X|Y) given I have a model that has good performance when trained on P(Y|X)
This response has been significantly modified from its original form. The flaws of my original response will be discussed below, but if you would like to see roughly what this response looked like ...
11
votes
When to use Stateful LSTM?
As for stateful LSTM and its understanding, refer to here. Quoting an answer from there:
"I’m given a big sequence (e.g. Time Series) and I split it into smaller sequences to construct my input ...
8
votes
How to calculate the output shape of conv2d_transpose?
Take a look at the source code for tf.keras.Conv2DTranspose, which calls the function deconv_output_length when calculating its ...
7
votes
Is it possible to use a generative model to "share" private data?
Unfortunately I don't think a generative model could prevent from leaking private information from the original dataset.
Like any other kind of model, the generative model is based on the values ...
7
votes
Is it possible to use a generative model to "share" private data?
Yes it is.
That is, in theory atleast. So we already have mathematical tools to prove whether privacy (and how much-thats the parameter epsilon) is perserved.
Its called differential privacy. I highly ...
6
votes
Accepted
Which type of models generalize better, generative or discriminative models?
My answer is not limited to NLP and I think NLP is no different in this aspect than other types of learning.
An interesting technical look is offered by: On Discriminative vs. Generative Classifiers - ...
5
votes
Latent loss in variational autoencoder drowns generative loss
I don't like the reduce_sum version of the kl-loss because it depends on the size of your latent vector. My advise is to use the mean instead.
Moreover it is a ...
5
votes
How to calculate the output shape of conv2d_transpose?
Instead of using tf.nn.conv2d_transpose you can use tf.layers.conv2d_transpose
It is a wrapper layer and there is no need to ...
5
votes
How to supress previous results in a generative network?
I need a way to supress previous answers.
The answer to the question depends on the particular network that you are using. What kind of generative model is it? GAN? Autoencoder? Seq2Seq RNN?
Having ...
5
votes
Inception Score (IS) and Fréchet Inception Distance (FID), which one is better for GAN evaluation?
Here is the original paper proposing FID.
Here is an excerpt from
Jason Brownlee's https://machinelearningmastery.com/how-to-implement-the-frechet-inception-distance-fid-from-scratch/ along with a ...
5
votes
Accepted
LLMs for text generation
Yes, there are open multimodal LLMs that you can fine-tune yourself, like LlaVa, NextGPT, IDEFICS or SPHINX.
Closed multimodal LLMs like GPT-4v don't offer a way to fine-tune them yet.
4
votes
Accepted
What does discriminator of a GAN should do?
The discriminator must classify individual elements as being fake (i.e. created by the generator) or real (i.e. taken from the training dataset). The discriminator generates labels (real/fake) for ...
4
votes
Real world example of Generative model & Discriminative model
A generative model is able to generate instances from a given distribution. So let's try to get our model to generate instance from the distribution of all hand written digits. This includes numbers 0 ...
4
votes
Accepted
Understanding notation of Goodfellow's GAN objective function
You are thinking of it backwards :) i.e. don't ask "How do we get these expectation parts?" or "how he got from" sum to expectation, ask where we got the sums!
The expectations are what we actually ...
4
votes
Accepted
Are mainstream pre-trained models useful as discriminators?
Using a standard network architecture is perfectly reasonable. Most discriminator architectures are trivially different variants of well-known architectures anyway.
Depending on the GAN loss, starting ...
3
votes
Accepted
GAN for inpainting an image
I would doubt there's a single correct answer for best available architecture, but the current best results come from this paper by NVIDIA and this technical report by Adobe. The latter paper is the ...
3
votes
How can both generator and discriminator losses decrease?
In the subsection of the figure, they compute the average loss across 100 iterations, which is why the loss is monotonically decreasing because on average the loss does decrease with the training.
You ...
3
votes
When to use Stateful LSTM?
See this post: https://stackoverflow.com/questions/47594861/predicting-a-multiple-time-step-forward-of-a-time-series-using-lstm
You should be training on a shifted X for your Y. Then passing through ...
3
votes
Accepted
Using machine learning to evaluate a random number generator
are there "machine learning" ways to evaluate a pseudorandom number generator?
No it is the wrong tool for the job. Statistical tests, like those you mention monobit, runs, poker test etc, are a way ...
3
votes
Accepted
Evaluating performance of Generative Adverserial Network?
I think it depends on what exactly you're doing with the GANs. If you're generating images, the two most popular (to my knowledge) are the Inception Score [1] and Frechet Inception Distance [2]. GANs ...
3
votes
What is the interpretation of the expectation notation in the GAN formulation?
The functions $$ L_a(x) = \log(D(x))\;\;\;\;\&\;\;\;\; L_b(z) = \log(1-D(G(z))) $$
are defined for one value (either $x$ or $z$).
We don't want to optimize $L_a$ or $L_b$ for one input, we want ...
3
votes
Accepted
What does this symbol means, what operator is it?
$\mathbb{E}$ means expected value.
The subscript is there to clarify which random variable is the expected value taken.
3
votes
Accepted
Transformer masking during training or inference?
The trick is that you do not need masking at inference time. The purpose of masking is that you prevent the decoder state from attending to positions that correspond to tokens "in the future"...
3
votes
Accepted
RCNN to predict sequence of images (video frames)?
The authors provide this image in their supplemental information:
There, you can see their explanation. The convolutional layers encode the image into some latent space representation. The RNN ...
2
votes
Accepted
Text generation using Tensor Factorization
Tensor Factorization would not work for text generation as a stand-alone technique. There is no way for the decomposition to model long-term dependencies in language. Without modeling long-term ...
2
votes
Strange patterns from GAN
The deconv layers are probably to blame. Check out this distill article for a fairly in depth discussion about how deconv layers create checkerboard artifacts. The gist is that deconv striding creates ...
2
votes
How to convert night image to day image?
One problem with this is that dark images simply contain less information. Anyone with a background in photography will tell you it’s easier to decrease exposure on a bright image than increase ...
2
votes
Common Techniques to Generate from a Regression Neural Network Model
Let $E_\phi : D\rightarrow \mathbb{R}$ be your trained differentiable regression model, where $D$ is the data space, e.g. images. Let $G : \mathbb{R}^d\rightarrow D$ be some generative model or ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
generative-models × 187gan × 66
machine-learning × 59
deep-learning × 56
neural-network × 27
autoencoder × 16
tensorflow × 11
nlp × 9
text-generation × 9
diffusion × 9
machine-learning-model × 8
training × 8
keras × 7
pytorch × 7
image × 7
python × 6
dataset × 6
convolutional-neural-network × 6
llm × 6
image-generation × 6
loss-function × 5
convolution × 5
transformer × 5
mathematics × 5
embeddings × 5