SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.00800 · EMNLP · 2021

Iconary: A Pictionary-Based Game for Testing Multimodal Communication with Drawings and Text

Ali Farhadi, Jordi Salvador, Aniruddha Kembhavi, Sachin Mehta, Hannaneh Hajishirzi, Alvaro Herrasti, Jonghyun Choi, Dustin Schwenk, Mark Yatskar, Oren Etzioni, Carissa Schoenick, Christopher Clark, and 4 more

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2112.00800.json · badge: /api/ran/2112.00800.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
allenai/iconary canonical (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
FunctionStatusWhere it lives
get_icon_tokens Ran
ran on a synthesized input
allenai/iconary/iconary/models/drawing_to_text.py
code served (permissive licence) · get_code("6aeb9b6b8d1117e0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Define the mapping that the function uses
REMAP_NAMES = {'arrow_straight': 'arrow', 'curved arrow2': 'curved arrow', 'curved arrow': 'curved arrow'}

# Set up test arguments
ARGS = {
    'icon_name': 'arrow_straight',
    'icon_token_cache': {}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_soft_win_leeway Ran
ran on a synthesized input
allenai/iconary/iconary/eval/eval_guess.py
code served (permissive licence) · get_code("b625e8b10728c9d5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    "phrase_len": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_tokens_with_space Ran
ran on a synthesized input
allenai/iconary/iconary/models/t5_decoding.py
code served (permissive licence) · get_code("0f0e3c476a76aaa4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family int, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from transformers import T5Tokenizer

torch.manual_seed(0)

# Create a minimal stand-in T5Tokenizer with the required methods
class MockT5Tokenizer(T5Tokenizer):
    def __init__(self):
        # Minimal initialization - we just need get_vocab() to work
        self.vocab = {
            '▁hello': 0,
            '▁world': 1,
            'ing': 2,
            '▁test': 3,
            'ed': 4,
            '▁code': 5,
        }
    
    def get_vocab(self):
        return self.vocab

# Create the tokenizer instance
tokenizer = MockT5Tokenizer()

# Define arguments
ARGS = {
    'tokenizer': tokenizer,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family int, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
t5_construct_labels Ran
ran on a synthesized input
allenai/iconary/iconary/models/t5_models.py
code served (permissive licence) · get_code("6c85723b1c1d9f86")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family int, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small test tensors
batch_size = 2
sequence_length = 4

# decoder_input_ids: token IDs, shape (batch_size, sequence_length)
decoder_input_ids = torch.tensor([
    [101, 102, 103, 104],
    [201, 202, 203, 204]
], dtype=torch.long)

# decoder_attention_mask: binary mask indicating valid tokens, shape (batch_size, sequence_length)
decoder_attention_mask = torch.tensor([
    [1, 1, 1, 0],
    [1, 1, 0, 0]
], dtype=torch.long)

ARGS = {
    "decoder_input_ids": decoder_input_ids,
    "decoder_attention_mask": decoder_attention_mask,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_starts_word Not yet run
unverified (harvested, no recorded run)
allenai/iconary/iconary/models/t5_decoding.py
code served (permissive licence) · get_code("e460214e2611bf7a")
How it ran

no invocation recorded.

guesses_to_dictionary Not yet run
unverified (harvested, no recorded run)
allenai/iconary/iconary/models/generation.py
code served (permissive licence) · get_code("e31c68a263cbb61e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Communicating with humans is challenging for AIs because it requires a shared understanding of the world, complex semantics (e.g., metaphors or analogies), and at times multimodal gestures (e.g., pointing with a finger, or an arrow in a diagram). We investigate these challenges in the context of Iconary, a collaborative game of drawing and guessing based on Pictionary, that poses a novel challenge for the research community. In Iconary, a Guesser tries to identify a phrase that a Drawer is drawing by composing icons, and the Drawer iteratively revises the drawing to help the Guesser in response. This back-and-forth often uses canonical scenes, visual metaphor, or icon compositions to express challenging words, making it an ideal test for mixing language and visual/symbolic communication in AI. We propose models to play Iconary and train them on over 55,000 games between human players. Our models are skillful players and are able to employ world knowledge in language models to play with words unseen during training. Elite human players outperform our models, particularly at the drawing task, leaving an important gap for future research to address. We release our dataset, code, and evaluation setup as a challenge to the community at github.com/allenai/iconary. Annotations 18.5%, 22.0% A noun is drawn by composing multiple icons, such as drawing 'sprinkler' with a spray bottle, drop, and fountain icons. Composition 47.5%, 64.0% Arrows, crosses, checkmarks, or circles guide interpretation, such as an arrow to indicate a part or crosses to specify incorrect options. Repurposing 22.5%, 32.0% An icon is used to represent an object different than its intended meaning, such as a scarf for 'scabbard', or box + ring for 'boxing ring'. Verb Scene 25.0%, 44.5% Multiple icons are arranged in a scene to indicate the verb. Verb Icon 41.0%, 25.5% A single icon is used to indicate the verb, such as hammer for 'building' or eyes for 'reading'. 22.0%, 25.5% The verb is indicated by using arrows to show motion.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2112.00800")
get_code_for_paper("2112.00800")
have("2112.00800")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2112.00800.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2112.00800.svg)](https://syntology.ai/paper/2112.00800)

Connect an agent — have() is free.