Source-linked AI summary

Model Inversion Networks for Model-Based Optimization

Aviral Kumar, Sergey Levine

arXiv:1912.13464v1cs.LGstat.ML

TL;DR

Data-driven optimization seeks inputs that maximize unknown scores from logged input-score pairs, but valid high-dimensional inputs may occupy a narrow subset of the space. MINs learn stochastic inverse mappings from scores to inputs; across evaluated settings, they outperform prior methods on high-dimensional and contextual logged-data tasks and perform competitively with Bayesian optimization methods on active lower-dimensional tasks.

  • Problem

    Data-driven optimization must find high-scoring inputs from input-score data when valid inputs occupy a narrow subset of a high-dimensional space.

    Source: §1 · p. 1
  • Method

    Model inversion networks learn stochastic inverse mappings from scores to inputs and can use offline data or active collection.

    Source: §1 · p. 2
  • Results

    MINs outperform prior methods on high-dimensional inputs and contextual logged-data optimization, while performing competitively with Bayesian optimization methods on active lower-dimensional tasks.

    Source: §1 · p. 2
  • Takeaways & Limitations

    MINs solve contextual and non-contextual model-based optimization tasks, including tasks with highly semantic image scores.

    Source: §5 · p. 9

    Further work is needed on active-data-collection and reweighting interactions, inference procedures, and training objectives.

    Source: §5 · p. 9

Abstract

from arXiv · show

In this work, we aim to solve data-driven optimization problems, where the goal is to find an input that maximizes an unknown score function given access to a dataset of inputs with corresponding scores. When the inputs are high-dimensional and valid inputs constitute a small subset of this space (e.g., valid protein sequences or valid natural images), such model-based optimization problems become exceptionally difficult, since the optimizer must avoid out-of-distribution and invalid inputs. We propose to address such problem with model inversion networks (MINs), which learn an inverse mapping from scores to inputs. MINs can scale to high-dimensional input spaces and leverage offline logged data for both contextual and non-contextual optimization problems. MINs can also handle both purely offline data sources and active data collection. We evaluate MINs on tasks from the Bayesian optimization literature, high-dimensional model-based optimization problems over images and protein designs, and contextual bandit optimization from logged data.

1. Introduction

Data-driven optimization seeks inputs maximizing unknown scores from input-score data, but valid inputs may occupy a narrow manifold in high-dimensional spaces. MINs learn stochastic inverse mappings from scores to inputs and are evaluated across high-dimensional, active, and contextual settings.

1. Introduction

  • High-dimensional optimization is difficult when valid inputs occupy a narrow, low-dimensional manifold, as with valid aircraft designs or natural images.Optimizers must find high-scoring inputs without leaving the valid subset of the input space.Source: §1 · p. 1
  • Expensive real-world evaluations make active data collection costly, while existing designs and user-click data may provide offline inputs and scores.The paper cites aircraft and protein designs as examples of prior data that could be leveraged.Source: §1 · p. 1
  • The goal is an approach that handles high-dimensional inputs, uses offline static data, and can learn with minimal active collection when needed.Source: §1 · p. 1
  • Directly optimizing a learned proxy score can fail because the optimizer finds inputs where the proxy predicts erroneously large values.This issue is especially severe for inputs on narrow manifolds in high-dimensional spaces.Source: §1 · p. 1
  • MINs learn stochastic inverse mappings from scores to inputs, rather than proxy forward functions, and perform well across high-dimensional, active, and contextual optimization settings.The inverse mapping is one-to-many, so it uses a stochastic mapping from scores and random variables to inputs.Source: §1 · p. 2

2. Related Work

The related work contrasts MINs with active model-based optimization, batch contextual-bandit methods, and deep generative modeling. It highlights MINs’ applicability to static data and high-dimensional inputs alongside competitive active-setting performance.

Bayesian and model-based optimization

  • Most model-based optimization methods require querying the true function iteratively, whereas MINs also apply to static settings and high-dimensional inputs such as images.Prior methods discussed include CEM, reward weighted regression, Gaussian-process Bayesian optimization, Bayesian neural networks, latent-variable models, and CbAS.Source: §2 · p. 2

Contextual bandits

  • In batch contextual bandits, MINs substantially outperform prior counterfactual-risk-minimization approaches, including deep-net extensions.The cited prior work includes Swaminathan & Joachims (2015a;b) and Joachims et al. (2018).Source: §2 · p. 2

Deep generative modeling

  • MINs combine deep generative models’ capacity to model high-dimensional manifolds with algorithmic choices tailored to optimization.The paper reports that these design decisions matter for adapting generative models to optimization and that effective optimization is difficult without them.Source: §2 · p. 2

3. Model Inversion Networks

MINs learn stochastic inverse maps from scores to inputs, aiming to avoid proxy-model errors and invalid high-dimensional candidates. Their procedure combines inverse-map inference, score-distribution reweighting, and optional active data collection.

3. Model Inversion Networks

  • The method addresses proxy inaccuracies outside training data and invalid candidates on unknown, narrow manifolds in high-dimensional spaces.These are distinct failure modes of naïvely maximizing a learned forward score function.Source: §3 · pp. 2–3

3.1. Optimization via Inverse Maps

  • MINs map a score and random noise to an input, matching the conditional input distribution to data while allowing multiple inputs for each score.The inverse-map objective is a distribution-matching objective; KL divergence yields maximum-likelihood learning, while Jensen–Shannon divergence motivates GAN-style training.Source: §3.1 · p. 3

3.2. Inference with Inverse Maps (Approx-Infer)

  • Approx-Infer selects scores beyond the observed maximum while using forward–inverse agreement and latent-prior likelihood to favor trustworthy, valid inputs.It searches over a one-dimensional score and a relatively low-dimensional latent variable rather than the full input space.Source: §3.2 · pp. 3–4

3.3. Reweighting the Training Distribution

  • Reweighting balances closeness to the optimal score distribution against variance by upweighting high scores while reducing weights on rare scores.The proposed form incorporates the number of observations at each score and saturates for common scores; continuous scores are binned for reweighting.Source: §3.3 · p. 4

3.4. Active Data Collection via Randomized Labeling

  • Randomized labeling approximates Thompson sampling by using synthetic input-score pairs to represent sampled functions, then querying and adding a selected input.The paper also reports O(√T) regret guarantees under mild assumptions and says the approach does not require explicit uncertainty estimation.Source: §3.4 · p. 5

3.5. Practical Implementation of MINs

  • The practical implementation uses a conditional GAN inverse map, score-bin reweighting, and positive-noise augmented scores to promote exploration during active collection.Two inverse-map copies are trained: one with synthetic augmentation and one on real samples, which the paper says improves training stability.Source: §3.5 · p. 5

4. Experimental Evaluation

The evaluation tests MINs on static data-driven optimization and active data collection, including logged contextual bandits, high-dimensional images, and protein design.

4.1. Data-Driven Optimization with Static Datasets

  • Ablations show that inference improves test accuracy by about 1.5% on MNIST and 1.0% on CIFAR-10, while reweighting adds about 2.5% on CIFAR-10.For image optimization, removing inference can produce invalid solutions, and removing reweighting can miss the highest-score class.Source: §4.1 · p. 6
  • On MNIST pixel-optimization tasks, MINs produce thick, recognizable digits, while direct forward-model optimization can turn on non-digit pixels and leave the valid-character manifold.The comparisons include stroke-width optimization and maximizing disconnected black-pixel blobs; the figure caption identifies inference and reweighting as important for good results.Source: §4.1 · p. 6, Figure 2 · p. 7
  • MINs drastically outperform BanditNet on static contextual bandit tasks using MNIST and CIFAR-10; the table also reports results against the original BanditNet benchmark.The evaluation uses 50k bandit-feedback training examples.Source: §4.1 · p. 6, Table 1 · p. 7
  • On the youngest-face task, MINs trained on faces older than 15 produce an average age of 13.6 years and a best image age of 12.2; training on ages 25 and above yields an average of 26.2 and a minimum of 23.9.The task requires extrapolating beyond training ages while avoiding unrealistic images.Source: §4.1 · p. 7, Table 2 · p. 7
  • For class-conditioned MNIST stroke-width optimization, MINs achieve an average score of 237.6, compared with the dataset average of 149.0.The contextual image experiments also include completing digits from the top quarter or half of an image; CelebA examples qualitatively optimize attributes while following their target contexts.Source: §4.1 · pp. 7–8, Table 3 · p. 7

4.2. Optimization with Active Data Collection

  • In active data collection, randomized labeling performs better than greedily selecting queries by the current model, and MINs are competitive with Bayesian optimization and prior methods on higher-dimensional protein design.The evaluation compares randomized labeling with greedy data collection and summarizes performance across active settings.Source: §4.2 · pp. 8–9
  • On active benchmark functions, MINs reach within ±0.1 units of the global minimum and typically require 1–4× as much data as efficient GP-based algorithms.Exact Gaussian processes and adaptive Bayesian linear regression outperform MINs in optimization precision and number of samples queried.Source: §4.2 · p. 8, Table 4 · p. 9
  • For protein fluorescence maximization, MINs perform comparably to CbAS and produce the highest-scoring sample among the methods considered.Without reweighting, MINs yield a higher 50th-percentile score, while reweighting can produce the highest-scoring sample.Source: Table 5 · p. 9, §4.2 · p. 9

5. Discussion

MINs replace forward proxy optimization with a stochastic inverse map from scores to inputs, addressing high-dimensional spaces where valid inputs lie on a narrow manifold. The approach covers offline and active optimization, while several design questions remain open.

5. Discussion

  • MINs learn a stochastic inverse mapping from scores to inputs rather than a forward proxy, and experiments show effectiveness across contextual and non-contextual tasks.The reported tasks include optimization over high-dimensional inputs and semantic scores such as a person's age in an image.Source: §5 · p. 9
  • MINs can optimize high-dimensional inputs on a narrow valid-input manifold and use static datasets without active collection, with active collection also available when needed.Reweighting the data distribution is one design choice used for optimization from previously collected data.Source: §5 · p. 9
  • The work introduces data-driven MBO for settings where evaluations are expensive but prior datasets exist, contrasting with prior work that usually focuses on active or on-policy optimization.The discussion names protein, aircraft, and drug design as examples and describes MINs as promising for extremely large input spaces.Source: §5 · p. 9
  • Open questions include the interaction between active data collection and reweighting, better inference procedures, and alternative MIN training objectives.The discussion identifies these as directions for future work.Source: §5 · p. 9

A. Probabilistic Interpretation of Section 3.2

This appendix relates the inference scheme in Equation 4 to a probabilistic objective over a stochastic inverse map and a probabilistic forward map. Restricting the inverse-map distribution to a single output and using a deterministic forward map recovers the stated scheme.

A. Probabilistic Interpretation of Section 3.2

  • The appendix frames the Equation 4 inference scheme as a deterministic relaxation of a probabilistic inference scheme, with a singleton output as the optimization result.The probabilistic setup uses an inverse map p(x|y) and a forward map p_f(y|x).Source: A. Probabilistic Interpretation of… · p. 12
  • The learned inverse map induces p_θ(x|y) through randomness in z, while the probabilistic formulation includes entropy and a KL-divergence term.The formulation optimizes over the inverse-map score input and an output distribution.Source: A. Probabilistic Interpretation of… · p. 12
  • Restricting the output distribution to a Dirac delta at a chosen z connects the probabilistic formulation to maximizing the reconstructed score and the Equation 4 objective.With a fixed-variance Gaussian forward map, the log likelihood becomes a squared-error term; assuming its mean equals the queried y gives the corresponding Equation 4 term.Source: A. Probabilistic Interpretation of… · p. 12
  • Constraining log p_0(z) instead of the true KL divergence yields a lower bound on the Lagrangian, whose maximization also maximizes the true Lagrangian.The stated inequality follows from the data processing inequality for KL divergence.Source: A. Probabilistic Interpretation of… · p. 12

B. Bias-Variance Tradeoff during MIN training

The analysis studies gradient variance and bias when MIN training uses a score distribution different from the distribution of optimal scores. It connects variance to importance sampling and bias to total variation distance.

B. Bias-Variance Tradeoff during MIN training

  • The appendix analyzes the bias-variance tradeoff in the ℓ2 norm of the MIN training gradient, comparing training with optimal-score samples to training under a different score distribution.For deterministic function evaluations, the optimal-score distribution is a Dirac delta; stochastic or noisy evaluations can give it nonzero variance.Source: B. Bias-Variance Tradeoff during MIN… · p. 12
  • The gradient-variance analysis uses an importance-sampling bound and considers reweighting when only a few dataset points are observed for a score.The stated lemma assumes bounded gradient magnitude and variance and provides a high-confidence bound involving the number of observations per score.Source: B. Bias-Variance Tradeoff during MIN… · p. 12
  • The analysis bounds gradient-estimator variance using concentration arguments for importance sampling, then bounds distribution-mismatch bias using total variation distance.The bias bound includes a constant depending on the maximum magnitude of the divergence measure; the two bounds are combined to prove Theorem 3.1.Source: B. Bias-Variance Tradeoff during MIN… · p. 13

C. Argument for Active Data Collection via Randomized Labeling

The appendix relates randomized labeling for active MIN data collection to Thompson sampling and gives a Bayesian-regret argument. The scheme uses synthetic labeled points to train the inverse map, with its guarantee relying on bounded approximation error and stated assumptions.

C. Argument for Active Data Collection via Randomized Labeling

  • The randomized-labeling analysis relates active MIN data collection to Thompson sampling, whose queries are drawn according to the posterior probability that an input is optimal.The appendix describes its proof strategy as following common Thompson-sampling arguments.Source: C. Argument for Active Data Collection… · pp. 13–14
  • The algorithm's setup assumes bounded score range and finite effective input-space size, and defines Bayes risk over query, observation, and prior randomness.The score range can be scaled to satisfy the bound; effective size refers to intrinsic dimensionality.Source: C. Argument for Active Data Collection… · pp. 13–14
  • Randomized labeling creates synthetic (x, y) pairs, including by adding noise to x and pairing it with unobserved or rarely observed scores.The method trains the inverse map on augmented data to represent a function consistent with observed and synthetic points, roughly resembling a posterior function sample.Source: C. Argument for Active Data Collection… · p. 14
  • The theorem states that randomized labeling has Bayesian regret of order O(√T).The stated conclusion is for the randomized-labeling active data collection scheme.Source: C. Argument for Active Data Collection… · p. 15
  • The regret argument connects randomized labeling to information gain and extends a regret guarantee for approximately posterior-optimal queries when inverse-map fitting errors are bounded.The appendix states that shared support with the posterior over optimal inputs also preserves a bounded sublinear regret result.Source: C. Argument for Active Data Collection… · pp. 14–15
  • In the worst case, approximation bias adds cumulatively to Bayesian regret, while the appendix states an overall regret bound for the resulting inverse-map policy.The bound is stated in the passage, but its displayed expression is incomplete there.Source: C. Argument for Active Data Collection… · p. 15

D.1. Contextual Image Optimization

MINs optimize image scores across contextual tasks while producing outputs that match the supplied context. The experiments cover digit stroke width, image inpainting, and semantic attributes in CelebA.

  • 237.6 average score versus 149.0 for dataset digits, with MINs producing digits of the requested class.The task optimizes MNIST stroke width conditioned on the digit class.Source: §D.1 · p. 15
  • For MNIST inpainting, MINs produce visibly valid character completions while achieving scores comparable to completions from the dataset context.The task uses either the top half or top quarter of an image as context and optimizes stroke width.Source: §D.1 · p. 15
  • On CelebA, MINs generate diverse images consistent with attribute contexts while inferring and maximizing a score based on a disjoint attribute subset.The score is the ℓ1 norm of the binary indicator vector for attributes not included in the context.Source: §D.1 · pp. 15–16

D.2. Additional results for non-contextual image optimization

Additional image experiments report successful non-contextual CelebA optimization, while a cGAN baseline struggles to condition on age scores for face generation.

  • MINs successfully optimize the non-contextual CelebA reward defined by wavy hair, no beard, smiling, and eyeglasses.The reward is the same sum of attributes used in the contextual setting.Source: §D.2 · p. 16
  • The cGAN largely ignores the requested youngest-age score and behaves nearly like an unconditional model, even when trained on the full IMDB-Wiki dataset.Its generated samples mostly resemble the dataset's most frequent images.Source: §D.2 · p. 16
  • The authors suspect age provides too little direct guidance for the cGAN, and suggest score-focused reweighting as a possible remedy.The passage frames this explanation as a possibility, not a demonstrated cause.Source: §D.2 · p. 16

D.3. Quantitative Scores for Non-contextual MNIST optimization

The MNIST comparison assesses whether score maximization also yields valid digits, rather than merely high values from a pixel-based objective.

  • MINs achieve the highest average stroke-width score while remaining on the manifold of valid digits.The score counts pixels whose intensity exceeds a threshold.Source: §D.3 · p. 16
  • A forward model can obtain high pixel-count scores without staying on the manifold of valid digits.The passage contrasts this with MIN outputs that resemble valid digits.Source: §D.3 · p. 16
  • The MNIST stroke-width score is the number of pixels with intensity above a threshold.Source: §D.3 · p. 16

D.4. Experimental Details and Setup

The experimental setup uses task-specific architectures and score reweighting, with paired inverse maps in active training. Supplementary figures and notes report image results and a BanditNet reproducibility issue.

Experimental details and setup

  • MNIST and benchmark functions use fully connected GANs and three-layer ReLU forward models; CelebA and IMDB-Wiki use VGAN.For contextual bandits, MNIST uses fully connected networks and CIFAR-10 uses a convolutional generator with a ResNet18-like discriminator; the categorical output uses Gumbel-softmax at τ = 0.75.Source: §D.4 · p. 16
  • Table 6 is identified as reporting average quantitative performance for MNIST inpainting.Source: Table 6 · p. 16
  • The authors could not reproduce the reported BanditNet results, so the main-text comparison uses numbers reported by the BanditNet paper.Source: §D.4 · p. 16
  • Reweighting adapts τ to the gap between the maximum and 90th-percentile scores, uses λ = 0.003, and typically bins scores into 20 groups while training the inverse map on continuous scores.The reported λ values from 0.0001 to 0.007 performed similarly.Source: §D.4 · p. 16
  • Active training uses two jointly trained inverse maps: one on randomized-label augmented data and one on real data, which the authors use to prevent training instability.This also allows fixed-step training rather than optimizing an inverse map fully at every active iteration.Source: §D.4 · pp. 16, 18
  • The IMDB-faces cGAN figure depicts outputs that largely ignore the requested score, while the MNIST figure reports quantitative scores for non-contextual optimization.Source: Figure 7 · p. 17, Figure 9 · p. 18
  • Supplementary CelebA figures show non-contextual attribute optimization and contextual optimization for unseen hair-color combinations; the latter outputs are described as context-aligned while optimizing score.The non-contextual reward sums wavy hair, no beard, smiling, and eyeglasses.Source: Figure 8 · p. 17, Figure 6 · p. 17
Loading 1912.13464v1…