While our comparison metric (improvement relative to the unbiased solution) showed substantial improvement, it is ultimately unclear how much improvement constitutes a ‘good’ approximation of the exact solution, this will also vary from problem to problem, with larger problems (presumably) requiring a larger reduction in relative KL divergence. In our case we are able to qualitatively confirm a good solution by comparing heatmaps of the two solutions, however this will not always be possible depending on the nature of the problem.
An initial proposal is to compare against a local solution, such as the optimal solution for a one-step problem, which could provide a good baseline to measure against.
Derivation
Starting with the value function:
we aim to find under the condition (i.e. only looking at the immediate reward), to do this we will maximise subject to the constraint .
With , the (discounted) value function becomes
We form the Lagrangian to enforce normalisation of , with multiplier :
We can maximise by differentiating with respect to a single and using :
Solving for :
Using our constraint:
This gives the one-step optimal policy:
Results and Discussion
We see that while the locally optimal policy represents some small increase in information relative to the unbiased problem, this is still relatively small, and all trained problems comfortably surpass this by multiple orders of magnitude — meaning that for this problem, clearing this benchmark is not a difficult bar for a successfully trained policy to meet.
The heatmap helps explain why. The locally optimal solution is able to remain positive at all timesteps. However, beyond that, the probability density appears to diffuse as time goes on rather than follow any other constraints.
Thinking about the reward landscape we have built for this problem (as a reminder, this consists of a fixed constant negative reward at negative position and a quadratically scaling penalty for deviating from at ), while this is a richer reward landscape than one which only rewards the successful realisation of an excursion trajectory, it is still a sparse reward landscape, with the majority of the space giving no signal as to which states should be visited. In non-terminal states where no transition towards or away from receiving a negative penalty is possible, both options are equally favoured and therefore simply recover the unbiased policy, without any signal as to which action leads to the highest chance of future reward.
All this is not to say that this solution is useless. Even for sparse problems like this, we gain an additional benchmark that we can expect all trained solutions to clear as a minimum. However, this becomes a more relevant benchmark for problems with richer reward landscapes. Take, for example, the problem of biasing an LLM towards some per-token metric. Picking the token that maximises this metric at each step is a greedy, one-step strategy — and it will likely miss rarer completions that unlock higher scores later in the sequence (assuming the metric is a function of rather than simply ). In a setting like this, the one-step benchmark becomes a much more informative benchmark for training.