AGREE (Attribute-aware Gradient Routing for Establishing agrEement) is a plug-and-play framework that addresses gradient conflict in Image Aesthetic Assessment (IAA) through attribute-aware decoupling and sensitivity-guided routing.
- [2026.07] π Paper accepted at ICML 2026 (Seoul, South Korea)!
- [2026.05] Code released.
- [2026.05] π Project page is online!
Image Aesthetic Assessment (IAA) predicts an image's overall aesthetic score, yet aesthetics is influenced by multiple attributes whose relative importance varies with image content and usage scenarios. Under end-to-end training with only overall-score supervision, attribute signals are blended, which can cause gradient conflict across samples dominated by different attributes, resulting in gradient cancellation and persistent systematic bias.
To address these issues, we propose AGREE, which learns attribute-specific subspaces and performs gradient routing based on sample-wise attribute sensitivity estimated via perturbation analysis. AGREE further reduces feature coupling across attributes with semantic anchors and improves robustness via error-aware reweighting.
| Component | Description | Paper Reference |
|---|---|---|
| Attribute-aware Decoupling | Explicit modeling of 5 attribute dimensions (Brightness, Contrast, Blur, Hue, Saturation) with independent visual features | Eq. (1)(2) |
| Multimodal Fusion | Visual-text fusion using LLaVA-extracted semantic anchors | Eq. (3)(4) |
| Sensitivity-guided Routing | Dynamic attribute weighting based on perturbation-based sensitivity | Eq. (5)(6)(7)(8) |
| Error-Aware Reweighting | EMA-based sample reweighting for hard sample mining | Eq. (10)(11)(12) |
# Clone the repository
git clone https://github.com/your-username/AGREE.git
cd AGREE
# Create conda environment
conda create -n IAA python=3.8 -y
conda activate IAA
# Install dependencies
pip install torch torchvision torchaudio
pip install pandas numpy scipy scikit-learn tqdm pyyaml einopsAGREE/
βββ AADB/ # AADB dataset experiments
β βββ EAMB-Net-AGREE/ # EAMB-Net + AGREE
β βββ HKD-IAA-AGREE/ # HKD-IAA + AGREE
βββ AVA/ # AVA dataset experiments
βββ LAPIS/ # LAPIS dataset experiments
βββ PARA/ # PARA dataset experiments
βββ TAD66K/ # TAD66K dataset experiments
βββ README.md
# Example: Train EAMB-Net + AGREE on AADB
cd AADB/EAMB-Net-AGREE
python EAMB_AADB_AGREE_train.py --gpu_id 0Edit config.yml to customize training:
# Sensitivity-guided Routing
sensitivity_csv_path: 'path/to/sensitivity.csv'
# Error-Aware Reweighting (EA-MSE)
error_aware:
enabled: true
beta: 1.0 # Eq.(11): Ο_i = 1 + Ξ² * tanh(...)
tau: 0.1 # Eq.(11): temperature parameter
warmup_epochs: 5
ema_decay: 0.9 # Eq.(10): Ξ³ = 0.9| Method | AVA | LAPIS | PARA | AADB | TAD66K |
|---|---|---|---|---|---|
| TANet (IJCAI'22) | .684 / .675 | .694 / .706 | .815 / .853 | .564 / .575 | .425 / .457 |
| EAT (MM'23) | .752 / .755 | .802 / .809 | .891 / .924 | .601 / .611 | .476 / .503 |
| ELTA (ICML'24) | .698 / .704 | .686 / .696 | .826 / .851 | .592 / .583 | .413 / .430 |
| EAMB-Net (TIM'24) | .702 / .707 | .823 / .825 | .853 / .876 | .638 / .640 | .427 / .428 |
| HKD-IAA (TMM'24) | .753 / .754 | .781 / .760 | .867 / .899 | .671 / .672 | .395 / .377 |
| AesPrompt (TMM'25) | .724 / .719 | .792 / .812 | .875 / .896 | .562 / .577 | .452 / .475 |
| AGREE (w/ EAT) | .789 / .791 | .853 / .853 | .911 / .940 | .669 / .678 | .488 / .511 |
| AGREE (w/ HKD-IAA) | .761 / .759 | .859 / .860 | .879 / .916 | .682 / .689 | .432 / .458 |
| Improvement | β4.8% | β4.4% | β2.2% | β1.6% | β2.5% |
Note: AGREE is a plug-and-play framework integrated with two representative baselines (EAT and HKD-IAA). Bold = best, results show SRCC/PLCC.
| Dec. | Fused | Weighted | EA-MSE | SRCC | PLCC | MAE | RMSE |
|---|---|---|---|---|---|---|---|
| - | - | - | - | .702 | .707 | .420 | .540 |
| β | .715 | .719 | .411 | .527 | |||
| β | β | .725 | .730 | .395 | .513 | ||
| β | β | β | .728 | .735 | .402 | .504 | |
| β | β | β | .730 | .737 | .393 | .506 | |
| β | β | β | β | .732 | .740 | .387 | .505 |
Dec.: Attribute Decoupling; Fused: Multimodal Fusion; Weighted: Sensitivity Weighting; EA-MSE: Error-Aware Loss
AGREE is designed to be plug-and-play with existing IAA methods:
from fusion_modules import SensitivityGuidedFusion
# Simply replace your fusion module
self.multimodal_fusion = SensitivityGuidedFusion(
feature_dim=256,
output_dim=256,
sensitivity_csv_path='path/to/sensitivity.csv'
)class SensitivityGuidedFusion(nn.Module):
"""
AGREE Sensitivity-guided Routing Module
Paper Section 4.3:
- Eq.(5): s_k(I) = |f(I^{+k}) - f(I^{-k})| / 2Ξ
- Eq.(6): Ξ±_k(I) = s_k(I) / Ξ£s_j(I)
- Eq.(7): F_attr = Conv(Concat(Ξ±_1*h_1, ..., Ξ±_5*h_5))
- Eq.(8): F_final = Conv(Concat(h_0, F_attr))
"""class ErrorTracker:
"""
AGREE Error-Aware Reweighting (EA-MSE)
Paper Section 4.4:
- Eq.(10): e_i^{(t)} = Ξ³ * e_i^{(t-1)} + (1-Ξ³) * |y_i - Ε·_i|
- Eq.(11): Ο_i = 1 + Ξ² * tanh(max(0, (e_i - ΞΌ_g) / (Ο * Ο_g)))
- Eq.(12): L = (1/N) * Ξ£ ΟΜ_i * (Ε·_i - y_i)Β²
"""We evaluate on five widely used IAA benchmarks covering complementary scenarios:
| Dataset | Description | Train | Val | Test | Total | Score Range | Splits |
|---|---|---|---|---|---|---|---|
| AVA | Large-scale general benchmark from DPChallenge | 222,383 | 11,707 | 19,805 | 253,895 | [1, 10] | Link |
| AADB | Multi-attribute dataset with 11 photographic attributes | 6,620 | 1,418 | 1,420 | 9,458 | [0, 1] | Link |
| TAD66K | Theme-oriented dataset with 47 theme labels | 46,428 | 9,949 | 9,950 | 66,327 | [0, 10] | Link |
| PARA | Personalized dataset with multi-user ratings | 21,854 | 4,683 | 4,683 | 31,220 | [1, 5] | Link |
| LAPIS | Artistic IAA dataset focusing on paintings | 8,205 | 1,173 | 2,345 | 11,723 | [0, 10] | Link |
Data Splits: We use a unified 8:1:1 (train:val:test) split with fixed random seed (42). For PARA, we split by unique image name to prevent data leakage across personalized annotations.
If you find this work useful, please cite our paper:
@InProceedings{pmlr-v306-wang26aj,
title = {When Attributes Disagree: Gradient Conflict in Image Aesthetic Assessment},
author = {Wang, Ye and Dai, Maocai and Xie, Jiang and Bi, Xiuli and
Tao, Fei and Li, Xiao and Yu, Hong},
booktitle = {Proceedings of the 43rd International Conference on Machine Learning},
pages = {125672--125697},
volume = {306},
year = {2026}
}This work was partly supported by the National Natural Science Foundation of China (62136002, 62221005, 62576060, and 62306056), the National Natural Science Foundation of Chongqing (CSTB2023NSCQ-LZX0006), respectively.
This project is licensed under the MIT License - see the LICENSE file for details.
AGREE - Resolving Gradient Conflict in Image Aesthetic Assessment
ICML 2026 | Seoul, South Korea
