Papers › Bidirectional Decoding: Improving Action Chunking via Guided Test-Time Sampling

Bidirectional Decoding: Improving Action Chunking via Guided Test-Time Sampling

30 Aug 2024arXiv:2408.17355archive 2025-07-28

Yuejiang Liu, Jubayer Ibn Hamid, Annie Xie, Yoonho Lee, Maximilian Du, Chelsea Finn

Predicting and executing a sequence of actions without intermediate replanning, known as action chunking, is increasingly used in robot learning from human demonstrations. Yet, its effects on the learned policy remain inconsistent: some studies find it crucial for achieving strong results, while others observe decreased performance. In this paper, we first dissect how action chunking impacts the divergence between a learner and a demonstrator. We find that action chunking allows the learner to better capture the temporal dependencies in demonstrations but at the cost of reduced reactivity to unexpected states. To address this tradeoff, we propose Bidirectional Decoding (BID), a test-time inference algorithm that bridges action chunking with closed-loop adaptation. At each timestep, BID samples multiple candidate predictions and searches for the optimal one based on two criteria: (i) backward coherence, which favors samples that align with previous decisions; (ii) forward contrast, which seeks samples of high likelihood for future plans. By coupling decisions within and across action chunks, BID promotes both long-term consistency and short-term reactivity. Experimental results show that our method boosts the performance of two state-of-the-art generative policies across seven simulation benchmarks and two real-world tasks. Code and videos are available at https://bid-robot.github.io.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2408.17355")

Code

Syntology Ran 7 of 14 code samples harvested from 2 repositories linked to this paper; 7 have no recorded run. Of those that ran: 7 ran with no contract checked.

By repository: official repository: 14 samples from 2 repositories, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

YuejiangLIU/bid_diffusion officialmentioned in papermentioned on GitHubpytorch report
jubayer-hamid/bid_lerobot officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 7 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

7ran
7unverified

Licence: 3 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

aggregate_stats jubayer-hamid/bid_lerobot/lerobot/common/datasets/compute_stats.py official repository ran Apache-2.0 (permissive) · 96806d7bcd376422 · report
cfg_to_group jubayer-hamid/bid_lerobot/lerobot/common/logger.py official repository ran Apache-2.0 (permissive) · 0ce2ef6e4d74b8e1 · report
flatten_dict jubayer-hamid/bid_lerobot/lerobot/common/datasets/utils.py official repository ran Apache-2.0 (permissive) · e2adf71cdd509f3e · report
get_wandb_run_id_from_filesystem jubayer-hamid/bid_lerobot/lerobot/common/logger.py official repository ran Apache-2.0 (permissive) · 34feb637b36db73f · report
hf_transform_to_torch jubayer-hamid/bid_lerobot/lerobot/common/datasets/utils.py official repository ran Apache-2.0 (permissive) · 099e51f9595e2381 · report
preprocess_observation jubayer-hamid/bid_lerobot/lerobot/common/envs/utils.py official repository ran Apache-2.0 (permissive) · e6d251290c05dab4 · report
unflatten_dict jubayer-hamid/bid_lerobot/lerobot/common/datasets/utils.py official repository ran Apache-2.0 (permissive) · ad190f7467ea58ae · report
decode_video_frames_torchvision jubayer-hamid/bid_lerobot/lerobot/common/datasets/video_utils.py official repository unverified Apache-2.0 (permissive) · 50b733cd61beee6e · report
get_image_transforms jubayer-hamid/bid_lerobot/lerobot/common/datasets/transforms.py official repository unverified Apache-2.0 (permissive) · 41456dc6464cef69 · report
load_from_videos jubayer-hamid/bid_lerobot/lerobot/common/datasets/video_utils.py official repository unverified Apache-2.0 (permissive) · 08e3707d74a100d9 · report
make_env jubayer-hamid/bid_lerobot/lerobot/common/envs/factory.py official repository unverified Apache-2.0 (permissive) · a46ac2680ddd2dbe · report
postprocess_action_batch YuejiangLIU/bid_diffusion/diffusion_policy/sampler/base.py official repository unverified licence not identified · pointer only · 597482ebd2495227 · report
preprocess_obs_batch YuejiangLIU/bid_diffusion/diffusion_policy/sampler/base.py official repository unverified licence not identified · pointer only · e1f5a88e179e4f79 · report
slice_action_batch YuejiangLIU/bid_diffusion/diffusion_policy/sampler/base.py official repository unverified licence not identified · pointer only · 205ee75fa1a06a47 · report

Tasks

Chunking

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGN

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections