Manuscript Offprint

arXiv:2610.38265

TreemapMix: Dirichlet-Controlled Multi-Image Augmentation for Probability and Ordinal Supervision

Ejafa Bassam, Konstantin Garbers, Yingsheng Geng, Dalton Jens, Jiaxu Qian, Guyue Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Ejafa Bassam*†

ejafabassam@alumni.pku.edu.cn

Yingsheng Geng²

gys@bupt.edu.cn

Jiaxu Qian¹

jiaxu@pku.edu.cn

Konstantin Garbers¹*

konstantin.garbers25@stu.pku.edu.cn

Dalton Jens¹

daltonjens@gmail.com

Guyue Liu¹‡

guyue@pku.edu.cn

¹Peking University

²Beijing University of Posts and Telecommunications

Abstract

Data augmentation improves visual recognition by exposing models to synthetic training examples that encourage generalization beyond the observed data. Mixed-sample methods extend this idea by combining multiple images. However, many common approaches either mix only pairs of images or rely on fixed small layouts, limiting control over source count, visible area proportions, and induced supervision. We propose TreemapMix, a distribution-controlled multi-image augmentation that samples source weights from a Dirichlet distribution and assigns them to area-proportional regions using a treemap partition. The resulting known region areas support two complementary objectives. TreemapMix with soft cross-entropy (SCE) treats areas as soft class-probability targets, while TreemapMix with a Plackett-Luce (PL) objective converts areas into ordinal supervision. On ImageNet-1K under matched training recipes, TreemapMix-SCE achieves substantially lower calibration error than evaluated mixed-sample baselines, while TreemapMix-PL achieves the strongest Top-1 accuracy. Transfer experiments on object detection and instance segmentation suggest that TreemapMix-pretrained features remain useful beyond classification. These results show that controlled multi-image composition can expose the same region-area information as either probability-matching or rank-matching supervision. Code is available at github.com/Ejafa/treemapmix.

1 Introduction

Image classification is usually formulated as learning one target label from one image. Natural visual experience is more compositional: multiple objects often appear in the same field of view, and visual categories are often understood through comparisons among related sources of evidence. This suggests a complementary augmentation principle: construct training examples that expose several labeled sources jointly, while preserving explicit control over how much visual evidence each source contributes.

Mixed-sample data augmentation moves in this direction by composing examples and mixing their labels. Mixup [48] and CutMix [47] are widely used in modern image-classification recipes [25, 40, 41, 44], but they are primarily pairwise: Mixup globally interpolates two images, and CutMix

*Equal contribution. †This work was conducted while Ejafa Bassam was at Peking University. ‡Corresponding author.

Preprint.

Figure

(a) None

(b) Mixup

(c) CutMix

(d) RICAP

(e) TreemapMix

Figure 1: Qualitative comparison of five augmentation strategies on matched source images using resize-and-center-crop preprocessing only. Mixup blends full images, CutMix pastes a random region, RICAP composes four tiles, and TreemapMix composes KK rescaled source images within a randomized layout.

replaces one region with a patch from another image. Multi-image methods such as RICAP [39] and Mosaic-style augmentation [3] show the value of composing several images, but typically use a fixed small number of sources and restricted layout families. Moreover, existing methods usually treat region area only as a soft-label weight, rather than as a controllable object that can shape both the visual composition and the supervision signal. Figure 1 shows a qualitative comparison of these augmentation patterns on matched source images.

We propose TreemapMix, a KK-way image-mixing augmentation that composes multiple single-label images into a shared canvas while preserving the training sample count. TreemapMix samples region weights from a Dirichlet distribution and maps them to non-overlapping area-proportional regions using a squarified treemap layout [4]. The Dirichlet concentration parameter α\alpha controls the composition, ranging from dominant-region mixtures to more balanced multi-image mixtures. To prevent persistent label-to-area or label-to-rank bias, TreemapMix generates KK cyclic views from each group of KK source images, so that every source image is paired with every sampled region weight across the cyclic orbit. Area-preserving symmetries then increase spatial diversity without changing the target weights.

TreemapMix also exposes a supervision choice. Region area provides a natural but imperfect proxy for visual evidence: larger regions usually contain more pixels, more context, and more object parts, and are therefore often easier to recognize than smaller regions. This suggests an ordinal learning signal within a composed image, where labels assigned to larger regions should generally receive higher scores than labels assigned to smaller regions. However, area is not a calibrated measure of semantic evidence; a large region may contain mostly background, while a small region may contain a discriminative object part. We therefore study two complementary objectives: TreemapMix-SCE, which treats region areas as soft probability targets and optimizes soft cross-entropy, and TreemapMix-PL, which converts region areas into area-induced ordinal supervision by ranking the target classes and optimizing a Plackett-Luce listwise objective [31, 34, 45].

We evaluate TreemapMix on ImageNet-1K [10] under matched training recipes across multiple modern image-classification backbones. Compared with 13 baseline configurations, TreemapMix-PL achieves the strongest Top-1 accuracy across the evaluated ImageNet-1K backbones, while TreemapMix-SCE gives the lowest expected calibration error (ECE). The original NLL comparison also favors SCE, while Brier-score gains are smaller and mixed (Appendix F.1). Further diagnostics show that TreemapMix-PL improves alignment between logits and the area-induced ordering of composed regions, and COCO transfer experiments indicate that TreemapMix-pretrained representations remain useful for detection and instance segmentation [27].

Our contributions are:

i. We introduce TreemapMix, a Dirichlet-controlled KK-way image-mixing augmentation that supports variable-source composition with explicit area-proportional treemap layouts while preserving the training sample count.

ii. We formulate two supervision objectives from the same composed image: area-proportional soft cross-entropy for probability matching and Plackett-Luce ranking for area-induced ordinal supervision.

iii. We analyze how the Dirichlet concentration parameter controls target variability, probability-matching supervision, and ranking emphasis.

iv. We provide an empirical evaluation on ImageNet-1K, including accuracy, calibration metrics, area-logit alignment analysis, and COCO detection and instance-segmentation transfer experiments. We also evaluate long-horizon training, loader throughput and host memory, long-tailed recognition, and additional model architectures.

References (45)