﻿# CodeContests: separate problem families from submitted solutions

Keep CodeContests problems, human submissions, public and private tests, source identity, and resource constraints distinct during evaluation.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-codecontests-solution-splits/
Language: en

## Keep the problem as the primary unit

The [CodeContests release](https://github.com/google-deepmind/code_contests) contains competitive-programming problems with correct and incorrect human solutions in several languages. Multiple submissions belong to the same problem; they are not independent statements of different tasks. Expanding submissions into rows before constructing a split can place a problem's solution in training while its description appears in evaluation. Preserve the released training, validation, and test assignment, then derive any per-solution view from that grouping.

## Interpret solution status and language explicitly

The [protocol-buffer schema](https://github.com/google-deepmind/code_contests/blob/main/contest_problem.proto) separates `solutions` from `incorrect_solutions` and records the submission language. Incorrect submissions can support error analysis or repair research, but merging them into ordinary positive targets changes the learning objective. A solution's language field also affects the required runtime. Keep status, language, and problem source when exporting text pairs. The [provenance guide](/journal/document-markdown-json-provenance/) helps distinguish a human submission from a subsequently normalized or translated training example.

## Protect the boundary between visible and private tests

The schema explicitly permits public tests as model inputs and states that private tests should not be provided. It separately identifies generated tests constructed by modifying inputs and validating them with correct solutions. An export that concatenates every available field into a prompt defeats this distinction. Keep test provenance attached to every case and document which categories the model could see. A successful run against visible examples alone measures a different condition from the held-out evaluation intended by the dataset.

## Preserve source-specific metadata and constraints

Problem names can agree across sources, so a name alone is an unsafe global identifier. Difficulty gradings are also not directly comparable across the source platforms, as the schema warns. Resource limits and file-based input/output fields can affect execution beyond the algorithm itself. An editorial analysis should compare difficulties within an explicitly chosen source mapping and distinguish time-limit failures from wrong outputs. Do not infer chronological order from a contest identifier when the schema specifically notes that it is not monotonic in time.

## Bound claims to the released experiment

The [AlphaCode paper](https://arxiv.org/abs/2203.07814) explains the competitive-programming research setting associated with this collection. Its model results do not become predictions for a new model using the same data. For additional training corpora, inspect repeated statements and related tasks using [document-level leakage checks](/journal/document-level-data-split-leakage/). Proposed family grouping can help investigate translated or reformatted versions, but should be labeled as a local policy. CodeContests supports controlled program-generation research; it does not supply a universal difficulty scale or prove correctness beyond the tests and execution conditions actually used.
