SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.17098 · 2024

Q-value Regularized Transformer for Offline Reinforcement Learning

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 8 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
charleshsc/qt pwc_unofficial 3 of 8
FunctionStatusWhere it lives
discount_cumsum Ran charleshsc/qt/experiment.py
code served (permissive licence) · get_code("0161b27cbe3cc58d")
evaluate_episode_rtg Ran charleshsc/qt/decision_transformer/evaluation/evaluate_episodes.py
code served (permissive licence) · get_code("0137380ed2a2e128")
simple_separated_format Ran charleshsc/qt/tabulate.py
code served (permissive licence) · get_code("5cb0c55f58279f59")
create_exp_name Not yet run charleshsc/qt/logger.py
code served (permissive licence) · get_code("5e687d63bb9beb4a")
dict_to_safe_json Not yet run charleshsc/qt/logger.py
code served (permissive licence) · get_code("41279dfcda8b39e4")
evaluate_episode Not yet run charleshsc/qt/decision_transformer/evaluation/evaluate_episodes.py
code served (permissive licence) · get_code("b0010b032f2fffe3")
load_tf_weights_in_gpt2 Not yet run charleshsc/qt/decision_transformer/models/trajectory_gpt2.py
code served (permissive licence) · get_code("00a33466c69c5705")
safe_json Not yet run charleshsc/qt/logger.py
code served (permissive licence) · get_code("07afff96928bd142")

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 advancements in offline reinforcement learning (RL) have underscored the capabilities of Conditional Sequence Modeling (CSM), a paradigm that learns the action distribution based on history trajectory and target returns for each state. However, these methods often struggle with stitching together optimal trajectories from sub-optimal ones due to the inconsistency between the sampled returns within individual trajectories and the optimal returns across multiple trajectories. Fortunately, Dynamic Programming (DP) methods offer a solution by leveraging a value function to approximate optimal future returns for each state, while these techniques are prone to unstable learning behaviors, particularly in long-horizon and sparse-reward scenarios. Building upon these insights, we propose the Q-value regularized Transformer (QT), which combines the trajectory modeling ability of the Transformer with the predictability of optimal future returns from DP methods. QT learns an action-value function and integrates a term maximizing action-values into the training loss of CSM, which aims to seek optimal actions that align closely with the behavior policy. Empirical evaluations on D4RL benchmark datasets demonstrate the superiority of QT over traditional DP and CSM methods, highlighting the potential of QT to enhance the state-of-the-art in offline RL.

For agents

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

get_harvested_code_for_paper("2405.17098")
get_code_for_paper("2405.17098")
have("2405.17098")

Connect an agent — have() is free.