Summary
In this paper the authors propose to integrate LLMs within the RL framework by introducing a regularization technique that is based on the KL-divergence between the RL agent's policy and the LLM's policy. This method is coined as Language-INtegrated Value Iteration (LINVIT), and the authors introduce a simplified version of it called SLINVIT for empirical evaluation. Under the assumption that the LLM policy is near-optimal, the authors show that this regularization can yield substantial sample efficiency gains for RL agents in several text-based benchmarks.
Strengths
- The presentation of the paper is excellent, with informative figures and algorithms.
- The concept of using LLMs indirectly for regularization is a novel and interesting idea.
- The authors provide a theoretical framework to motivate their decision to introduce this technique, which could serve as a foundation for future work of incorporating LLM priors into RL.
- The authors conducted various experiments to evaluate their proposed methodology.
Weaknesses
- One major concern is that the applicability of the approach is heavily reliant on the LLM policy being essentially (close to) equivalent to the optimal policy. This raises several other concerns.
- First, the authors argue in line 125 "Moreover, we can still identify the optimal policy for the original MDP even if the LLM's policy is suboptimal", but there are no experiments in the paper showing what happens when the LLM policy is suboptimal.
- Nor is any experiment conducted that shows how a baseline LLM policy would perform without the RL agent, nor of the RL agent without LLM regularization.
- It is likely that if the LLM policy is suboptimal, the performance of the RL agent will be hindered rather than enhanced, which limits the applicability of this approach to environments where the LLM policy is (near) optimal.
- The authors argue that you need the RL component to be able to adapt and deal with environment feedback, but it seems like the method is only desirable in cases where you have an LLM policy that is almost optimal (which seems like a relatively vague assumption that is not quantifiable in most cases).
- Another concern is that although the paper admits that SLINVIT simplifies the algorithm described in the theoretical section, these simplifications—such as using BFS and single-rollout Monte-Carlo estimation—aren’t well-justified. There’s a disconnect between the theoretical guarantees provided in the KL divergence analysis and the seemingly substantial simplifications made in the experiments where the algorithm is actually implemented.
- In section 5.2 one of the simplifications introduces a process that makes the LLM write python code for functions that yield some value corresponding to a state in the environment. This python code is then subject to a 'one-time human review', which seems like a major impracticality of using this algorithm. Could this review not be done with an LLM as well perhaps to achieve automation?
- The motivations in the experimental section are also rather unclear
- A brief explanation of the baselines used (e.g., whether they rely on human interventions, purely LLM-driven policies, or RL-based techniques) and how they differ from SLINVIT would help in assessing the fairness of the experiments, as it is currently unclear.
- The authors introduce an ablation study for the number of Monte-Carlo samples, showing that $M=2$ performs better than $M=1$, yet they proceed to use $M=1$ in the experiments without a clear justification.
Questions
While the paper introduces an interesting concept, it requires significant improvements, particularly in experimental design, explanation of baselines, and addressing concerns about practicality before it can be considered ready for publication.
It is currently unclear if a fair comparison was made to baselines, how it would perform without RL, how it would perform with a sub-optimal LLM policy, how domain-specific it is, how practical the code production and human review is relative to other methods, and whether it could be applied in other environments.
Further minor comments:
- The title should probably be "How can LLMs guide..." instead of "How can LLM guide"
- The paper mentions several times that (e.g. line 49) that "RL agents require huge amounts of random interactions", which comes across as the authors assume that any RL agent uses random action selection for exploration, even though there are much more sophisticated exploration techniques in the literature that do not explore just randomly.
- In line 99 you have the term $V^t_{h+1}(s')$ where $t$ was never defined in the text so I think this is an error you'd like to be aware of.
- In line 108 "the LLM policy is hard to be optimal" should be rephrased.
- Line 110 "priorin" spelling error
- Algorithm 1: I would suggest including where the LLM contributes to the algorithm as it is your main contribution, even if it is with a comment in line 3 of the algorithm.
- It would be nice to have some more details on how exactly you are learning a transition model, this was not very clear to me from the paper.
- In order to measure how optimal the LLM policy is in the given environment, it may be helpful to execute a pure LLM policy for one episode. Based on the accumulated reward, a weighting of the regularization term could be determined.