Meet LegoGPT
Written by Lucy Black   
Sunday, 11 May 2025

LegoGPT is an AI model that creates physically stable Lego structures from text prompts. Not only does it design Lego models that match text-supplied descriptions, it also ensures they can be built brick by brick in the real world, either by hand or with robotic assistance.

LegoGPT, which comes from Carnegie Mellon University, is outlined in a paper titled "Generating Physically Stable and Buildable Lego Designs from Text". In it the authors, led by Ava Pun explain that while many existing 3D generation models focus on making diverse objects with detailed geometry, such designs often can't be physically made commenting:

"Without proper support, parts of the design can collapse, float, or remain disconnected" 

By contrast their AI-generated LEGO structures are physically stable and are buildable.

To build LegoGPT, the Carnegie Mellon team repurposed the technology behind large language models (LLMs), similar to the kind that run ChatGPT, for "next-brick prediction" instead of next-word prediction. To do so, the team fine-tuned LLaMA-3.2-1B-Instruct, an instruction-following language model from Meta.

The team then augmented the brick-predicting model with a separate software tool that can verify physical stability using mathematical models that simulate gravity and structural forces.

To train the model, the team assembled a new dataset,  "StableText2Lego," containing over 47,000 stable Lego structures paired with descriptive captions generated by a separate AI model, OpenAI's GPT-4o. Each structure underwent physics analysis to ensure it could be built in the real world. 

The paper reports that LegoGPT produces stable, diverse, and aesthetically pleasing LEGO designs that align closely with the input text prompts and that our designs can be assembled manually by humans and automatically by robotic arms:

LegoGPT assembly

The project is open source on GitHub and there's a Demo on Hugging Face if you want to try it out.

More Information 

Generating Physically Stable and Buildable LEGO Designs from Text by Ava Pun, Kangle Deng, Ruixuan Liu, Deva Ramanan, Changliu Liu, Jun-Yan Zhu

LegoGPT on GitHub

Related Articles

AI Builds Lego From The Manual

DIY AI To Sort 2 Metric Tons Of Lego

A Worm's Mind In A Lego Body

A Turing Machine In LEGO

Lego Difference Engine

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

 

Banner


Microsoft Announces Edit
27/05/2025

Microsoft has announced Edit, a new open source command-line text editor in Windows. The editor will be available in preview in the Windows Insider Program "in the coming months" before shipping as pa [ ... ]



World’s Smallest Wireless Flying Robot Takes Off
02/05/2025

A new insect-inspired flying robot has been created by engineers at the University of California, Berkeley. The robot can hover, change trajectory and even hit small targets. It is less than 1  c [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

 

Last Updated ( Sunday, 11 May 2025 )