Language Decision Transformers with Exponential Tilt for Interactive Text Environments

Nicolas Gontier, Pau Rodriguez, Issam Laradji, David Vazquez, Christopher Pal

Abstract

Text-based game environments are challenging because agents must deal with long sequences of text, execute compositional actions using text and learn from sparse rewards. We address these challenges by proposing Language Decision Transformers (LDTs), a framework that is based on transformer language models and decision transformers (DTs). Our LDTs extend DTs with 3 components: (1) exponential tilt to guide the agent towards high obtainable goals, (2) novel goal conditioning methods yielding better results than the traditional return-to-go (sum of all future rewards), and (3) a model of future observations that improves agent performance. LDTs are the first to address offline RL with DTs on these challenging games. Our experiments show that LDTs achieve the highest scores among many different types of agents on some of the most challenging Jericho games, such as Enchanter.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Jericho · All 33 Jericho gamesLDT (Return-To-Go goal condition)Average normalized score (based on best human score)42.35%offline · seeds=5 · game-count=33 · goal-condition=return-to-go · training-steps=60000 · auxiliary-next-observation-loss=0.5
Source quote
L420: Avg. Norm. │ 42.35% │ 66.16% │ 43.99% │ 61.00% │ 45.40% │ 59.84% │ 35.37% │ 52.56%
Jericho · All 33 Jericho gamesLDT (Immediate Reward goal condition)Average normalized score (based on best human score)43.99%offline · seeds=5 · game-count=33 · goal-condition=immediate-reward · training-steps=60000 · auxiliary-next-observation-loss=0.5
Source quote
L420: Avg. Norm. │ 42.35% │ 66.16% │ 43.99% │ 61.00% │ 45.40% │ 59.84% │ 35.37% │ 52.56%
Jericho · All 33 Jericho gamesLDT (Final Score goal condition)Average normalized score (based on best human score)45.40%offline · seeds=5 · game-count=33 · goal-condition=final-score · training-steps=60000 · auxiliary-next-observation-loss=0.5
Source quote
L420: Avg. Norm. │ 42.35% │ 66.16% │ 43.99% │ 61.00% │ 45.40% │ 59.84% │ 35.37% │ 52.56%
Jericho · All 33 Jericho gamesLDT (Avg. Return-To-Go goal condition)Average normalized score (based on best human score)35.37%offline · seeds=5 · game-count=33 · goal-condition=average-return-to-go · training-steps=60000 · auxiliary-next-observation-loss=0.5
Source quote
L420: Avg. Norm. │ 42.35% │ 66.16% │ 43.99% │ 61.00% │ 45.40% │ 59.84% │ 35.37% │ 52.56%
Jericho · All 33 Jericho gamesLDT without auxiliary next-observation prediction loss (λ=0.0)Average normalized score (based on best human score)32.78%offline · seeds=5 · game-count=33 · training-steps=60000 · auxiliary-next-observation-loss=0.0 · goal-conditioning-methods-averag=4
Source quote
L472: \multicolumn{2}{c|}{Average Normalized} │ 32.78% │ \multicolumn{1}{l}{} │ 54.45% │ 50.78% │ \multicolumn{1}{l}{} │ 73.78%
Jericho · All 33 Jericho gamesLDT with auxiliary next-observation prediction loss (λ=0.5)Average normalized score (based on best human score)50.78%offline · seeds=5 · game-count=33 · training-steps=60000 · auxiliary-next-observation-loss=0.5 · goal-conditioning-methods-averag=4
Source quote
L472: \multicolumn{2}{c|}{Average Normalized} │ 32.78% │ \multicolumn{1}{l}{} │ 54.45% │ 50.78% │ \multicolumn{1}{l}{} │ 73.78%
BibTeX
@misc{gontier2023language,
  author = {Nicolas Gontier and Pau Rodriguez and Issam Laradji and David Vazquez and Christopher Pal},
  title = {{Language Decision Transformers with Exponential Tilt for Interactive Text Environments}},
  year = {2023},
  eprint = {2302.05507},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.05507},
}

Loading related content...

Figure