foura-eval
FouRA: Fourier Low Rank Adaptation — Borse et al. (2024) (arXiv:2406.08798, 2024)
What this evaluates
Evaluates the capability of a Fourier-domain low-rank adapter to generate high-quality, diverse images for style transfer and concept editing. It also assesses the adapter's performance on standard language understanding benchmarks compared to baseline adapters like LoRA.
Datasets
- Paintings — total 630; splits: eval (630)
- Blue-Fire — total 900; splits: eval (900)
- 3D — total ?; splits: eval (-1)
- Origami — total ?; splits: eval (-1)
- GLUE — total ?; splits: test (-1)
Metrics
HPSv2.1 (primary) — range: other
- Evaluates the measure of image quality and alignment with the prompt/style using a pretrained vision-language model.
LPIPS diversity — range: [0, 1]
- Captures the diversity within all possible pairs of generated images across random seeds by computing pairwise LPIPS distances.
LPIPS similarity — range: [0, 1]
- Measures perceptual similarity between edited images and the original base image using LPIPS distance.
GLUE score — range: percent
- Standard accuracy or F1 score averaged across MNLI, CoLA, SST2, STSB, MRPC, and QNLI tasks.
Input / output format
Input: Text prompts describing styles or editing concepts for image generation; sentence pairs or single sentences for GLUE classification/regression tasks.
Output: Generated images for vision tasks; classification labels or regression scores for GLUE tasks.
Scoring recipe
# Vision: HPSv2.1 & LPIPS Diversity
hps_scores = [hpsv2_model(prompt, img) for img in generated_images]
hps_avg = mean(hps_scores)
# Vision: LPIPS Diversity
distances = [lpips_distance(img_i, img_j) for i, img_i in enumerate(images) for j, img_j in enumerate(images) if i < j]
diversity_score = mean(distances)
# Language: GLUE
correct = sum(1 for pred, gold in zip(predictions, gold_labels) if pred == gold)
accuracy = correct / len(gold_labels)
Common pitfalls
- High adapter strength ($\alpha$) amplifies visual artifacts in LoRA but FouRA remains stable, so comparing at fixed $\alpha$ without checking for distortion is misleading.
- Rank is highly sensitive for LoRA, requiring careful tuning, whereas FouRA maintains robust performance across varying ranks due to frequency-domain gating.
- Results must be averaged over multiple random seeds (30 for vision, 3 for language) to account for stochastic generation and adapter initialization.
Evidence (verbatim from paper)
Metrics: For quantifying the quality of images generated by FouRA and LoRA finetuned diffusion models, we report HPSv2.1*[[39]]* and LPIPS diversity [[44]] scores. The HPSv2 metric evaluates the measure of the image quality, and alignment with the prompt/style. LPIPS diversity score captures the diversity within all possible pairs of generated images across seeds. We provide an in-depth analysis of these metrics in Appendix[D]. For the image editing task, we compare edited images using LPIPS similarity (compared to the base image). For language models, we report on the General Language Understanding Evaluation (GLUE) benchmarks*[[36]]*, see details in App.[C.1].
Citation
@misc{borse2024foura,
title={FouRA: Fourier Low Rank Adaptation},
author={Borse et al. (2024)},
year={2024},
note={arXiv:2406.08798}
}
1---2name: foura-eval3description: Evaluates the capability of a Fourier-domain low-rank adapter to generate high-quality, diverse images for style transfer and concept editing. It also assesses the adapter's performance on standard language understanding benchmarks compared to baseline adapters like LoRA. Use when the user wants to benchmark on Paintings, Blue-Fire, 3D, Origami, GLUE, or asks about evaluating this task. Reports HPSv2.1.4---56# foura-eval78> FouRA: Fourier Low Rank Adaptation — Borse et al. (2024) (arXiv:2406.08798, 2024)910## What this evaluates1112Evaluates the capability of a Fourier-domain low-rank adapter to generate high-quality, diverse images for style transfer and concept editing. It also assesses the adapter's performance on standard language understanding benchmarks compared to baseline adapters like LoRA.1314## Datasets1516- **Paintings** — total 630; splits: eval (630)17- **Blue-Fire** — total 900; splits: eval (900)18- **3D** — total ?; splits: eval (-1)19- **Origami** — total ?; splits: eval (-1)20- **GLUE** — total ?; splits: test (-1)2122## Metrics2324- `HPSv2.1` **(primary)** — range: other25 - Evaluates the measure of image quality and alignment with the prompt/style using a pretrained vision-language model.26- `LPIPS diversity` — range: [0, 1]27 - Captures the diversity within all possible pairs of generated images across random seeds by computing pairwise LPIPS distances.28- `LPIPS similarity` — range: [0, 1]29 - Measures perceptual similarity between edited images and the original base image using LPIPS distance.30- `GLUE score` — range: percent31 - Standard accuracy or F1 score averaged across MNLI, CoLA, SST2, STSB, MRPC, and QNLI tasks.3233## Input / output format3435**Input**: Text prompts describing styles or editing concepts for image generation; sentence pairs or single sentences for GLUE classification/regression tasks.3637**Output**: Generated images for vision tasks; classification labels or regression scores for GLUE tasks.3839## Scoring recipe4041```python42# Vision: HPSv2.1 & LPIPS Diversity43hps_scores = [hpsv2_model(prompt, img) for img in generated_images]44hps_avg = mean(hps_scores)4546# Vision: LPIPS Diversity47distances = [lpips_distance(img_i, img_j) for i, img_i in enumerate(images) for j, img_j in enumerate(images) if i < j]48diversity_score = mean(distances)4950# Language: GLUE51correct = sum(1 for pred, gold in zip(predictions, gold_labels) if pred == gold)52accuracy = correct / len(gold_labels)53```5455## Common pitfalls5657- High adapter strength ($\alpha$) amplifies visual artifacts in LoRA but FouRA remains stable, so comparing at fixed $\alpha$ without checking for distortion is misleading.58- Rank is highly sensitive for LoRA, requiring careful tuning, whereas FouRA maintains robust performance across varying ranks due to frequency-domain gating.59- Results must be averaged over multiple random seeds (30 for vision, 3 for language) to account for stochastic generation and adapter initialization.6061## Evidence (verbatim from paper)6263> Metrics: For quantifying the quality of images generated by FouRA and LoRA finetuned diffusion models, we report HPSv2.1*[[39]]* and LPIPS diversity *[[44]]* scores. The HPSv2 metric evaluates the measure of the image quality, and alignment with the prompt/style. LPIPS diversity score captures the diversity within all possible pairs of generated images across seeds. We provide an in-depth analysis of these metrics in Appendix[D]. For the image editing task, we compare edited images using LPIPS similarity (compared to the base image). For language models, we report on the General Language Understanding Evaluation (GLUE) benchmarks*[[36]]*, see details in App.[C.1].6465## Citation6667```bibtex68@misc{borse2024foura,69 title={FouRA: Fourier Low Rank Adaptation},70 author={Borse et al. (2024)},71 year={2024},72 note={arXiv:2406.08798}73}74```7576- arXiv: 2406.08798