Skip to content

Availability of Neural NDE and NADE (D2RL) implementations #24

Description

@lee-scieninc

Hello TeraSim Team,

I am writing to you from a Tier 4 partner organization. We have been actively adopting TeraSim for our internal development and simulation needs. First of all, I would like to express our appreciation for this excellent research and for open-sourcing this platform. It has been very insightful for our team.

I am currently attempting to reproduce the results presented in the TeraSim paper (arXiv:2503.03629v1). While exploring the codebase to understand the generative capabilities highlighted in the paper, I noticed some discrepancies between the methodology described and the current implementation in the main branch.

Specifically, I am looking for the implementation of Neural NDE and NADE with D2RL, but they appear to be missing or replaced by rule-based placeholders.

  1. Neural NDE Implementation
    Paper Description: Section III.B.2 mentions that "NeuralNDE [2] proposed a generative framework..." and implies a model calibrated from large-scale naturalistic driving data.

Code Observation: In packages/terasim-nde-nade/terasim_nde_nade/vehicle/nde_decision_model.py, the NDEDecisionModel seems to inherit from IDMModel.

Lines 83-89 essentially return CommandType.DEFAULT, delegating control to SUMO's default behavior or the rule-based IDM, rather than a learned neural network model.

  1. NADE with D2RL (Deep RL)
    Paper Description: Section III.B.4 states that "NADE leverages dense deep reinforcement learning (D2RL)" to dynamically regulate adversity probabilities based on the evolving traffic state.

Code Observation: In packages/terasim-nde-nade/terasim_nde_nade/envs/nade.py, I could not find an RL training loop or a policy network definition.

Instead, get_IS_prob (Lines 605-639) appears to implement Importance Sampling (IS) using fixed constants (e.g., IS_MAGNITUDE_DEFAULT = 20 at Line 30) rather than a learned policy.

Questions
To help us better understand the platform and reproduce the study's results, could you please clarify the following:

Code Availability: Are the Neural NDE model weights and the D2RL inference code available in a separate branch or a different repository that we might have missed?

Release Plan: If they are not currently public, is there a plan to release the training/inference code for NADE (D2RL) and Neural NDE in the near future?

Documentation: If these components are intended to remain proprietary or internal-only, would it be possible to update the README to clarify that the public repository currently supports the rule-based (IDM/SUMO) fallback? This would greatly assist researchers in understanding the scope of the open-source release.

Thank you again for your hard work on TeraSim. We look forward to your response.

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions