arXiv:2608.25467cs.LGAug 2026

Manuscript Offprint

arXiv:2608.25467

Resolving Multi-Modal Regression by Difference-Quotient-Based Clustering:Fast Coarse Conditional-Label Assignment

Huang Weiquan

Abstract

An input xx that is paired with several distinct outputs y1,…,yKy_1, \ldots, y_K is the hallmark of multimodal regression. Under a squared loss, an unconstrained regressor collapses to the conditional mean E[y∣x]\mathbb{E}[y \mid x], which for K>1K > 1 generically coincides with none of the modes. We take the view that this mean-regression pathology is caused by pairwise contradictions inside the data: pairs of samples with nearly identical inputs but distant outputs. We formalize the contradiction of a pair as the ratio r=∥Δy∥/∥Δx∥r = \|\Delta y\| / \|\Delta x\| and ask whether the problem can be attacked directly by clustering samples so that within-cluster contradictions are minimized. We propose Difference-Quotient Clustering (DQC), a clustering that assigns each sample to the cluster with which its maximum intra-cluster difference quotient is smallest, then trains a logits generator g(x)g(x) and a conditional network f(x,onehot(c))f(x, \text{onehot}(c)) on the resulting cluster labels. Because the generating modality is unknown at inference, we compare each prediction against all KK true outputs of the same input and report the minimum squared error (minMSE). On synthetic benchmarks with K=5K = 5 and K=10K = 10 modalities, the clustering pipeline reaches test minMSE 0.19 (K=5K = 5, nx=500n_x = 500), against 0.09 for an oracle with true labels, 1.08 for random labels, and 1.33 for mean collapse. We report two empirical regularities: (i) the larger the intra-cluster contradiction, the deeper the network required to resolve it; (ii) the oracle, which consumes the true low-dimensional modality structure, generalizes from fewer samples, whereas cluster labels are only equivalent to that structure and therefore need more data. The comparison itself is a hard, multi-threadable algorithm of average complexity O(n2/2)O(n^2/2), positioning the method as a fast front-end for coarse conditional-label assignment that can reduce the training burden of downstream generative refinement such as flow matching or diffusion models. The front-end is also naturally iterable. A second stage treats the conditional output y′=f1(x,onehot(c))y' = f_1(x, \text{onehot}(c)) of the first-stage network as a new input and the true output yy as the new label, re-runs the same difference-quotient clustering on the pair (y′,y)(y', y) to obtain refined labels dd, and trains a second logits generator g2(z)g_2(z) together with a second conditional network f2(z,onehot(d))f_2(z, \text{onehot}(d)) on the augmented input z=Z(x,y′)z = Z(x, y'). Because the first stage has already displaced samples toward their modal branches, this second pass measures residual fitting error rather than genuine multi-modality, which yields purer labels theoretically, so this is one of the key directions for our next experiment.

1 Introduction

Standard regression assumes a functional relationship x↦yx \mapsto y. Real data frequently violates this assumption: the same input xx admits several plausible outputs y1,…,yKy_1, \ldots, y_K. This situation arises whenever the observed input is insufficient to pin down the output uniquely — in inverse problems, multi-agent or multi-path future prediction, and any system whose forward process is stochastic or under-determined. We call such data multi-modal, and its distinct outputs the modalities of x.

A regressor trained with a squared loss on multi-modal data converges to the conditional mean E[y∣x]\mathbb{E}[y \mid x] [1]. For K>1K > 1 this mean is generically at positive distance from every one of the KK modes: it predicts a value that never occurs. We call this the mean-regression problem. It is the most basic failure of treating a multi-valued problem with a single-valued loss, and it is the target of this paper.

The essence of multi-possible outputs is contradiction. What constitutes a fitting contradiction? Locally, the dataset must contain pairs of samples (xi,yi),(xj,yj)(x_i, y_i), (x_j, y_j) with xi≈xjx_i \approx x_j yet yi≉yjy_i \not\approx y_j. The more the outputs differ per unit of input distance, the sharper the incompatibility. We formalize this as the pairwise contradiction

r(xi,yi;xj,yj)=∥yi−yj∥2∥xi−xj∥2,(1)r(x_{i},y_{i};x_{j},y_{j})=\frac{\|y_{i}-y_{j}\|_{2}}{\|x_{i}-x_{j}\|_{2}}, \tag{1}

the output distance divided by the input distance. Two samples are contradictory when xi≈xjx_i \approx x_j (small denominator) but yi≠yjy_i \neq y_j (nonzero numerator), i.e. when rr is large. Under this view, a multi-modal dataset is simply a dataset whose samples cannot all be mutually consistent, and each modality is a subset of samples that are mutually consistent.

Research question. If the mean-regression problem is caused by contradictions, the most direct remedy is to remove them before training: partition the samples into low-contradiction clusters so that each cluster approximates one consistent branch, then fit one conditional branch per cluster. In this paper we test this hypothesis directly. We ask: can a purely geometric, contradiction-based clustering — no gradients, no iterative optimization, no learned similarity — resolve the mean-regression problem on its own?

Why the question is nontrivial. Clustering by contradiction is not the usual geometry of clustering in x-space: it is driven by the joint (x,y)(x, y) geometry, and a pairwise ratio of distances is a fragile quantity. Three difficulties are immediate. First, the input x alone cannot always disambiguate the modality: the same x appears under several modalities by construction, so any inference-time branch selector must err sometimes. Second, the cluster labels are only equivalent to the true modality structure, never equal to it; residual contradictions inside a cluster persist and must be absorbed by the subsequent network. Third, the greedy assignment is suboptimal by design. Each of these difficulties shows up in the experiments, and each has a characteristic signature.