Szymon Tworkowski
· 6 previous affiliations
- xAI (United States)Since 2023
- Member of Technical Staff · Since 2023
- University of WarsawSince 2021
- PhD student · 2023–2027
- Current
- MS student · 2021–2023
- Student Researcher · 2023
- Google (United States)2022–2023
- Student Researcher · 2022–2023
- HRO Personnel2022
- Research Engineer · 2022
- Machine Learning Society at MIM UW2020–2022
- Vice President · 2021–2022
- Member · 2020–2021
Research Overview
Szymon Tworkowski focuses on the efficiency and scaling of large language models, with specific emphasis on long-context utilization and mathematical reasoning. His trajectory spans early architectural modifications for tokenizer-free models to advanced contrastive training techniques for context extension. Most recently, his work addresses data structuring methods to mitigate information loss in extended sequences.
Research Trajectory
The early phase of Tworkowski’s research investigated fundamental architectural efficiencies in sequence modeling. He introduced Hierarchical Transformers Are More Efficient Language Models in 2022, exploring tokenizer-free language models that process raw text more efficiently. By employing hierarchical structures, this work sought to alleviate the computational bottlenecks inherent in standard transformer architectures, contributing to the broader area of Sub-quadratic Attention for Long Context Transformers.
Concurrently, his research expanded into the domain of automated theorem proving, specifically addressing the bottleneck of retrieving relevant mathematical facts from massive databases. In Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers, he and his collaborators tackled the challenge of premise selection. Because language models historically struggled to reason over huge volumes of premises in text form, the Thor framework integrated them with traditional automated theorem provers (known as "hammers"). In this hybrid system, the hammers manage the premise selection while the language models handle other reasoning tasks, significantly advancing the research direction of Overcoming the Premise Selection Bottleneck in Formal Mathematics.
Returning to the core challenge of sequence length in language models, he developed Focused Transformer: Contrastive Training for Context Scaling in 2023. This research addresses the "distraction issue" in large language models, a phenomenon where models lose track of relevant information as the input context grows. By designing a training process inspired by contrastive learning, the Focused Transformer (FOT) structures the model's attention space to better distinguish between relevant and irrelevant data. This methodology enabled the creation of LongLLaMA, a model capable of effectively handling context lengths up to 256,000 tokens even when fine-tuned on much shorter sequences. This contribution intersects closely with research areas such as Length Extrapolation through Linear Attention Biases and Length Generalization via Implicit Positional Cues.
Continuing his involvement in formal reasoning, he contributed to Magnushammer: A Transformer-Based Approach to Premise Selection in 2024. This work further refines premise selection by replacing traditional heuristic-based hammers with a dense retrieval approach powered by transformers. Trained via contrastive learning on a massive dataset, Magnushammer demonstrated that neural architectures could outperform established industry standards like Sledgehammer, substantially improving proof success rates on standard benchmarks.
Most recently, alongside his transition to a role as a founding member at xAI, his focus has returned to optimizing how models process extended contexts in practice. In Structured Packing in LLM Training Improves Long Context Utilization, he introduced SPLiCe (Structured Packing for Long Context). This method leverages retrieval mechanisms to collate mutually relevant documents into cohesive, extended training samples. By structuring the data in this way, SPLiCe directly targets the "lost-in-the-middle" phenomenon, improving the model's ability to utilize information across long sequences and achieving perfect accuracy on synthetic retrieval benchmarks. This work represents a significant step forward in the broader area of Why Long-Context Language Models Get Lost in the Middle.
Current Directions
The most recent papers in the evidence address the intersection of data curation and long-context utilization. Recent work investigates how the structural arrangement of training data—specifically through the retrieval-based packing of relevant documents—can overcome inherent limitations in large language models, such as the tendency to ignore information located in the middle of a long prompt. By focusing on methods that improve context utilization without requiring fundamental architectural changes, this research aims to make extended-context models more reliable for complex, information-dense tasks. Additionally, ongoing themes in his publication record highlight a sustained interest in applying these scalable transformer architectures to formal mathematical reasoning, particularly through neural approaches to premise selection.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake