[Paper Review] Structured Output Learning with Conditional Generative Flows
This paper proposes conditional Glow (c-Glow), a normalizing flow-based model that enables exact and efficient computation of conditional likelihood $p(y|x)$ for structured prediction tasks. By leveraging invertible flows with input-conditioned coupling layers, c-Glow trains end-to-end via maximum likelihood without surrogate objectives or variational inference, achieving state-of-the-art or competitive performance across five diverse structured prediction tasks including image segmentation, denoising, and inpainting.
Traditional structured prediction models try to learn the conditional likelihood, i.e., p(y|x), to capture the relationship between the structured output y and the input features x. For many models, computing the likelihood is intractable. These models are therefore hard to train, requiring the use of surrogate objectives or variational inference to approximate likelihood. In this paper, we propose conditional Glow (c-Glow), a conditional generative flow for structured output learning. C-Glow benefits from the ability of flow-based models to compute p(y|x) exactly and efficiently. Learning with c-Glow does not require a surrogate objective or performing inference during training. Once trained, we can directly and efficiently generate conditional samples. We develop a sample-based prediction method, which can use this advantage to do efficient and effective inference. In our experiments, we test c-Glow on five different tasks. C-Glow outperforms the state-of-the-art baselines in some tasks and predicts comparable outputs in the other tasks. The results show that c-Glow is versatile and is applicable to many different structured prediction problems.
Motivation & Objective
- To address the challenge of intractable likelihood computation in structured prediction models, which hinders effective training and inference.
- To develop a conditional generative model that enables exact, efficient, and differentiable computation of $p(y|x)$ without relying on surrogate objectives or approximate inference.
- To enable direct and efficient sampling from the true conditional distribution $p(y|x)$ after training, supporting diverse and high-quality predictions.
- To evaluate the versatility and performance of the proposed model across diverse structured prediction tasks with both discrete and continuous outputs.
Proposed method
- c-Glow extends the Glow normalizing flow architecture by introducing input-conditioned coupling layers that allow the transformation to depend on input features $x$.
- The model uses invertible, autoregressive-style coupling layers with conditioner networks to generate coupling parameters based on $x$, enabling exact likelihood computation via the change-of-variables formula.
- The log-likelihood $\log p(y|x)$ is computed exactly using the Jacobian determinant of the invertible transformation, allowing direct maximum likelihood training.
- A sample-based prediction method is developed to efficiently generate diverse conditional samples from the learned distribution during inference.
- The architecture is adapted per task by adjusting the width and depth of the conditioner networks and latent space dimensions, maintaining a consistent framework across tasks.
- The model is trained end-to-end using stochastic gradient descent to maximize the exact log-likelihood of the structured outputs given inputs.
Experimental results
Research questions
- RQ1Can a flow-based model be effectively adapted to structured prediction tasks with high-dimensional outputs by enabling exact conditional likelihood computation?
- RQ2Does training with exact likelihood via normalizing flows outperform or match surrogate objective or variational inference-based methods in structured prediction?
- RQ3Can c-Glow generate diverse, high-quality conditional samples efficiently without iterative inference procedures?
- RQ4How does c-Glow perform across diverse structured prediction tasks with different output types (discrete vs. continuous)?
Key findings
- c-Glow achieved a PSNR of 36.53 on the depth refinement task, slightly outperforming ProximalNet (36.31) and significantly surpassing filter-based baselines.
- On image inpainting, c-Glow achieved a PSNR of 24.88, outperforming DCGAN inpainting (23.65) and DCGAN with Poisson blending (22.73).
- In binary and multi-class segmentation, c-Glow matched or exceeded the performance of state-of-the-art deep structured prediction models like DVN and NLStruct.
- c-Glow demonstrated strong generalization across five distinct tasks—segmentation, denoising, and inpainting—using a single architecture with minimal hyperparameter tuning.
- Despite slightly lower PSNR on denoising compared to BM3D and DnCNN, c-Glow generated more structurally accurate results, particularly in preserving facial features during inpainting.
- The model's ability to generate diverse, high-quality samples directly from the learned distribution highlights its advantage over iterative inference methods in CRFs or energy-based models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.