paper-with-me

Papers

LLM as a Complementary Optimizer to Gradient Descent: A Case Study in Prompt Tuning

2024-05-30 · Zixian Guo, Ming Liu, Zhilong Ji, Jinfeng Bai, Yiwen Guo, WangMeng Zuo

Mastering a skill generally relies on both hands-on experience from doers and insightful, high-level guidance by mentors. Will this strategy also work well for solving complex non-convex optimization problems? Here, a common gradient-based optimizer acts like a disciplined doer, making locally optimal updates at each step. Large Language Models (LLMs) can also search for better solutions by inferring from natural language instructions, akin to a high-level mentor. In this paper, we show that these two participators are complementary to each other and can effectively collaborate as a combined optimization framework. The collaborative optimization is achieved by alternating between the gradient-based and LLM-based optimizers. We instruct LLMs to generate possibly improved solutions by taking parameter trajectories recorded during the previous stage of gradient-based optimization into account. Inferred results of LLMs are used as restarting points for the next stage of gradient optimization. We verify the effectiveness of this optimization framework on prompt tuning. By leveraging both the locally rigorous gradient-based optimizer and the high-level deductive LLM-based optimizer, the combined optimization method consistently yields improvements over competitive baselines on a variety of tasks. Our results demonstrate the synergistic effect of conventional gradient-based optimization and the inference ability of LLMs. The code is released at https://github.com/guozix/LLM-catalyst.

📄 PDF Abstract BibTeX arXiv:2405.19732

Code (1)

guozix/llm-catalyst 공식 구현 pytorch

Similar Papers 제목 키워드 기반

A Variant of Gradient Descent Algorithm Based on Gradient Averaging

2020-12-04 · Saugata Purkayastha, Sukannya Purkayastha

In this work, we study an optimizer, Grad-Avg to optimize error functions. We establish the convergence of the sequence of iterates of Grad-Avg mathematically to a minimizer (under boundedness assumption). We apply Grad-…

AvgClassificationGeneral Classificationregression

Evolutionary Stochastic Gradient Descent for Optimization of Deep Neural Networks

2018-10-16 · NeurIPS 2018 12 · Xiaodong Cui, Wei zhang, Zoltán Tüske, Michael Picheny

We propose a population-based Evolutionary Stochastic Gradient Descent (ESGD) framework for optimizing deep neural networks. ESGD combines SGD and gradient-free evolutionary algorithms as complementary algorithms in one …

Evolutionary AlgorithmsLanguage ModelingLanguage Modellingspeech-recognition+1

Where Did My Optimum Go?: An Empirical Analysis of Gradient Descent Optimization in Policy Gradient Methods

2018-10-05 · Peter Henderson, Joshua Romoff, Joelle Pineau

Recent analyses of certain gradient descent optimization methods have shown that performance can degrade in some settings - such as with stochasticity or implicit momentum. In deep reinforcement learning (Deep RL), such …

continuous-controlContinuous ControlDeep Reinforcement LearningPolicy Gradient Methods+1

Learning to Learn without Gradient Descent by Gradient Descent

2016-11-11 · ICML 2017 8 · Yutian Chen, Matthew W. Hoffman, Sergio Gomez Colmenarejo, Misha Denil 외

We learn recurrent neural network optimizers trained on simple synthetic functions by gradient descent. We show that these learned optimizers exhibit a remarkable degree of transfer in that they can be used to efficientl…

Bayesian Optimizationglobal-optimization

Variational Stochastic Gradient Descent for Deep Neural Networks

2024-04-09 · Haotian Chen, Anna Kuzina, Babak Esmaeili, Jakub M Tomczak

Current state-of-the-art optimizers are adaptive gradient-based optimization methods such as Adam. Recently, there has been an increasing interest in formulating gradient-based optimizers in a probabilistic framework for…

image-classificationImage ClassificationVariational Inference