LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligence


                  Zhuoling Li 1 Xiaogang Xu 2 Zhenhua Xu 3 Ser-Nam Lim 4 Hengshuang Zhao 1
                             https://lizhuoling.github.io/LARM_webpage/


                         Abstract                                      specific tasks such as object grasping and indoor naviga-
                                                                       tion (Savva et al., 2019). While notable advancements are
       Recent embodied agents are primarily built based                achieved, these agents tend to be specialist models confined
       on reinforcement learning (RL) or large language                to isolated tasks (Huang et al., 2023). To overcome this limi-
       models (LLMs). Among them, RL agents are                        tation, recent studies, including this work, employ Minecraft
       efficient for deployment but only perform very                  (Baker et al., 2022; Fan et al., 2022; Guss et al., 2019; Wang
       few tasks. By contrast, giant LLM agents (of-                   et al., 2024; Li et al., 2023) as a benchmark to explore em-
       ten more than 1000B parameters) present strong                  bodied agents with open-ended objectives and long-horizon
       generalization while demanding enormous com-                    reasoning chains.
       puting resources. In this work, we combine their
       advantages while avoiding the drawbacks by con-                 The early methods for developing such agents primarily rely
       ducting the proposed referee RL on our developed                on reinforcement learning (RL) (Fan et al., 2022). Due to the
       large auto-regressive model (LARM). Specifi-                    limited exploration efficiency of RL, these methods require
       cally, LARM is built upon a lightweight LLM                     careful reward engineering for different tasks, and the de-
       (fewer than 5B parameters) and directly outputs                 rived RL policies can mostly only complete a single simple
       the next action to execute rather than text. We                 task (Yuan et al., 2023). The advantage of RL policies is that
       mathematically reveal that classic RL feedbacks                 they are usually lightweight for real-time deployment. Dif-
       vanish in long-horizon embodied exploration and                 ferently, recent embodied works begin to investigate large
       introduce a giant LLM based referee to handle                   language models (LLMs) (Brown et al., 2020). Owing to
       this reward vanishment during training LARM.                    the extensive general knowledge and formidable reasoning
       In this way, LARM learns to complete diverse                    capabilities of LLMs, these methods demonstrate promis-
       open-world tasks without human intervention. Es-                ing results with significantly reduced domain-specific engi-
       pecially, LARM successfully harvests enchanted                  neering efforts (Wang et al., 2023a). Nevertheless, LLMs
       diamond equipment in Minecraft, which demands                   continue to exhibit several limitations. First of all, the out-
       significantly longer decision-making chains than                puts of LLMs are usually sentences or code (Zhao et al.,
       the highest achievements of prior best methods.                 2024) generated through iterative token prediction, necessi-
                                                                       tating N inference operations for N tokens. Therefore, the
                                                                       response speeds of LLMs are restricted. Secondly, recent
                                                                       research suggests that a huge model size is important for
1. Introduction                                                        an LLM to generalize well (Achiam et al., 2023), while the
In recent years, remarkable progress has been achieved                 computing resource for embodied agents is usually very lim-
in various artificial intelligence (AI) topics (LeCun et al.,          ited. Our analysis reveals that while giant LLMs with more
2015) like computer vision (He et al., 2016) and natural               than 1000B parameters like GPT-4 (Achiam et al., 2023)
language processing (Kenton & Toutanova, 2019), but most               can answer questions about exploration and crafting issues
of them lack the capacity to physically interact with the real         in Minecraft well, the performance of lightweight LLMs
world. To address this disconnect, the concept of embodied             such as LLaVA-7B (Liu et al., 2024a) is limited.
AI is introduced (Chrisley, 2003). Early embodied agents               As illustrated in Fig. 1, we aim to combine the advantages
are predominantly developed on simulation platforms for                of both RL methods and LLM methods while avoiding
   1
    The University of Hong Kong 2 The Chinese University of            their drawbacks. To this end, we first propose Large Auto-
Hong Kong 3 Tsinghua University 4 University of Central Florida.       Regressive Model (LARM), the main body of which shares
Correspondence to: Hengshuang Zhao <hszhao@cs.hku.hk>.                 the same structure as lightweight LLMs like TinyLLaVA
                                                                       (Zhou et al., 2024). This choice enables us to first pre-train
Proceedings of the 42 st International Conference on Machine           it utilizing numerous webpage data to provide it with ba-
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025
by the author(s).                                                      sic general knowledge. Taking environmental observation

                                                                   1
                        LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligence

as input, LARM predicts the next action to perform in an          practice is devising the policy into a hierarchical architec-
auto-regressive manner. Instead of generating a descriptive       ture, where a complex task is first decomposed into many
sentence composed of multiple tokens, LARM directly pro-          simple sub-tasks. Different models are trained for various
duces a single token to select the next action, which makes       sub-tasks and a leader model is built to decide the order of
LARM respond more swiftly than common LLMs.                       performing these sub-tasks (Liu et al., 2024b).
The following problem is how to train LARM. We find that          Due to its open-world characteristic, Minecraft is suitable
classic RL algorithms cannot train LARM effectively and           for exploring how to develop open-ended embodied intelli-
mathematically reveal this is because the reward feedback         gence (Feng et al., 2024). To concentrate on studying this
gradually vanishes in long-horizon embodied exploration.          problem, there are plentiful works that take a skill (e.g.,
This phenomenon can be empirically understood as even             chopping down a tree or crafting a table) as the basic model
though a policy selects the correct action, it obtains positive   output (Wang et al., 2023a). The skill could be modeled as
feedback only after the target task is completed, meaning         a well-trained policy based on reinforcement learning (Yuan
many iterations of delay. In addition, any wrong decision-        et al., 2023), an action generation model based on language
making in future iterations will cause the policy to get no       prompt (Lifshitz et al., 2023), or provided APIs. Among
positive reward, which hides the value of the current correct     these works, LLM-based methods achieve the most impres-
action. To handle this problem, we introduce referee RL.          sive results thanks to their rich general LLM knowledge
Its core idea is that we employ a referee (like a giant LLM)      (Achiam et al., 2023; Wang et al., 2023b), especially for
to provide immediate feedback about whether the just per-         giant LLMs with more than 1000B parameters like GPT-4.
formed action brings positive contribution to realizing the       However, due to the huge model sizes, these LLMs can only
final target. In this way, we efficiently distill the concerned   be deployed in remote computing clusters. There are also
generalizable knowledge of giant LLMs into our lightweight        works that try tuning a lightweight LLM like LLaMA using
end-to-end LARM policy during online exploration with-            Minecraft relevant text and then prompting the tuned LLM
out human supervision. This marks the first attempt that          to say what skill should be performed in inference (Feng
optimizes an LLM-style embodied policy through making             et al., 2024). However, the text used for tuning contains
it directly interact with the environment online.                 much irrelevant information and is not specialized for task
                                                                  execution. As the embodied text tuning data volume is also
We validate our method in both MineDojo (Fan et al., 2022)
                                                                  limited, the tuned LLMs often fail to describe what skill
and Mineflayer (PrismarineJS., 2013) environments. The
                                                                  should be performed correctly.
experimental results suggest that our method completes di-
verse challenging tasks with a single model, indicating its       Large language models. LLMs draw broad attention from
promising generalization. LARM achieves higher success            the research and industrial communities due to their rich
rates than previous counterparts, although these counter-         general knowledge and the ability to generate the answers
parts may employ a special network for each task. Notably,        to diverse kinds of questions (Chang et al., 2024). GPT-
LARM is the first method that harvests enchanted diamond          3 emerges as a milestone in the evolution of LLMs, as it
equipment in Minecraft. In addition, evaluated with an            takes the next token prediction problem as the pre-training
RTX4090 GPU, LARM runs with a speed of 0.58 second                task and showcases remarkable open-world generalization
per inference, which meets the speed requirement of online        capabilities (Brown et al., 2020). Subsequently, the fine-
high-level action scheduling.                                     tuning of GPT-3 using reinforcement learning with human
                                                                  feedback leads to the creation of ChatGPT (OpenAI, 2023)
2. Related Work                                                   and GPT-4 (Achiam et al., 2023). However, a significant
                                                                  limitation of LLMs is their inability to interpret information
Minecraft agents. Compared with other embodied bench-             in images, which are vital for humans to perceive the world.
marks, Minecraft is an open-ended platform suitable for           To overcome this problem, researchers devise strategies that
exploring building agents with long-horizon planning ca-          inject vision information into LLMs and enable LLMs to
pabilities (Fan et al., 2022). It simulates diverse weather,      perceive images. A common method is fine-tuning a small
biomes, and mobs in an unlimited 3D virtual world. Early          number of network parameters using numerous language-
methods in Minecraft are mostly based on reinforcement            image data pairs to bridge the representation gap between
learning (Frazier & Riedl, 2019) or imitation learning (Baker     text and images (Ding et al., 2023). In this way, some large
et al., 2022). Their model outputs are atom actions, e.g., a      vision-language models like LLaVA (Liu et al., 2024a) and
short movement, mouse click, or keyboard press. However,          Flamingo (Alayrac et al., 2022) are derived.
due to the huge decision space, such atom-based agents are
                                                                  RL with LLMs in embodied AI. RL can search promis-
quite challenging for optimization. Thus, these works pay
                                                                  ing decision-making policies without human intervention,
their main attention to devising strategies for alleviating the
                                                                  and LLMs are able to provide suitable search start points
optimization complexity (Scheller et al., 2020). An effective
                          LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligence



                 Efficient but Task                                                                                Efficient and
                     specialized                             Generalizable but Slow
                                                                                                                   Generalizable

               RL Agent                                      LLM Agent                                     LARM Agent (Ours)




     Common RL Agent                                               Common LLM Agent                                   LARM Agent
       Achievements                                                  Achievements                                     Achievements
                                                  More Advanced Achievements


Figure 1. Comparison among agents based on RL, LLM, and LARM. As shown, RL agents are usually task specialized, and LLM agents
are computationally expensive to deploy. By contrast, the LARM agent is efficient and generalizable. Besides, LARM presents better
performance. As shown, LARM is the first method that achieves enchanted diamond equipment in Minecraft.

based on their rich general knowledge (Laleh & Ahmad-                and is effectively framed as a Markov Decision Process
abadi, 2024). Therefore, it is natural to design ways to             symbolized by a tuple E = (S, A, P, T , R, γ, τ ). Specif-
combine them to build advanced embodied intelligence. In             ically, S is the set of all potential states. A is the action
previous works, a popular choice is training a network for           set, and every action is also called as a skill in this work.
each basic skill based on RL, and then prompting the LLM             P : S × A × S → [0, 1] represents a probability distribution
to say what skill should be used according to the task target        that governs the state transitions given states and actions.
and environment observation (Wang et al., 2023b). Never-             T is the set of all task targets. R : S → R, γ, and τ de-
theless, this paradigm is not only slow, it requires the LLM         note the reward function, discount factor, and initial state
to have sufficient knowledge about Minecraft. According to           distribution, respectively. At any discrete time step t, the
our analysis, giant LLMs own such an ability but the capa-           environment resides in a state st ∈ S, and the correspond-
bilities of lightweight LLMs are limited. Another possible           ing observation ot by a policy π is a function of this state,
choice is utilizing LLM to generate the code for calculating         expressed as ot = f (st ). This observation ot is then utilized
RL reward (Xie et al., 2024). Nevertheless, it is not always         to select the subsequent action according to at ∼ π(ot , ι),
feasible to define a reward function by writing code. For ex-        where at ∈ A and ι ∈ T denotes the given target task.
ample, in Minecraft, the information is represented as image
                                                                     In tackling the studied long-horizon embodied task, the ob-
and agent status information, which cannot be mapped as
                                                                     jective is to navigate through a sequence of intermediate
reward based on rules. To handle this problem, we propose
                                                                     states τ, s1 , s2 , . . . , sT −1 to ultimately reach the target state
to directly employ GPT-4 to read the agent status before
                                                                     sT at the final time step T . This requires the policy to gener-
and after executing a skill and judge whether the outcome
                                                                     ate a series of actions a0 , a1 , . . . , aT −1 such that each action
brought by this skill contributes to realizing the given target.
                                                                     at transitions the environment from state st to the next state
In addition, to the best of our knowledge, this is the first
                                                                     st+1 correctly, adhering to the dynamics prescribed by the
work that directly optimizes an LLM-style policy based on
                                                                     transition probability distribution P. It is crucial that each
online exploration and reinforcement learning. Our results
                                                                     intermediate state st is accurately achieved in sequence to
suggest that the rich general knowledge in LLM favors this
                                                                     ensure the policy attains the target state sT .
exploration and self-learning process.
                                                                     3.2. PPO
3. Preliminary
                                                                     Proximal Policy Optimization (PPO) (Schulman et al., 2017)
3.1. Problem Formulation                                             is a model-free reinforcement learning algorithm widely
What we study in this work can be conceptualized as an auto-         adopted for training policies in complex environments, and
regressive prediction problem involving long sequences,              our referee RL is developed based on this algorithm. A PPO
                         LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligence

policy π mainly consists of two components, the actor πa            Algorithm 1 Referee RL
and critic πc . πc is to estimate the value function Vθc (st ),     Require: Target task ι
the expected cumulative discounted reward starting from              1: Initialize the actor πa , critic πc , referee πr
state st and following π. The optimization objective of πc           2: Initialize policy exploration step T , policy update steps
is as follows:                                                          Nπ
                                                                     3: for each iteration iter do
        Lcθc = Et [(Vθc (st ) − (rt + γVθc (st+1 )))2 ],     (1)     4:    Initialize data buffer B ← ∅
                                                                     5:    for t = 1 to T do
where rt ∈ R is the reward received after taking action              6:       Get the actor observation ot ← f (st )
at in state st . To further reduce the variance of the value         7:       Get state st+1 and environment reward rt by tak-
estimate and improve stability, PPO employs the generalized                   ing at ∼ πθ (ot , ι)
advantage estimation (GAE), which is defined as:                     8:       Get auxiliary reward rbt ← πr (ι, st , at , at+1 )
                           T −1                                      9:       Add transition B ← B ∪{(st , ot , at , st+1 , rt , rbt )}
                           X
                    At =         (γλ)k−t δk ,                (2)    10:    end for
                           k=t                                      11:    for n = 1 to Nπ do
                                                                    12:       Sample a random training data batch
where λ is a factor balancing between temporal differ-                        {(st , ot , at , st+1 , rt , rbt }B
                                                                                                                j=1 ∼ B
ence (TD) learning and Monte Carlo estimation, and δk               13:       Optimize πa and with respect to Eq. (1)∼(4)
denotes the TD-error, which is formulated as δk = rk +              14:    end for
γVθc (sk+1 ) − Vθc (sk ). With At , the objective function for      15: end for
the critic πa can be given as:

                                πa (at |st )                        task. As we train the critic πc using the very imbalanced
                 Laθa = Et [                   At ],         (3)
                               πaold (at |st )                      reward set {rk }Tk=t described in Eq. (5) with respect to the
                                                                    optimization objective in Eq. (1), we can infer that the output
where and πaold is the old actor policy before weight update        of πc gradually converges to Vθc (sk ) − γVθc (sk+1 ) ≈ −ε.
and πa (at |st ) is the current actor. To improve the training      In this way, the corresponding TD error set {δt }Tt=1 −1
                                                                                                                             is:
stability, PPO further develops a clipped surrogate objective
based on Eq. (3), which can be formulated as:                                      (
                                                                                    0, if k = t, t + 1, · · · , T − 2
                                                                              δk ≈                                                 (6)
        L̃aθa = Et [min(kt At , (kt , 1 − ϵ, 1 + ϵ)At )],    (4)                     R, if k = T − 1

               a (at |st )
where kt = ππold           and ϵ is a small positive parameter.     According to the definition of GAE in Eq. (2), we can
              a (at |st )
By optimizing πc and πa with respect to Eq. (1) and Eq. (4),        observe that the first T − 1 − t items are close to zero
                                                                                                −2
the policy gradually learns to perform the target task.             as the elements in {σk }Tk=t   are nearly zero. For the last
                                                                               T −1−t
                                                                    item (γλ)         δT −1 , we have limT →∞ (γλ)T −1−t → 0
4. Method                                                           because γ ∈ (0, 1) and λ ∈ (0, 1). Hence, when the task
                                                                    needs long-horizon action chain execution, the obtained
4.1. Referee Reinforcement Learning                                 GAE value At is close to zero, which suggests that the opti-
In long-horizon embodied task exploration, the policy can           mization objective for training πa in Eq. (4) becomes zero.
usually only get positive feedback after the target task is         In this way, even though the policy makes the right action
completed successfully (Fan et al., 2022). Following the            decision, it cannot get any positive feedback.
notations in Section 3.1, we can assume that there is an            To handle this problem, we introduce referee RL. Specif-
exploration trajectory {(sk , ak , rk )}Tk=t , where T is a large   ically, we introduce a referee πp to provide an auxiliary
integer, and sk , ak , and rk denote the state, action, and         reward feedback to the trained policy π, and this reward at
environment reward at the k step, respectively. The agent           the step k is represented as rbk = πp (ι, sk , ak , sk+1 ). This
completes the target task at the final step T . Therefore, we       means πp takes the target task information ι, initial state sk ,
can get that:                                                       selected action ak , and new state sk+1 as input and provides
              (                                                     feedback based on whether the selected action is correct
                 −ε, if k = t, t + 1, · · · , T − 1                 and outcome caused by this action. In this work, we split
         rk =                                                 (5)
                 R − ε, if k = T                                    the feedback into four categories: (a) The selected action
                                                                    is correct and brings a positive outcome to realizing the
where −ε denotes a small negative constant due to time              target. (b) The selected action is correct but does not bring
penalty and R is the positive reward of completing the target       a positive outcome. (c) The selected action is incorrect but
                         LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligence

                                                                  LARM Policy
         🚩
    Task Description
                                        LoRA                                                                Environment Exploration


     Agent Status: …
    Text Observation                                                      Action
                                                         Actor Head

                                    LLM Decoders
                                                                                             Agent                Environment
                                                        Critic Head       Value
   Vision Observation


       Skill Token
                                                                                                                Agent State



                                                                                         Environment Reward

                                                                                                                       Referee
                                     Update

                                                                                             👍👍👍                       Auxiliary
                                                                                                                       Reward
                                                                                             Total Reward
                                   RL based Policy Optimization                                                  Reward Generation

Figure 2. The overall pipeline of our method. As illustrated, we parametrize the actor πa and critic πc using a single LARM model with
two separate prediction heads, i.e., the action head and critic head. We train LARM based on our proposed referee RL algorithm, which
utilizes both environment feedback and referee generated auxiliary reward to guide the optimization of LARM.

does not lead to a negative outcome. (d) The selected action          design has two key benefits: (i) The model is initialized with
is incorrect and results in a negative outcome. For the four          the general knowledge and reasoning ability of LLMs while
categories, πp correspondingly returns the reward value ra ,          maintaining an acceptable parameter volume. In this way,
rb , rc , and rd , where ra > rb > 0 > rc > rd . By adding            LARM can be deployed based on the restricted computing
this auxiliary reward rbk to the original reward described in         resources in embodied applications and achieve real-time
Eq. (5), the feedback to π before T does not remain as the            response. (ii) As LARM adopts a similar model architecture
constant −ε. In this way, the TD error δk and correspond-             as LLMs, we can first pre-train it using numerous question-
ing GAE value At do not converge to zeros, being able to              answer data related to the concerned embodied AI topics.
provide effective optimization guidance to πa .                       This kind of data is much easier to collect and scale up
                                                                      than embodied data with action execution. We have tried
In this work, we model the referee πp based on GPT-4
                                                                      pre-training LARM using a 34G webpage dataset crawled
(Achiam et al., 2023), which is a giant LLM and owns
                                                                      from Wiki (Fan et al., 2022), and the results indicate that
extensive generalizable knowledge. As mentioned before,
                                                                      the training convergence is improved.
the information provided to GPT-4 includes ι (target task
description), ak (the executed skill), sk and sk+1 (the inven-        The input to the LARM model consists of four parts, i.e.,
tory list and environment resource surrounding the agent              task description, text observation, vision observation, and
before and after executing ak ), and then we prompt it to             a skill token. The task description specifies the target task
judge the situation and response a reward among ra , rb ,             to conduct. The text information primarily includes the in-
rc , and rd . The full detailed procedure of the referee RL           ventory list, historical action, and blocks surrounding the
algorithm is elaborated in Algorithm 1.                               agent. The vision information is the real-time image per-
                                                                      ceived by the agent. We encode text and image information
4.2. Large Auto-Regressive Model                                      as tokens based on CLIP (Radford et al., 2021), and these
                                                                      tokens with an additional learnable skill token are input to
In this part, we explain how to parametrize πa and πc using           the LARM decoders to conduct feature interaction. After
our designed LARM policy. As shown in Fig. 2, the main                the decoders, the skill token is input to the action head and
body of LARM is the decoders of a lightweight decoder-                critic head depicted in Fig. 2 to output the action and state
only LLM, TinyLLaVA-3.1B in this work. The parameters                 value. Therefore, LARM parametrizes the actor πa and
of these decoders are frozen during training and a trainable          critic πc in Section 4.1 based on a single model with two
LoRA (Hu et al., 2021) module is applied to help the model            different trainable prediction heads.
learn new knowledge in the applied task domain. This
                        LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligence

Similar to previous literature (Wang et al., 2023a; Liu et al.,   action details. In this way, several significantly more ad-
2024b), the action predicted by LARM is a skill, such as          vanced achievements are obtained by previous works based
chopping down a tree or searching for a cobblestone. LARM         on Mineflayer, like harvesting diamonds with high success
selects a skill to perform by conducting feature matching         rates (Wang et al., 2023a). In addition, the agents are usually
between the action head output and skill description like         spawned without initial tools in Mineflayer.
STEVE (Zhao et al., 2024). In this work, we test LARM
with two kinds of skills, the RL-based skills in MineDojo         5.2. Main Results
and API-based skills based on Mineflayer. The former cat-
egory is easier to be extended to real-world applications         We compare LARM with previous methods in this part. As
and the latter class presents higher execution success rates.     the basic actions in MineDojo and Mineflayer are different,
According to the given task requirements, new skills can          we conduct the comparison separately.
be dynamically added based on the strategies developed in         Comparison on MineDojo. The methods compared on
previous works (Wang et al., 2023a) and how to generate           MineDojo include MineAgent (Fan et al., 2022), Plan4MC
these skills is not the research focus of this work.              (Yuan et al., 2023), LLaMA-Rider (Feng et al., 2024), and
Combining the aforementioned techniques, LARM is op-              RL-GPT (Liu et al., 2024b). Among them, MineAgent is the
timized by iterating between environment exploration and          baseline method provided by Minddojo. It first fine-tunes
policy update described in Algorithm 1. The training de-          CLIP (Radford et al., 2021) based on numerous web data
tails like the optimizer choice follow PPO (Schulman et al.,      and uses the fine-tuned CLIP to guide the training of rein-
2017). For learning to complete the most challenging task         forcement learning algorithms. Plan4MC is a reinforcement
in this work (craft an enchanted diamond tool), about 42          learning based method. It splits a task into basic skills and
hours of exploration is taken using a single RTX4090 GPU.         trains an agent to learn them one by one in a hierarchical
                                                                  way. LLaMA-Rider is an LLM obtained by fine-tuning
                                                                  LLaMA. It first makes the agent explore the environment to
5. Experiments                                                    collect data. Then, the collected data is adopted to fine-tune
5.1. Environment                                                  LLaMA in a supervised manner. RL-GPT builds two LLM
                                                                  based agents (a slow agent and a fast agent) to schedule the
In this work, we validate our method using the MineDojo           agent actions. For an action step, this method first queries
and Mineflayer environments. Both these two environments          the agents whether this action step can be completed via
are developed based on Minecraft, but there exist differences     code generation. If the code generation is infeasible, an RL
in their testing protocols. In addition, the commonly used        based action is performed.
strategies of generating skills in these two environments are
also different. For fair comparison, we compare our method        We compare LARM with these methods on diverse tasks,
with the counterparts in these two environments separately        and the detailed settings of these tasks follow previous works
using the same testing protocol and skill generation strategy.    (Feng et al., 2024). Notably, we train a single LARM model
                                                                  to complete all the tasks, which is different from many pre-
MineDojo. MineDojo (Fan et al., 2022) is a pioneering             vious works that employ separate models for various tasks.
benchmark suitable for studying how to develop open-ended         This characteristic suggests the promising generalization
and generally capable embodied agents. It features a simula-      ability of LARM. To compute success rates, we test LARM
tion suite with thousands of tasks specified through natural      for 30 times on every task. The experimental results are re-
language prompts. The behaviors that can be conducted in          ported in Table 1. As shown, LARM presents higher success
MineDojo primarily include navigation, harvest, combat,           rates than the compared counterparts in all the test tasks, and
and craft. When testing a policy, an agent is randomly ini-       the promising performance of LARM is mainly attributed
tialized in a biome with some initial tools. The policy needs     to our designed referee RL algorithm, which addresses the
to control the agent to explore and harvest resources in the      reward vanishment problem in long-horizon embodied ex-
environment and gradually realize the given target. The ac-       ploration. In addition, we can observe that LARM achieves
tion space in MineDojo is a compound multi-discrete space         higher success rates on tasks with shorter action chains,
that allows the agent to select a movement action or an op-       indicating the great challenge in developing long-horizon
tional functional action at each step, encompassing a diverse     embodied intelligence. For example, the Harvest bucket
range of arguments to facilitate complex interactions.            task requires three iron ingots, and the Harvest iron sword
Mineflayer. Compared with MineDojo, the basic actions in          demands two iron ingots and one stick. Therefore, Harvest
Mineflayer (PrismarineJS., 2013) are provided APIs, such          iron sword needs one more step (Harvest stick) than Harvest
as harvesting a log or finding the nearest stone. Compared        bucket, which causes that LARM obtains a higher success
with MineDojo, these APIs help researchers concentrate            rate in the task of crafting a bucket.
more on high-level decision making rather than repetitive         Comparison on Mineflayer. To fully reveal the superiority
                          LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligence

                                Table 1. Performance comparison with previous methods based on MineDojo.
                      Task                  MineAgent Plan4MC LLaMA-Rider Base LLaMA-Rider RL-GPT LARM (Ours)
               Harvest stick                  0.00      0.30          0.23                0.43            0.65       0.93
           Harvest crafting table             0.03      0.30          0.37                0.67            0.65       0.87
               Harvest bowl                   0.00      0.47          0.73                0.97              -        0.97
               Harvest chest                  0.00      0.23          0.67                0.77              -        0.83
          Harvest wooden pickaxe              0.00      0.03          0.00                0.37            0.67       0.70
          Harvest wooden sword                0.00      0.47          0.63                0.10              -        0.70
              Harvest furnace                 0.00      0.37          0.00                0.17            0.67       0.73
            Harvest stone stairs              0.00      0.47          0.00                0.57              -        0.67
           Harvest stone sword                0.00      0.10          0.00                0.00              -        0.40
            Harvest iron ingot                0.00      0.47          0.03                0.13              -        0.60
              Harvest bucket                  0.00      0.20          0.00                0.00                       0.37
            Harvest iron sword                0.00      0.20          0.00                0.00              -        0.27
               Harvest beef                   0.33      0.43          0.03                0.03            0.46       0.60
              Harvest mutton                  0.35      0.33          0.00                0.03            0.38       0.63



    Table 2. Performance comparison based on Mineflayer.                      Table 4. Ablation Study on LLM base selection.
    Achievement     AutoGPT Voyager STEVE LARM (Ours)                        LLM Base        Stick        Wooden     Stone    Iron
  Wooden sword            3/3         3/3      3/3      30/30            TinyLLaVA-0.5B          0.80        0.50      0.27     0.13
   Stone sword            3/3         3/3      3/3      30/30            TinyLLaVA-3.1B          0.83        0.57      0.33     0.13
    Iron sword            3/3         3/3      3/3      30/30            TinyLLaVA-3.1B*         0.93        0.70      0.40     0.27
 Diamond sword            0/3         1/3      3/3      28/30
                                                                                       Table 5. Analysis on noisy reward.
 Enchanted sword          0/3         0/3      0/3      16/30
                                                                         Noise Ratio     Stick          Wooden      Stone     Iron
          Table 3. Ablation Study on Reward Design.                           0%           0.93           0.70        0.40     0.27
     Reward     Stick      Wooden      Stone     Iron                        10%           0.93           0.67        0.30     0.17
                                                                             30%           0.77           0.33        0.17     0.07
      ER           0.20           0.13         0.10    0.00                  50%           0.50           0.13        0.00     0.00
    ER+LAR         0.30           0.23         0.13    0.00
    ER+AR2         0.80           0.53         0.20    0.07           in Table 2. We can observe that LARM outperforms the
    ER+AR4         0.93           0.70         0.40    0.27
                                                                      compared methods in obtaining different levels of achieve-
                                                                      ments. Notably, LARM is the first method that harvests an
of LARM, we further evaluate LARM using the Mineflayer                enchanted diamond sword in Minecraft successfully.
based environment. The compared methods include Auto-
GPT (autogpt), Voyager (Wang et al., 2023a), and STEVE
                                                                      5.3. Ablation Study
(Zhao et al., 2024). In this work, Voyager is a training-free
method implemented based on GPT-4. Its main contribution              Analysis on reward design. The key difference of Ref-
is designing a multi-step prompt generation pipeline. When            eree RL from the classic PPO implementation is the reward
a target task is given, Voyager prompts GPT-4 to know                 design. Therefore, we ablate different reward settings in
which skill should be executed and gradually realize the              this part. We compare four reward choices in MineDojo
target. AutoGPT is an LLM being able to reason which skill            with four tasks, i.e., Harvest stick, Harvest wooden sword,
should be performed through multi-step question answering.            Harvest stone sword, and Harvest iron sword. The four re-
STEVE is a large vision-language model. In STEVE, a                   ward choices are ER (environment reward only), ER+LAR
dataset including both videos and text-image pairs is gath-           (environment reward plus auxiliary reward produced by
ered and utilized to fine-tune LLaMA (Touvron et al., 2023),          LLaVA-7B, a lightweight LLM), ER+AR2 (environment
and then the fine-tuned model can invoke pre-defined skills.          reward plus auxiliary reward produced by GPT-4o, but the
                                                                      auxiliary reward is determined based on only whether the ac-
In this experiment, the agent is spawned in a random biome
                                                                      tion outcome is positive), and ER+AR2 (the standard setting
without initial inventory. The test tasks include Harvest
                                                                      of our method described in this paper). The experimental
wooden sword, Harvest stone sword, Harvest iron sword,
                                                                      results are presented in Table 3.
Harvest diamond sword, and Harvest enchanted diamond
sword. As shown in Fig. 1, Harvest enchanted diamond                  As shown, when only the environment reward is provided,
sword is significantly more complex than the other achieve-           the agent presents a significantly better success rate on Har-
ments. The previous methods usually test their models                 vest stick than Harvest stone sword, where the latter task
three times in Mineflayer. To reduce randomness, we run               demands a longer action chain. This phenomenon is because
LARM for 30 times. The experimental results are reported              that the environment reward gradually vanishes with the in-
                                           LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligence
Search a Village




                                      t!             t"                          t#                             t$
Multi-agent Combat Enter the Nether




                                      t!             t"                          t#                             t$




                                      t!             t"                          t#                             t$

Figure 3. More behavior example illustrations of LARM, which include traveling a long distance to find a village, building a nether portal
and then entering the nether, multiple agents collaborate with each other to combat zombies.
crease of the action chain length. When the auxiliary reward                     general knowledge. Then, we compare the performances of
is generated by LLaVA-7B, the result is also poor, which is                      models without and with the webpage data pre-training, and
because that LLaVA-7B does not understand the Minecraft                          the results are reported in the 2nd and 3rd rows of Table 4. It
world well and the provided reward is often incorrect. This                      can be observed that webpage data pre-training improves the
result confirms our aforementioned claim that only giant                         success rates on embodied task execution. This result sug-
LLMs serve as referees well. In addition, the performance                        gests that the numerous text and image data on the Internet
of ER+AR2 is worse than ER+AR4, which is because se-                             has the potential to benefit embodied agents.
lecting the correct action does not always bring a positive
                                                                                 Analysis on LLM capability. We have mentioned that
outcome. For example, the agent decides to search a tree
                                                                                 giant LLMs answer questions about the Minecraft world
but does not find it successfully. In this situation, ER+AR2
                                                                                 well while the understanding of lightweight LLMs is poor.
returns a negative reward, which punishes the searching a
                                                                                 In this part, we demonstrate this by providing a question-
tree decision even though this choice may be correct. By
                                                                                 answer example and highlighting the key content in bold:
contrast, ER+AR4 will give a small positive reward.
                                                                                Prompt: In Minecraft, you need to craft a stone pickaxe.
Analysis on LLM base selection. As mentioned before,
                                                                                What additional resources do you need to gather if you have
we utilize the weight of a lightweight LLM to initialize
                                                                                only got cobblestones in your inventory?
the parameters in LARM to provide initial general knowl-
edge. Then, we fine-tune LARM using Minecraft related                            GPT-4o: If you already have cobblestone in your inventory,
webpage data to enhance its understanding. In this experi-                       you need to gather wooden planks to craft sticks. You need
ment, we analyze how the lightweight LLM choice affects                          two sticks and three cobblestones to craft a stone pickaxe.
the results and whether the webpage data pre-training de-                        Llama3-8B: You need a stick.
scribed in Section 4.2 is beneficial. To this end, we first                     TinyLLaVA-3.1B: To craft a stone pickaxe in Minecraft, you
compare the performances of LARM using TinyLLaVA-                               will need the following additional resources: cobblestone,
0.5B and TinyLLaVA-3.1B as the LLM base, where the                              stone, wood, leaves, dirt, grass, pillar, shovel, and sword.
experiment results are presented in the 1st and 2nd row of
                                                                                TinyLLaVA-3.1B after Webpage data pre-training: You ad-
Table 4. As shown, adopting an LLM with more parameters
                                                                                ditionally need two sticks.
as the LARM model base favors the embodied performance,
which is mainly attributed to that a larger LLM has stronger                     Comparing the answers, we can observe that webpage data
                       LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligence

pre-training significantly improves the concerned domain       References
of knowledge in TinyLLaVA-3.1B.
                                                               Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya,
Analysis on noisy reward. In the previous experiments, we        I., Aleman, F. L., Almeida, D., Altenschmidt, J., Alt-
show that incorporating a referee into the RL framework          man, S., Anadkat, S., et al. Gpt-4 technical report.
improves the exploration efficiency very significantly. How-     arXiv:2303.08774, 2023.
ever, this is partly because GPT-4 can provide high-quality
feedback about whether the executed skill is beneficial to     Alayrac, J.-B., Donahue, J., Luc, P., Miech, A., Barr, I.,
realizing the final target in Minecraft. The effectiveness       Hasson, Y., Lenc, K., Mensch, A., Millican, K., Reynolds,
of referee RL under circumstances that the referee feed-         M., et al. Flamingo: a visual language model for few-shot
back is noisy (many false referee rewards) is not studied.       learning. NeurIPS, 2022.
In this experiment, we randomly replace different ratios       autogpt.     Significant-gravitas/auto-gpt: An ex-
of referee rewards generated by GPT-4 as other incorrect         perimental open-source attempt to make gpt-
referee rewards to test the performances of LARM under           4 fully autonomous., 2023.            URL https:
noisy rewards. The results are presented in Table 5. We          //github.com/Significant-Gravitas/
can find that when the noise ratio exceeds 10%, the LARM         Auto-GPT/tree/master.
performance drops significantly.
                                                               Baker, B., Akkaya, I., Zhokov, P., Huizinga, J., Tang, J.,
5.4. Case Study                                                  Ecoffet, A., Houghton, B., Sampedro, R., and Clune,
                                                                 J. Video pretraining (vpt): Learning to act by watching
The previous experiments mainly show the performances            unlabeled online videos. NeurIPS, 2022.
of LARM on harvesting various categories of materials
and crafting tools. In Fig. 3, we visualize more examples      Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D.,
of other behaviors in the Mineflayer based environment,          Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G.,
such as exploring the open world, constructing a building        Askell, A., et al. Language models are few-shot learners.
with a specific structure, and multiple agents cooperate to      NeurIPS, 2020.
combat dangerous creatures. These behaviors suggest that
our proposed techniques in this work have the potential to     Chang, Y., Wang, X., Wang, J., Wu, Y., Yang, L., Zhu, K.,
be further generalized to other diverse domains.                 Chen, H., Yi, X., Wang, C., Wang, Y., et al. A survey on
                                                                 evaluation of large language models. ACM Transactions
                                                                 on Intelligent Systems and Technology, 2024.
6. Conclusion
                                                               Chrisley, R. Embodied artificial intelligence. Artificial
In this work, we have proposed LARM, which is effi-              Intelligence, 2003.
cient and possesses general knowledge. To train it, we
have revealed the feedback vanishment problem in apply-        Ding, N., Qin, Y., Yang, G., Wei, F., Yang, Z., Su, Y., Hu,
ing classic RLs to long-horizon embodied exploration. To         S., Chen, Y., Chan, C.-M., Chen, W., et al. Parameter-
address this feedback vanishment, we have developed the          efficient fine-tuning of large-scale pre-trained language
referee RL technique. By optimizing LARM with referee            models. Nature Machine Intelligence, 2023.
RL, our method can learn to complete diverse embodied
                                                               Fan, L., Wang, G., Jiang, Y., Mandlekar, A., Yang, Y., Zhu,
tasks without human supervision. Especially, LARM is the
                                                                 H., Tang, A., Huang, D.-A., Zhu, Y., and Anandkumar, A.
first method that obtains the enchanted diamond equipment
                                                                 Minedojo: Building open-ended embodied agents with
achievement in the Minecraft benchmark successfully.
                                                                 internet-scale knowledge. NeurIPS, 2022.

Impact Statement                                               Feng, Y., Wang, Y., Liu, J., Zheng, S., and Lu, Z. Llama-
                                                                 rider: Spurring large language models to explore the open
This paper presents work whose goal is to advance the field      world. In NAACL, 2024.
of embodied intelligence. There are many potential societal
consequences of our work, none which we feel must be           Frazier, S. and Riedl, M. Improving deep reinforcement
specifically highlighted here.                                   learning in minecraft with action advice. In AAAI, 2019.
                                                               Guss, W. H., Houghton, B., Topin, N., Wang, P., Codel, C.,
Acknowledgments                                                 Veloso, M., and Salakhutdinov, R. Minerl: a large-scale
                                                                 dataset of minecraft demonstrations. In IJCAI, 2019.
This work is supported by the National Natural Science
Foundation of China (No. 62422606, 62201484).                  He, K., Zhang, X., Ren, S., and Sun, J. Deep residual
                                                                 learning for image recognition. In CVPR, 2016.
                         LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligence

Hu, E. J., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang,        Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux,
  L., Chen, W., et al. Lora: Low-rank adaptation of large              M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E.,
  language models. In ICLR, 2021.                                      Azhar, F., et al. Llama: Open and efficient foundation
                                                                       language models. arXiv:2302.13971, 2023.
Huang, C., Mees, O., Zeng, A., and Burgard, W. Visual
  language maps for robot navigation. In ICRA, 2023.                 Wang, G., Xie, Y., Jiang, Y., Mandlekar, A., Xiao, C., Zhu,
                                                                      Y., Fan, L., and Anandkumar, A. Voyager: An open-ended
Kenton, J. D. M.-W. C. and Toutanova, L. K. Bert: Pre-                embodied agent with large language model. NeurIPS,
  training of deep bidirectional transformers for language            2023a.
  understanding. In NAACL, 2019.
                                                                     Wang, Z., Cai, S., Chen, G., Liu, A., Ma, X., Liang, Y.,
Laleh, A. R. and Ahmadabadi, M. N. A survey on enhanc-                and CraftJarvis, T. Describe, explain, plan and select:
  ing reinforcement learning in complex environments: In-             interactive planning with large language models enables
  sights from human and llm feedback. arXiv:2411.13410,               open-world multi-task agents. In NeurIPS, 2023b.
  2024.
                                                                     Wang, Z., Cai, S., Liu, A., Jin, Y., Hou, J., Zhang, B.,
LeCun, Y., Bengio, Y., and Hinton, G. Deep learning. Na-              Lin, H., He, Z., Zheng, Z., Yang, Y., et al. Jarvis-1:
  ture, 2015.                                                         Open-world multi-task agents with memory-augmented
                                                                      multimodal language models. TPAMI, 2024.
Li, J., Li, D., Savarese, S., and Hoi, S. Blip-2: Bootstrapping
   language-image pre-training with frozen image encoders            Xie, T., Zhao, S., Wu, C. H., Liu, Y., Luo, Q., Zhong, V.,
   and large language models. In ICML, 2023.                           Yang, Y., and Yu, T. Text2reward: Automated dense
                                                                       reward function generation for reinforcement learning. In
Lifshitz, S., Paster, K., Chan, H., Ba, J., and McIlraith,             ICLR, 2024.
  S. Steve-1: A generative model for text-to-behavior in
  minecraft. NeurIPS, 2023.                                          Yuan, H., Zhang, C., Wang, H., Xie, F., Cai, P., Dong, H.,
                                                                       and Lu, Z. Skill reinforcement learning and planning for
Liu, H., Li, C., Wu, Q., and Lee, Y. J. Visual instruction             open-world long-horizon tasks. In NeurIPS Workshop,
  tuning. NeurIPS, 2024a.                                              2023.
Liu, S., Yuan, H., Hu, M., Li, Y., Chen, Y., Liu, S., Lu, Z.,        Zhao, Z., Chai, W., Wang, X., Li, B., Hao, S., Cao, S., Ye, T.,
  and Jia, J. Rl-gpt: Integrating reinforcement learning and           and Wang, G. See and think: Embodied agent in virtual
  code-as-policy. In NeurIPS, 2024b.                                   environment. In ECCV, 2024.
OpenAI. Chatgpt. https://openai.com/blog/                            Zhou, B., Hu, Y., Weng, X., Jia, J., Luo, J., Liu, X., Wu, J.,
  chatgpt/, 2023.                                                      and Huang, L. Tinyllava: A framework of small-scale
                                                                       large multimodal models. arXiv:2402.14289, 2024.
PrismarineJS. Prismarinejs/mineflayer: Create minecraft
  bots with a powerful, stable, and high level javascript api.
  2013.

Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G.,
  Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J.,
  et al. Learning transferable visual models from natural
  language supervision. In ICML, 2021.

Savva, M., Kadian, A., Maksymets, O., Zhao, Y., Wijmans,
  E., Jain, B., Straub, J., Liu, J., Koltun, V., Malik, J., et al.
  Habitat: A platform for embodied ai research. In ICCV,
  2019.

Scheller, C., Schraner, Y., and Vogel, M. Sample efficient
  reinforcement learning through learning from demonstra-
  tions in minecraft. In NeurIPS Workshop, 2020.

Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and
  Klimov, O. Proximal policy optimization algorithms.
  arXiv:1707.06347, 2017.
