Enhancing Q-Learning with Large Language Model Heuristics
<|reference_start|>Enhancing Q-Learning with Large Language Model Heuristics: Q-learning excels in learning from feedback within sequential decision-making tasks but often requires extensive sampling to achieve significant improvements. While reward shaping can enhance learning efficiency, non-potential-based methods introduce biases that affect performance, and potential-based reward shaping, though unbiased, lacks the ability to provide heuristics for state-action pairs, limiting its effectiveness in complex environments. Large language models (LLMs) can achieve zero-shot learning for simpler tasks, but they suffer from low inference speeds and occasional hallucinations. To address these challenges, we propose \textbf{LLM-guided Q-learning}, a framework that leverages LLMs as heuristics to aid in learning the Q-function for reinforcement learning. Our theoretical analysis demonstrates that this approach adapts to hallucinations, improves sample efficiency, and avoids biasing final performance. Experimental results show that our algorithm is general, robust, and capable of preventing ineffective exploration.<|reference_end|>
@article{wu2024enhancing,
    title={Enhancing Q-Learning with Large Language Model Heuristics},
    author={Xiefeng Wu},
    journal={arXiv preprint arXiv:2405.03341},
    year={2024},
    archivePrefix={arXiv},
    eprint={2405.03341},
    primaryClass={cs.LG cs.AI}
}