FFJORD on two moons
A flow that is the solution of an ODE: the log-density changes at the rate of minus the trace of the vector field's Jacobian
00 · FFJORD on two moons¶
Every flow so far is a stack of layers, and its log-density adds up one log-determinant per layer (5). A continuous normalizing flow Chen et al., 2018 takes the limit of a stack of infinitely many, infinitely small layers: the map is the solution of an ordinary differential equation, and the sum of log-determinants becomes the time integral of a trace. FFJORD Grathwohl et al., 2019 makes the idea practical. Any network can be the vector field, because the trace needs only Jacobian-vector products, and nothing about the network has to be triangular or invertible: the ODE solver inverts the map by running time backwards.
The FFJORD example already trains this flow on two moons and shows its density, its vector field at three times and how many Hutchinson probes its log-density needs. This notebook adds what the example takes for granted: where the integral of the trace comes from, a check of it against autodiff, and what the trained flow does to the data.
import subprocess
import sys
try:
import google.colab # noqa: F401
IN_COLAB = True
except ImportError:
IN_COLAB = False
if IN_COLAB:
repo = "git+https://github.com/jejjohnson/gauss_flows@main"
subprocess.run(
[
sys.executable,
"-m",
"pip",
"install",
"-q",
f"gauss-flows-maps @ {repo}#subdirectory=packages/gauss-flows-maps",
f"gauss-flows-models @ {repo}#subdirectory=packages/gauss-flows-models",
f"gauss-flows-docs[notebooks] @ {repo}#subdirectory=docs",
],
check=True,
)import warnings
warnings.filterwarnings("ignore", message=r".*IProgress.*")
import time
import jax
import jax.numpy as jnp
import jax.random as jr
import matplotlib.pyplot as plt
import numpy as np
import optax
from flowjax.distributions import StandardNormal, Transformed
from jaxtyping import ArrayLike, Float
from pipekit_train import ArrayDataset, History, TrainingLoop
from pipekit_train.backends.equinox import EquinoxModelOp
from scipy import stats
from sklearn.datasets import make_moons
from gauss_flows_docs.environment import watermark
from gauss_flows_docs.plotting import (
DATA_COLOR,
LATENT_COLOR,
SCATTER_KW,
style_ax,
use_compact_figures,
)
from gauss_flows_models.flows import FFJORD, DiffeqMLP
from gauss_flows_models.inference import negative_log_likelihood
np.set_printoptions(precision=3, suppress=True)
# Figures are stored as palette PNGs to keep the notebook small.
use_compact_figures()
watermark(
"jax", "numpy", "optax", "diffrax", "flowjax", "pipekit_train", "gauss_flows_models"
)Python implementation: CPython
Python version : 3.13.12
IPython version : 9.12.0
jax : 0.12.1
numpy : 2.4.3
optax : 0.2.8
diffrax : 0.7.2
flowjax : 19.1.0
pipekit_train : 0.3.4
gauss_flows_models: 0.3.1
Compiler : Clang 21.1.4
OS : Linux
Release : 6.8.0-1044-azure
Machine : x86_64
Processor : x86_64
CPU cores : 16
Architecture: 64bit
The notebook runs in float32, the precision users get by default; every log-density goes through an adaptive ODE solve, which float32 keeps fast enough for a notebook.
The continuous change of variables¶
Take one residual layer that moves a point a small step along a vector field , a neural network with weights : . Its Jacobian is , with the Jacobian of the vector field, and its log-determinant is . A stack of such layers with is the ODE
which starts at the latent at time and ends at the data point at . The sum of the layers’ log-determinants becomes an integral of traces along the path:
The same statement, written for the density of a point carried along the path, is the instantaneous change of variables:
The map from data to latent, , runs the ODE backwards from to , so its log-determinant is minus the integral, and the change of variables (4) becomes
Nothing here asks to be invertible or its Jacobian to be triangular: the ODE’s solution is invertible for any smooth vector field, and the trace needs only the diagonal entries of , which Jacobian-vector products give exactly.
1. A FFJORD bijection, checked against autodiff¶
FFJORD solves (1) together with the running integral of (2), with diffrax. Its transform runs time forwards, from the latent to the data (the sampling direction of FlowJax), and its inverse runs it backwards, from the data to the latent (the density direction). With divergence_mode="exact" the trace is gaussx.trace of the Jacobian operator of , which costs Jacobian-vector products per solver step: two in 2-D, so there is no reason to estimate it. Notebook 01 is about the estimate that larger needs.
The vector field is a DiffeqMLP, an MLP with two hidden layers of 64 tanh units that reads the time and the point. Its last layer has random weights, unlike the zero readout of a fresh coupling (Part 5), so a fresh FFJORD is not the identity.
# Shapes: state (D_x) = 2; latent (D_x) = 2
# today (gauss_flows)
# v_θ(t, x), an MLP of [t, x] with two hidden layers of 64 tanh units
vector_field: DiffeqMLP = DiffeqMLP(jr.key(1), in_dim=2, control_dim=0, hidden=(64, 64))
# today (gauss_flows)
# the ODE flow with the exact trace, solved by Tsit5 to a tolerance of 10⁻⁴
fresh_ffjord: FFJORD = FFJORD(
jr.key(2),
shape=(2,),
vector_field=vector_field,
divergence_mode="exact",
rtol=1e-4,
atol=1e-4,
)To check (2) we need the Jacobian of the solved map , which jax.jacfwd builds by differentiating through the solver. The default adjoint of FFJORD ("recursive_checkpoint", reverse mode for training) does not support forward-mode autodiff, so we solve the same vector field again with the "direct" adjoint, which does, and with a tolerance of 10-6 so that the solver’s error stays below what we compare.
# today (gauss_flows)
# the same v_θ, solved to 10⁻⁶ with an adjoint that supports forward-mode autodiff
tight_ffjord: FFJORD = FFJORD(
jr.key(2),
shape=(2,),
vector_field=vector_field,
divergence_mode="exact",
adjoint="direct",
rtol=1e-6,
atol=1e-6,
)# Shapes: test = 5 check points
TestState = Float[ArrayLike, "test state"]
PerTest = Float[ArrayLike, " test"]
# z ~ N(0, I), (test, latent)
check_latents: Float[ArrayLike, "test latent"] = jr.normal(jr.key(3), (5, 2))
check_points: TestState
integrated_trace: PerTest
# today (gauss_flows)
# x(1) and ∫₀¹ tr(J_v(t, x(t))) dt, (test, state), (test)
check_points, integrated_trace = jax.vmap(tight_ffjord.transform_and_log_det)(
check_latents
)
# today (jax)
# ∂x(1)/∂x(0), by forward-mode autodiff through the solver, (test, state, latent)
solved_jacobian: Float[ArrayLike, "test state latent"] = jax.vmap(
jax.jacfwd(tight_ffjord.transform)
)(check_latents)# log |det ∂x(1)/∂x(0)|, (test)
autodiff_logdet: PerTest = jnp.linalg.slogdet(solved_jacobian)[1]
print(
f"distance moved, ||x(1) - z||: {np.asarray(jnp.linalg.norm(check_points - check_latents, axis=1))}"
)
print(f"integrated trace : {np.asarray(integrated_trace)}")
print(f"log |det| from autodiff : {np.asarray(autodiff_logdet)}")
print(
f"largest difference : {float(jnp.abs(integrated_trace - autodiff_logdet).max()):.1e}"
)distance moved, ||x(1) - z||: [0.044 0.186 0.096 0.119 0.137]
integrated trace : [ 0.012 0.01 0.024 -0.002 0.001]
log |det| from autodiff : [ 0.012 0.01 0.024 -0.002 0.001]
largest difference : 1.1e-07
The fresh field moves these points by 0.04 to 0.19 and changes their log-volume by at most 0.024: a random field of this size is close to the identity, but not the identity. The integrated trace agrees with the log-determinant of the autodiff Jacobian to , float32 rounding. Section 4 repeats the check on the trained field, which moves points much further.
2. Two moons¶
The data are points of two moons with noise of standard deviation 0.06, standardised per coordinate and split into training rows and held-out rows. We keep the moon each point came from, to colour the paths in section 6.
# Shapes: sample (N) = 1,500; train (N_t) = 1,200; held_out (N_v) = 300
SampleState = Float[ArrayLike, "sample state"]
HeldState = Float[ArrayLike, "held_out state"]
raw: SampleState
moon: Float[ArrayLike, " sample"]
# today (scikit-learn)
# two interleaved half circles with noise of standard deviation 0.06, and the moon of each point, (sample, state), (sample)
raw, moon = make_moons(n_samples=1500, noise=0.06, random_state=0)
# x = (raw − x̄) / s, in float32, (sample, state)
samples: SampleState = ((raw - raw.mean(axis=0)) / raw.std(axis=0)).astype(np.float32)
# the training rows, (train, state)
train_points: Float[ArrayLike, "train state"] = samples[:1200]
# the held-out rows, (held_out, state)
held_points: HeldState = samples[1200:]
# the moon of each held-out row, (held_out)
held_moon: Float[ArrayLike, " held_out"] = moon[1200:]3. Training with pipekit-train¶
The flow is FlowJax’s Transformed with a standard-normal base, so log_prob is (4), and the loss is the negative log-likelihood (1) through negative_log_likelihood, as in Part 4. The base is FlowJax’s StandardNormal, which has no parameters, so only trains.
# Shapes: batch (N_b) = 256
Scalar = Float[ArrayLike, ""]
# user
# pipekit-train's task: 𝓛(θ) on one batch
class FlowNLL:
"""pipekit-train's task: the mean negative log-likelihood of a batch."""
# user
# 𝓛(θ) = −(1/N_b) ∑ₙ log p_x(xₙ; θ), also logged
def loss_fn(self, flow, batch, key):
# the points of the batch; its targets are empty, (batch, state)
batch_points: Float[ArrayLike, "batch state"]
batch_points, _ = batch
# today (gauss_flows)
# −(1/N_b) ∑ₙ log p_x(xₙ; θ)
loss: Scalar = negative_log_likelihood(flow, batch_points)
return loss, {"loss": loss}Every step solves the ODE for each of its 256 points, so FFJORD trains far more slowly than the closed-form flows of Parts 4 and 5. We keep the run to 1,500 steps of Adam with a one-cycle cosine learning rate that peaks at and the gradient clipped to a global norm of 1, which takes three to four minutes on the 16 CPU cores this notebook was run on. A longer run fits the moons more tightly.
# Shapes: step = 1,500 training steps
# today (optax)
# the learning rate of each step: up to 5 × 10⁻³, then down to almost zero
schedule: optax.Schedule = optax.cosine_onecycle_schedule(
transition_steps=1500, peak_value=5e-3
)
# user
# the settings of the run: Adam with the gradient clipped to a global norm of 1
loop_settings: dict = {
"optimizer_config": {"name": "adam", "lr": schedule, "clip_norm": 1.0},
"val_dataset": ArrayDataset(held_points, ()),
"task": FlowNLL(),
"max_steps": 1500,
"steps_per_epoch": 50,
"eval_every_n_steps": 50,
"log_every_n_steps": 50,
"batch_size": 256,
"seed": 1,
}# today (flowjax)
# p_x(x; θ), the ODE flow on a standard-normal base
initial_flow: Transformed = Transformed(StandardNormal((2,)), fresh_ffjord)
# today (pipekit)
# the losses of the run
history = History()
# the clock before training
start: float = time.perf_counter()
# today (pipekit)
# θ̂ after the run, held by the model op
trained_op: EquinoxModelOp
trained_op, _ = TrainingLoop(
EquinoxModelOp(initial_flow),
ArrayDataset(train_points, ()),
callbacks=(history,),
**loop_settings,
).run()
# the training time in seconds
train_seconds: float = time.perf_counter() - start# today (pipekit)
# the trained flow p_x(x; θ̂), from the model op
trained_flow: Transformed = trained_op.module
# today (gauss_flows)
# −(1/N_t) ∑ₙ log p_x(xₙ; θ̂) on the training rows
train_nll: float = float(negative_log_likelihood(trained_flow, train_points))
# today (gauss_flows)
# −(1/N_v) ∑ₙ log p_x(xₙ; θ̂) on the held-out rows
held_nll: float = float(negative_log_likelihood(trained_flow, held_points))
# today (gauss_flows)
# the held-out NLL before training
initial_nll: float = float(negative_log_likelihood(initial_flow, held_points))
print(f"training took {train_seconds / 60:.1f} min")
print(
f"held-out NLL: {initial_nll:.3f} before training, {held_nll:.3f} after; training rows {train_nll:.3f}"
)training took 3.2 min
held-out NLL: 2.773 before training, 1.393 after; training rows 1.326
fig, ax = plt.subplots(figsize=(7, 3.5))
ax.plot(
[step for step, _ in history.train],
[float(metrics["loss"]) for _, metrics in history.train],
color=DATA_COLOR,
alpha=0.5,
label="training batch",
)
ax.plot(
[step for step, _ in history.eval],
[float(metrics["loss"]) for _, metrics in history.eval],
"o-",
color=DATA_COLOR,
label="held out",
)
ax.set(xlabel="step", ylabel="NLL (nats per point)")
ax.legend()
style_ax(ax)
plt.show()
Figure 1:Training loss of each logged step (light) and held-out loss after each epoch (dark), in nats per point.
The held-out NLL falls from 2.773 to 1.393 nats in 3.2 minutes, with the training rows at 1.326. Most of the fall comes in the first 400 steps, and the held-out loss is flat over the last third of the run.
4. The learned density¶
Training solved the ODE to 10-4. For the plots we put the trained vector field into a FFJORD that solves to 10-6 with the "direct" adjoint, as in section 1, and evaluate everything below with it.
# today (gauss_flows)
# the trained v_θ̂, solved to 10⁻⁶ for evaluation
eval_ffjord: FFJORD = FFJORD(
jr.key(2),
shape=(2,),
vector_field=trained_flow.bijection.vector_field,
divergence_mode="exact",
adjoint="direct",
rtol=1e-6,
atol=1e-6,
)
# today (flowjax)
# p_x(x; θ̂) with the tight solver
eval_flow: Transformed = Transformed(StandardNormal((2,)), eval_ffjord)First the check of section 1 again, now on the trained field, which moves points much further.
trained_points: TestState
trained_trace: PerTest
# today (gauss_flows)
# x(1) and ∫₀¹ tr(J_v(t, x(t))) dt of the trained flow, (test, state), (test)
trained_points, trained_trace = jax.vmap(eval_ffjord.transform_and_log_det)(
check_latents
)
# today (jax)
# log |det ∂x(1)/∂x(0)| by forward-mode autodiff through the solver, (test)
trained_logdet: PerTest = jnp.linalg.slogdet(
jax.vmap(jax.jacfwd(eval_ffjord.transform))(check_latents)
)[1]
print(
f"distance moved, ||x(1) - z||: {np.asarray(jnp.linalg.norm(trained_points - check_latents, axis=1))}"
)
print(f"integrated trace : {np.asarray(trained_trace)}")
print(
f"largest difference : {float(jnp.abs(trained_trace - trained_logdet).max()):.1e}"
)distance moved, ||x(1) - z||: [1.042 2.102 1.245 0.919 1.856]
integrated trace : [-2.2 -1.601 -1.25 -1.589 -1.423]
largest difference : 3.8e-06
The trained field moves the same latents by 0.9 to 2.1, and the integrated traces, from −2.2 to −1.25, still agree with autodiff to . They are negative: going from the latent to the data the flow shrinks volume, which is how it piles the probability onto two thin moons.
The density is (4) on a grid. A density must integrate to one, so we also sum it over the grid, which covers the moons with room to spare.
# Shapes: line = 80 points along each axis; test = 80 × 80 grid points
# 80 points from −2.8 to 2.8, (line)
grid_axis: Float[ArrayLike, " line"] = np.linspace(-2.8, 2.8, 80)
# the grid over [−2.8, 2.8]², as rows, (test, state)
grid_points: Float[ArrayLike, "test state"] = (
np.stack(np.meshgrid(grid_axis, grid_axis), axis=-1)
.reshape(-1, 2)
.astype(np.float32)
)
# today (flowjax)
# log p_x(x; θ̂) at every grid point, by one compiled solve per point, (test)
grid_logp: Float[ArrayLike, " test"] = jax.jit(jax.vmap(eval_flow.log_prob))(
grid_points
)
# ∑ p_x Δx², the density summed over the grid cells
grid_mass: float = float(jnp.exp(grid_logp).sum() * (grid_axis[1] - grid_axis[0]) ** 2)
# today (flowjax)
# x ~ p_x(x; θ̂), by solving the ODE forwards from base draws, (sample, state)
flow_samples: SampleState = eval_flow.sample(jr.key(4), (1500,))
print(f"density summed over the grid: {grid_mass:.4f}")density summed over the grid: 0.9999
fig, (ax_density, ax_samples) = plt.subplots(1, 2, figsize=(10, 4.6))
mesh = ax_density.pcolormesh(
grid_axis,
grid_axis,
np.exp(np.asarray(grid_logp)).reshape(80, 80),
cmap="viridis",
shading="auto",
)
fig.colorbar(mesh, ax=ax_density, label="$p_x(x)$")
ax_density.set(title="learned density", xlabel="$x_1$", ylabel="$x_2$", aspect="equal")
ax_samples.scatter(*np.asarray(samples).T, color=DATA_COLOR, label="data", **SCATTER_KW)
ax_samples.scatter(
*np.asarray(flow_samples).T, color=LATENT_COLOR, label="flow samples", **SCATTER_KW
)
ax_samples.set(
title="data and samples",
xlabel="$x_1$",
xlim=(-2.8, 2.8),
ylim=(-2.8, 2.8),
aspect="equal",
)
ax_samples.legend(loc="upper right")
style_ax(ax_samples)
plt.show()
Figure 2:Left: the density of the trained FFJORD on a grid, solved to 10⁻⁶. Right: the data (blue) and as many samples from the flow (orange).
The density sums to 0.9999 over the grid, so the integrated trace gives a properly normalised density. It follows both moons, and the samples, drawn by solving forwards from the base, cover them. A few samples fall between the moons, where the density keeps a faint bridge: the flow is a continuous invertible map of a Gaussian, so it cannot tear the mass into two separate pieces, and it stretches a thin band between them instead.
5. Is the latent Gaussian?¶
The flow is trained so that is standard normal. We run the held-out rows backwards through the ODE and look at their latents the way Part 0 did: a scatter against the circles of radius one, two and three, a quantile-quantile plot of each coordinate against , and the first four moments.
# Shapes: held_out (N_v) = 300; latent (D_x) = 2
HeldLatent = Float[ArrayLike, "held_out latent"]
LatentVector = Float[ArrayLike, " latent"]
# today (gauss_flows)
# z = f(x), the ODE run backwards from t = 1 to t = 0, (held_out, latent)
held_latents: HeldLatent = jax.jit(jax.vmap(eval_ffjord.inverse))(held_points)
# the mean of each latent coordinate, (latent)
latent_mean: LatentVector = np.asarray(held_latents.mean(axis=0))
# the standard deviation of each latent coordinate, (latent)
latent_std: LatentVector = np.asarray(held_latents.std(axis=0))
# today (scipy)
# the skewness of each latent coordinate, (latent)
latent_skew: LatentVector = stats.skew(np.asarray(held_latents), axis=0)
# today (scipy)
# the excess kurtosis of each latent coordinate, (latent)
latent_kurt: LatentVector = stats.kurtosis(np.asarray(held_latents), axis=0)
print(
f"mean {latent_mean}, std {latent_std}, skewness {latent_skew}, excess kurtosis {latent_kurt}"
)mean [-0.025 0.015], std [0.983 0.983], skewness [-0.083 0.087], excess kurtosis [ 0.043 -0.166]
fig, axes = plt.subplots(1, 3, figsize=(13, 4.2))
angle = np.linspace(0, 2 * np.pi, 200)
axes[0].scatter(*np.asarray(held_latents).T, color=LATENT_COLOR, **SCATTER_KW)
for radius in (1, 2, 3):
axes[0].plot(radius * np.cos(angle), radius * np.sin(angle), "k--", lw=0.8)
axes[0].set(
title="latent",
xlabel="$z_1$",
ylabel="$z_2$",
xlim=(-3.5, 3.5),
ylim=(-3.5, 3.5),
aspect="equal",
)
for d, ax in enumerate(axes[1:]):
(theory, ordered), _ = stats.probplot(np.asarray(held_latents[:, d]), dist="norm")
ax.scatter(theory, ordered, color=LATENT_COLOR, **SCATTER_KW)
ax.plot([-3, 3], [-3, 3], "k--", lw=1)
ax.set(
title=f"$z_{d + 1}$ against N(0, 1)",
xlabel="normal quantile",
ylabel="latent quantile",
)
style_ax(ax)
style_ax(axes[0])
plt.show()
Figure 3:The held-out rows mapped to the latent. Left: the latents with the circles of radius 1, 2 and 3 of the standard normal. Middle and right: quantile-quantile plots of each latent coordinate against N(0, 1), with the identity line dashed.
The latent means are within 0.03 of zero, the standard deviations are 0.98, the skewness is within ±0.09 and the excess kurtosis between −0.17 and 0.04. With 300 rows the standard error of a skewness is about 0.14 and that of an excess kurtosis about 0.28, so none of these departures stands out from sampling noise, and the quantile-quantile plots follow the identity line except for a slightly light lower tail of .
6. The paths from data to latent¶
The ODE gives more than the endpoints: every time between 0 and 1 has its own state . A FFJORD with the time span and the trained vector field runs the backward solve only down to , so its inverse returns , with the public API and nothing else. We take five times and colour each held-out row by its moon.
# Shapes: held_out (N_v) = 300; state (D_x) = 2
# user
# x(s), the held-out rows run backwards from t = 1 to t = s
def state_at(time_s: float) -> HeldState:
"""The held-out rows carried by the trained ODE back to time ``time_s``."""
# today (gauss_flows)
# the trained v_θ̂ on the time span (s, 1)
partial_ffjord: FFJORD = FFJORD(
jr.key(2),
shape=(2,),
vector_field=eval_ffjord.vector_field,
t_span=(time_s, 1.0),
divergence_mode="exact",
adjoint="direct",
rtol=1e-6,
atol=1e-6,
)
return jax.jit(jax.vmap(partial_ffjord.inverse))(held_points)# the times s, from the data at t = 1 to the latent at t = 0
path_times: list = [1.0, 0.75, 0.5, 0.25, 0.0]
# user
# x(s) at each time, the data themselves at s = 1
path_states: dict = {
time_s: held_points if time_s == 1.0 else state_at(time_s) for time_s in path_times
}fig, axes = plt.subplots(1, 5, figsize=(17, 3.8), sharex=True, sharey=True)
for ax, time_s in zip(axes, path_times, strict=True):
state = np.asarray(path_states[time_s])
ax.scatter(*state[held_moon == 0].T, color=DATA_COLOR, **SCATTER_KW)
ax.scatter(*state[held_moon == 1].T, color=LATENT_COLOR, **SCATTER_KW)
ax.set(
title=f"$t = {time_s}$",
xlabel="$x_1(t)$",
xlim=(-3.2, 3.2),
ylim=(-3.2, 3.2),
aspect="equal",
)
style_ax(ax)
axes[0].set_ylabel("$x_2(t)$")
plt.show()
Figure 4:The held-out rows at five times of the backward solve, from the data at t = 1 to the latent at t = 0, coloured by the moon each came from.
Going back in time, the moons first thicken (), then open up and move apart ( and 0.25), and at they fill the two halves of a round cloud, split along a diagonal. The paths of an ODE cannot cross, so the moons never pass through each other: each ends on its own side of the Gaussian.
Recap¶
| Piece | Equation | In code |
|---|---|---|
| a flow that is the solution of an ODE | (1) | FFJORD(key, shape, vector_field=DiffeqMLP(...)) |
| its log-determinant, an integral of traces | (2) | transform_and_log_det, checked against jax.jacfwd with adjoint="direct" |
| the instantaneous change of variables | (3) | the augmented state that diffrax solves |
| the log-density of a data point | (4) | Transformed(StandardNormal((2,)), ffjord).log_prob |
| the exact trace, JVPs per step | divergence_mode="exact", gaussx.trace of the Jacobian operator | |
| the state at an intermediate time | FFJORD(..., t_span=(s, 1.0)).inverse |
Next. The exact trace costs Jacobian-vector products per solver step, cheap in 2-D and prohibitive for an image. Notebook 01 replaces it with Hutchinson’s estimator, which costs one product per probe whatever is.
- Chen, R. T. Q., Rubanova, Y., Bettencourt, J., & Duvenaud, D. (2018). Neural Ordinary Differential Equations. Advances in Neural Information Processing Systems (NeurIPS).
- Grathwohl, W., Chen, R. T. Q., Bettencourt, J., Sutskever, I., & Duvenaud, D. (2019). FFJORD: Free-Form Continuous Dynamics for Scalable Reversible Generative Models. International Conference on Learning Representations (ICLR).