SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2008.03781 · 2020

SemEval-2020 Task 8: Memotion Analysis -- The Visuo-Lingual Metaphor!

arXiv · PDF · Open in the Atlas

Code that ran

3 of 12 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 3 have no contract verdict; 0 failures of our instrument; 9 no recorded run), measured 2026-11-22; 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/2008.03781.json · badge: /api/ran/2008.03781.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
terenceylchow124/Meme-MultiModal community (classifier label)
classifier basis not recorded on the link
3 ran · 9 no recorded run
FunctionStatusWhere it lives
evaluate Ran
ran on a synthesized input
terenceylchow124/Meme-MultiModal/utils/util_train_reddit.py
code served (permissive licence) · get_code("53c1a73f8e087319")
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 tuple. 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 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 torch import nn

torch.manual_seed(0)

# Mock model that outputs predictions
class MockModel(nn.Module):
    def __init__(self, output_size=3):
        super().__init__()
        self.linear = nn.Linear(4, output_size)
    
    def forward(self, input_ids, attention_mask):
        # Just return some output based on input_ids
        return self.linear(input_ids.float())

# Mock hyperparameters
class HypParams:
    def __init__(self):
        self.use_cuda = False
        self.dataset = 'memotion'
        self.batch_size = 2
        self.n_train = 6
        self.n_valid = 4
        self.log_interval = 1
        self.clip = 1.0

# Mock criterion
class MockCriterion(nn.Module):
    def forward(self, outputs, targets):
        return nn.functional.cross_entropy(outputs, targets)

# Create valid_loader - list of batches with required keys
valid_loader = [
    {
        'input_ids': torch.randn(2, 4),
        'attention_mask': torch.ones(2, 4),
        'label': torch.tensor([0, 1])
    },
    {
        'input_ids': torch.randn(2, 4),
        'attention_mask': torch.ones(2, 4),
        'label': torch.tensor([2, 1])
    }
]

# Create train_loader
train_loader = [
    {
        'input_ids': torch.randn(2, 4),
        'attention_mask': torch.ones(2, 4),
        'label': torch.tensor([0, 1])
    },
    {
        'input_ids': torch.randn(2, 4),
        'attention_mask': torch.ones(2, 4),
        'label': torch.tensor([2, 0])
    },
    {
        'input_ids': torch.randn(2, 4),
        'attention_mask': torch.ones(2, 4),
        'label': torch.tensor([1, 2])
    }
]

# Create model and criterion
model = MockModel(output_size=3)
criterion = MockCriterion()

# Mock bert, tokenizer, feature_extractor (not used in evaluate but required by signature)
bert = None
tokenizer = None
feature_extractor = None

# Hyperparameters
hyp_params = HypParams()

ARGS = {
    'valid_loader': valid_loader,
    'hyp_params': hyp_params,
    'model': model,
    'bert': bert,
    'tokenizer': tokenizer,
    'feature_extractor': feature_extractor,
    'criterion': criterion,
    'train': False,
    'train_loader': train_loader
}
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 tuple — a tuple 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
get_activation Ran
ran on a synthesized input
terenceylchow124/Meme-MultiModal/utils/util_train.py
code served (permissive licence) · get_code("6dff50a6b6a32f0e")
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 function. 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 torch.nn as nn

torch.manual_seed(0)

class MockOutput:
    def __init__(self):
        self.last_hidden_state = torch.randn(2, 4)
        self.pooler_output = torch.randn(2, 3)

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward(self, x):
        return MockOutput()

name1_value = "hidden_state"
name2_value = "pooler_state"

ARGS = {
    "name1": name1_value,
    "name2": name2_value,
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
read_test_text Ran
ran on a synthesized input
terenceylchow124/Meme-MultiModal/utils/dataset/util_memotion.py
code served (permissive licence) · get_code("2c1dd97e9454f8f0")
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 DataFrame. 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 pandas as pd
import os
import tempfile

# Create temporary directory structure with test CSV files
temp_dir = tempfile.mkdtemp()

# Create 2000_testdata.csv with columns: ID, col1, col2, Text
test_data = pd.DataFrame({
    'ID': ['test_0', 'test_1'],
    'col1': ['data1', 'data2'],
    'col2': ['data3', 'data4'],
    'Text': ['This is a funny meme', 'This is another meme']
})
test_data_path = os.path.join(temp_dir, '2000_testdata.csv')
test_data.to_csv(test_data_path, index=False)

# Create Meme_groundTruth.csv with Labels column
# Labels format: reversed split by '_', first char is the label
meme_labels = pd.DataFrame({
    'Labels': ['meme_image_0_1', 'meme_image_1_1']
})
label_path = os.path.join(temp_dir, 'Meme_groundTruth.csv')
meme_labels.to_csv(label_path, index=False)

ARGS = {
    'test_root_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
data_loader Not yet run
unverified (harvested, no recorded run)
terenceylchow124/Meme-MultiModal/utils/util_loader.py
code served (permissive licence) · get_code("0c88c542763a7b8a")
How it ran

no invocation recorded.

evaluate Not yet run
unverified (harvested, no recorded run)
terenceylchow124/Meme-MultiModal/utils/util_train.py
code served (permissive licence) · get_code("cac98d7828027619")
How it ran

no invocation recorded.

get_data Not yet run
unverified (harvested, no recorded run)
terenceylchow124/Meme-MultiModal/utils/util_loader.py
code served (permissive licence) · get_code("684e2e3df1947e58")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
terenceylchow124/Meme-MultiModal/utils/util.py
code served (permissive licence) · get_code("bef700d6e3bccf3a")
How it ran

no invocation recorded.

metrics Not yet run
unverified (harvested, no recorded run)
terenceylchow124/Meme-MultiModal/utils/util.py
code served (permissive licence) · get_code("d513f70a7aca634e")
How it ran

no invocation recorded.

multiclass_acc Not yet run
unverified (harvested, no recorded run)
terenceylchow124/Meme-MultiModal/utils/util.py
code served (permissive licence) · get_code("9f5bae48c0cdfe77")
How it ran

no invocation recorded.

read_train_text Not yet run
unverified (harvested, no recorded run)
terenceylchow124/Meme-MultiModal/utils/dataset/util_memotion.py
code served (permissive licence) · get_code("3ba6020391a22217")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
terenceylchow124/Meme-MultiModal/utils/util_train.py
code served (permissive licence) · get_code("0f216dad249caa43")
How it ran

no invocation recorded.

train Not yet run
unverified (harvested, no recorded run)
terenceylchow124/Meme-MultiModal/utils/util_train_reddit.py
code served (permissive licence) · get_code("9030dcfb2479a83f")
How it ran

no invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

Information on social media comprises of various modalities such as textual, visual and audio. NLP and Computer Vision communities often leverage only one prominent modality in isolation to study social media. However, the computational processing of Internet memes needs a hybrid approach. The growing ubiquity of Internet memes on social media platforms such as Facebook, Instagram, and Twiter further suggests that we can not ignore such multimodal content anymore. To the best of our knowledge, there is not much attention towards meme emotion analysis. The objective of this proposal is to bring the attention of the research community towards the automatic processing of Internet memes. The task Memotion analysis released approx 10K annotated memes, with human-annotated labels namely sentiment (positive, negative, neutral), type of emotion (sarcastic, funny, offensive, motivation) and their corresponding intensity. The challenge consisted of three subtasks: sentiment (positive, negative, and neutral) analysis of memes, overall emotion (humour, sarcasm, offensive, and motivational) classification of memes, and classifying intensity of meme emotion. The best performances achieved were F1 (macro average) scores of 0.35, 0.51 and 0.32, respectively for each of the three subtasks.

For agents

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

get_harvested_code_for_paper("2008.03781")
get_code_for_paper("2008.03781")
have("2008.03781")

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

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

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

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

Connect an agent — have() is free.