Case-based reasoning solves a new problem by retrieving a similar solved problem and adjusting its solution. The adjustment step, called case adaptation, is usually learned from pairs of stored cases: "when the problem changed this way, the solution changed that way." This works on tables of numbers because a difference between two stored solutions is a real difference. In images it often is not. Two retouching settings that differ numerically can produce photos a person cannot tell apart, and two expert retouches of the same photo can disagree for reasons that are pure taste.
An adaptation learner trained to reproduce every numerical solution difference therefore spends much of its capacity on changes nobody can see. It also produces a flood of candidate rules that a human then has to filter. We propose to learn adaptation knowledge only from case differences that are perceptually significant. The test is a calibrated model of the just-noticeable difference (the smallest change a viewer reliably detects). Case pairs whose rendered outputs fall below that threshold are treated as "no change," and the rule learner is penalized only for errors a viewer would notice.
The application is few-shot, per-photographer retouching. A user supplies a few dozen photos they have edited with global sliders (exposure, contrast, tone, color). The system must retouch new photos in that user's style. Case-based reasoning suits this setting because the case base is small and grows as the user keeps editing. The objective-subjective quality gap decides whether the learned adaptation is any good.
Core Claim
Classical adaptation learners fit solution differences in the space where solutions are stored. Examples are the regression-over-neighbors approach of A Regression Based Adaptation Strategy for Case-Based Reasoning and the case-difference ensembles of Learning and Applying Case Adaptation Rules for Classification: An Ensemble Approach. In perceptual domains that storage space is misaligned with what people see.
Our claim is that inserting a perceptual equivalence threshold into both rule learning and rule pruning does better than simply swapping in a continuous perceptual loss. The threshold means that differences a viewer cannot detect are neither fitted nor mined. We expect the gain to show up in human-judged style fidelity at small case-base sizes, with a far smaller set of rules. The distinction from "just use LPIPS" is the heart of the proposal, and the experiments are built to test it directly.
Why this gap is real
Three results in the file motivate the claim. The Perceptual Misalignment of Image Quality Metrics documents that pixel-distance objectives reward averaged, blurry outputs over sharp but slightly different ones. Shift-Tolerant Perceptual Similarity Metric finds that humans judge 1-pixel-shifted images identical over 80% of the time, while LPIPS flips its preference ranking 2.81% of the time under such shifts. Humans therefore tolerate differences that learned metrics still register, and a metric that is merely "perceptual" but continuous will keep rewarding sub-threshold changes.
B-Spar: Bayesian Sparse-Reward Modeling for RL-based Image Editing supplies the retouching-specific evidence. A slider-editing agent trained on dense proxy quality gains learns imperceptible parameter jitter, which B-Spar calls "proxy artifacts." B-Spar responds by switching to sparse binary human feedback, a Bayesian reward model, and regularization toward historical "anchor actions." Those anchors are global, unindexed memories. B-Spar does not retrieve cases by how the new photo differs from stored ones, and it does not learn difference-to-adjustment rules.
The case-based reasoning side supplies both the method and a constraint. Case Base Mining for Adaptation Knowledge Acquisition (CABAMAKA) mines frequent patterns over case-pair differences, and its output shows the validation bottleneck plainly: 2,344 frequent itemsets had to be cut by hand to 208 meaningful clinical rules. We borrow its pair-difference mining. We replace the manual filter with a perceptual one, on the hypothesis that in visual domains most spurious rules encode sub-threshold solution variation.
The EAC ablation matters as a constraint. Single-rule adaptation sometimes performed worse than unadapted nearest neighbors, while ensembles reduced error by 14% to 60% relative to nearest neighbors. For that reason we keep an ensemble of adaptations rather than a single rule.
Research Program
A case is a triple: a source photo $x$, a feature description $f(x)$ (global luminance and color histograms plus a frozen image embedding), and a slider vector $s$ that, passed through a differentiable global retouching renderer $R$, reproduces the photographer's edit. For MIT-FiveK we obtain $s$ for each of the five experts by fitting $R$ to each expert's output. The fitting residual is reported, so we know how much of each expert's style lies outside the slider space.
The first component is a perceptual equivalence model. We take the shift-tolerant perceptual distance of Shift-Tolerant Perceptual Similarity Metric and calibrate it with human same/different judgments on slider perturbations of FiveK photos. The calibration is a monotone map to the probability that a viewer sees a difference. We rescale the result into $d_p$, where $d_p = 1$ is the just-noticeable difference, defined as a 50% "different" rate. The calibration uses a few thousand judgments, collected once and shared across all photographers. We choose this shared threshold because B-Spar shows sparse binary perceptual judgments are informative, and a threshold is cheaper to calibrate than a full preference model.
The second component is adaptation learning with a perceptual hinge. For a stored pair of cases $i, j$ from the same photographer, an adaptation model $g$ takes the source features and the feature difference and predicts a slider adjustment. It is trained with
$$ \mathcal{L}_{ij} = \max\Big(0,\; \min_{s^\ast \in S_j} d_p\big(R(x_j,\, s_i + g(f_i, f_j - f_i)),\; R(x_j, s^\ast)\big) - 1\Big), $$
where $S_j$ is the set of acceptable solutions for photo $j$. $S_j$ contains the photographer's own setting and, where available, any setting judged within threshold of it. Errors below one just-noticeable difference cost nothing. Pairs whose two solutions render within threshold of each other contribute no adaptation target.
At inference we retrieve $k$ neighbors of the target photo, apply $g$ from each, and take the median of the resulting slider vectors. This follows EAC's ensemble principle.
The third component is perceptual rule pruning. We also mine explicit rules in CABAMAKA's style over discretized feature differences and slider differences, for example "scene darker by one bin implies exposure up by one step." A mined rule is kept only if applying it changes the rendered output by more than one just-noticeable difference on most of its supporting pairs. We report how many rules survive, and photographers rate a sample of kept and discarded rules for whether they make sense.
Baselines
The naive reference point is doing nothing: the unedited photo, plus a second variant that applies the photographer's mean slider vector to every photo. Any method that cannot beat a fixed global preset in human judgment has not learned adaptation.
The retrieval-only baseline copies the sliders of the nearest stored case with no adaptation. This is the "lookup table" regime that A Regression Based Adaptation Strategy for Case-Based Reasoning argues case-based reasoning must go beyond, and it is strong when the case base is dense.
The classical adaptation baselines are knnReg-style local regression over the $k$ neighbors and an EAC-style ensemble of case-difference rules, both trained with slider-space mean absolute error. These are the most faithful existing case-adaptation methods. For them the file reports only relative gains, not absolute numbers on any image task.
The strongest existing system is B-Spar. Its reported results are an LPIPS score of 1.03 (described as a 33.5% improvement over PhotoArt) and an average blind user rating of 6.8/10 on MIT-FiveK, against 5.3/10 for human Expert B, at 1.86 seconds latency with a 2.01B-parameter model. B-Spar optimizes general perceptual improvement rather than one photographer's style. For fairness we therefore compare in two ways: B-Spar as released, and B-Spar with its anchor actions replaced by the target photographer's own case base. Only the latter matches our information access. If B-Spar is not runnable, we say so and compare only against its reported user-study protocol.
We also include an end-to-end supervised regressor from image features to sliders. It uses the same backbone as our feature extractor and is trained on the same per-photographer cases.
The decisive ablation is identical to our method except that the hinge on $d_p$ is replaced by continuous LPIPS or PAMSE distance, with the same neighbors, ensemble, renderer, and tuning budget. A second ablation removes perceptual pruning from the rule miner.
All methods get the same case bases, the same renderer, and the same hyperparameter search budget on a held-out split. Beating the field means winning human two-alternative style-fidelity comparisons against every baseline at case-base sizes of roughly 25 to 100, with non-overlapping bootstrap intervals.
Why not just…?
Why not just replace mean absolute error with LPIPS or PAMSE in knnReg? This is the most serious threat, and the continuous-perceptual-loss ablation exists to settle it. Our reason to expect a difference comes from two sources. The shift-tolerant study shows continuous learned metrics still register sub-threshold differences. B-Spar shows that dense continuous quality signals lead slider agents into imperceptible jitter. If the LPIPS-trained learner matches ours in human judgment and rule count, the thresholding idea is not needed and we will report that.
Why not just fine-tune an end-to-end regressor or editing model? End-to-end supervision can work with many examples; MultiEdit fine-tunes SD3 on 106,534 pairs (MultiEdit). A single photographer supplies tens of photos, not tens of thousands. The case-base-size sweep will show where, if anywhere, the regressor catches up. We expect it to converge toward our method as cases grow, and that crossover point is itself a useful finding.
Why not just retrieve the nearest case and copy its sliders? When the case base is dense this may be nearly as good. The EAC and knnReg results say unadapted retrieval loses on tabular data. We test whether that holds when errors are scored perceptually, and we break results down by distance to the nearest neighbor.
Why not just use B-Spar with the user's edits as anchors? Its Bayesian reward model needs binary feedback on the agent's own outputs. Our method needs no online feedback beyond the one-time threshold calibration. If the anchor-substituted B-Spar wins, the lesson is that online feedback matters more than difference-indexed memory, and the head-to-head comparison measures exactly that.
Proposed Experiments
The main benchmark is MIT-FiveK, run leave-one-photographer-style-out. Each of the five experts is a "user," case bases are subsampled at 25, 50, 100, and 400 photos, and 500 test photos are held out per expert. Cross-dataset transfer uses MMArt-PPR10k: case bases built on FiveK styles are applied to portraits.
Human evaluation uses two-alternative forced choice with the photographer's actual retouch as reference ("which is closer to this photographer's edit?"), plus B-Spar's 10-point blind rating protocol for general quality. PSNR, LPIPS, and slider mean absolute error against the expert reference are reported alongside, and their rank correlation with the human outcomes is measured.
Three checks decide the claim. First, the perceptual-hinge learner must beat the continuous-LPIPS ablation in human style fidelity at small case-base sizes. Second, perceptual pruning must cut the mined rule set substantially without lowering human-judged fidelity, and photographers must rate kept rules as sensible more often than discarded ones. Third, the gains should concentrate on photos where the five FiveK experts disagree most. That is where solution-space differences are least tied to perception, and a failure of this prediction would argue against our explanation even if average scores improve.
We also expect, and will report, cases where slider-error-trained adaptation wins on PSNR against the expert reference while losing human comparisons. That would be a direct measurement of the objective-subjective gap inside case adaptation.
References
- A Regression Based Adaptation Strategy for Case-Based Reasoning
- Learning and Applying Case Adaptation Rules for Classification: An Ensemble Approach
- Shift-Tolerant Perceptual Similarity Metric
- B-Spar: Bayesian Sparse-Reward Modeling for RL-based Image Editing
- Case Base Mining for Adaptation Knowledge Acquisition
- MultiEdit: Advancing Instruction-based Image Editing on Diverse and Challenging Tasks