LCO: LLM-based Constraint Optimization for Safer Agentic LLMs in Real-world Tasks
Quick Answer
This paper shows that The LLM-based Constraint Optimization (LCO) framework effectively mitigates in-context reward hacking (ICRH) in autonomous agents like GPT-4, achieving a 39% reduction in Toxicity Growth Rate and a 15.23% decrease in ICRH Occurrence Rate without model fine-tuning.
Key Points
- LCO consists of a self-thought module and an evolutionary sampling module.
- The framework reduces ICRH without requiring fine-tuning of the .
- On the tweet engagement task, LCO reduced Toxicity Growth Rate by 39%.
- In policy optimization, LCO lowered ICRH Occurrence Rate by 15.23%.
- LCO maintains task performance while enhancing safety in LLM applications.
Paper Resources
Article Content
From source RSS / original summaryarXiv:2605. 27375v1 Announce Type: new Abstract: (LLMs) are increasingly acting as autonomous agents, but their continuous interaction with the environment can lead to in-context reward hacking (ICRH), a phenomenon where LLMs iteratively optimize their behavior to maximize proxy objectives, inadvertently producing harmful side effects. Existing defense methods are insufficient to address this risk, as ICRH arises not from adversarial inputs but from the model's own over-optimization.
To mitigate this issue, we propose \textbf{LLM-based Constraint Optimization (LCO)}, a framework that effectively reduces ICRH without model fine-tuning. LCO consists of two modules: \textit{self-thought module}, which guides the LLM to proactively deliberate and integrate potential safety constraints before execution; and \textit{evolutionary sampling module}, which employs LLM-based crossover and mutation to constrain the model's actions within a safe solution space while maintaining task performance.
Experimental results demonstrate that LCO substantially alleviates ICRH in both output-refine and policy-refine scenarios. In particular, on the tweet engagement optimization task, LCO achieves a 39% reduction in the Toxicity Growth Rate (TGR) on GPT-4, while on the policy optimization benchmark, it reduces the ICRH Occurrence Rate by 15. 23%, demonstrating safety improvement without sacrificing task performance.
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from arXiv cs.CL
See more →TriAgent: Divergence-Aware Committees for Cost-Efficient Financial Sentiment Analysis
TriAgent introduces a cost-efficient multi-agent system for financial sentiment analysis, combining VADER, FinBERT, and Qwen2.5. It achieves an F1 score of ~0.87 with significant savings of $9.3M/year at a 10M-user scale compared to GPT-4o-mini, while also detecting hallucinations with an AUC of 0.90.