NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Trust the Direction, Search the Step: Zero-and-First-Order Methods for LLM Fine-Tuning

Cristian McGee, El Houcine Bergou, Aritra Dutta

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Efficient LLM Inference & Training › Zeroth-Order LLM Optimization · Type: new method · Keywords: step-size selection, zeroth-order optimization, LLM fine-tuning, direction selection, curvature estimation

Areas: Optimization & Algorithms › Optimization Dynamics › Zeroth-Order Optimization

Summary

Zero-and-First-Order optimization (ZFO) decouples direction selection from step-size selection, using a first-order optimizer for direction and zeroth-order evaluations for adaptive step-size, improving accuracy and stability in LLM fine-tuning.

Explained to a 5-year-old

When we train a big computer brain to do language tasks, we need to decide how big a step to take each time. Taking steps that are too small makes learning slow, while steps that are too big can make the brain forget what it learned. The new idea is to first decide which direction to go (like a compass) and then separately figure out how far to go (like how long a jump). It uses a simple guide for direction and a quick check to see if the jump is good. This helps the brain learn faster and stay stable.

Explained to a 5-year-old, longer

When we teach a big computer program to understand words, we move it step by step. Each step tells the program a little bit more about the language. If the steps are tiny, the learning takes a long time. If the steps are huge, the program can get confused and forget what it already knows. The researchers noticed this problem and wanted a better way. They thought of splitting the problem into two parts: first, choose the right direction to move. Second, decide how far to jump in that direction. For the direction, they use a simple guide that works like a compass. For the distance, they take a quick look at the ground to see if the jump is safe. They only need a few extra checks, not a lot of work. This makes the learning faster and more stable, so the program works better. The new method helps teachers train big language models with less trouble.

For a technical reader

The paper addresses the difficulty of choosing step sizes during fine-tuning of large language models, where overly conservative steps slow convergence and overly aggressive steps cause instability. It proposes a framework that separates direction selection-handled by a standard first-order optimizer-from step-size selection, which is performed via zeroth-order evaluations along the chosen direction. By reusing the current forward-backward pass and adding two fixed-batch function evaluations, the method builds a local curvature model and picks an adaptive step within a bounded interval, avoiding the cost of a full line search. Theoretical analysis shows that the shared-sample curvature estimates are reliable, the local model yields near-optimal steps, and the algorithm converges to a neighborhood of a stationary point. Empirical results on multiple models and datasets demonstrate improved accuracy and training stability compared with conventional first-order fine-tuning.

Problem

Step-size selection in large-scale neural network optimization is challenging: conservative steps slow convergence while aggressive steps can destabilize training. This problem is especially critical for fine-tuning large language models efficiently.

Method

The approach uses a trusted first-order optimizer to determine the update direction and performs zeroth-order evaluations only along this direction to estimate curvature and select an adaptive step size within a bounded interval, using the current forward-backward pass and two additional fixed-batch function evaluations.

Results

The approach improves accuracy and stability compared to standard first-order fine-tuning across multiple language models and datasets.

Contributions

It introduces a lightweight framework that decouples direction and step-size selection, provides theoretical guarantees for curvature estimation and convergence, and demonstrates superior performance on LLM fine-tuning tasks.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction