Life Sequence Transformer: Generative Modelling of Socio-Economic Trajectories from Administrative Data
This paper introduces a Transformer-based generative model that encodes overlapping socio-economic events to simulate realistic and counterfactual life trajectories using large-scale Italian administrative data, thereby advancing policy-oriented research through the generation of plausible alternative histories.
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 have a giant, dusty library containing the life stories of 1.6 million Italian people. These aren't novels; they are dry, administrative records from the government's social security office. They list when people got jobs, when they lost them, when they had children, when they retired, and how much money they made, year after year.
Usually, economists look at these records to find patterns, like "people who lose jobs at 40 stay unemployed longer." But this paper asks a different question: What if we could teach a computer to read these stories and then write new, plausible ones?
The authors built a "Life Sequence Transformer." Think of this not as a robot that predicts the future, but as a creative writing engine trained on real life.
Here is how they did it, broken down into simple concepts:
1. Turning Lives into a Language
Computers don't understand "jobs" or "retirement." They understand tokens (like words). The authors had to invent a new language to translate a human life into a string of text the computer could read.
- The Analogy: Imagine a life story as a sentence.
- Instead of writing "John worked in a factory from 1990 to 1995," the computer sees a sequence of special codes:
<BOL>(Start of Life) →<FEMALE>→<1990>→<WORK>→<FACTORY>→<INCOME_80>→<EOY>(End of Year).
- Instead of writing "John worked in a factory from 1990 to 1995," the computer sees a sequence of special codes:
- The Trick: They didn't just list events; they built a strict grammar. Every year has a start and end. If someone had no job that year, the computer still sees a "silent" year so the timeline doesn't break. This allows the computer to learn the rhythm of a human life.
2. The "Life Writer" Model
They trained a specific type of AI (a Transformer) on these 1.6 million "sentences."
- How it learns: The computer reads a person's history up to a certain point (say, age 40) and tries to guess the very next "word" (token) in their life. Was it a job? A layoff? A birth?
- The Goal: It's not just guessing the next word; it's learning the causal rules of life. It learns that if you are 65 and have worked for 40 years, the next word is likely "Retirement." If you are 25 and the economy crashes, the next word might be "Unemployment."
3. Testing the "What If" Machine
Once trained, they tested if this AI could write believable "counterfactuals" (alternative realities). They didn't just ask it to predict the future; they asked it to simulate "What if?" scenarios.
They ran three main tests to see if the AI understood how the real world works:
Test A: The "Age Cutoff" Rule (Unemployment Benefits)
- Real World Rule: In Italy, if you lose your job after age 40, you get unemployment benefits for a longer time than if you lose it before 40.
- The Test: They fed the AI stories of people losing jobs just before and just after age 40.
- The Result: The AI didn't perfectly copy the sharp "cliff" of the rule (because the data for this specific rule was rare), but it did learn the general trend: older workers get benefits longer. It understood the relationship between age and support.
Test B: The "Motherhood Penalty"
- Real World Rule: Women often see their earnings drop after having children and take longer to recover.
- The Test: They showed the AI a woman's career up to the year she had a baby, then asked it to generate the next 10 years.
- The Result: The AI successfully generated a path where the woman's income dipped and recovered slowly, matching real-world data. It even created a "control group" of women who didn't have babies (by editing the input), showing a clear difference in earnings between the two groups.
Test C: The "Birthday Effect" (Retirement)
- Real World Rule: People born in January tend to retire slightly later than those born in December because of school starting dates and how pension rules work.
- The Test: They asked the AI to predict retirement ages for men born in January vs. December.
- The Result: The AI correctly predicted that January-born men retire later. However, the paper notes that if you ask the AI to predict too far into the future (4 years out), it gets a bit too optimistic about when people will retire. If you ask it to predict just 1 year out, it's more accurate.
4. The Limits of the Machine
The paper is honest about what the AI can't do yet:
- Rare Events: If a specific policy rule is very rare (like the unemployment benefit for a specific age group), the AI smooths it out. It learns the "vibe" of the rule but misses the sharp, legalistic edges.
- Long-Term Drift: If you ask the AI to write a life story 20 years into the future, it eventually starts to make grammatical mistakes (like overlapping jobs or impossible dates). It works well for about 7 or 8 years, but after that, the story starts to fall apart.
The Bottom Line
This paper demonstrates that we can turn dry government records into a "creative writing engine" that understands the logic of human lives. It doesn't predict the future with a crystal ball; rather, it simulates plausible alternative paths based on the patterns it has learned from millions of real lives.
It's like giving a computer a library of 1.6 million biographies and asking it to write a new one that feels just as real, allowing researchers to ask "What if?" questions about policy and life choices without needing to wait for real life to play out.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.