Summary
This paper studies the problem of intractable inference in sequence models. It is proposed to sample MCMC chains using an infilling LM as a proposal, to create subchains using various procedures (e.g., selecting the points where the target energy decreases), and to train an autoregressive model on these subchains. This model can then be used to sample modes of the target distribution more efficiently. This method is evaluated on a protein design task and two language generation (editing) tasks and shows somewhat promising results.
Strengths
- The procedure of amortising subchains of MCMC chains by a non-Markovian sequence model is interesting and could be applicable to structured sampling problems well beyond the protein and language tasks studied here.
- For example, chain-of-thought reasoning, among other intractable inference problems in language, has been interpreted as latent variable inference and addressed using MCMC ([Phan et al., NeurIPS'23](https://arxiv.org/abs/2312.02179), [Lew et al.](https://arxiv.org/abs/2306.03081)), amortisation ([Hu et al., ICLR'24](https://arxiv.org/abs/2310.04363)), hybrid methods ([Zhao et al., ICML'24](https://arxiv.org/abs/2404.17546)), and distillation into tractable models ([Zhang et al., 2024](https://arxiv.org/abs/2406.13892)).
- The inclusion of both LM and biological sequence design tasks is a good way to show the generality (although toy experiments on something synthetic and *very* simple, where the target is well-understood, would also be helpful).
- Results generally comparable with prior work in each task with (possibly -- see questions below) higher efficiency of inference.
Weaknesses
Overall, both the writing and the experiments need substantial improvement. It is quite difficult to understand the algorithm and the experiment setup, nor are the results particularly strong.
- The writing in the first two pages is imprecise and does not set up the problem well.
- The first sentence of the abstract does not make sense to me. (Doesn't "desired outputs" already presuppose we are talking about generative modelling -- so what is the meaning of saying generative models are "appealing"? "Sequence-level" as opposed to what?)
- In general, the abstract does not explain well the problem setting and does not prime the reader to expect what is to come. The reader is left wondering: Are we talking about generative modelling from data or sampling given a density? Are we training a new model or constraining an existing one?
- The introduction does not set up the problem to be solved in a clear way.
- The first 2.5 paragraphs or so of the introduction seem to be saying approximately "generalisation is important".
- However, the **main objects** involved in the problem setting are not introduced. Thus it is not clear what is being talked about when "original" and "sampled" sequences are mentioned, what the EBM has to do with infilling, etc.
- Second paragraph: Lu et al. and Holtzman et al. are inaccurately described. The latter studies strategies to clip the tail of the next-token distributions, while Lu et al. studies MCTS as proposed by reference [59] in that paper, which seems to have no connection to such clipping.
- In the last paragraph of the intro, $q_\theta$ appears, but it is never defined.
- Section 2: Please define all symbols when they are first used. As far as I could infer:
- $\cal X$: space of sequences
- $\cal Y$: set of "properties"
- $o:{\cal X}\to{\cal Y}$: oracle assigning a property to every sequence
- ${\cal X}^{\rm train}$: training set
- ${\cal Y}^{\rm train}$: unclear; is it $\{o(x):x\in{\cal X}^{\rm train}\}$? That is, we wish to generate sequences whose properties, as computed by an oracle, were not observed in the training set?
- Section 3:
- Is the score giving the density or the log-density? Contradiction between "probability proportional to sequence-level score $s(x)$" (L144) and the equation in L149.
- The following does not make sense to me (LL156-158): "masked language modeling objectives implicitly define EBM with the masked-infilling objective serving as a proposal distribution".
- How can a [training] **objective** define a distribution? Do you mean that the trained model defines a distribution? Same in LL162-163: the self-supervised pre-training process seems to have nothing to do with the use of the trained infilling model (so how can we say that MH sampling is based on the self-supervised training?).
- An EBM is defined by an energy function, not by a proposal distribution used to perform MH on it. Do you mean that the infilling model approximates a collapsed Gibbs sampler for a certain EBM? Or do you mean that the infilling model is an effective proposal for MH sampling of EBMs that happened to be trained on similar data?
- Even in the former case, things are somewhat more subtle than this. The conditional distributions given by infilling may not be compatible with any joint distribution, see, for example, [Henningen and Kim, ACL'23](https://arxiv.org/abs/2305.15501) and [Wang and Cho, NeuralGen@NAACL'19](https://arxiv.org/abs/1902.04094).
- In the end, I am left confused about the setting: the infilling model defines a EBM (L157) and is also a proposal distribution that is used to propose transitions (L160), but the proposals are accepted/rejected using the MH criterion on a EBM (L161), which seems to require an explicit energy model to compute the acceptance probability.
- A little diagram would help to understand the different ways of forming trajectories for training $q_\theta$. (It is also confusing that $q$ (proposal) and $q_\theta$ (amortised sampler) are denoted by the same letter.)
- Experiments:
- Missing details:
- In each experiment, please specify exactly, in an equation, what the target energy model is. I found some notes on this in Appendix D, but they left me with more questions. In general, I would suggest to move some experiment details to the appendix, but state as directly as possible what sampling problem is being solved.
- It is not stated which version of training data for $q_\theta$ is used. It can be inferred from the ablation study in Section 5, but would be good to make explicit.
- I am not convinced by evaluations in 4.1:
- The fluency is not reported for ICE.
- Extrapolation metric: why should we expect that "make this negative" would lead necessarily to 1-star and not to 2-star reviews? It would be more informative to compare the full distributions of the base model and with editing, for each editing method.
- How to understand that the second and third columns in Table 2 sum to more than 1, if they are the proportions of reviews with (in the example of negative sentiment) 2 and 1 stars, respectively?
- In fact, generating **too many** 1-star reviews, together with the high fluency, could actually indicate mode collapse. There is no diversity metric to show that this is not happening.
- The comment on diversity also applies to Section 4.2. Why was ICE not considered in this problem?
- How do the methods compare in execution wall time (both for training and drawing a single sample)?