SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.09728 · 2019

SocialIQA: Commonsense Reasoning about Social Interactions

arXiv · PDF · Open in the Atlas

Code that ran

5 of 10 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 5 have no contract verdict; 0 failures of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/1904.09728.json · badge: /api/ran/1904.09728.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
clear-nus/llm-human-model community (classifier label)
classifier basis not recorded on the link
5 ran · 5 no recorded run
FunctionStatusWhere it lives
generate_completion_t5 Ran
ran on a synthesized input
clear-nus/llm-human-model/llm_utils.py
code served (permissive licence) · get_code("94d3875543a29881")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch.nn as nn
from transformers import T5ForConditionalGeneration, T5Tokenizer

torch.manual_seed(0)

# Create a minimal T5 model stand-in
class MiniT5Model(nn.Module):
    def __init__(self):
        super().__init__()
        self.shared = nn.Embedding(100, 8)
        self.encoder = nn.TransformerEncoderLayer(d_model=8, nhead=2, batch_first=True)
        self.decoder = nn.TransformerDecoderLayer(d_model=8, nhead=2, batch_first=True)
        self.lm_head = nn.Linear(8, 100)
    
    def generate(self, input_ids, return_dict_in_generate=False, output_scores=False, max_new_tokens=512):
        # Minimal generate that returns a SimpleNamespace with sequences
        batch_size = input_ids.shape[0]
        seq_len = input_ids.shape[1]
        # Generate dummy output sequences (batch_size, max_new_tokens)
        output_sequences = torch.randint(0, 100, (batch_size, max_new_tokens))
        
        class GenerateOutput:
            def __init__(self, sequences):
                self.sequences = sequences
        
        return GenerateOutput(sequences=output_sequences)

# Create a minimal T5 tokenizer stand-in
class MiniT5Tokenizer:
    def __init__(self):
        self.vocab_size = 100
    
    def __call__(self, texts, return_tensors=None, padding=False):
        if isinstance(texts, str):
            texts = [texts]
        
        batch_size = len(texts)
        max_len = max(len(t.split()) for t in texts) + 1
        
        input_ids = torch.randint(0, self.vocab_size, (batch_size, max_len))
        
        class TokenizerOutput:
            def __init__(self, input_ids_tensor):
                self.input_ids = input_ids_tensor
        
        return TokenizerOutput(input_ids_tensor=input_ids)
    
    def batch_decode(self, sequences, skip_special_tokens=False):
        # Return dummy decoded strings
        batch_size = sequences.shape[0]
        return [f"generated text {i}" for i in range(batch_size)]

# Construct arguments
input_texts = ["Hello world", "How are you"]
t5_model = MiniT5Model()
t5_tokenizer = MiniT5Tokenizer()
batch_size = 2
show_tqdm = False

ARGS = {
    "input_texts": input_texts,
    "t5_model": t5_model,
    "t5_tokenizer": t5_tokenizer,
    "batch_size": batch_size,
    "show_tqdm": show_tqdm,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, tqdm, transformers — 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_policy Ran
ran on a synthesized input
clear-nus/llm-human-model/table_clearing/table_clearing_trust_pomdp/evaluate/llm_policy.py
code served (permissive licence) · get_code("f5e0055352d005b6")
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 dict. The image it ran in was not recorded. If your copy returns the same type 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 numpy as np

class Node:
    def __init__(self, remaining_objects, probs, children, history):
        self.remaining_objects = remaining_objects
        self.probs = probs
        self.children = children
        self.history = history

# Build a small tree structure
# Leaf node
leaf_node = Node(
    remaining_objects=[],
    probs=[],
    children=[],
    history=[('plastic bottle', False, True)]
)

# Intermediate node with children
stay_put_child = Node(
    remaining_objects=['fish can', 'wine glass'],
    probs=[],
    children=[],
    history=[('fish can', False, True)]
)

intervene_child = Node(
    remaining_objects=['wine glass'],
    probs=[],
    children=[],
    history=[('fish can', True, False)]
)

intermediate_node = Node(
    remaining_objects=['plastic bottle', 'fish can', 'wine glass'],
    probs=np.array([0.6, 0.4, 0.5, 0.5, 0.7, 0.3]),
    children=[stay_put_child, intervene_child, leaf_node, leaf_node, leaf_node, leaf_node],
    history=[('plastic bottle', False, True)]
)

# Root node
root_node = Node(
    remaining_objects=['plastic bottle', 'fish can', 'wine glass'],
    probs=np.array([0.5, 0.5, 0.6, 0.4, 0.7, 0.3]),
    children=[intermediate_node, intermediate_node, stay_put_child, intervene_child, leaf_node, leaf_node],
    history=[]
)

all_nodes = [root_node, intermediate_node, stay_put_child, intervene_child, leaf_node]

ARGS = {
    'root_node': root_node,
    'all_nodes': all_nodes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
llm_history_to_state Ran
ran on a synthesized input
clear-nus/llm-human-model/table_clearing/table_clearing_trust_pomdp/evaluate/llm_policy.py
code served (permissive licence) · get_code("0e521abe5f775f14")
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 int; 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

torch.manual_seed(0)

# Construct a valid history argument
# history is a list of tuples: (robot_action, intervention, _)
# robot_action can be 'plastic bottle', 'fish can', or 'wine glass'
# intervention is a boolean
# the third element is ignored (represented as _)

history = [
    ('plastic bottle', False, None),
    ('fish can', True, None),
    ('wine glass', False, None),
]

ARGS = {
    'history': history
}
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 list, ndim 1, dtype family int — 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
tokenize_answer_choices Ran
ran on a synthesized input
clear-nus/llm-human-model/llm_utils.py
code served (permissive licence) · get_code("af208036332d5f10")
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. The image it ran in was not recorded. If your copy returns the same type 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

# Create a minimal T5 tokenizer - we'll use a small pretrained one or mock it
try:
    t5_tokenizer = T5Tokenizer.from_pretrained('t5-small')
except Exception:
    # Fallback: create a minimal mock tokenizer if download fails
    class MockT5Tokenizer:
        def __call__(self, text):
            # Simple mock: convert text to token ids
            tokens = [ord(c) for c in text]
            return type('obj', (object,), {'input_ids': [tokens]})()
        
        def decode(self, token_id):
            # Convert back from token ids to text
            if isinstance(token_id, list):
                return ''.join(chr(t) for t in token_id)
            return chr(token_id)
    
    t5_tokenizer = MockT5Tokenizer()

# Define answer choices - simple strings
answer_choices = ["yes", "no", "maybe"]

ARGS = {
    "answer_choices": answer_choices,
    "t5_tokenizer": t5_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 list — a list output has no array shape of its own; none is stated
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
translate_scenario_to_text Ran
ran on a synthesized input
clear-nus/llm-human-model/manners_db/manners_db_experiment_utils.py
code served (permissive licence) · get_code("19ada76f6fdeda7b")
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 str. The image it ran in was not recorded. If your copy returns the same type 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

ARGS = {
    'row': {
        'Number of people': '3',
        'Number of children': '1',
        'Number of people in group': '2',
        'Number of people sitting/laying in sofa?': '1',
        'Number of animals': '1',
        'Distance to closest human': 2.5,
        'Robot facing closest human?': True,
        'Closest human facing robot?': True,
        'Distance to 2nd closest human': 4.3,
        'Robot facing 2nd closest human?': False,
        '2nd closest human facing robot?': True,
        'Distance to 3rd closest human': 6.1,
        'Robot facing 3rd closest human?': True,
        '3d closest human facing robot?': False,
        'Distance to closest child': 3.2,
        'Distance to closest animal': 1.8,
        'Distance to group': 2.0,
        'Group radius': 1.5,
        'Robot facing group?': True,
        'Robot within group?': False,
        'Music playing?': True,
    }
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
create_prompt_davinci Not yet run
unverified (harvested, no recorded run)
clear-nus/llm-human-model/manners_db/manners_db_experiment_utils.py
code served (permissive licence) · get_code("d64904c8e899cc6f")
How it ran

no invocation recorded.

create_prompt_t5 Not yet run
unverified (harvested, no recorded run)
clear-nus/llm-human-model/manners_db/manners_db_experiment_utils.py
code served (permissive licence) · get_code("3eae9cd2bc0dc803")
How it ran

no invocation recorded.

get_plot_color Not yet run
unverified (harvested, no recorded run)
clear-nus/llm-human-model/table_clearing/table_clearing_trust_pomdp/general-model/plots/colors.py
code served (permissive licence) · get_code("74e6e524d6f72496")
How it ran

no invocation recorded.

get_probs_t5 Not yet run
unverified (harvested, no recorded run)
clear-nus/llm-human-model/llm_utils.py
code served (permissive licence) · get_code("34a3712826fa1956")
How it ran

no invocation recorded.

get_shade_color Not yet run
unverified (harvested, no recorded run)
clear-nus/llm-human-model/table_clearing/table_clearing_trust_pomdp/general-model/plots/colors.py
code served (permissive licence) · get_code("d83e26bf6dda6392")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 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 10 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

We introduce Social IQa, the first largescale benchmark for commonsense reasoning about social situations. Social IQa contains 38,000 multiple choice questions for probing emotional and social intelligence in a variety of everyday situations (e.g., Q: "Jordan wanted to tell Tracy a secret, so Jordan leaned towards Tracy. Why did Jordan do this?" A: "Make sure no one else could hear"). Through crowdsourcing, we collect commonsense questions along with correct and incorrect answers about social interactions, using a new framework that mitigates stylistic artifacts in incorrect answers by asking workers to provide the right answer to a different but related question. Empirical results show that our benchmark is challenging for existing question-answering models based on pretrained language models, compared to human performance (>20% gap). Notably, we further establish Social IQa as a resource for transfer learning of commonsense knowledge, achieving state-of-the-art performance on multiple commonsense reasoning tasks (Winograd Schemas, COPA).

For agents

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

get_harvested_code_for_paper("1904.09728")
get_code_for_paper("1904.09728")
have("1904.09728")

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

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

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

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

Connect an agent — have() is free.