SearcharxivSearch

arXiv subjects

Kezhao Liu

Publications and source records attributed to Kezhao Liu.

3 recordsLinked to original sources

Rethinking KL Regularization in RLHF: From Value Estimation to Gradient Optimization

Reinforcement Learning from Human Feedback (RLHF) leverages a Kullback-Leibler (KL) divergence loss to stabilize training and prevent overfitting. However, in methods such as GRPO, its implementation may be guided by principles from numerical value estimation-a practice that overlooks the term's functional role as an optimization loss. To analyze this issue, we establish a unified framework that connects two seemingly distinct implementation styles: using the mathematical term $k_n$ as a detached coefficient for the policy's score function ('$k_n$ in reward') or as a direct loss function through which gradients are propagated ('$k_n$ as loss'). We show that the latter can always be analyzed via an equivalent gradient coefficient in the former, unifying the two perspectives. Through this framework, we prove that the conventional '$k_1$ in reward' (like in PPO) is the principled loss for Reverse KL (RKL) regularization. We further establish a key finding: under on-policy conditions, the '$k_2$ as loss' formulation is, in fact, gradient-equivalent to '$k_1$ in reward'. This equivalence, first proven in our work, identifies both as the theoretically sound implementations of the RKL objective. In contrast, we show that the recently adopted '$k_3$ as loss' (like in GRPO) is merely a first-order, biased approximation of the principled loss. Furthermore, we argue that common off-policy implementations of '$k_n$ as loss' methods are biased due to neglected importance sampling, and we propose a principled correction. Our findings provide a comprehensive, gradient-based rationale for choosing and correctly implementing KL regularization, paving the way for more robust and effective RLHF systems.

cs.LG

Towards Understanding the Robustness of Diffusion-Based Purification: A Stochastic Perspective

Diffusion-Based Purification (DBP) has emerged as an effective defense mechanism against adversarial attacks. The success of DBP is often attributed to the forward diffusion process, which reduces the distribution gap between clean and adversarial images by adding Gaussian noise. While this explanation is theoretically sound, the exact role of this mechanism in enhancing robustness remains unclear. In this paper, through empirical analysis, we propose that the intrinsic stochasticity in the DBP process is the primary factor driving robustness. To test this hypothesis, we introduce a novel Deterministic White-Box (DW-box) setting to assess robustness in the absence of stochasticity, and we analyze attack trajectories and loss landscapes. Our results suggest that DBP models primarily rely on stochasticity to avoid effective attack directions, while their ability to purify adversarial perturbations may be limited. To further enhance the robustness of DBP models, we propose Adversarial Denoising Diffusion Training (ADDT), which incorporates classifier-guided adversarial perturbations into the diffusion training process, thereby strengthening the models' ability to purify adversarial perturbations. Additionally, we propose Rank-Based Gaussian Mapping (RBGM) to improve the compatibility of perturbations with diffusion models. Experimental results validate the effectiveness of ADDT. In conclusion, our study suggests that future research on DBP can benefit from a clearer distinction between stochasticity-driven and purification-driven robustness.

cs.CV

First-Principles Study of Hydrogen Behaviors in $α$-Pu$_{2}$O$_{3}$

The in-depth understanding of hydrogen permeation through plutonium-oxide overlayers is the prerequisite to evaluate the complex hydriding induction period of Pu. In this work, the incorporation, diffusion and dissolution of hydrogen in $α$-Pu$_{2}$O$_{3}$ are investigated by the first-principles calculations and $\textit{ab initio}$ thermodynamic method based on DFT+U and DFT-D3 schemes. Our study reveals that the hydrogen incorporation is endothermic and the separated H atoms prefer to recombine as H$_{2}$ molecules rather than reacting with $α$-Pu$_{2}$O$_{3}$. The H and H$_{2}$ diffusion are both feasible, generally, H will recombine first as H$_{2}$ and then migrate. Both pressure P$_{H2}$ and temperature can promote the hydrogen dissolution in $α$-Pu$_{2}$O$_{3}$. The single H$_{2}$ molecule incorporation and (H+H$_{2}$) mixed dissolution will successively appear when increasing P$_{H2}$. Compared to PuO$_{2}$, this work indicates that Pu sesquioxide is hardly reduced by hydrogen, but the porous $α$-Pu$_{2}$O$_{3}$ facilitates hydrogen transport in Pu oxide layers. We presents the microscopic picture of hydrogen behaviors in the defect-free $α$-Pu$_{2}$O$_{3}$, which could shed some light on the study of the hydriding induction period of Pu.

cond-mat.mtrl-sci