Frontier Language Models Struggle to Copy: Text Can Be Better Viewed in 2D
This paper demonstrates that frontier language models struggle to copy text due to limitations in standard 1D positional encodings, and proposes 2D-RoPE, a method that organizes text into a 2D grid to enable superior copying performance and generalization across both synthetic and large-scale pretraining tasks.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are teaching a super-smart robot how to read and write. You give it a massive library of books, and it learns to predict the next word in a sentence with incredible accuracy. This robot is a Large Language Model (LLM), and it's the brain behind many of the AI tools we use today. But here's the catch: these robots don't "read" like humans do. They see text as a long, single line of beads on a string. To understand where they are in that line, they use something called "positional encoding." Think of this like a set of invisible labels on every bead, telling the robot, "You are the 5th bead," or "You are the 100th bead."
For a long time, scientists thought these robots were getting so smart they could solve almost any puzzle. But there was a weird, embarrassing glitch they couldn't fix. If you asked the robot to simply copy a string of numbers or letters exactly as it saw them, it would sometimes fail, even if the string was short enough to fit in its memory. It's like asking a human to copy a sentence from a book, and they accidentally skip a word or swap two letters because they got confused about where they were in the line. The big question was: Why does a machine that can write poetry and solve math problems struggle to just copy a list?
This paper investigates that exact mystery. The authors, a team of researchers from Tsinghua University, discovered that the robot's "labels" (the positional encodings) were actually the problem. The standard way of labeling text makes it hard for the robot to find the exact spot it needs to copy from, especially when the text has repeating patterns. Instead of looking at the specific position, the robot gets distracted by similar-looking chunks of text nearby. To fix this, the researchers tried a new idea: what if we stop treating text like a single long line and instead arrange it like a grid, like a spreadsheet with rows and columns? They created a new system called 2D-RoPE.
When they tested this new system, the results were surprising. In their experiments, models using the 2D grid could copy strings perfectly, even when the strings were hundreds of times longer than anything they had seen during training. In contrast, the standard models kept failing. The researchers showed that by organizing text into rows and columns, the task of copying becomes much simpler for the robot: it just needs to look at the same column in the row above. They also built a smarter version called Auto-2D-RoPE that can figure out the grid structure on its own, even if the text doesn't have clear line breaks.
The paper suggests that this simple change in how we organize text data can make AI much better at basic tasks like copying and formatting, which are crucial for things like turning raw data into code. While the researchers proved mathematically that this new method works for simple copying tasks and showed it works in large-scale tests, they note that it's still an area of active study. They hope this discovery encourages others to rethink how AI "sees" text, proving that sometimes, looking at the world in two dimensions is better than looking at it in a straight line.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.