cd /news/ai-agents/a-third-of-one-kind-of-lipid-left-ou… · home › topics › ai-agents › article
[ARTICLE · art-175423] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

A third of one kind of lipid left our simulated membrane at a setting where a short test saw none come off

An engineer directing AI agents that write, run and measure molecular simulations found that a simulated two-lipid membrane at an inter-species attraction of eps_ab = 0.65 lost 31 to 36% of its minority lipids over 27,000 steps, even though a shorter 9,000-step test had seen none break away at that setting. The result, built on the Cooke-Kremer-Deserno lipid model in roughly 150 lines of C, undercuts the earlier estimate that placed the budding threshold between 0.65 and 0.6, and the engineer notes that short runs can mislead about where patches bud off.

recommendation

Extend simulation or eval runs well past the point where a short test shows no effect before concluding a threshold holds; here tripling the run length exposed 31-36% lipid loss.

more in playbook: Evals and testing for LLM apps
by read11 min views3 publishedNov 24, 2026

Our simulated membrane is a flat sheet of two kinds of lipid, and one number, eps_ab, sets how hard the two kinds pull on each other: at 1.0 as hard as within a kind, at 0.65 about a third weaker. A short test saw five pieces break away from the sheet within 9,000 steps at 0.6, and none off at 0.65 by then. Run three times as long, the sheet at 0.65 lost 31 to 36 % of its minority lipids (two random seeds).

This is an experiment: my AI agents write the simulation code, run it and measure what comes out, and I direct them and check the numbers. Our earlier membrane simulation, protocell, is listed on AllKeep Lab: a GPU run that tried to grow a closed cell membrane from simple molecules and never closed it.

A cell membrane is a double layer of fat molecules (lipids), heads facing the water on both sides, tails tucked inside. Real membranes mix many kinds of lipid. When two kinds would rather sit next to their own kind, they gather into patches, and the rim of a patch costs energy, the way the surface of a raindrop does. Physicists call that cost per unit length of rim the line tension.

A patch can shorten its rim by bulging out of the sheet. A dome has a shorter rim than a flat disc of the same area, and a ball that has pinched off has no rim at all. Bending the sheet costs energy too, so a patch buds off only when its rim costs more than the bend. Reinhard Lipowsky worked this out in the early 1990s (Biophys. J. 64, 1133, 1993): a flat patch becomes unstable and buds once it grows past a size set by the membrane's bending stiffness divided by the line tension of the patch's edge.

So we expected a line. Above some pull between the two kinds, patches stay flat; below it, they bud. The first short test seemed to put that line between 0.65 and 0.6.

The simulation is the lipid model of Cooke, Kremer and Deserno (Phys. Rev. E 72, 011506, 2005), written from the paper in about 150 lines of C. Each lipid is three beads on springs: one head and two tail beads. There is no water at all. In a real membrane, water pushes the oily tails together; here that push is replaced by a broad attraction between tail beads, and that alone holds the lipids together as a double layer. Units are the model's own: lengths in σ (about one bead), energies in ε (the depth of the tail attraction), time in τ.

Our version has two kinds of lipid, drawn orange and teal. They are identical in every way but one: how strongly a teal tail pulls an orange tail. That number, eps_ab, is 1.0 when the pull between kinds is as strong as within a kind. This is the part of the force loop where it enters:

if (taili && tailj) {                      /* both beads are tails */
    double e = ((ti == tj) ? 1.0 : eab), r = sqrt(r2);
    if (r < RC) e_ -= e;                   /* full depth inside 2^(1/6) sigma */
    else if (r < RC + wc) {                /* cos^2 tail out to rc + wc */
        double a = M_PI * (r - RC) / (2 * wc), cs_ = cos(a);
        e_ -= e * cs_ * cs_;
        fr += -e * 2 * cs_ * sin(a) * (M_PI / (2 * wc)) / r;
    }
}

ti == tj compares bead types, so an orange tail meeting a teal tail gets eab instead of 1.0. Everything else is the same for both kinds: the springs, the repulsion between all beads, and the random kicks of a heat bath that keep the temperature at kT = 1.1. The attraction reaches wc = 1.6σ beyond the distance where the repulsion ends, and each step moves time on by 0.01τ.

The sheet is flat and fills a periodic box 48.4σ on a side: 44 by 44 lipids in each of the two layers, 3,872 lipids and 11,616 beads, 1.1σ apart at the start. Periodic means the sheet has no edges: it leaves one side of the box and comes back in on the other. In the run with no difference between the kinds, the median lipid drifted 3.2σ sideways in 27,000 steps, about three neighbour spacings, and over the 300,000 steps of the sorting run in the next section, 12σ. The lipids wander past each other, so the sheet is a fluid, as a membrane should be.

The first three runs were made as short videos, and each changed two things at once: the share of teal lipids and the pull between the kinds.

teal lipids pull eps_ab steps what the measurement says
50 % 0.8 300,000 sorted into patches: among each head's six nearest heads, the share of its own colour rose from 0.50 to 0.93; the sheet stayed one piece
20 % 0.6 100,000 teal left: 9 pieces of 20+ lipids at the end, the teal share of the sheet down from 20.4 % to 8.6 %
40 % 0.0 150,000 torn: 16 pieces of 20+ lipids within 3,000 steps of setting the pull to 0.0, and at the end a third of the box's floor plan (32 %) had no membrane over it

The middle one looks like budding in its video, whose last frame is above: teal patches swell out of the sheet, above and below, while loose lipids drift away. With two knobs turned at once, though, the three videos cannot say what the pull alone does. So the agents ran a sweep.

Every run starts from the sheet of the budding video: the same 789 teal lipids out of 3,872, in the same places. Each gets the same warm-up of 3,000 short steps with the pull at 1.0, which lets the freshly built sheet settle, and then 27,000 steps at one pull: 1.0 as the control, 0.8, 0.7, 0.65, 0.6 and 0.5. The two values around the supposed line, 0.65 and 0.6, ran a second time from a warm-up with another random seed, so the heat bath's kicks came out different. The first 0.6 run is the budding video itself, cut at the same 30,000 steps. Seven new runs, two threads each, took 54 minutes on a laptop that was busy with other jobs.

pull eps_ab teal off the sheet at step 30,000 pieces of 20+ lipids first piece at step
1.0 (control) 0 of 789 (at most 1 in any frame) 0 none
0.8 14 (1.8 %) 0 none
0.7 185 (23 %) 2 23,000
0.65, two seeds 285 (36 %) and 244 (31 %) 8 and 6 13,000 and 11,000
0.6, two seeds 410 (52 %) and 394 (50 %) 8 and 8 by 14,000* and 12,000
0.5 752 (95 %) 19 6,000
  • The video run saved a frame every 2,000 steps, the sweep runs every 1,000, so its first piece came somewhere after step 12,000 and by 14,000.

The short test compared the two settings at step 12,000, 9,000 steps past the warm-up: five pieces off at 0.6, none off at 0.65. Runs with its seed did not repeat it. The budding video ran at 0.6 on the same cloud machine as the test, from the same sheet with the same seed, and still had no piece off at step 12,000. So the test cannot be redone from its seed. In our reruns the first pieces at 0.65 and at 0.6 all came between steps 11,000 and 14,000, and no seed shows 0.6 going first: with the other seed, 0.65 went first.

Counting lipids instead of pieces tells 0.65 from 0.6. The test is known only from a note in our list of runs. At 0.6 it also followed the share of teal in the sheet, which fell from 20 % to 11 % by step 24,000; for 0.65 it records only "none off at 12000". The reruns counted lipids at both settings. At step 12,000, 9.0 % of the teal was off the sheet at 0.65 against 23 % at 0.6 with the test's seed, and 16 % against 40 % with the other seed. At 0.65 those 9 % were 71 lipids, alone or in groups of fewer than 20, so a count of pieces sees none of them.

The lines in the chart wobble because a loose piece that drifts back against the sheet counts as part of it again until it leaves once more. At 0.5 the sheet also began to tear: by step 30,000, 6.6 % of the floor plan had no membrane over it. At every other pull it stayed at 0.4 % or below.

The chart needs a rule for when a lipid has left, and the rule is a choice. This is the part of the measuring script that makes it:

p = cKDTree(X[tail], boxsize=L).query_pairs(1.5, output_type='ndarray')
m = coo_matrix((np.ones(len(p)), (lipid[p[:, 0]], lipid[p[:, 1]])), shape=(n, n))
nc, lab = connected_components(m, directed=False)
sz = np.bincount(lab); big = sz.argmax()          # the largest cluster is the sheet
inbig = lab == big
teal_out = (isB & ~inbig).sum() / max(isB.sum(), 1)   # share of all teal lipids not in the sheet

Tails, not heads, because tails are what hold a double layer together: the heads of the two layers face away from each other and never touch. 1.5σ is a little more than the 1.1σ the lipids start apart, so neighbours in the sheet always count as touching, and a lipid has to be clear of every tail of the sheet to count as gone. A piece is a cluster of 20 or more lipids; smaller groups and single lipids are counted on their own.

With that rule in place, the agents looked at who left first: single lipids and small groups, not pieces. Two thousand steps after the warm-up (step 5,000), no teal lipid in any run sat in a piece of 20 or more. At 0.7, all 27 teal lipids that had left were alone. At 0.65 it was 51 lipids (32 alone, 19 in groups of two to nineteen) and 48 with the other seed (35 and 13); at 0.6, 84 (47 and 37); at 0.5, 141 (48 and 93). At 0.8, 14 teal lipids were off the sheet at the end, every one of them alone, and no piece formed in the whole run.

The orange lipids barely moved off: at most 3 of the 3,083 were off the sheet in any frame of any run, the same as in the control. That fits the one difference between the kinds. A teal lipid surrounded by orange neighbours is held by the weaker pull, and the heat bath kicks it out now and then. An orange lipid among orange, or a teal lipid inside a teal patch, is held at full strength.

Pieces came later, and they did come off the sheet as clumps. For each piece the first time it appeared, the agents looked 1,000 steps back: 78 to 100 % of its lipids had been in the sheet then, depending on the run. Yet only 21 to 62 % of those lipids had never been off the sheet before. The rest had left once, alone or in a piece, and come back. In the 100,000 steps of the budding video, a piece of 20+ lipids came away from the sheet 28 times, and 9 pieces were left at the end.

The sweep found no line where we expected one, between 0.65 and 0.6. Counted in pieces, the grid does show a jump, between 0.8 and 0.7: no piece and 1.8 % of the teal lost, all of it single lipids, at 0.8, against 2 pieces and 23 % at 0.7. We ran no setting between those two, so the grid cannot say what happens there. Maybe the threshold is still there, under the leak of single lipids. Lipowsky's picture says a patch has to grow past a size before it buds, and in a box 48σ across, with a fixed area and teal lipids leaking out one at a time, a patch may never get the chance to grow that large. A bigger box, a sheet held at a fixed tension instead of a fixed area, or the same sweep at a lower and a higher temperature could each tell those apart, and we have run none of them yet.

Our other science runs are written up on AllKeep Lab. If you have simulated mixed membranes, how do you tell a patch that buds off from lipids that leak out one at a time, and did you hold the sheet's tension fixed or its area?

── more in #ai-agents 4 stories · sorted by recency
── more on @allkeep lab 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/a-third-of-one-kind-…] indexed:0 read:11min 2026-11-24 · —