FDSML: Formula-Driven Supervised Metric Learning with Parameter-Aware Triplet Loss

Hina Otake, Shinei Arakawa, Keitaro Tanaka, Yoshihiro Fukuhara, Hirokatsu Kataoka, Shigeo MorishimaarXiv 2026 · arXiv

TL;DR

FDSML (Formula-Driven Supervised Metric Learning) shifts synthetic vision pre-training from simple category recognition to relational comparison. By leveraging the underlying mathematical parameters of fractal generation to define image similarity, the authors produce representations that are significantly more robust and transferable—especially for complex tasks like image retrieval—without ever seeing a real-world image during pre-training.

What Problem Does This Paper Address?

Modern computer vision relies on massive, human-annotated datasets like ImageNet. However, these datasets are plagued by high costs, privacy concerns, and inherent social biases. Formula-Driven Supervised Learning (FDSL) offers a "data-free" alternative by training models on images generated from mathematical formulas (like fractals).

The problem? Existing FDSL methods treat pre-training as a standard classification task. They discretize the continuous parameter space of these formulas into arbitrary class labels. This discards the "neighborhood structure" of the data—if two fractals are generated from nearly identical parameters, they should be represented similarly in the model's embedding space. By ignoring these continuous relationships, standard FDSL models often overfit to low-level textures and struggle with tasks like image retrieval, where the quality of the feature representation matters more than just finding a classification boundary.

Methods

The authors introduce a framework that treats synthetic pre-training as a Metric Learning problem.

  1. Parameter-Aware Triplet (PA-Triplet) Loss: Instead of using discrete labels to define "positive" and "negative" samples, the authors use the distance in the underlying Iterated Function System (IFS) parameter space. For a given "anchor" image, the model is taught that a candidate image generated with similar parameters should be closer in embedding space than one generated with distant parameters. Overview of the PA-Triplet Loss framework
  2. Parameter Descriptor ($\Psi$): To calculate these distances, they summarize the complex IFS generation process into a compact 6D descriptor—the expectation of the affine parameters.
  3. Triplet Filtering: They explore different strategies for selecting candidates, such as drawing both from the same discrete class ("same") to focus on fine-grained structural differences, or drawing from different classes ("diff") for broader variations. Conceptual illustration of filtering strategies
Figure 1. Overview of the proposed framework with the Parameter-Aware Triplet (PA-Triplet) Loss. (1) An anchor image xa and two candidate images x1 and x2 are sampled from the continuous IFS parameter space together with their associated parameter descriptors Ψa, Ψ1, and Ψ2. (2) The candidates are assigned as positive or negative according to their parameter-space distances to the anchor, where dΨ(i, j) = ∥Ψi −Ψj∥2. (3) The resulting triplet (xa, xp, xn) is encoded by a feature extractor into embeddings (za, zp, zn), and the network is optimized so that the embedding-space distances reflect the relative ordering induced by the underlying IFS parameter space.
Figure 2. Conceptual illustration of the coarse filtering strategy used to construct candidate triplets. (A) all: Two candidates are randomly drawn from the entire dataset. (B) each: One candidate is drawn from the same discrete class as the anchor, and the other from a different class. (C) same: Both candidates are drawn from the same discrete class as the anchor. (D) diff: Both candidates are drawn from classes other than the anchor’s class. Discrete labels only restrict the candidate pool; the final positive and negative as- signments are determined by parameter-space distance orderings.

Datasets

  • FineFractalDB (New): The authors found that the original FractalDB lacked the diversity needed for metric learning. They created FineFractalDB, which increases intra-class diversity by using 1,000 parameter perturbations per class (up from 25). They also enforced strict "contraction constraints" to ensure the fractals have stable, clear structures rather than collapsing into indistinct blobs.
  • Evaluation Benchmarks: The models were tested on a wide array of downstream tasks, including classification (CIFAR-10/100, ImageNet-1k, Places-30), image retrieval (Stanford Online Products, Stanford Cars, In-Shop Clothes), and robustness (ImageNet-C, CIFAR-10-C).

Key Insights and Ideas

  • Relational > Categorical: The "aha moment" here is that the supervision signal for synthetic data shouldn't just be "what is this?" but rather "which of these two is more like the third?" This relational supervision better exploits the continuous nature of the generative formulas.
  • Smooth Embedding Spaces: UMAP visualizations reveal that FDSML creates a much smoother embedding space. When you interpolate between two sets of fractal parameters, the FDSML embeddings follow a smooth, continuous path, whereas standard FDSL embeddings show abrupt, erratic transitions.
  • Structural Focus: Qualitative analysis using Grad-CAM shows that FDSML models focus more on object-relevant regions and textured interiors, whereas classification-based models tend to over-fixate on prominent boundaries and edges.

Key Results

The most dramatic improvements were seen in image retrieval, where the model must rely on the inherent geometry of its learned embeddings:

  • Stanford Cars: Recall@1 jumped from 56.2% (standard FDSL) to 78.4% (FDSML).
  • Stanford Online Products: Recall@1 improved from 65.6% to 74.0%.

On classification tasks, FDSML remained highly competitive, often outperforming standard FDSL. For example, on ResNet-50, ImageNet-1k accuracy improved from 70.43% to 72.65%. Furthermore, FDSML showed superior robustness to common image corruptions like blur and weather effects, suggesting that relational learning helps the model capture more stable structural cues.

Limitations and Future Work

  • Generator Specificity: The current similarity definition is tailored to IFS-based fractals. Extending this to other synthetic generators (like TileDB or RCDB) would require defining new, validated similarity metrics for their specific parameter spaces.
  • Computational Overhead: Triplet mining and descriptor calculations add extra overhead compared to simple cross-entropy classification, though the authors haven't yet quantified this in detail.
  • Scaling: The study focused on a 1-million-image scale; whether these benefits persist or grow at the "billion-image" scale remains an open question.

Summary updated

Abstract

Formula-Driven Supervised Learning (FDSL) enables vision pre-training without real images, but existing methods cast pre-training as classification on discretized labels, discarding continuity in the generative process. We propose Formula-Driven Supervised Metric Learning (FDSML), which derives relational supervision from image-generation parameters beyond discrete class labels. FDSML combines FineFractalDB, our refined fractal dataset with higher intra-class variation and more stable structures, with a Parameter-Aware Triplet (PA-Triplet) Loss that assigns positives and negatives according to distances in the underlying Iterated Function System parameter space. This objective trains embeddings to respect parameter-derived relative similarity orderings. Experiments show that FDSML improves transferability to image retrieval while remaining competitive on downstream classification and improving robustness under several corruption settings. On ResNet-50, Recall@1 improves from 65.6% to 74.0% on Stanford Online Products and from 56.2% to 78.4% on Stanford Cars over FDSL pre-training. These results suggest that parameter-derived relational supervision provides a stronger synthetic pre-training signal than label-based classification for transfer beyond recognition.
BibTeX
@misc{otake2026fdsml,
  author = {Hina Otake and Shinei Arakawa and Keitaro Tanaka and Yoshihiro Fukuhara and Hirokatsu Kataoka and Shigeo Morishima},
  title = {{FDSML: Formula-Driven Supervised Metric Learning with Parameter-Aware Triplet Loss}},
  year = {2026},
  eprint = {2610.39423},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.39423},
}
Figure