{"id":{"repo_id":"byu","oai_identifier":"oai:scholarsarchive.byu.edu:etd-12236"},"canonical_url":"https://search.ndltd.org/etd/byu/oai:scholarsarchive.byu.edu:etd-12236","repository":{"repo_id":"byu","name":"Brigham Young University","base_url":"https://scholarsarchive.byu.edu/do/oai/"},"display":{"title":"The Lookahead Transformer","abstract":"Large Language Models (LLMs) are transformer models that generate text autoregressively in two stages: prefill and decode. The prefill stage processes all input tokens in parallel and caches them into the KV cache. The decode stage uses the KV cache, processes a single token at a time, and is generally memory-bandwidth constrained. Each decode step generates a token probability distribution, samples from it, appends the token to the cache, and repeats. This left-to-right, one-at-a-time generation paradigm has proven effective for language modeling in many domains; however, it also has limitations such as token permanence, constant compute per token generation, constant space per token generation, and a lack of a lookahead mechanism. Methods such as Chain-of-Thought (CoT) prompting, reasoning with reinforcement learning (RL), and others have improved performance through explicitly generating planning representations; however, they still lack an inherent lookahead mechanism. This thesis proposes the Lookahead Transformer, a novel architecture that introduces an explicit lookahead mechanism enabling autoregressive models to attend to and iteratively refine multiple future latent token representations during generation. The model utilizes i future-positionally encoded lookahead tokens, Ψ, refined over N recurrent steps, providing a bidirectional latent planning space that can be efficiently reused across generation steps. Experimental results show that the Lookahead Transformer can outperform a comparable baseline on language modeling tasks with a test-time control mechanism for scaling active tokens to improve performance. The Lookahead Transformer represents a step toward more flexible and efficient autoregressive transformer models that can “lookahead” to improve performance and better utilize compute during inference.","abstract_html":"Large Language Models (LLMs) are transformer models that generate text autoregressively in two stages: prefill and decode. The prefill stage processes all input tokens in parallel and caches them into the KV cache. The decode stage uses the KV cache, processes a single token at a time, and is generally memory-bandwidth constrained. Each decode step generates a token probability distribution, samples from it, appends the token to the cache, and repeats. This left-to-right, one-at-a-time generation paradigm has proven effective for language modeling in many domains; however, it also has limitations such as token permanence, constant compute per token generation, constant space per token generation, and a lack of a lookahead mechanism. Methods such as Chain-of-Thought (CoT) prompting, reasoning with reinforcement learning (RL), and others have improved performance through explicitly generating planning representations; however, they still lack an inherent lookahead mechanism. This thesis proposes the Lookahead Transformer, a novel architecture that introduces an explicit lookahead mechanism enabling autoregressive models to attend to and iteratively refine multiple future latent token representations during generation. The model utilizes i future-positionally encoded lookahead tokens, Ψ, refined over N recurrent steps, providing a bidirectional latent planning space that can be efficiently reused across generation steps. Experimental results show that the Lookahead Transformer can outperform a comparable baseline on language modeling tasks with a test-time control mechanism for scaling active tokens to improve performance. The Lookahead Transformer represents a step toward more flexible and efficient autoregressive transformer models that can “lookahead” to improve performance and better utilize compute during inference.","abstract_has_math":false,"creators":["Olcott, Justin P."],"institution":null,"degree_name":"MS","degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-04-21T07:00:00Z","date_published":"2026-04-21T07:00:00Z","updated_at":"2026-11-27T02:27:09Z","subjects":["computer science","transformer","language modeling","planning","Physical Sciences and Mathematics"],"languages":["english"],"rights":[],"rights_urls":["https://lib.byu.edu/about/copyright/"],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://scholarsarchive.byu.edu/etd/11225","outbound_label":"Repository record","outbound_source":"dc:identifier","record_url":"https://scholarsarchive.byu.edu/etd/11225","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Abyu%3Aoai%3Ascholarsarchive.byu.edu%3Aetd-12236","prefix":"oai_dc"},"source_record":{"url":"https://scholarsarchive.byu.edu/do/oai/?verb=GetRecord&metadataPrefix=oai_etdms&identifier=oai%3Ascholarsarchive.byu.edu%3Aetd-12236","prefix":"oai_etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:creator","label":"Author","values":["Olcott, Justin P."]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026-04-21T07:00:00Z"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_name","label":"Degree Name","values":["MS"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["computer science","transformer","language modeling","planning","Physical Sciences and Mathematics"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["english"]},{"key":"dc:rights.license","label":"Dc Rights License","values":["https://lib.byu.edu/about/copyright/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://scholarsarchive.byu.edu/etd/11225"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["Computational, Mathematical, and Physical Sciences","Computer Science"]},{"key":"dc:description.abstract","label":"Abstract","values":["Large Language Models (LLMs) are transformer models that generate text autoregressively in two stages: prefill and decode. The prefill stage processes all input tokens in parallel and caches them into the KV cache. The decode stage uses the KV cache, processes a single token at a time, and is generally memory-bandwidth constrained. Each decode step generates a token probability distribution, samples from it, appends the token to the cache, and repeats. This left-to-right, one-at-a-time generation paradigm has proven effective for language modeling in many domains; however, it also has limitations such as token permanence, constant compute per token generation, constant space per token generation, and a lack of a lookahead mechanism. Methods such as Chain-of-Thought (CoT) prompting, reasoning with reinforcement learning (RL), and others have improved performance through explicitly generating planning representations; however, they still lack an inherent lookahead mechanism. This thesis proposes the Lookahead Transformer, a novel architecture that introduces an explicit lookahead mechanism enabling autoregressive models to attend to and iteratively refine multiple future latent token representations during generation. The model utilizes i future-positionally encoded lookahead tokens, Ψ, refined over N recurrent steps, providing a bidirectional latent planning space that can be efficiently reused across generation steps. Experimental results show that the Lookahead Transformer can outperform a comparable baseline on language modeling tasks with a test-time control mechanism for scaling active tokens to improve performance. The Lookahead Transformer represents a step toward more flexible and efficient autoregressive transformer models that can “lookahead” to improve performance and better utilize compute during inference."]},{"key":"dc:format","label":"Dc Format","values":["application:pdf"]},{"key":"dc:source","label":"Dc Source","values":["Brigham Young University"]},{"key":"dc:title","label":"Title","values":["The Lookahead Transformer"]}]}],"canonical_facts":{"dc:creator":["Olcott, Justin P."],"dc:date":["2026-04-21T07:00:00Z"],"dc:description":["Computational, Mathematical, and Physical Sciences","Computer Science"],"dc:description.abstract":["Large Language Models (LLMs) are transformer models that generate text autoregressively in two stages: prefill and decode. The prefill stage processes all input tokens in parallel and caches them into the KV cache. The decode stage uses the KV cache, processes a single token at a time, and is generally memory-bandwidth constrained. Each decode step generates a token probability distribution, samples from it, appends the token to the cache, and repeats. This left-to-right, one-at-a-time generation paradigm has proven effective for language modeling in many domains; however, it also has limitations such as token permanence, constant compute per token generation, constant space per token generation, and a lack of a lookahead mechanism. Methods such as Chain-of-Thought (CoT) prompting, reasoning with reinforcement learning (RL), and others have improved performance through explicitly generating planning representations; however, they still lack an inherent lookahead mechanism. This thesis proposes the Lookahead Transformer, a novel architecture that introduces an explicit lookahead mechanism enabling autoregressive models to attend to and iteratively refine multiple future latent token representations during generation. The model utilizes i future-positionally encoded lookahead tokens, Ψ, refined over N recurrent steps, providing a bidirectional latent planning space that can be efficiently reused across generation steps. Experimental results show that the Lookahead Transformer can outperform a comparable baseline on language modeling tasks with a test-time control mechanism for scaling active tokens to improve performance. The Lookahead Transformer represents a step toward more flexible and efficient autoregressive transformer models that can “lookahead” to improve performance and better utilize compute during inference."],"dc:format":["application:pdf"],"dc:identifier":["https://scholarsarchive.byu.edu/etd/11225"],"dc:language":["english"],"dc:rights.license":["https://lib.byu.edu/about/copyright/"],"dc:source":["Brigham Young University"],"dc:subject":["computer science","transformer","language modeling","planning","Physical Sciences and Mathematics"],"dc:title":["The Lookahead Transformer"],"dc:type":["Thesis"],"thesis:degree_name":["MS"]},"updated_at":"2026-11-27T02:27:09Z"}