Cambridge / ATLAS notes

Cambridge / ATLAS · Project note

The loss went down. What did the model find?

When the validation loss fell, I wanted to know which part had improved. Were the candidates closer to the decays? Had their scores moved closer to the training labels? An invented example shows how those answers can differ. That distinction matters when I compare the model with the existing reconstruction.

Worked examples use synthetic inputs. This note contains no real ATLAS data, ATLAS simulation data or supplied research results. Data and illustration policy.

From synthetic events to detector simulation

In a controlled synthetic example, I can place a vertex and generate directions around it. That lets me check the mechanics of batching, matching and optimisation with an answer I control. A detector study introduces a different problem: measurements have uncertainty, some activity is unrelated to the target, and a collision may contain no eligible decay or more than one.

A candidate model can propose several coordinates, each with an existence score. Reference positions supply coordinate targets after an assignment. Spare slots receive absent-vertex labels. This allows the number of reported candidates to vary, while the number of slots remains fixed.

An epoch is a pass through the selected training events. Batches update the parameters; validation measures the model without those updates. Selecting a checkpoint using validation gives those events a role in development. The final test set has a later job, after the method and evaluation choices are settled.

Read the position and score separately

The coordinate term measures how far matched candidates lie from their references. The score term measures how well the slot labels are predicted. A candidate can move closer to its target while remaining below a reporting threshold. Conversely, a high score does not establish a small spatial error.

To inspect geometry, assign candidates to references before imposing the reporting rule and examine the resulting residuals. To inspect reporting, apply the score rule and count the candidates that remain. Those diagnostics answer different questions, and their selection rules belong beside the plot.

When I screened training settings, the combined validation loss and the coordinate error ranked the trials differently. In the invented comparison below I rank settings by validation loss = score loss + 0.5 × position loss. The position loss uses rescaled coordinates and event weights. XYZ mean absolute error (MAE) averages the absolute errors along the three axes in metres, giving each matched decay equal weight.

Invented comparison of two training settings
MeasureSetting ASetting B
Score loss0.400.20
Position loss0.801.00
Combined loss0.800.70
XYZ MAE (m)0.250.45

B ranks first on combined loss because of its lower score penalty. A has the smaller physical coordinate error. Using one validation formula keeps the trial ranking on a common scale.

Why a score can stay low while positions move

A known-zero-target event supplies absent labels for the candidate slots. If such events dominate an unweighted average, a model can receive considerable pressure to keep scores low. Position supervision acts only on assigned slots in events with targets. Reading losses by multiplicity helps reveal which part of the task contributes to the objective.

Class weighting can alter that balance. The weights should be estimated from training data and frozen when used for validation. A balanced objective and an ordinary localisation average have different denominators, so they need separate labels. The dataset note explains those definitions.

What to record from a longer run

A fresh short trial starts with newly initialised model weights and trains one setting for a limited number of epochs. A longer continuation resumes that trial’s saved training state and lets the same setting train for more epochs. Screening helps shortlist settings within a computing budget. A longer run tests whether they still look promising once they have had more time to learn.

I would record which validation quantity selected the saved model, its two loss components and the coordinate error. I would also check how often the model reports zero, one or several candidates for each number of eligible decays. For example, one reported candidate on the opposite side of the detector gives the right count for a one-decay event while missing the decay itself.

Events without eligible signal decays also need careful interpretation. Their response within a signal simulation is a useful diagnostic, while a background-rate estimate needs a representative background population. A category label alone cannot supply that population.

What counts as a recovered vertex?

To compare the model with the existing reconstruction, I would start with the same simulated events and eligibility rules. I would state which candidates each method reports, including the model’s existence-score cut, and apply the same spatial matching rule. A one-to-one match lets each candidate and each decay contribute at most once. The published search uses an angular match together with its event and signal selections. ATLAS displaced-vertex reconstruction efficiency.

Recovery efficiency is the number of unique matches divided by the number of eligible decays, including those in events with no usable measurements. Dividing by the number of reported candidates instead gives the matched fraction of the output. In one-decay events I would also count splits, where several reported candidates lie within the matching window of the same decay. I would count missed decays and how often both decays are recovered in two-decay events. These counts show what a single efficiency number can hide.

I would use validation events to set the score cut and compare alternatives such as merging nearby candidates. Once those choices are fixed, the held-out test set evaluates the resulting procedure. I would report the match definition alongside that comparison. Standalone vertex finding in the ATLAS muon spectrometer.

A signed Δz = zpred − ztruth records which way a prediction misses along the beam. A radial residual Δr = rpred − rtruth records whether it lies too far out or in. Mean absolute XYZ error and straight-line distance answer related but different geometric questions. The label on a plot should make that choice clear.

What happened next

The questions I wanted to pursue were increasingly concrete. Is a mean dominated by a few large misses? Which input change moves a prediction? Are the plotted events from training, validation or a final test? Each question asks for a defined comparison rather than another headline loss.

The next note uses a randomly generated teaching display to explain how coordinates, segments and candidate scores can be inspected together. Its scenes and values are synthetic, independent of the supplied research data. The point is to make the evaluation questions visible without presenting private events or numerical results.