SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.01952 · 2024

CACE-Net: Co-guidance Attention and Contrastive Enhancement for Effective Audio-Visual Event Localization

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 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/2408.01952.json · badge: /api/ran/2408.01952.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
brain-cog-lab/cace-net canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
aggregate_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
brain-cog-lab/cace-net/CACE/plt_fig.py
code served (permissive licence) · get_code("c34be962e1cee0c4")
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 numpy as np

torch.manual_seed(0)

# Analyze the function:
# - accuracy_data: iterated with enumerate, indexed with [idx], must support len/iteration
# - interval: used in modulo operation (idx % interval == 0), must be an int
# The function treats accuracy_data as a list-like object containing numeric values

accuracy_data = [0.5, 0.6, 0.7, 0.75, 0.8, 0.85, 0.9, 0.92]
interval = 2

ARGS = {
    "accuracy_data": accuracy_data,
    "interval": interval
}
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 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
compute_accuracy_supervised Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
brain-cog-lab/cace-net/CACE/supv_main.py
pointer only (licence: MIT); the stored copy get_code serves, from haoyi-duan/dg-sct, is pointer only (licence: NONE) · get_code("7f8930ec08c074cc")
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 haoyi-duan/dg-sct, 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.

find_classes Ran
ran; our contract draft was wrong, not the code
brain-cog-lab/cace-net/CACE/braincog/datasets/TinyImageNet.py
code served (permissive licence) · get_code("403277d0bfbb477b")
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. 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 tempfile
import os

# Create a temporary file with class names
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("cat\n")
temp_file.write("dog\n")
temp_file.write("bird\n")
temp_file.close()

ARGS = {
    "class_file": temp_file.name
}
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 — 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
make_dataset Ran
ran; our contract draft was wrong, not the code
brain-cog-lab/cace-net/CACE/braincog/datasets/TinyImageNet.py
code served (permissive licence) · get_code("5ded0879a886f3c4")
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 2, 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 shutil

# Create a temporary directory structure that mimics the expected dataset layout
temp_root = tempfile.mkdtemp()
base_folder = "tiny_imagenet"
base_path = os.path.join(temp_root, base_folder)
os.makedirs(base_path)

# Create train directory structure
train_dir = os.path.join(base_path, "train")
os.makedirs(train_dir)

# Create two dummy classes with images subdirectories
for cls_name in ["class_a", "class_b"]:
    cls_dir = os.path.join(train_dir, cls_name)
    os.makedirs(cls_dir)
    imgs_dir = os.path.join(cls_dir, "images")
    os.makedirs(imgs_dir)
    # Create dummy image files
    for i in range(2):
        img_path = os.path.join(imgs_dir, f"img_{i}.jpg")
        with open(img_path, "w") as f:
            f.write("dummy")

# Create val directory structure
val_dir = os.path.join(base_path, "val")
os.makedirs(val_dir)
val_imgs_dir = os.path.join(val_dir, "images")
os.makedirs(val_imgs_dir)

# Create dummy validation images
for i in range(2):
    img_path = os.path.join(val_imgs_dir, f"val_img_{i}.jpg")
    with open(img_path, "w") as f:
        f.write("dummy")

# Create val_annotations.txt
val_annotations_path = os.path.join(val_dir, "val_annotations.txt")
with open(val_annotations_path, "w") as f:
    f.write("val_img_0.jpg\tclass_a\n")
    f.write("val_img_1.jpg\tclass_b\n")

# Define class_to_idx mapping
class_to_idx = {
    "class_a": 0,
    "class_b": 1
}

ARGS = {
    "root": temp_root,
    "base_folder": base_folder,
    "dirname": "train",
    "class_to_idx": class_to_idx
}
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 list, ndim 2, 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
normlize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
brain-cog-lab/cace-net/CACE/att_vis.py
code served (permissive licence) · get_code("e94bfa0774663f4e")
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 3, dtype family float, shape (2, 4, 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 numpy as np

# Create a small 3D array with shape (num, row, col)
# Using shape (2, 4, 3) - 2 images, 4 rows, 3 columns
x = np.random.rand(2, 4, 3) * 200 + 10  # Values roughly in range [10, 210]

ARGS = {
    'x': x,
    'min': 0,
    'max': 255
}
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 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 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
parse_log Ran
ran, honoured the contract we drafted
brain-cog-lab/cace-net/CACE/plt_fig.py
code served (permissive licence) · get_code("8ccf5c65f536b8a8")
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 2, 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

# Create a temporary log file with sample data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.log')
temp_file.write("Epoch 1 completed in 5.23 seconds\n")
temp_file.write("Evaluation results (acc): 0.92%\n")
temp_file.write("Epoch 2 completed in 4.87 seconds\n")
temp_file.write("Evaluation results (acc): 0.95%\n")
temp_file.write("Epoch 3 completed in 5.01 seconds\n")
temp_file.write("Evaluation results (acc): 0.97%\n")
temp_file.close()

file_path = temp_file.name

ARGS = {
    'file_path': file_path
}
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 2, 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
to_percent Ran
ran; our contract draft was wrong, not the code
brain-cog-lab/cace-net/CACE/plt_fig.py
code served (permissive licence) · get_code("8788abf86694000a")
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

def to_percent(temp, position):
    return '0' if temp == 0 else '%2.f' % temp + '%'

torch.manual_seed(0)

ARGS = {
    'temp': 42.5,
    'position': 3
}
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
video_frame_sample Ran
ran, honoured the contract we drafted
brain-cog-lab/cace-net/CACE/att_vis.py
code served (permissive licence) · get_code("a16fbfc15b6fdb82")
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 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)

# Analyze the function:
# - frame_interval: used in arithmetic (l * frame_interval, i * 1.0 / sample_num * frame_interval)
#   should be a numeric value (int or float)
# - video_length: used in range(video_length), should be an int
# - sample_num: used in range(sample_num) and division (1.0 / sample_num), should be an int

ARGS = {
    "frame_interval": 10,
    "video_length": 4,
    "sample_num": 3,
}
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 list, ndim 1, 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
create_heatmap Not yet run
unverified (harvested, no recorded run)
brain-cog-lab/cace-net/CACE/att_vis.py
code served (permissive licence) · get_code("f0c6432c830d10d7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 1 later) and 6 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
find_classes 7 other papers
6 dated earlier, 1 later
2103.13027 (2021-03)
AutoMix: Unveiling the Power of Mixup for Stronger Classifiers
2209.04996 (2022-09)
Switchable Online Knowledge Distillation
2310.00258 (2023-10)
NAYER: Noisy Layer Data Generation for Efficient and Effective Data-free Knowledge Distillation
and 4 more not named here
make_dataset 3 other papers
3 dated earlier
2103.13027 (2021-03)
AutoMix: Unveiling the Power of Mixup for Stronger Classifiers
2310.00258 (2023-10)
NAYER: Noisy Layer Data Generation for Efficient and Effective Data-free Knowledge Distillation
2401.11687 (2024-01)
TIM: An Efficient Temporal Interaction Module for Spiking Transformer
compute_accuracy_supervised 1 other paper
1 dated earlier
2311.05152 (2023-11)
Cross-modal Prompts: Adapting Large Pre-trained Models for Audio-Visual Downstream Tasks

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

The audio-visual event localization task requires identifying concurrent visual and auditory events from unconstrained videos within a network model, locating them, and classifying their category. The efficient extraction and integration of audio and visual modal information have always been challenging in this field. In this paper, we introduce CACE-Net, which differs from most existing methods that solely use audio signals to guide visual information. We propose an audio-visual co-guidance attention mechanism that allows for adaptive bi-directional cross-modal attentional guidance between audio and visual information, thus reducing inconsistencies between modalities. Moreover, we have observed that existing methods have difficulty distinguishing between similar background and event and lack the fine-grained features for event classification. Consequently, we employ background-event contrast enhancement to increase the discrimination of fused feature and fine-tuned pre-trained model to extract more refined and discernible features from complex multimodal inputs. Specifically, we have enhanced the model's ability to discern subtle differences between event and background and improved the accuracy of event classification in our model. Experiments on the AVE dataset demonstrate that CACE-Net sets a new benchmark in the audio-visual event localization task, proving the effectiveness of our proposed methods in handling complex multimodal learning and event localization in unconstrained videos. Code is available at https://github.com/Brain-Cog-Lab/CACE-Net.

For agents

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

get_harvested_code_for_paper("2408.01952")
get_code_for_paper("2408.01952")
have("2408.01952")

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

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

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

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

Connect an agent — have() is free.