VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

How AI Works | Mixup Data Augmentation — Convex Examples, Soft Targets and Manifold Intrusion

Did you know? A neural-network training example does not always have to come directly from a single recorded object. Mixup data augmentation constructs a new training input by interpolating two examples and constructs its target by applying the same mixing proportion to their labels. The method encourages a model to behave more smoothly between examples, which can improve generalisation under some conditions—but the artificial combination is not automatically a valid real-world example.

The practical formula is simple: choose two compatible training examples (xA, yA) and (xB, yB), draw a mixing fraction lambda between zero and one, and train on xMix = lambda × xA + (1−lambda) × xB and yMix = lambda × yA + (1−lambda) × yB. Both inputs and targets must be represented in a form for which interpolation has a defined meaning. Use mixup only inside the training split, test it against an unchanged baseline and inspect whether mixed examples contradict the real labels or the decisions users actually need.

This guide checks the numerical formula, compares mixup with ordinary label smoothing and CutMix, explains manifold intrusion and distribution limits, and solves a changed-context transfer example. Every invented dataset and performance result is explicitly illustrative. The research claims refer to original papers rather than an unexecuted model experiment.

Contents

Mixup creates virtual training cases, not new observations

Ordinary supervised learning starts with recorded input-label pairs. A classifier might see a photograph of a dog labelled dog and a photograph of a cat labelled cat. Mixup forms an interpolation of the two input tensors and a corresponding interpolation of the two label vectors. The network then receives a synthetic point between these examples and is trained to predict a weighted target distribution.

The key word is synthetic. The mixed image is not evidence that a new animal exists halfway between the two photographs. It is a regularisation device intended to encourage a useful relationship in the model’s predictions between known training examples. This can restrain overly sharp decision boundaries that perfectly memorise individual examples yet behave erratically on nearby inputs.

The 2018 original paper mixup: Beyond Empirical Risk Minimization, by Hongyi Zhang, Moustapha Cissé, Yann Dauphin and David Lopez-Paz, proposed training on convex combinations of pairs of examples and labels. Its empirical findings apply to the tested settings and architectures, not as a guarantee that every interpolation improves every deployment.

Mixup is one form of data augmentation, but different from simply rotating an image while keeping the same label. A rotation may preserve object identity if the task is orientation-invariant. Mixup can deliberately combine examples with different labels and create a soft target. The assumption is about how desired predictions should behave along paths between observed examples, not just which physical transformations preserve class membership.

Before mixing data, define the input representation. Pixel arrays, numerical feature vectors and hidden representations permit arithmetic interpolation, though not necessarily semantic validity. Discrete word tokens, database identifiers, categorical codes and clinical categories can lose meaning under naive arithmetic. The mathematical formula only becomes a sensible training policy when its domain assumptions are defensible.

Why the mixture uses a coefficient between zero and one

A convex combination is a weighted average whose weights are nonnegative and sum to one. For two inputs, lambda is chosen in the interval from zero to one. The second weight is 1−lambda. At lambda=1, the mixed example equals A; at lambda=0, it equals B; at lambda=0.5, it is the midpoint in the representation being mixed.

The use of the same lambda for both the input and target is central. If the input is 25% A and 75% B under the chosen convention, the target is also 25% of A’s target and 75% of B’s. An implementation that uses lambda for the input and accidentally reverses the label weights would train contradictory associations. That error can go unnoticed if code still produces valid-shaped tensors.

For images, the interpolation is applied to corresponding pixel values. For numerical tabular features, it applies to selected numerical columns under their representations and units. If features have very different scales, an interpolation can still be computed, but the geometry may be dominated by variables with large numeric ranges. A valid tensor operation is not proof of an appropriate domain transformation.

The convex restriction avoids extrapolating beyond both endpoints along their line. It does not ensure the interpolated point lies on the true data manifold or represents a physically possible observation. A midpoint between an adult and child clinical profile, for example, may combine measurements in a way no actual patient could exhibit. Validity requires domain-specific scrutiny.

Multiple examples can in principle be combined using nonnegative weights that sum to one, but the classic mixup method described here uses pairs. Extending to more components introduces other choices about coefficient distributions, label semantics and computational cost. The pairwise formula is sufficiently rich to show the main mechanism.

A solved two-feature example with different labels

Consider two fictional training inputs, represented by dimensionless feature vectors: xA=(2,6) and xB=(8,2). Example A belongs to class A with one-hot target yA=(1,0). Example B belongs to class B with target yB=(0,1). Choose lambda=0.25 for A, leaving 0.75 for B. Every number in this illustration is constructed for teaching rather than drawn from a dataset.

The first mixed feature is 0.25×2 + 0.75×8 = 0.5 + 6 = 6.5. The second mixed feature is 0.25×6 + 0.75×2 = 1.5 + 1.5 = 3.0. Therefore xMix=(6.5,3.0). Both coordinates lie between their corresponding endpoints, as expected from the convex combination.

The label is mixed with exactly the same coefficients: yMix = 0.25×(1,0) + 0.75×(0,1) = (0.25,0.75). The entries are nonnegative and sum to one. They describe the synthetic target for this training operation. They do not state that the physical object represented by (6.5,3.0) is empirically 25% one kind of thing.

Suppose the model predicts class probabilities p=(0.40,0.60) on this mixed input. The soft-target cross-entropy is −0.25log(0.40) −0.75log(0.60). Using natural logarithms, −log(0.40)≈0.916291 and −log(0.60)≈0.510826. Thus the loss is 0.25×0.916291 +0.75×0.510826 ≈0.612192 nats. The denominator of a mean loss across many examples must be specified separately.

Compare a mistaken implementation that keeps the hard label B=(0,1) for this mixed input. Its loss would be −log(0.60)≈0.510826, a different objective. The smaller scalar does not prove the mistaken objective is better; it simply ignores the 25% A target mass. The correct calculation helps expose why mixup must interpolate labels as well as inputs.

Soft targets change the training signal for each class

Neural classifiers often produce unnormalised logits that are transformed into class probabilities using softmax. Cross-entropy compares those predicted probabilities with the target. Under appropriate conventional definitions, the gradient with respect to logits is predicted probability minus target probability. Mixup replaces the one-hot target with the mixed target, changing that gradient for the same input.

In the worked example, prediction p=(0.40,0.60) and mixed target q=(0.25,0.75) produce gradient p−q=(0.15,−0.15). Gradient descent then tends to decrease the logit of A relative to B for this example, because A is overpredicted relative to its mixed target. If the training code mistakenly uses hard B target (0,1), the gradient becomes (0.40,−0.40), a much stronger instruction to suppress A.

This does not imply that mixup always reduces gradient magnitude or improves every loss landscape. The direction depends on the particular prediction and chosen examples. Another pair or lambda can produce a different target. The full parameter update combines many examples, the model architecture and the optimiser state. A two-number logit calculation illustrates the local mechanism rather than whole-network behaviour.

Mixup targets also differ from probabilistic uncertainty about an individual real case. The synthetic vector (0.25,0.75) is constructed from the mixing recipe. It is not the measured posterior probability that a real patient or photograph belongs to either category. Treating it as calibrated observational uncertainty would confuse a regularisation target with evidence about the world.

The technique may still improve measured probability reliability under some conditions, but that is an empirical claim to test. The right held-out calibration and decision metrics remain necessary because producing soft training targets does not itself certify that future probabilities match observed frequencies.

Where does the mixing coefficient come from?

The original mixup method commonly samples lambda from a Beta distribution with symmetric parameters, written Beta(alpha, alpha). This is a family of distributions on values between zero and one. Its shape changes with alpha, allowing the training process to favour mixtures near original examples or closer to equal combinations. Alpha is a hyperparameter to select rather than a universal physical constant.

At alpha=1, the Beta distribution is uniform over the interval: every equal-width subinterval has the same probability. For alpha less than one, the symmetric distribution puts relatively more density near the endpoints. For alpha greater than one, it concentrates more around the midpoint 0.5. These are mathematical properties of the distribution, not claims about which alpha is best for a given model.

A coefficient near one creates an example mostly resembling A; a coefficient near zero creates one mostly resembling B. Near the midpoint, both examples contribute substantially. In image tasks, very balanced mixtures may look less like natural photographs, while near-endpoint mixtures may provide only weak regularisation. The trade-off depends on the model and the data.

Some implementations swap A and B so that lambda can be treated symmetrically or constrain which endpoint receives the larger weight. If the coefficient is replaced by max(lambda,1−lambda), the reference pair ordering must be changed consistently to preserve the same intended mixture. Do not quietly use a changed coefficient for inputs and labels.

Set random seeds where reproducibility matters, record the sampled policy and use multiple runs to assess variation. Two models trained with different random pairings can differ even if their code and alpha match. A fair comparison reports uncertainty rather than attributing one lucky run entirely to a chosen coefficient.

The sampling policy decides which relationships the model learns

Mixup pairs are often drawn from shuffled training batches, but ‘random pair’ hides choices. Do you pair within a mini-batch, across the full dataset, within each class, across different classes or subject to privacy groups? Each option produces a different synthetic distribution. Cross-class mixup teaches transitions between labelled categories; within-class mixing mostly teaches how observations of one class interpolate.

With a mini-batch of 64 original examples, a common implementation shuffles the 64 indices and mixes each example with one partner to create 64 mixed examples for that update. It does not automatically create 128 examples. You can retain the original 64 alongside the mixtures, but then the effective training objective and number of examples are different. State the batch semantics when comparing training speed and data volume.

Pairing can be inappropriate across different entities or cohorts. A medical dataset may include repeated observations of the same patient. The train-test split must be established at patient level before any augmentation, and a mixup process must not bridge into held-out patient data. Otherwise the synthetic examples can leak information that invalidates evaluation.

Data fairness matters too. If a rare category is seldom drawn, its training signal can become diluted in the abundant majority’s mixtures. A class-aware pairing policy may help some objectives, but it can also distort the intended population distribution. Analyse class counts, pairing rates and per-group error before claiming that augmentation solved imbalance.

Mixing two examples that contradict domain rules may harm learning. A categorical feature encoded as an arbitrary integer should not be interpolated as though the number had ordered physical meaning. A ‘department 1’ and ‘department 3’ mixture labelled ‘department 2’ would be an artefact of coding, not a real department. Representations must be checked before arithmetic.

Why mixup is not the same as label smoothing

Label smoothing replaces a hard label with a distribution that reserves some target mass for alternative classes, often using a uniform mixture. It can do so while leaving the input example unchanged. Mixup constructs an input between two examples and forms a soft label whose mass depends on which particular examples were combined. The two operations may both create soft targets, but their data-generating meanings differ.

With four classes A, B, C and D, uniform-mixture label smoothing at epsilon 0.10 for a true A label produces target (0.925,0.025,0.025,0.025). Mixup between an A example and a C example at lambda 0.75 instead produces (0.75,0,0.25,0). It assigns no mass to B or D because those classes were not involved in the pair. This is a material difference for optimisation and interpretation.

Combining mixup and label smoothing is possible, but the operations must be specified. If the two original labels are smoothed before interpolation, or if the final mixed target is smoothed afterward under a linear uniform-mixture rule, the arithmetic may yield the same result with matching constants; however, implementations can differ in class weights, masks and loss reductions. Verify the exact computation rather than assume labels are softened in a vague equivalent way.

The existing label smoothing guide explains target conventions, calibration and distillation. This article answers the distinct question of how interpolating examples changes the training distribution and when the virtual cases are meaningful. Both methods need independent validation, especially when confident probabilities feed into decisions.

Neither technique is an antidote to a wrong task definition. If the original dataset mixes incompatible label meanings, softening or interpolating labels can spread errors. The correct first step is to define the classes, fix the data and decide which transformations are valid for the domain.

Manifold intrusion: a virtual case can contradict a real one

The term manifold is used in machine learning for the structured region of input space where realistic observations tend to occur. A straight line between two encoded observations can pass through regions that are not realistic. That alone is not always harmful; imposing linear behaviour off the observed data can regularise a model. But a more serious problem occurs if a synthetic point conflicts with a valid original example’s label.

Consider a simple two-dimensional toy classification problem. Example A at (0,0) has class A and example B at (2,0) has class B. Their midpoint is (1,0) with synthetic target (0.5,0.5). Suppose the actual training dataset also contains a genuine observation at (1,0) that clearly belongs to class A. The model now receives conflicting supervision at exactly the same input: hard A from the real case and a split target from mixup.

That is an illustrative form of manifold intrusion. It shows that a mathematically valid convex combination may be semantically or statistically inconsistent with the task’s true labels. The analysis in MixUp as Locally Linear Out-Of-Manifold Regularization discusses this limitation and methods designed to adapt mixing policies. The precise prevalence of intrusion varies by data and interpolation choices.

An engineering remedy may be to restrict pairings, tune alpha, interpolate in a representation where the geometry is more meaningful or use another augmentation method. But each change alters the training hypothesis and should be tested on held-out real examples. A sophisticated augmentation policy is not automatically superior to plain training.

Do not treat every unusual mixed observation as a bug. Some regularisation methods intentionally train on values between the observed samples. The question is whether the resulting constraints improve relevant real-world predictions or instead force the model to learn contradictions that damage its decision boundary.

Manifold mixup interpolates hidden representations

Ordinary input mixup combines raw inputs, such as pixels or numerical feature tensors, before the model processes them. Manifold Mixup, studied by Verma and colleagues at ICML 2019, instead interpolates hidden representations at selected layers while mixing the corresponding targets. The intervention changes the geometry of the learned feature space as well as the input-output training relationship.

The original Manifold Mixup: Better Representations by Interpolating Hidden States paper reports that the method can encourage flatter class representations and improve selected supervised-learning benchmarks. Those results do not mean every hidden-state interpolation has a clear semantic interpretation, or that any layer can be mixed without understanding architecture and batching.

An intermediate tensor may contain spatial, temporal or semantic structure. Pairing the wrong positions can destroy correspondences that the network needs. In sequence models, interpolation must respect masks and valid lengths. In graph neural networks, nodes and edges need meaningful alignment. The arithmetic may be trivial while the representation assumptions are not.

Hidden-state mixup also complicates auditing. A developer can inspect a blended image, even if it looks unnatural. A blended hidden vector is difficult to interpret directly. The strongest evaluation therefore remains an independent test on authentic data under the intended deployment conditions, not aesthetic confidence that the representation has become smoother.

Method selection should follow the domain and compute budget. Manifold mixup adds choices about layers and intervention frequency; these can create additional hyperparameter search risk. Compare against the simple original method and retain a no-augmentation baseline.

CutMix uses spatial patches, not uniform pixel blending

CutMix is another augmentation strategy developed for image classification. Rather than blend every pixel of two images by the same arithmetic weight, it cuts a region from one image and pastes it into the other, with a label mixture linked to the region’s area under the method’s convention. The goal is to preserve informative image content while regularising how the model learns from regions.

The original CutMix paper by Yun and colleagues (ICCV 2019) studied image classification and related settings. Its empirical results concern the architectures and datasets examined. It should not be reinterpreted as evidence that every copied patch has a valid semantic share of the label.

Suppose a patch occupies 30% of image area and the remainder 70%. Under an area-proportional target rule, labels can be mixed as 0.30 from the pasted source and 0.70 from the base source, subject to actual implementation details and clipping. But a small patch could contain the entire object while a large background region contains little category evidence. Area is a convenient training proxy, not always a faithful object-proportion measurement.

CutMix may preserve local textures better than uniform pixel blending, while ordinary mixup may provide different smoothing of global relationships. Neither method dominates universally. If spatial location is crucial—for example, in medical segmentation or localisation—the label and mask handling must reflect the task rather than copy a classification recipe blindly.

This comparison illustrates a general principle: data augmentation makes assumptions about invariance, geometry and labels. Write down those assumptions before training. The fact that a synthetic tensor has the right shape is not proof that the target expresses a meaningful example.

Where interpolation is especially questionable

Text is a common trap. Token IDs are integers assigned by a tokenizer, not points on a meaningful linear scale. Mixing ID 101 and ID 105 to obtain 103 says nothing about the meaning of the resulting token. Interpolation can instead be considered in embeddings or hidden representations, but then the model’s architecture, masking and label semantics must be studied. Naive numeric token-ID mixup is not ordinary valid language augmentation.

Tabular records raise different issues. A home address represented by a postal code cannot be interpolated into a new real address by arithmetic. A binary medical-history variable must not become 0.4 and be treated as a literal forty-percent history unless the representation and model objective explicitly justify that interpretation. Units and constraints matter.

Time-series input may encode event order and physics. Mixing two signals with different phase or time alignment can create unrealistic transients. For some signal classification tasks such mixtures may still help; for others they can erase precisely the temporal structure that defines the class. Align, normalise and evaluate the intended behaviour rather than merely mixing arrays.

Images can carry sensitive semantics. A mixture of two medical images is not a real intermediate patient and must not be treated as diagnostic evidence for one. Synthetic training data can help regularise a classifier only if the model is evaluated on authentic, appropriately consented clinical examples and safety requirements are met.

Graph and spatial models may need structure-aware augmentation rather than component-wise linear interpolation. A chemical graph’s edges are discrete relationships, and a mixture of two adjacency matrices may not represent a valid molecule. Domain-specific generative or geometric methods may be more appropriate, with their own verification costs.

A fair mixup experiment protects the untouched test set

Begin with an ordinary training baseline and a fixed held-out evaluation protocol. Select any mixup hyperparameters using only authorised training and validation data. Never mix held-out test examples into training pairs, even as one endpoint with a tiny coefficient. That would leak test information into the learned model and invalidate the claimed independent result.

Keep preprocessing consistent. If the original inputs are standardised or augmented, record the order of transformations. For group-structured data, split by relevant independent entities before any augmentation. The data-leakage guide explains why related training and testing cases can give misleadingly optimistic results even when code appears to use separate arrays.

Report normal real-example accuracy and probability quality, not just accuracy on synthetic mixtures. Mixed training points do not have an ordinary real-world ground-truth frequency; a model’s fit to them can improve without translating to the user’s actual task. Monitor calibration, minority outcomes, decision costs and relevant distribution shifts.

Imagine an invented test of 400 independent authentic images. A baseline correctly classifies 340, or 340/400=85%. A mixup model gets 360 correct, or 360/400=90%. The difference is five percentage points, and the relative accuracy increase is 5/85≈5.88%. These invented figures demonstrate how to report a result; they are not a performance claim for mixup.

Now suppose the 20 additional correct predictions all come from one frequent category while a rare safety-critical category deteriorates. The aggregate result may conceal an unacceptable trade-off. Examine per-class counts and task-specific harm. Repeatedly tuning alpha after seeing the final test performance would also compromise the experiment. Keep selection and final evaluation apart.

A good experiment repeats training under several seeds when practical and includes an ablation that changes only the mixup intervention. Adding an entirely different architecture or learning-rate schedule at the same time prevents an honest attribution of any gain to mixup.

Diagnostic faults that make mixup look better or worse than it is

Failure one: input and label weights are reversed. Repair it by printing one manually checked pair and reproducing the convex target. Failure two: the synthetic label does not sum to one or has incorrect class order. Repair it with small tensor tests and assertions before large-scale training. Failure three: raw discrete category IDs are blended as if they were continuous measurements. Repair the representation or do not use mixup.

Failure four: test examples enter the augmentation pool. Repair the split and invalidate the contaminated evaluation. Failure five: pair selection overrepresents the majority class and hurts minority recall. Audit pairing frequencies and per-class results. Failure six: an alpha value creates predominantly implausible mixtures. Inspect sample geometry and test relevant real outcomes.

Failure seven: the loss function expects integer class IDs but receives soft probability targets or vice versa. Use the framework’s documented target mode and verify a hand-calculated cross-entropy. Failure eight: mixed labels are interpreted as actual observed probability estimates. Keep synthetic supervision separate from empirical calibration.

Failure nine: an apparent improvement comes from a changed training budget, dataset size or architecture rather than the mixup policy. Report the full experimental configuration. Failure ten: the method is judged only on mean accuracy while critical subgroups lose reliability. Match metrics to user harm and review counts rather than quoting one attractive percentage.

The shared repair is to move from slogans to observable assumptions: which two examples were mixed, in what representation, with which lambda, which target was constructed, which loss was applied and which authentic examples tested generalisation. If any link is unclear, a model’s confident output does not establish that augmentation helped.

Changed-context problem: a classifier with three categories

Transfer the method to a three-class fictional classification task with classes A, B and C. Example one has features x1=(0,10) and one-hot label y1=(1,0,0). Example two has x2=(10,0) and y2=(0,0,1). Choose lambda=0.70 for the first example and 0.30 for the second. The mixed features are (0.70×0+0.30×10, 0.70×10+0.30×0)=(3,7).

The mixed label is (0.70,0,0.30), which sums to one. If the model predicts p=(0.65,0.10,0.25), the soft-target cross-entropy is −0.70log(0.65) −0.30log(0.25), with no direct target mass on B. Using natural logs, −log(0.65)≈0.430783 and −log(0.25)≈1.386294. The loss is approximately 0.70×0.430783 +0.30×1.386294 ≈0.717436 nats.

Now change a substantive condition: A and C are real categories that cannot meaningfully coexist, and the point (3,7) is a genuine observation that always belongs to B under the domain’s actual rule. The synthetic target (0.70,0,0.30) conflicts with that observed B label. The arithmetic is correct; the assumption that interpolation creates helpful supervision is not.

A plausible repair is to restrict mixup to pairs whose interpolation is appropriate, change representation, or abandon mixup for this task. The answer is not to relabel the real B point as ‘mostly A’ because the synthetic recipe says so. Independent empirical evidence and the domain ontology take priority over a convenient training operation.

Finally, compare against the previously published label smoothing explanation. A uniformly smoothed target for A would assign some mass to B even without mixing example C. That is a different assumption from the mixup recipe. The transfer exercise shows how to identify the assumption instead of substituting techniques because both yield soft labels.

What mixup cannot guarantee

Mixup is a regularisation method, not a universal model improvement. It can help when interpolation promotes useful smoothness, and it can hurt when virtual inputs violate semantic or decision constraints. Effects depend on dataset geometry, labels, task, architecture, optimiser, pairing policy and lambda distribution.

Original research found improvements on particular image, speech and tabular benchmarks. Such studies do not prove that every modern large language model, clinical classifier or small business dataset benefits. A responsible user should reproduce gains under their own independent evaluation and describe failure cases.

Mixup does not manufacture new factual observations. A model trained on blended images has not collected additional real-world evidence; it has been regularised using synthetic combinations of existing observations. It cannot fix fundamentally wrong labels, missing categories, unrepresentative sampling or unauthorised data use.

It does not guarantee calibrated probabilities or robustness to all adversarial inputs. An augmentation may improve selected benchmarks while failing on a different corruption or shift. Confidence claims require direct measurement, and safety-critical systems need controls outside the training loss.

Finally, constructing virtual examples changes the learning objective. The right training recipe is the one that produces useful, reliable performance for the actual reader job, not the one with the cleverest synthetic image.

Frequently asked questions

What is mixup data augmentation? It trains a model on weighted combinations of pairs of inputs and the corresponding weighted combinations of labels. The aim is useful smooth behaviour between examples, not a claim that the mixed input is a real observation.

What does lambda mean? Lambda is the weight assigned to the first example in a convex pair. The second receives 1−lambda. The same weights must be applied consistently to inputs and targets.

Why are mixup labels soft? Because the pair may belong to different classes. The target records the synthetic mixing proportions, not an independently measured probability for a real-world object.

How is mixup different from label smoothing? Smoothing may soften an unchanged example toward a uniform class distribution. Mixup changes the input and generates a target from the particular paired labels.

What happens at lambda=0 or 1? The mixed pair becomes one of the original examples, assuming the corresponding endpoint is selected consistently for both input and label.

Why sample from Beta(alpha,alpha)? It provides a tunable distribution of convex coefficients. The hyperparameter controls how often mixes are near endpoints or nearer the midpoint; no value is universally best.

What is manifold intrusion? It is a situation in which a synthetic mixed example and target conflict with the underlying data structure or real labelled examples. The arithmetic can be correct while the training signal is harmful.

Can I apply mixup to text token IDs? Not naively. Token IDs are discrete symbols without a meaningful numeric interpolation. Embedding or hidden-state mixing is a different, more carefully specified approach.

Should validation data be mixed? Use authentic held-out validation and test examples for the primary deployment question. Do not leak held-out examples into any training augmentation pool.

Does mixup always improve calibration? No. Probability reliability has to be measured on appropriate independent real data; soft training targets alone are not a calibration certificate.

Reader pathways and original research

If you are learning mathematics for machine learning, start with two feature vectors and one-hot targets, then reproduce the mix and its cross-entropy. Try coefficients 0, 0.25, 0.5 and 1, and explain what each endpoint means. The calculation illustrates linear interpolation without pretending every numerical midpoint is a real-world item.

If you train image classifiers, begin with a controlled baseline, documented pair sampling, a held-out authentic test set and visual inspection of example mixtures. Compare performance by class and under relevant shifts. If the augmentation helps only a popular class while harming an important rare class, investigate the actual objective rather than declaring success from an average.

If you train on text, tabular or clinical data, challenge the interpolation assumptions before implementation. Test whether feature scales, categorical values, subject identity and privacy constraints permit the operation. If not, select another transformation with clear semantics and measure its effect honestly.

Original primary sources: Zhang and colleagues, mixup: Beyond Empirical Risk Minimization (ICLR 2018); Verma and colleagues, Manifold Mixup (ICML 2019); Yun and colleagues, CutMix (ICCV 2019); and Guo, Mao and Zhang, MixUp as Locally Linear Out-Of-Manifold Regularization.

Related eduKate pathways: label smoothing, honest data splitting, and How AI Works. The worked arithmetic is independently checkable and illustrative; no model training or deployment is claimed.