SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2025.naacl-long.257 · NAACL · 2025

AgentSense: Benchmarking Social Intelligence of Language Agents through Interactive Scenarios

Lei Chen, Zhongyu Wei, Xuanjing Huang, Rong Ye, Xinnong Zhang, Haoyu Kuang, Xinyi Mou, Jingcong Liang, Jiayu Lin, Xiawei Liu, Shiyue Yang

Open in the Atlas

Code that ran

6 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 0 have no contract verdict; 6 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/2025.naacl-long.257.json · badge: /api/ran/2025.naacl-long.257.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
ljcleo/agent_sense canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
calculate_tmpl_res Ran
ran; our contract draft was wrong, not the code
ljcleo/agent_sense/SENSE/utils/data_utils.py
code served (permissive licence) · get_code("e7ed278b942608bf")
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 json
import collections
import numpy as np
import tempfile
import os

# Create a temporary file with sample data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.jsonl')

# Write sample data with template_idx and sample_idx
sample_data = [
    {'template_idx': 0, 'sample_idx': 'sample_0'},
    {'template_idx': 0, 'sample_idx': 'sample_1'},
    {'template_idx': 1, 'sample_idx': 'sample_2'},
    {'template_idx': 1, 'sample_idx': 'sample_3'},
]

for d in sample_data:
    temp_file.write(json.dumps(d) + '\n')
temp_file.close()
input_path = temp_file.name

# Build all_res dictionary
all_res = {
    'sample_0': {
        'goal_metrics': {
            'self': 0.8,
            'others': 0.7,
            'judge_a': 0.75,
            'judge_b': 0.85,
        },
        'info_metrics': {
            'avg': 0.6
        }
    },
    'sample_1': {
        'goal_metrics': {
            'self': 0.9,
            'others': 0.65,
            'judge_a': 0.70,
            'judge_b': 0.80,
        },
        'info_metrics': {
            'avg': 0.65
        }
    },
    'sample_2': {
        'goal_metrics': {
            'self': 0.7,
            'others': 0.75,
            'judge_a': 0.72,
            'judge_b': 0.82,
        },
        'info_metrics': {
            'avg': 0.55
        }
    },
    'sample_3': {
        'goal_metrics': {
            'self': 0.85,
            'others': 0.68,
            'judge_a': 0.78,
            'judge_b': 0.88,
        },
        'info_metrics': {
            'avg': 0.70
        }
    },
}

ARGS = {
    'all_res': all_res,
    'input_path': input_path,
}
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
fill_prompt_template Ran
ran; our contract draft was wrong, not the code
ljcleo/agent_sense/SENSE/initialization.py
code served (permissive licence) · get_code("758185161ebfdfc6")
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.

from string import Template

ARGS = {
    'prompt_template': 'Hello $name, your profile is $profile. Social goal: $social_goal. Private info: $private_info. Background: $background. Description: $desc',
    'name': 'Alice',
    'profile': 'software engineer',
    'social_goal': ['make friends', 'learn new skills'],
    'private_info': 'prefers remote work',
    'background': 'graduated from MIT',
    'desc': 'friendly and outgoing person'
}
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
load_llm_config Ran
ran; our contract draft was wrong, not the code
ljcleo/agent_sense/SENSE/initialization.py
code served (permissive licence) · get_code("5f100faf0ac036a8")
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 torch

# The function load_llm_config takes an llm_config dict as input
# and wraps it in another dict with 'config_list' and 'cache_seed' keys
# We need to provide a valid dict for the llm_config parameter

llm_config_input = {
    'model': 'gpt-4',
    'api_key': 'test-api-key',
    'base_url': 'https://api.openai.com/v1'
}

ARGS = {
    'llm_config': llm_config_input
}
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 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
prepare_heter_data Ran
ran; our contract draft was wrong, not the code
ljcleo/agent_sense/SENSE/utils/label_role.py
code served (permissive licence) · get_code("35b9579bde0b9f43")
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 torch.nn as nn

# Create minimal sender and receiver models (not actually used in the function)
sender_model = "gpt-4"
receiver_model = "gpt-3.5-turbo"

# Create sample data with proper structure
data = [
    {
        'roles': {'Alice': 'sender', 'Bob': 'receiver'},
        'characters': [
            {
                'name': 'Alice',
                'description': 'A helpful assistant'
            },
            {
                'name': 'Bob',
                'description': 'Another assistant'
            }
        ]
    },
    {
        'roles': {'Charlie': 'sender', 'Diana': 'receiver'},
        'characters': [
            {
                'name': 'Charlie',
                'description': 'First character'
            },
            {
                'name': 'Diana',
                'description': 'Second character'
            }
        ]
    }
]

# Create API configuration parameters
sender_base_url = "https://api.openai.com/v1"
sender_api_key = "test-sender-key"
sender_api_type = "openai"

receiver_base_url = "https://api.openai.com/v1"
receiver_api_key = "test-receiver-key"
receiver_api_type = "openai"

ARGS = {
    'data': data,
    'sender_model': sender_model,
    'sender_base_url': sender_base_url,
    'sender_api_key': sender_api_key,
    'sender_api_type': sender_api_type,
    'receiver_model': receiver_model,
    'receiver_base_url': receiver_base_url,
    'receiver_api_key': receiver_api_key,
    'receiver_api_type': receiver_api_type
}
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
question_with_options Ran
ran; our contract draft was wrong, not the code
ljcleo/agent_sense/SENSE/utils/data_utils.py
code served (permissive licence) · get_code("23c8e49e2ec5f3e8")
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 random

ARGS = {
    'item': {
        'question': 'What is the capital of France?',
        'options': ['London', 'Paris', 'Berlin', 'Madrid']
    },
    'option_mark': 'random'
}
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
setup_logger Ran
ran; our contract draft was wrong, not the code
ljcleo/agent_sense/SENSE/utils/logger.py
code served (permissive licence) · get_code("a99342dcea6cac61")
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 Logger. 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 logging
import os
import sys
import tempfile

ARGS = {
    'name': 'test_logger',
    'save_dir': tempfile.gettempdir(),
    'distributed_rank': 0,
    'filename': 'test_log.txt'
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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

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, 1 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 5 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
setup_logger 1 other paper
1 same year, order not determinable
2505.06904 (2025-05)
EcoLANG: Efficient and Effective Agent Communication Language Induction for Social Simulation

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-24.

Repositories linked to this paper

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

Abstract

Large language models (LLMs) are increasingly leveraged to empower autonomous agents to simulate human beings in various fields of behavioral research. However, evaluating their capacity to navigate complex social interactions remains a challenge. Previous studies face limitations due to insufficient scenario diversity, complexity, and a single-perspective focus. To this end, we introduce AgentSense: Benchmarking Social Intelligence of Language Agents through Interactive Scenarios. Drawing on Dramaturgical Theory, AgentSense employs a bottom-up approach to create 1,225 diverse social scenarios constructed from extensive scripts. We evaluate LLM-driven agents through multi-turn interactions, emphasizing both goal completion and implicit reasoning. We analyze goals using ERG theory and conduct comprehensive experiments. Our findings highlight that LLMs struggle with goals in complex social scenarios, especially highlevel growth needs, and even GPT-4o requires improvement in private information reasoning. Code and data are available at https: //github.com/ljcleo/agent_sense. -Ask Monica about her secret. -Joke on Monica's reaction. -Hide her secret that she's ... -Find out Monica's secret. -Make lighthearted jokes. -Hide her secret. -Keep calm. Monica during a party with the Friends at home. No Yes Need private info inference? Chandler: -Chandler found a photo of Monica in a gym during party. Monica: -Monica attended a gym course. Chandler: -Q: What did Chandler find during the party? A: A photo of Monica in a gym. Monica: -Q: What is Monica's secret? A: Monica attended a gym course. (To Chandler) What is Monica's secret? A. Monica adopted a monkey. B. Monica found a new part-time job. C. Monica attended a gym course. D. Monica went to see her colleagues. (X): -Goal: Find out (Y)'s secret. -Goal: Make lighthearted jokes. -Private Info: (X) found a photo of (Y) in a gym during the party. (Y): -Goal: Hide (Y)'s secret. -Private Info: (Y) attended a gym course.

For agents

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

get_harvested_code_for_paper("2025.naacl-long.257")
get_code_for_paper("2025.naacl-long.257")
have("2025.naacl-long.257")

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

curl https://syntology.ai/api/ran/2025.naacl-long.257.json

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

[![Syntology run record](https://syntology.ai/api/ran/2025.naacl-long.257.svg)](https://syntology.ai/paper/2025.naacl-long.257)

Connect an agent — have() is free.