paper-with-me

Papers

Cautious Optimizers: Improving Training with One Line of Code

2024-11-25 · Kaizhao Liang, Lizhang Chen, Bo Liu, Qiang Liu

AdamW has been the default optimizer for transformer pretraining. For many years, our community searched for faster and more stable optimizers with only constrained positive outcomes. In this work, we propose a single-line modification in Pytorch to any momentum-based optimizer, which we rename cautious optimizer, e.g. C-AdamW and C-Lion. Our theoretical result shows that this modification preserves Adam's Hamiltonian function and it does not break the convergence guarantee under the Lyapunov analysis. In addition, a whole new family of optimizers is revealed by our theoretical insight. Among them, we pick the simplest one for empirical experiments, showing not only speed-up on Llama and MAE pretraining up to $1.47$ times, but also better results in LLM post-training tasks. Code is available at https://github.com/kyleliang919/C-Optim.

📄 PDF Abstract BibTeX arXiv:2411.16085

Code (3)

kyleliang919/c-optim 공식 구현 pytorch
huggingface/pytorch-image-models pytorch
zhaoolee/garss pytorch

Methods 이 논문이 사용한 방법론

MAE 설명 없음
LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

Grams: Gradient Descent with Adaptive Momentum Scaling

2024-12-22 · Yang Cao, Xiaoyu Li, Zhao Song

We introduce $\mathbf{G}$radient Descent with $\mathbf{A}$daptive $\mathbf{M}$omentum $\mathbf{S}$caling ($\mathbf{Grams}$), a novel optimization algorithm that decouples the direction and magnitude of parameter updates …

Cautious Weight Decay

2025-10-14 · Lizhang Chen, Jonathan Li, Kaizhao Liang, Baiyu Su 외 arxiv

We introduce Cautious Weight Decay (CWD), a one-line, optimizer-agnostic modification that applies weight decay only to parameter coordinates whose signs align with the optimizer update. Unlike standard decoupled decay, …

Cautious Calibration in Binary Classification

2024-08-09 · Mari-Liis Allikivi, Joonas Järve, Meelis Kull

Being cautious is crucial for enhancing the trustworthiness of machine learning systems integrated into decision-making pipelines. Although calibrated probabilities help in optimal decision-making, perfect calibration re…

Binary ClassificationClassificationDecision Making

Cautious Belief and Iterated Admissibility

2023-05-24 · Emiliano Catonini, Nicodemo De Vito

We define notions of cautiousness and cautious belief to provide epistemic conditions for iterated admissibility in finite games. We show that iterated admissibility characterizes the behavioral implications of "cautious…

Anytime Computation of Cautious Consequences in Answer Set Programming

2014-05-14 · Mario Alviano, Carmine Dodaro, Francesco Ricca

Query answering in Answer Set Programming (ASP) is usually solved by computing (a subset of) the cautious consequences of a logic program. This task is computationally very hard, and there are programs for which computin…