SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1805.11122 · 2018

Differentiable Particle Filters: End-to-End Learning with Algorithmic Priors

arXiv · PDF · Open in the Atlas

Code that ran

4 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; 4 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/1805.11122.json · badge: /api/ran/1805.11122.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
tu-rbo/differentiable-particle-filters canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
akloss/differentiable_filters reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
add_to_log Ran
ran; our contract draft was wrong, not the code
tu-rbo/differentiable-particle-filters/utils/exp_utils.py
code served (permissive licence) · get_code("5e9e9c0fef8bfcfa")
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 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 numpy as np

torch.manual_seed(0)

# Analyze the function:
# - add_to_log takes two parameters: log and d
# - log needs to support .keys() method and dict-like access (log[k])
# - d needs to support .keys() method and dict-like access (d[k])
# - The function appends values from d into lists stored in log
# - Both parameters are used as dictionaries

# Create a simple log dictionary with some existing entries
log = {
    "loss": [0.5, 0.4],
    "accuracy": [0.8, 0.85]
}

# Create a dictionary d with new entries to add
d = {
    "loss": 0.3,
    "accuracy": 0.9,
    "f1_score": 0.88
}

ARGS = {
    "log": log,
    "d": d
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, 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
exp_variables_to_name Ran
ran; our contract draft was wrong, not the code
tu-rbo/differentiable-particle-filters/utils/exp_utils.py
code served (permissive licence) · get_code("bcb2efc1f2beaa92")
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 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

torch.manual_seed(0)

def exp_variables_to_name(x):
    return '_'.join(map(str, x))

ARGS = {
    'x': [1, 2, 3, 4]
}
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 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_data Ran
ran; our contract draft was wrong, not the code
akloss/differentiable_filters/differentiable_filters/example_training_code/run_example.py
code served (permissive licence) · get_code("d597fd73ac651e8f")
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 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 os
import tempfile
import shutil

# Create a temporary directory with mock tfrecord files
temp_dir = tempfile.mkdtemp()

# Create mock tfrecord files matching the expected naming pattern
dataset_name = "mnist"

# Create training files
open(os.path.join(temp_dir, f"{dataset_name}_shard_0_train_0.tfrecord"), 'w').close()
open(os.path.join(temp_dir, f"{dataset_name}_shard_1_train_1.tfrecord"), 'w').close()

# Create validation files
open(os.path.join(temp_dir, f"{dataset_name}_shard_0_val_0.tfrecord"), 'w').close()

# Create test files
open(os.path.join(temp_dir, f"{dataset_name}_shard_0_test_0.tfrecord"), 'w').close()
open(os.path.join(temp_dir, f"{dataset_name}_shard_1_test_1.tfrecord"), 'w').close()

# Create some files that should NOT be matched
open(os.path.join(temp_dir, "other_dataset_train_0.tfrecord"), 'w').close()
open(os.path.join(temp_dir, f"{dataset_name}_metadata.json"), 'w').close()

ARGS = {
    "data_dir": temp_dir,
    "data_name": dataset_name,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
sample_exp_variables Ran
ran; our contract draft was wrong, not the code
tu-rbo/differentiable-particle-filters/utils/exp_utils.py
code served (permissive licence) · get_code("dd65249b1a768c1f")
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 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 os
import itertools
import numpy as np
import tempfile
import shutil

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create some dummy files that match expected patterns
# exp_variables could be something like [['a', 'b'], [1, 2, 3]]
# which produces combinations: ('a', 1), ('a', 2), ('a', 3), ('b', 1), ('b', 2), ('b', 3)
exp_variables = [['model_v1', 'model_v2'], [0, 1]]

# Create some files with endings matching the product combinations
product = list(itertools.product(*exp_variables))
file_endings = list(map(lambda x: '_'.join(map(str, x)), product))

# Create a few dummy files to simulate existing experiment results
for i, ending in enumerate(file_endings[:2]):
    filename = f"experiment_{ending}.txt"
    filepath = os.path.join(temp_dir, filename)
    with open(filepath, 'w') as f:
        f.write(f"dummy content for {ending}")

ARGS = {
    'path': temp_dir,
    'exp_variables': exp_variables
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — 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

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

We present differentiable particle filters (DPFs): a differentiable implementation of the particle filter algorithm with learnable motion and measurement models. Since DPFs are end-to-end differentiable, we can efficiently train their models by optimizing end-to-end state estimation performance, rather than proxy objectives such as model accuracy. DPFs encode the structure of recursive state estimation with prediction and measurement update that operate on a probability distribution over states. This structure represents an algorithmic prior that improves learning performance in state estimation problems while enabling explainability of the learned model. Our experiments on simulated and real data show substantial benefits from end-to- end learning with algorithmic priors, e.g. reducing error rates by ~80%. Our experiments also show that, unlike long short-term memory networks, DPFs learn localization in a policy-agnostic way and thus greatly improve generalization. Source code is available at https://github.com/tu-rbo/differentiable-particle-filters .

For agents

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

get_harvested_code_for_paper("1805.11122")
get_code_for_paper("1805.11122")
have("1805.11122")

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

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

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

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

Connect an agent — have() is free.