SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.12787 · 2026

Do We Really Need Multimodal Emotion Language Models Larger Than 1B Parameters?

Kaiwen Zheng, Wenhao Deng, Junchen Fu, Joemon Jose, Hu Han, Xuri Ge

arXiv · PDF · Open in the Atlas

Code that ran

14 of 17 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 11 failures of our instrument; 3 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/2607.12787.json · badge: /api/ran/2607.12787.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
GAIR-Lab/Light-MER canonical (classifier label)
classifier basis: census
14 ran · 3 no recorded run
FunctionStatusWhere it lives
build_prompt Ran
ran; our contract draft was wrong, not the code
GAIR-Lab/Light-MER/train_stage2_mgrpo.py
code served (permissive licence) · get_code("09028445218f8ba8")
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

torch.manual_seed(0)

# Analyze the function:
# - face_or_frame: string parameter, one of several options
# - subtitle: string parameter
# - user_message: string parameter
# The function just constructs and returns a formatted prompt string

ARGS = {
    'face_or_frame': 'multiface_audio_face_text',
    'subtitle': 'This is a sample video subtitle with important information.',
    'user_message': 'What emotions are displayed in this video?'
}
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
calculate_discrete_zeroshot Ran
ran, honoured the contract we drafted
GAIR-Lab/Light-MER/eval_student_model.py
code served (permissive licence) · get_code("40cbaacfc5edcf01")
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, 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 os
import tempfile
import numpy as np
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a temporary directory for the epoch_root
temp_dir = tempfile.mkdtemp()
epoch_root = os.path.join(temp_dir, "epoch_0.npz")

# Create a dummy npz file for epoch_root
dummy_data = {
    'reasons': np.array([['reason1'], ['reason2']], dtype=object),
    'emotions': np.array([[0.1, 0.2], [0.3, 0.4]])
}
np.savez(epoch_root, **dummy_data)

# Create name2gt mapping (ground truth labels)
name2gt = {
    'sample_0': [0, 1],
    'sample_1': [1, 0]
}

# Create a minimal LLM class that has the methods/attributes needed
class MinimalLLM:
    def __init__(self):
        self.config = type('obj', (object,), {'hidden_size': 768})()
    
    def __call__(self, *args, **kwargs):
        return type('obj', (object,), {'logits': torch.randn(2, 100)})()

llm = MinimalLLM()

# Create a minimal tokenizer class
class MinimalTokenizer:
    def __init__(self):
        self.vocab_size = 50257
    
    def encode(self, text):
        return [1, 2, 3]
    
    def decode(self, tokens):
        return "decoded text"
    
    def __call__(self, text, **kwargs):
        return {
            'input_ids': torch.tensor([[1, 2, 3]]),
            'attention_mask': torch.tensor([[1, 1, 1]])
        }

tokenizer = MinimalTokenizer()

# Create sampling_params (typically a dict or object with sampling configuration)
sampling_params = {
    'max_tokens': 128,
    'temperature': 0.7,
    'top_p': 0.9,
    'top_k': 50
}

# Set inter_print flag
inter_print = False

# Mock the required helper functions to avoid import errors
def extract_openset_batchcalling(reason_npz, store_npz, llm, tokenizer, sampling_params):
    """Mock function to extract openset data."""
    openset_data = {
        'predictions': np.array([[0.1, 0.9], [0.8, 0.2]]),
        'labels': np.array([1, 0])
    }
    np.savez(store_npz, **openset_data)

def hitrate_metric_calculation(name2gt, openset_npz, inter_print=True):
    """Mock function to calculate hitrate and mscore."""
    return 0.85, 0.75

def wheel_metric_calculation(name2gt, openset_npz, inter_print=True):
    """Mock function to calculate wheel metric."""
    return 0.80, 0.70, 0.60

# Inject mocks into the module where calculate_discrete_zeroshot will use them
import sys
current_module = sys.modules[__name__]
current_module.extract_openset_batchcalling = extract_openset_batchcalling
current_module.hitrate_metric_calculation = hitrate_metric_calculation
current_module.wheel_metric_calculation = wheel_metric_calculation

ARGS = {
    'epoch_root': epoch_root,
    'name2gt': name2gt,
    'llm': llm,
    'tokenizer': tokenizer,
    'sampling_params': sampling_params,
    'inter_print': inter_print
}
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 tuple, ndim 1, dtype family float — a tuple 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
disabled_train Ran
ran, violated the contract we drafted
GAIR-Lab/Light-MER/my_affectgpt/models/blip2.py
code served (permissive licence) · get_code("4cb732f513d69dfd")
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) and returned SimpleModel. 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 SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = SimpleModel()

ARGS = {
    "self": model,
    "mode": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel 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
extract_gt_emotions Ran
ran; our contract draft was wrong, not the code
GAIR-Lab/Light-MER/mgrpo_reward.py
code served (permissive licence) · get_code("ae379e48873f27ab")
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 set. 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 re
from typing import Dict, List, Set, Tuple

_CANONICAL = {'happiness': 'happy', 'joy': 'happy', 'joyful': 'happy', 'pleased': 'happy', 'sadness': 'sad', 'unhappy': 'sad', 'anger': 'angry', 'mad': 'angry', 'fear': 'afraid', 'fearful': 'afraid', 'scared': 'afraid', 'worry': 'worried', 'worrying': 'worried', 'anxiety': 'anxious', 'surprised': 'surprise', 'disgusted': 'disgust', 'neutrality': 'neutral'}

_STOPWORDS = {'the', 'character', 'person', 'speaker', 'emotional', 'emotion', 'state', 'states', 'is', 'are', 'feels', 'feel', 'feeling', 'appears', 'seems', 'shows', 'showing', 'and', 'or', 'with', 'of', 'a', 'an', 'to', 'be', 'likely', 'possibly', 'might', 'may', 'main', 'identifiable', 'clearly'}

def _canonicalize(label: str) -> str:
    label = label.lower().strip()
    label = re.sub('[^a-z\\-\\s]', ' ', label)
    label = re.sub('\\s+', ' ', label).strip()
    if not label:
        return ''
    words = [w for w in label.split() if w not in _STOPWORDS]
    if not words:
        return ''
    if len(words) > 3:
        words = words[:3]
    label = ' '.join(words)
    return _CANONICAL.get(label, label)

def _split_items(text: str) -> List[str]:
    text = text.replace('[', ' ').replace(']', ' ')
    text = re.sub('\\b(and|or)\\b', ',', text, flags=re.IGNORECASE)
    return [x.strip() for x in re.split('[,;/]', text) if x.strip()]

def extract_gt_emotions(gt_emotions: str) -> Set[str]:
    return {p for p in (_canonicalize(item) for item in _split_items(str(gt_emotions))) if p}


# Setup code
ARGS = {
    'gt_emotions': 'happiness, sadness; anger/fear [surprise] or disgusted'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
extract_pred_emotions Ran
ran; our contract draft was wrong, not the code
GAIR-Lab/Light-MER/mgrpo_reward.py
code served (permissive licence) · get_code("3e8266319bc924b8")
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 set. 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 re
from typing import Dict, List, Set, Tuple

ARGS = {
    "raw_response": """Assistant: The character's emotional state is happy and joyful because they received good news. This shows their positive feelings."""
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
func_VideoReader_to_Image Ran
ran; our contract draft was wrong, not the code
GAIR-Lab/Light-MER/my_affectgpt/models/encoder.py
code served (permissive licence) · get_code("b86ee5ea961f668c")
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 3, 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
import numpy as np

torch.manual_seed(0)

# Create mock frames as tensors that can be converted to PIL Images
# The function expects frames that have .cpu().numpy() methods
# and can be cast to np.uint8 (image pixel values 0-255)
frames = [
    torch.randint(0, 256, (4, 3), dtype=torch.uint8),  # Frame 1: 4x3 image
    torch.randint(0, 256, (4, 3), dtype=torch.uint8),  # Frame 2: 4x3 image
]

ARGS = {
    "frames": frames
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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 3, 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
get_ckpt3_candidates Ran
ran; our contract draft was wrong, not the code
GAIR-Lab/Light-MER/inference_hybird.py
code served (permissive licence) · get_code("08e8d2e3c432540d")
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 tempfile
import os
import torch

# Create a temporary directory to simulate ckpt3_root
temp_dir = tempfile.mkdtemp()

# Create some dummy checkpoint files for testing
# Case 1: Single epoch checkpoint
ckpt_path_1 = os.path.join(temp_dir, 'model_000010_checkpoint.pth')
torch.save({'state': 'dummy'}, ckpt_path_1)

# Case 2: Range of checkpoints
for epoch in [5, 10, 15, 20, 25]:
    ckpt_path = os.path.join(temp_dir, f'model_{epoch:06d}_checkpoint.pth')
    torch.save({'state': 'dummy'}, ckpt_path)

# Create a stand-in config class with required attributes
class InferenceConfig:
    def __init__(self, test_epoch=None, test_epochs=None, skip_epoch=None):
        self.test_epoch = test_epoch
        self.test_epochs = test_epochs
        self.skip_epoch = skip_epoch

# For the first case: single epoch test
inference_cfg_single = InferenceConfig(
    test_epoch='10',
    test_epochs='xxx',
    skip_epoch='1'
)

ARGS = {
    'ckpt3_root': temp_dir,
    'inference_cfg': inference_cfg_single
}
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 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_face_or_frame Ran
ran; our contract draft was wrong, not the code
GAIR-Lab/Light-MER/inference_hybird.py
code served (permissive licence) · get_code("fbbd1d0f4f360856")
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 torch.nn as nn

class DatasetConfig:
    def __init__(self, face_or_frame):
        self.face_or_frame = face_or_frame

datasets_cfg_1 = {
    'mercaptionplus': DatasetConfig(face_or_frame='face'),
    'ovmerd': DatasetConfig(face_or_frame='face')
}

datasets_cfg_2 = {
    'mercaptionplus': DatasetConfig(face_or_frame='frame')
}

datasets_cfg_3 = {}

ARGS = {
    'datasets_cfg': datasets_cfg_1,
    'outside_face_or_frame': None
}
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 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
get_face_or_frame Ran
ran; our contract draft was wrong, not the code
GAIR-Lab/Light-MER/inference_stage2_mgrpo.py
code served (permissive licence) · get_code("e6c46c278111fd8f")
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


class DatasetConfig:
    def __init__(self, face_or_frame):
        self.face_or_frame = face_or_frame


datasets_cfg = {
    'mercaptionplus': DatasetConfig(face_or_frame='face'),
    'ovmerd': DatasetConfig(face_or_frame='face'),
}

outside_face_or_frame = None

ARGS = {
    'datasets_cfg': datasets_cfg,
    'outside_face_or_frame': outside_face_or_frame,
}
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
get_user_message Ran
ran; our contract draft was wrong, not the code
GAIR-Lab/Light-MER/inference_stage2_mgrpo.py
code served (permissive licence) · get_code("c20c6bb09a7bcadd")
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 torch.nn as nn

torch.manual_seed(0)

class MockDataset:
    @staticmethod
    def func_get_qa_ovlabel(sample=None, question_only=False):
        if question_only:
            return "What is the capital of France?"
        return {"question": "What is the capital of France?", "answer": "Paris"}

dataset_cls = MockDataset

zeroshot = False

outside_user_message = "Custom user message"

ARGS = {
    "dataset_cls": dataset_cls,
    "zeroshot": zeroshot,
    "outside_user_message": outside_user_message,
}
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 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
parse_emotion_labels Ran
ran; our contract draft was wrong, not the code
GAIR-Lab/Light-MER/train_stage2_mgrpo.py
code served (permissive licence) · get_code("547b549b1c2911dd")
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 ast
import numpy as np
import pandas as pd

# Test case 1: list input
value_list = ['joy', 'sadness', 'anger']

# Test case 2: tuple input
value_tuple = ('happy', 'neutral')

# Test case 3: numpy array input
value_numpy = np.array(['surprise', 'fear', 'disgust'])

# Test case 4: empty string
value_empty_string = ''

# Test case 5: NaN value
value_nan = pd.NA

# Test case 6: string representation of list
value_string_list = "['love', 'hope', 'trust']"

# Test case 7: comma-separated string
value_comma_separated = "excitement, contentment, amusement"

# Test case 8: string with brackets
value_bracketed = "[tender, grateful]"

# Test case 9: whitespace-heavy input
value_whitespace = "  [  'anxiety'  ,  'shame'  ]  "

# Test case 10: single item
value_single = "anticipation"

# Using test case 1 as the primary example
ARGS = {
    'value': ['joy', 'sadness', 'anger']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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
reward_format Ran
ran, honoured the contract we drafted
GAIR-Lab/Light-MER/mgrpo_reward.py
code served (permissive licence) · get_code("7f44239d7990d5e9")
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 float, ndim 0, dtype family float, 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)

# The function reward_format takes a single parameter: raw_response (str)
# Let's analyze what it does:
# 1. It strips the input string
# 2. It checks if it starts with TARGET_PREFIX = "The character's emotional state is "
# 3. It calls extract_pred_emotions on the raw_response
# 4. It checks for periods and counts characters
# 
# The function only needs a string parameter, so we need to construct valid test strings

# Test case 1: Valid format with prefix and complete sentence
raw_response_1 = "The character's emotional state is happy. This shows contentment."

# Test case 2: Valid format with prefix but no period
raw_response_2 = "The character's emotional state is sad"

# Test case 3: Valid format with prefix, period, and minimal text after
raw_response_3 = "The character's emotional state is angry. ok"

# Test case 4: Valid format with prefix, period, and no text after
raw_response_4 = "The character's emotional state is afraid."

# Test case 5: Invalid format (doesn't start with prefix)
raw_response_5 = "The emotion is happy because of reasons"

# We'll use the first test case as the primary argument
ARGS = {
    'raw_response': "The character's emotional state is happy. This shows contentment and joy."
}
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 float, ndim 0, dtype family float, 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
search_for_ckpt_root Ran
ran; our contract draft was wrong, not the code
GAIR-Lab/Light-MER/inference_hybird.py
code served (permissive licence) · get_code("b68a567dca89aa26")
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 os
import tempfile
import glob
from pathlib import Path

# Create a temporary directory structure with checkpoint files
temp_dir = tempfile.mkdtemp()
root1 = os.path.join(temp_dir, 'root1')
root2 = os.path.join(temp_dir, 'root2')
os.makedirs(root1, exist_ok=True)
os.makedirs(root2, exist_ok=True)

# Create checkpoint files in root1 (more checkpoints)
for i in range(5):
    checkpoint_path = os.path.join(root1, f'checkpoint_{i}')
    Path(checkpoint_path).touch()

# Create checkpoint files in root2 (fewer checkpoints)
for i in range(2):
    checkpoint_path = os.path.join(root2, f'checkpoint_{i}')
    Path(checkpoint_path).touch()

# Define the arguments
ARGS = {
    'root_candidates': [root1, root2]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
tile Ran
ran; our contract draft was wrong, not the code
GAIR-Lab/Light-MER/my_affectgpt/models/base_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from MengzhouLu/RetroMPA, is pointer only (licence: NONE) · get_code("cb33571427334815")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from MengzhouLu/RetroMPA, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

all_gather_with_grad Not yet run
unverified (harvested, no recorded run)
GAIR-Lab/Light-MER/my_affectgpt/models/base_model.py
code served (permissive licence) · get_code("0ec9fc2025c16f65")
How it ran

no invocation recorded.

calculate_dimension_zeroshot Not yet run
unverified (harvested, no recorded run)
GAIR-Lab/Light-MER/eval_student_model.py
code served (permissive licence) · get_code("45220db4e3e3a91d")
How it ran

no invocation recorded.

get_name2cls Not yet run
unverified (harvested, no recorded run)
GAIR-Lab/Light-MER/inference_stage2_mgrpo.py
code served (permissive licence) · get_code("5c30d92956df8a6e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 3 the same month, 3 later) and 14 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.

FunctionAlso present inEarliest-datedOthers named
disabled_train 173 other papers
170 dated earlier, 2 the same month, 1 later · 5 only as an assembly brick
2012.09841 (2020-12)
Taming Transformers for High-Resolution Image Synthesis
2102.05379 (2021-02)
Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
and 170 more not named here
all_gather_with_grad 91 other papers
88 dated earlier, 1 the same month, 2 later · 2 only as an assembly brick
2206.02967 (2022-06)
Masked Unsupervised Self-training for Label-free Image Classification
2210.08773 (2022-10)
Plug-and-Play VQA: Zero-shot VQA by Conjoining Large Pretrained Models with Zero Training
2302.06605 (2023-02)
UniAdapter: Unified Parameter-Efficient Transfer Learning for Cross-modal Modeling
and 88 more not named here
tile 84 other papers
82 dated earlier, 1 the same month, 1 later
2206.07699 (2022-06)
Write and Paint: Generative Vision-Language Models are Unified Modal Learners
2210.07795 (2022-10)
EfficientVLM: Fast and Accurate Vision-Language Models via Knowledge Distillation and Modal-adaptive Pruning
2210.08773 (2022-10)
Plug-and-Play VQA: Zero-shot VQA by Conjoining Large Pretrained Models with Zero Training
and 81 more not named here

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

Recent advances in multimodal large language models (MLLMs) have significantly improved the performance of multimodal emotion recognition (MER) and enabled interpretable description generation by jointly modeling video, audio, and language, etc. However, these performance improvements are often accompanied by an increase in model parameter size (e.g, at least 7B), which simultaneously incurs high computational costs and reduces inference efficiency, thereby hindering real-time deployment on resourceconstrained platforms such as robots and mobile devices. This raises a fundamental question: do we really need the multimodal MER model larger than 1B parameters for high-quality MER? In this paper, we challenge the assumption that larger models are inherently necessary and proposes a lightweight MER framework (called Light-MER), which achieves better and faster multimodal sentiment understanding and recognition through knowledge distillation. It can transfer knowledge from a strong, large-scale teacher model to a lightweight sub-billion-parameter student model, aiming to preserve rich multimodal emotion reasoning and recognition while substantially improving deployment efficiency. Specifically, we introduce two new optimization strategies to enhance knowledge transfer: (1) a new optimal transport loss that combines Sliced Wasserstein Distance with hidden-state alignment, and (2) a new multi-reward optimization strategy based on GRPO that balances MER performance and efficiency, aimed at further enhancing the learning capabilities of student models. Extensive experiments on nine benchmark datasets demonstrate that Light-MER achieves state-of-the-art performance while significantly improving inference efficiency. This highlights the strong potential of small multimodal emotion language models for future research. Code is available at https://github.com/GAIR-Lab/Light-MER.

For agents

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

get_harvested_code_for_paper("2607.12787")
get_code_for_paper("2607.12787")
have("2607.12787")

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

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

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

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

Connect an agent — have() is free.