SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.17931 · 2026

SpeechSense: A Paralinguistic-Focused Dataset for Fine-Grained Speech Sentiment Analysis

Irwin King, Wenqian Cui, Shicheng Ma

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 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; 3 failures of our instrument; 1 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/2608.17931.json · badge: /api/ran/2608.17931.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
Sher13cked/SpeechSense canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
FunctionStatusWhere it lives
train_epoch Ran
ran; our contract draft was wrong, not the code
Sher13cked/SpeechSense/training_scripts/Speech_Encoders/train_whisper.py
code served (permissive licence) · get_code("7310c07a44f8d0ab")
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
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import DataLoader

torch.manual_seed(0)

# Define a minimal model that accepts input_features and attention_mask
class MinimalModel(nn.Module):
    def __init__(self, input_dim=4, num_classes=3):
        super().__init__()
        self.linear = nn.Linear(input_dim, num_classes)
    
    def forward(self, input_features, attention_mask=None):
        # input_features: (batch_size, input_dim)
        return self.linear(input_features)

# Create a minimal dataloader with batches containing the expected keys
def create_dataloader(batch_size=2):
    batches = []
    num_batches = 2
    for _ in range(num_batches):
        batch = {
            'input_features': torch.randn(batch_size, 4),
            'attention_mask': torch.ones(batch_size, 4),
            'label': torch.randint(0, 3, (batch_size,))
        }
        batches.append(batch)
    return batches

# Setup arguments
model = MinimalModel(input_dim=4, num_classes=3)
dataloader = create_dataloader(batch_size=2)
criterion = nn.CrossEntropyLoss()
optimizer = optim.SGD(model.parameters(), lr=0.01)
device = torch.device('cpu')
epoch = 1
stage = 1

ARGS = {
    'model': model,
    'dataloader': dataloader,
    'criterion': criterion,
    'optimizer': optimizer,
    'device': device,
    'epoch': epoch,
    'stage': stage
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn, torch, tqdm — 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
validate Ran
ran; our contract draft was wrong, not the code
Sher13cked/SpeechSense/training_scripts/Speech_Encoders/train_hubert.py
code served (permissive licence) · get_code("433a8268d6debba9")
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
import torch.nn as nn
from torch.utils.data import DataLoader

torch.manual_seed(0)

# Build a minimal model that accepts audio, attention_mask and returns logits
class MinimalAudioModel(nn.Module):
    def __init__(self, num_classes=3):
        super().__init__()
        self.linear = nn.Linear(4, num_classes)
    
    def forward(self, audio, attention_mask=None):
        # audio shape: (batch_size, audio_dim)
        logits = self.linear(audio)
        return logits

# Build a minimal loss criterion
criterion = nn.CrossEntropyLoss()

# Build a model instance
model = MinimalAudioModel(num_classes=3)

# Create minimal batch data
# Each batch is a dict with 'audio', 'attention_mask', 'label'
batch_data = [
    {
        'audio': torch.randn(2, 4),  # batch_size=2, audio_dim=4
        'attention_mask': torch.ones(2, 4),  # batch_size=2, seq_len=4
        'label': torch.tensor([0, 1])  # batch_size=2
    },
    {
        'audio': torch.randn(2, 4),
        'attention_mask': torch.ones(2, 4),
        'label': torch.tensor([2, 0])
    }
]

# Create a simple DataLoader wrapper
class SimpleDataLoader:
    def __init__(self, data):
        self.data = data
    
    def __iter__(self):
        return iter(self.data)
    
    def __len__(self):
        return len(self.data)

dataloader = SimpleDataLoader(batch_data)

# Set device to CPU
device = torch.device('cpu')

ARGS = {
    'model': model,
    'dataloader': dataloader,
    'criterion': criterion,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn, torch, tqdm — 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
validate Ran
ran; our contract draft was wrong, not the code
Sher13cked/SpeechSense/training_scripts/Speech_Encoders/train_whisper.py
code served (permissive licence) · get_code("1ec1752b0208f95e")
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
import torch.nn as nn
from torch.utils.data import DataLoader

torch.manual_seed(0)

# Create a minimal model that accepts input_features and attention_mask
class MinimalModel(nn.Module):
    def __init__(self, input_dim=4, num_classes=3):
        super().__init__()
        self.linear = nn.Linear(input_dim, num_classes)
    
    def forward(self, input_features, attention_mask=None):
        # input_features: (batch_size, seq_len, input_dim)
        # attention_mask: (batch_size, seq_len)
        # Output logits: (batch_size, num_classes)
        batch_size = input_features.size(0)
        # Simple pooling: take mean across sequence dimension
        pooled = input_features.mean(dim=1)  # (batch_size, input_dim)
        logits = self.linear(pooled)  # (batch_size, num_classes)
        return logits

# Create a minimal dataset that yields dicts with required keys
class MinimalDataset:
    def __init__(self, num_samples=2, seq_len=3, input_dim=4, num_classes=3):
        self.num_samples = num_samples
        self.seq_len = seq_len
        self.input_dim = input_dim
        self.num_classes = num_classes
    
    def __len__(self):
        return self.num_samples
    
    def __getitem__(self, idx):
        return {
            'input_features': torch.randn(self.seq_len, self.input_dim),
            'attention_mask': torch.ones(self.seq_len, dtype=torch.long),
            'label': torch.randint(0, self.num_classes, (1,)).item()
        }

# Custom collate function to batch the data properly
def collate_fn(batch):
    input_features = torch.stack([torch.as_tensor(item['input_features'], dtype=torch.float32) for item in batch])
    attention_mask = torch.stack([torch.as_tensor(item['attention_mask'], dtype=torch.long) for item in batch])
    labels = torch.tensor([item['label'] for item in batch], dtype=torch.long)
    
    return {
        'input_features': input_features,
        'attention_mask': attention_mask,
        'label': labels
    }

# Instantiate components
model = MinimalModel(input_dim=4, num_classes=3)
dataset = MinimalDataset(num_samples=2, seq_len=3, input_dim=4, num_classes=3)
dataloader = DataLoader(dataset, batch_size=2, collate_fn=collate_fn)
criterion = nn.CrossEntropyLoss()
device = torch.device('cpu')

ARGS = {
    'model': model,
    'dataloader': dataloader,
    'criterion': criterion,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn, torch, tqdm — 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
train_epoch Not yet run
unverified (harvested, no recorded run)
Sher13cked/SpeechSense/training_scripts/Speech_Encoders/train_hubert.py
code served (permissive licence) · get_code("af9fa9160e102b3a")
How it ran

no invocation recorded.

Also present in other papers' code

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

Recent advances in AI have revolutionized speech processing, yet effective speech understanding requires discerning not just what is said, but how it is said. Speech Sentiment Analysis plays a critical role in decoding these paralinguistic cues for diverse real-world applications such as recruitment and customer service. However, existing Speech Sentiment Analysis research faces two primary limitations. First, dominant approaches rely on text-centric pipelines that cascade Automatic Speech Recognition with text analysis. This process inevitably discards essential acoustic features like prosody and tone, failing to capture attitudinal meanings in acoustically ambiguous utterances. Second, current benchmarks suffer from a mismatch in label granularity, prioritizing basic emotions (e.g., happy, sad) over the nuanced interpersonal stances (e.g., confident, impatient) necessary for social sensitivity. To address these limitations, we propose a novel dataset, SpeechSense, for fine-grained speech sentiment analysis. Specifically, we define a specialized 8-class taxonomy of interpersonal stances detectable primarily through prosodic cues beyond lexical content alone. We then construct a curated dataset based on this taxonomy, built from high-fidelity speech synthesis and rigorous human validation. Comprehensive experiments across multi-modal LLMs, text-only LLMs, and speech encoders demonstrate that models with acoustic access consistently outperform text-only baselines. These results empirically validate the primacy of acoustic cues in detecting subtle speaker attitudes, highlighting the necessity of SpeechSense. 1 • Information systems → Sentiment analysis; • Computing methodologies → Language resources; Neural networks; • Applied computing → Sound and music computing.

For agents

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

get_harvested_code_for_paper("2608.17931")
get_code_for_paper("2608.17931")
have("2608.17931")

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

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

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

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

Connect an agent — have() is free.