Autor: Mihai Nan
You have been summoned by Arcanus, the Greatest Wizard of the Realm of Words, to take part in the ONIA Winter Warmup Challenge 2025, the national competition of magic and artificial intelligence.
Arcanus has created magical images filled with symbols, shapes, and mysterious artifacts, each generated from hidden keywords. Only those with sharp eyes and a clear mind will be able to decipher their subtle meanings.
Each image combines elements from 3 carefully selected thematic grimoires, chosen from the following:
Animals – contains words representing domestic and wild animals.Christmas – contains words associated with Christmas celebrations.Fruits & Vegetables – contains words representing fruits and vegetables.Magic – contains words representing concepts and objects from the magical and fantasy world.Objects – contains words representing everyday items and furniture.Plants – contains words representing flowers and decorative plants.School Items – contains words representing school objects and educational materials.From each grimoire, Arcanus chose one word, and these 3 words were used to build a spell that generates a 1024 × 1024 image. He then added 17 more randomly selected words, resulting in 20 candidate words.
To pass the test and be chosen as Arcanus’s apprentice, you must select 5 words, from the 20, that you consider essential for constructing a spell that could generate the given image.
The table below reveals some of the spell results: the keyword combinations, the selected grimoires, and their visual effect as they materialized in Arcanus’s chamber of incantations.
| Example image | Words used | Selected grimoires |
|---|---|---|
![]() | Holly, jackal, Sunflower | Christmas, Animals, Plants |
![]() | Gingerbread, Magnolia, swan | Christmas, Plants, Animals |
![]() | potion, Christmas tree, Camellia | Magic, Christmas, Plants |
![]() | vacuum, flamingo, tablet | Objects, Animals, Education |
![]() | Fern, lantern, desk_lamp | Plants, Objects, Education |
Your task is to build an Artificial Intelligence model capable of identifying 5 relevant words for each image. Selecting these 5 words must follow these rules:
Scoring rules:
For the entire test set, the sum of all per-image scores is computed. Based on this value, the final score is calculated:
Your model must learn to recognize subtle clues and prioritize the correct words.
By his great generosity, the mighty wizard Arcanus has decided to offer you several example spells, so you and your AI-based solutions can understand the mechanisms of magical art and prepare for the final apprentice exam.
Each training sample includes:
dataset/train/<id>/image.png – the visual representation of the keyword combinationdataset/train/<id>/metadata.json, containing:
image_path: path to the imageprompt: the prompt used to generate the imagecorrect_words: the 3 keywords used in the promptcategories_used: categories from which the 3 keywords were takenword_choices: the full list of 20 words (the 3 correct ones plus 17 random ones), used for the selection taskExample JSON:
{
"image_path": "dataset/train/00001/image.png",
"prompt": "dragon, pencil, tulip, colorful, surreal, like Codenames Pictures",
"correct_words": ["dragon", "pencil", "tulip"],
"categories_used": ["animals", "school_items", "flowers"],
"word_choices": ["dragon", "pencil", "tulip", "book", "eraser", "hat", "rose", "wand", "star", "globe", "map", "chair", "desk", "coat", "shoe", "ruler", "backpack", "wand", "crayon", "flowerpot"]
}
Each test sample includes:
dataset/test/<id>/image.pngdataset/test/<id>/metadata.json, containing:
image_path: path to the imageword_choices: the complete list of 20 words (including the 3 correct ones and 17 random ones), for the selection taskAfter training your model and learning to decipher the connections between images, words, and their grimoires, the great Arcanus asks you to submit your final results as a single CSV file. This is the official parchment that apprentices submit at their magical exam.
The submission file must be in CSV format and must contain exactly the following columns:
ID – the identifier of the sample (same ID as in the dataset)word1word2word3word4word5These five words represent the most important 5 words chosen by your model from the list of 20 given for each example.
Their order is essential:
word1 – the word considered most relevant by the modelword5 – the word considered least relevant among the 5 selected🪬 Arcanus warns: “Order is the key! Without it, the magic collapses.”
ID,word1,word2,word3,word4,word5
00001,dragon,tulip,pencil,star,chair
00002,holly,jackal,sunflower,wand,globe
00003,candle,elf,peony,fox,notebook