SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.14667 · 2023

Token-Level Contrastive Learning with Modality-Aware Prompting for Multimodal Intent Recognition

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 0 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/2312.14667.json · badge: /api/ran/2312.14667.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
thuiar/TCL-MAP canonical (classifier label)
classifier basis: plan_row
8 ran · 0 no recorded run
FunctionStatusWhere it lives
Linear Ran
ran; our contract draft was wrong, not the code · constructed an object; no result was computed
thuiar/TCL-MAP/methods/TCL_MAP/SubNets/transformers_encoder/transformer.py
pointer only (licence: MIT); the stored copy get_code serves, from YvesWang/Machine_Translation_NLP, is pointer only (licence: NONE) · get_code("10865bbb99140edd")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from YvesWang/Machine_Translation_NLP, 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.

add_config_param Ran
ran; our contract draft was wrong, not the code
thuiar/TCL-MAP/configs/base.py
code served (permissive licence) · get_code("1ef6337ae6763042")
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 EasyDict. 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
from easydict import EasyDict
import sys
import types

torch.manual_seed(0)

# Create a mock config module that will be imported
mock_config_module = types.ModuleType('configs.test_config')

# Create a mock Param class
class MockParam:
    def __init__(self, old_args):
        self.hyper_param = {
            'learning_rate': 0.001,
            'batch_size': 32,
            'num_epochs': 10,
            'model_name': 'test_model'
        }

mock_config_module.Param = MockParam

# Add the mock module to sys.modules so importlib can find it
sys.modules['configs'] = types.ModuleType('configs')
sys.modules['configs.test_config'] = mock_config_module

# Create the old_args dictionary
old_args_dict = {
    'config_file_name': 'test_config',
    'existing_param': 'value1',
    'another_param': 42
}

old_args = EasyDict(old_args_dict)

ARGS = {
    'old_args': old_args,
    'config_file_name': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
easydict, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EasyDict — a EasyDict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a EasyDict 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
buffered_future_mask Ran
ran; our contract draft was wrong, not the code
thuiar/TCL-MAP/methods/TCL_MAP/SubNets/transformers_encoder/transformer.py
code served (permissive licence) · get_code("d13fbe5e7e90947f")
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 float, shape (4, 5) 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)

# The function uses:
# - tensor.size(0) to get first dimension
# - tensor.is_cuda to check device
# - tensor.device to get device
# - tensor2.size(0) if tensor2 is not None
# So we need torch tensors

tensor = torch.ones(4, 3)
tensor2 = torch.ones(5, 3)

ARGS = {
    'tensor': tensor,
    'tensor2': tensor2
}
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 float, shape (4, 5) — shape (4, 5) 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
fill_with_neg_inf Ran
ran, honoured the contract we drafted
thuiar/TCL-MAP/methods/TCL_MAP/SubNets/transformers_encoder/transformer.py
pointer only (licence: MIT); the stored copy get_code serves, from kenford953/graphcage, is pointer only (licence: NONE) · get_code("8f266b9d616de9b9")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kenford953/graphcage, 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.

load_npy Ran
ran, honoured the contract we drafted
thuiar/TCL-MAP/utils/functions.py
code served (permissive licence) · get_code("8c6bc8fd52264b46")
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 ndarray, ndim 2, dtype family float, 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 os
import numpy as np
import tempfile

# Create a temporary directory and a valid .npy file for testing
temp_dir = tempfile.mkdtemp()
test_array = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
test_file_name = "test_data.npy"
test_file_path = os.path.join(temp_dir, test_file_name)
np.save(test_file_path, test_array)

ARGS = {
    "path": temp_dir,
    "file_name": test_file_name
}
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 ndarray, ndim 2, dtype family float, 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
make_positions Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
thuiar/TCL-MAP/methods/TCL_MAP/SubNets/transformers_encoder/position_embedding.py
pointer only (licence: MIT); the stored copy get_code serves, from kenford953/graphcage, is pointer only (licence: NONE) · get_code("21958d540bd87a8c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from kenford953/graphcage, 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.

restore_model Ran
ran; our contract draft was wrong, not the code
thuiar/TCL-MAP/utils/functions.py
pointer only (licence: MIT); the stored copy get_code serves, from thuiar/mintrec2.0, is pointer only (licence: NONE) · get_code("c25b59874b2d48aa")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from thuiar/mintrec2.0, 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.

set_output_path Ran
ran; our contract draft was wrong, not the code
thuiar/TCL-MAP/utils/functions.py
code served (permissive licence) · get_code("d152ab9b27609574")
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

class Args:
    def __init__(self):
        self.output_path = tempfile.mkdtemp()
        self.model_path = "checkpoints"

ARGS = {
    "args": Args(),
    "save_model_name": "test_model_v1"
}
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 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

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 8 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 7 later) and 0 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
Linear 58 other papers
43 dated earlier, 15 later · 5 only as an assembly brick
1409.0473 (2014-09)
Neural Machine Translation by Jointly Learning to Align and Translate
1706.03762 (2017-06)
Attention Is All You Need
1904.01681 (2019-04)
Augmented Neural ODEs
and 55 more not named here
fill_with_neg_inf 16 other papers
8 dated earlier, 8 later · 3 only as an assembly brick
1906.00295 (2019-06)
Multimodal Transformer for Unaligned Multimodal Language Sequences
2007.00808 (2020-07)
Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval
2109.04096 (2021-09)
A Three-Stage Learning Framework for Low-Resource Knowledge-Grounded Dialogue Generation
and 13 more not named here
make_positions 9 other papers
4 dated earlier, 5 later · 3 only as an assembly brick
1906.00295 (2019-06)
Multimodal Transformer for Unaligned Multimodal Language Sequences
2111.08456 (2021-11)
Trustworthy Multimodal Regression with Mixture of Normal-inverse Gamma Distributions
2210.17444 (2022-10)
Multimodal Information Bottleneck: Learning Minimal Sufficient Unimodal and Multimodal Representations
and 6 more not named here
load_npy 2 other papers
2 later
2403.10943 (2024-03)
MIntRec2.0: A Large-scale Benchmark Dataset for Multimodal Intent Recognition and Out-of-scope Detection in Conversations
2509.01337 (2025-09)
LLM-Guided Semantic Relational Reasoning for Multimodal Intent Recognition
restore_model 2 other papers
2 later
2403.10943 (2024-03)
MIntRec2.0: A Large-scale Benchmark Dataset for Multimodal Intent Recognition and Out-of-scope Detection in Conversations
2405.12775 (2024-05)
Unsupervised Multimodal Clustering for Semantics Discovery in Multimodal Utterances
set_output_path 2 other papers
2 later
2403.10943 (2024-03)
MIntRec2.0: A Large-scale Benchmark Dataset for Multimodal Intent Recognition and Out-of-scope Detection in Conversations
2509.01337 (2025-09)
LLM-Guided Semantic Relational Reasoning for Multimodal Intent Recognition
add_config_param 1 other paper
1 later
2509.01337 (2025-09)
LLM-Guided Semantic Relational Reasoning for Multimodal Intent Recognition
buffered_future_mask 1 other paper
1 dated earlier
2303.13802 (2023-03)
Decoupled Multimodal Distilling for Emotion Recognition

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

Multimodal intent recognition aims to leverage diverse modalities such as expressions, body movements and tone of speech to comprehend user's intent, constituting a critical task for understanding human language and behavior in real-world multimodal scenarios. Nevertheless, the majority of existing methods ignore potential correlations among different modalities and own limitations in effectively learning semantic features from nonverbal modalities. In this paper, we introduce a token-level contrastive learning method with modality-aware prompting (TCL-MAP) to address the above challenges. To establish an optimal multimodal semantic environment for text modality, we develop a modality-aware prompting module (MAP), which effectively aligns and fuses features from text, video and audio modalities with similarity-based modality alignment and cross-modality attention mechanism. Based on the modality-aware prompt and ground truth labels, the proposed token-level contrastive learning framework (TCL) constructs augmented samples and employs NT-Xent loss on the label token. Specifically, TCL capitalizes on the optimal textual semantic insights derived from intent labels to guide the learning processes of other modalities in return. Extensive experiments show that our method achieves remarkable improvements compared to state-of-the-art methods. Additionally, ablation analyses demonstrate the superiority of the modality-aware prompt over the handcrafted prompt, which holds substantial significance for multimodal prompt learning. The codes are released at https://github.com/thuiar/TCL-MAP.

For agents

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

get_harvested_code_for_paper("2312.14667")
get_code_for_paper("2312.14667")
have("2312.14667")

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

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

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

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

Connect an agent — have() is free.