LossAgent introduces an LLM-based framework that enables optimization of image processing models using any objective, even non-differentiable ones.
It dynamically adjusts loss weights based on feedback from external evaluators, making previously unusable optimization objectives now possible.
-----
https://arxiv.org/abs/2412.04090
π Original Problem:
β Traditional image processing models are limited by differentiable loss functions, preventing the use of advanced quality metrics and human feedback for optimization.
β Complex perceptual metrics and text-based feedback cannot be directly used for training, limiting model improvement.
-----
π οΈ Solution in this Paper:
β LossAgent uses an LLM to interpret feedback from any optimization objective and convert it into usable loss weights.
β The system maintains a repository of standard loss functions and dynamically adjusts their weights during training.
β A three-part prompt engineering strategy guides the LLM: system prompts define goals, historical prompts provide context, and customized prompts ensure consistent output format.
β The agent analyzes model performance and optimization trajectory to make informed weight adjustments.
-----
π‘ Key Insights:
β LLMs can effectively bridge non-differentiable objectives with trainable loss functions
β Historical optimization trajectories help prevent LLM hallucination
β Format standardization significantly improves LLM output reliability (99.87% success rate)
-----
π Results:
β Outperformed baseline methods across multiple image processing tasks
β Achieved better NIQE scores (4.08 vs 4.23 baseline)
β Successfully handled textual feedback with comparable performance to numerical metrics










