In this article
Collection structure depends on output kind; carry semantic identities rather than assuming every collected list preserves the loop hierarchy.
A model loop contains a dataset loop
An evaluation graph runs candidate models across several datasets using nested parallel loops. The author collects numeric parameters and report artifacts, then assumes that both collections have the same nested structure. The aggregator can misassociate a report with a score if it relies on that assumption instead of explicit model-and-dataset identities.
Define the desired result table before flattening anything. Every row needs to identify the candidate, the dataset and the evaluation output. A container shape is convenient structure, but it should not become the only explanation of which experiment a result belongs to.
Collected has output-kind-specific behavior
The KFP control-flow guide describes Collected with ParallelFor. It explicitly distinguishes multilevel nested parameter lists from a flat list of artifacts produced in nested loops. This is a concrete difference that an aggregator must accommodate.
Do not project a nested parameter indexing scheme onto the artifact list automatically. Build a deliberate association contract, such as explicit identities carried with each result or metadata that can be resolved reliably at the collection boundary.
Parameters and artifacts are different interfaces
The parameter guide describes serialized value outputs, while the artifact guide describes tracked artifact properties. They provide different representations of evaluation evidence, even when generated by the same loop iteration.
For a report artifact, retain its model and dataset references with the payload or an explicit metadata contract. A filename that happens to contain a candidate’s display name is weaker evidence than an unambiguous resolved identity associated with the result.
Validate coverage as well as correspondence
After collection, check that each intended model-and-dataset combination is represented under the experiment’s completion policy. Distributed shard overlap illustrates why the total number of results can look correct despite repeated or missing logical members.
Keep different dataset populations separate when ranking models. Benchmark task selection explains why scores from distinct tasks should not be treated as interchangeable observations merely because they share a common numeric type.
Test with distinguishable loop members
Use small candidate and dataset sets whose outputs make incorrect association obvious. Inspect the compiled interface and actual collected values, then verify the final table through explicit identities.
This diagnostic targets data association, not parallel performance. Once correspondence and coverage are established, the same structure can support meaningful aggregation without relying on an undocumented symmetry between collected parameter and artifact layouts.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.