[Paper Review] VFunc: a Deep Generative Model for Functions
VFunc proposes a deep generative model that learns a joint distribution over functions and latent variables, enabling uncertainty estimation in function space via variational inference. By sampling functions through latent variables, it achieves diverse, high-entropy policies in reinforcement learning and improved uncertainty quantification in regression, outperforming parameter-space Bayesian methods in exploration and diversity.
We introduce a deep generative model for functions. Our model provides a joint distribution p(f, z) over functions f and latent variables z which lets us efficiently sample from the marginal p(f) and maximize a variational lower bound on the entropy H(f). We can thus maximize objectives of the form E_{f~p(f)}[R(f)] + c*H(f), where R(f) denotes, e.g., a data log-likelihood term or an expected reward. Such objectives encompass Bayesian deep learning in function space, rather than parameter space, and Bayesian deep RL with representations of uncertainty that offer benefits over bootstrapping and parameter noise. In this short paper we describe our model, situate it in the context of prior work, and present proof-of-concept experiments for regression and RL.
Motivation & Objective
- To develop a generative model that captures uncertainty directly over functions rather than model parameters.
- To enable efficient sampling from the marginal distribution over functions $p(f)$ for downstream tasks.
- To maximize variational lower bounds on the entropy $H(f)$ to promote exploration and diversity in reinforcement learning.
- To provide a scalable alternative to Gaussian processes and Bayesian neural networks for uncertainty estimation in deep learning.
- To demonstrate applicability in regression and reinforcement learning with proof-of-concept experiments.
Proposed method
- The model defines a joint distribution $p(f,z) = p(f|z)p(z)$, where $z$ is a latent variable drawn from a simple prior $p(z)$.
- Functions are generated by conditioning a neural network $p(y|x,z)$ on sampled latent variables $z$, enabling function sampling across the input domain.
- A variational lower bound on the entropy $H(f)$ is maximized using stochastic gradient variational inference, encouraging diversity in the function space.
- For regression, the objective includes data log-likelihood and entropy regularization; for RL, it includes expected reward and policy entropy maximization.
- Latent variables are interpolated to visualize smooth transitions in function behavior, such as policy shifts in gridworld environments.
- State visitation frequencies and function interpolations are used to evaluate policy diversity and uncertainty representation.
Experimental results
Research questions
- RQ1Can a deep generative model effectively represent uncertainty over functions rather than model parameters?
- RQ2How well can latent-conditioned sampling generate diverse and meaningful functions in regression and RL tasks?
- RQ3To what extent does maximizing entropy in function space improve exploration and policy diversity in reinforcement learning?
- RQ4Can the model provide meaningful uncertainty estimates in low-data regions, as shown by interpolation in latent space?
- RQ5How do latent variables encode distinct strategies in complex environments like the double-slit maze?
Key findings
- In regression, the model captures increased uncertainty in regions with less training data, as shown by interpolated functions in Figure 1.
- In the double-slit gridworld, interpolating between latent variables produces smooth policy transitions, with policies shifting from one slit to the other as $\alpha$ increases.
- With entropy maximization, the model generates 16 diverse policies in a gridworld, each following distinct paths to the goal, as visualized by state visitation frequencies.
- The model successfully learns to represent multiple distinct strategies in the four rooms and pachinko environments, with distinct $z$ values corresponding to different navigation routes.
- Latent space interpolation demonstrates that $z$ encodes meaningful, continuous variations in function behavior, including policy transitions between slits in the double-slit maze.
- The method achieves effective uncertainty quantification and policy diversity without relying on bootstrapping or parameter noise, outperforming standard approaches in exploration.
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.