Papers
Topics
Authors
Recent
Search
2000 character limit reached

Curriculum-Augmented GFlowNets for mRNA Design

Updated 14 July 2026
  • The paper demonstrates that CAGFN, using a Sub-trajectory Balance loss and adaptive curriculum, effectively optimizes multi-objective mRNA sequence design.
  • CAGFN sequentially constructs synonymous codon sequences on a directed acyclic graph to balance stability, translation efficiency, and protein expression.
  • The adaptive task selection improves exploration, Pareto coverage, and diversity while achieving training speeds up to 4× faster than specialized baselines.

Searching arXiv for the target paper and closely related GFlowNet references. Curriculum-Augmented GFlowNets (CAGFN) are a variant of Generative Flow Networks introduced for de novo multi-objective mRNA sequence generation. In this formulation, mRNA design is cast as sequential construction of codon sequences on a directed acyclic graph, with terminal sequences sampled proportionally to a scalarized biological reward. CAGFN combine a preference-conditional GFlowNet with a length-based curriculum that progressively adapts training across protein-length regimes, with the stated aim of mitigating sparse, long-horizon rewards and multi-objective trade-offs in therapeutic sequence design. The framework was introduced in “Curriculum-Augmented GFlowNets For mRNA Sequence Generation” (Laajil et al., 4 Oct 2025).

1. Problem formulation and scope

CAGFN are defined for the setting in which a target protein sequence is given and the goal is to generate plausible synonymous mRNA sequences that optimize multiple biological objectives simultaneously. The underlying challenge is described as the exploration of a vast space of possible nucleotide combinations while balancing sequence properties such as stability, translation efficiency, and protein expression (Laajil et al., 4 Oct 2025).

The method frames mRNA sequence design as a stochastic policy over a directed acyclic graph of partial codon sequences. Each state sSs \in \mathcal{S} is a prefix of codons (c1,,ct)(c_1,\dots,c_t), 0tL0 \le t \le L, or the special sink state sfs_f. The initial state s0s_0 is the empty prefix. If s=(c1,,ct)s=(c_1,\dots,c_t) with t<Lt<L, then the action space is restricted to synonymous codons encoding the (t+1)(t+1)th amino acid of the target protein; if t=Lt=L, the only forward action is exit\texttt{exit}, which transitions to (c1,,ct)(c_1,\dots,c_t)0. Backward actions remove the last codon (Laajil et al., 4 Oct 2025).

A full episode is a trajectory

(c1,,ct)(c_1,\dots,c_t)1

The flow-based formulation posits a nonnegative flow function (c1,,ct)(c_1,\dots,c_t)2 on edges. For every non-terminal state (c1,,ct)(c_1,\dots,c_t)3, incoming and outgoing flows satisfy conservation,

(c1,,ct)(c_1,\dots,c_t)4

and for each terminating state (c1,,ct)(c_1,\dots,c_t)5,

(c1,,ct)(c_1,\dots,c_t)6

The associated forward and backward policies are

(c1,,ct)(c_1,\dots,c_t)7

This construction makes CAGFN a sequence-generation method in which sampling probabilities are aligned with terminal rewards rather than solely with one-step likelihood objectives. A plausible implication is that the framework is intended to search broadly over synonymous codon realizations while preserving controllable pressure toward biologically desirable sequence-level outcomes.

2. GFlowNet objective and sequence-generation mechanics

The training objective used in CAGFN is the Sub-trajectory Balance (SubTB) objective, chosen to stabilize learning on long sequences (Laajil et al., 4 Oct 2025). For a partial trajectory (c1,,ct)(c_1,\dots,c_t)8, the loss is

(c1,,ct)(c_1,\dots,c_t)9

For full trajectories terminating at 0tL0 \le t \le L0, this reduces to the Trajectory Balance loss with learned normalizer 0tL0 \le t \le L1: 0tL0 \le t \le L2

Within the proposed environment, non-terminal rewards are zero and only terminal states receive reward. The design environment, named CodonDesignEnv, represents states as length-0tL0 \le t \le L3 integer vectors with 0tL0 \le t \le L4 for unfilled codons. Dynamic action masking ensures that, at each position, only synonymous codons for the relevant amino acid are valid, plus a final “exit” action at 0tL0 \le t \le L5 (Laajil et al., 4 Oct 2025).

This structure is central to the method’s use in codon design. Since forward actions are constrained to synonymous codons, generated sequences preserve the target amino-acid sequence while varying the nucleotide realization. This suggests that the optimization target is not protein identity itself, but the biological quality of synonymous mRNA realizations under a specified objective mixture.

3. Length-based curriculum and adaptive task selection

The distinctive feature of CAGFN is the incorporation of curriculum learning into multi-objective GFlowNet training. Because mRNA sequences may be very long, the method introduces an adaptive, length-aware curriculum following the Teacher–Student Curriculum Learning framework (Laajil et al., 4 Oct 2025).

Protein lengths are partitioned into 0tL0 \le t \le L6 intervals: 0tL0 \le t \le L7 Each task corresponds to training on proteins whose length lies in one of these intervals. At each evaluation step 0tL0 \le t \le L8, the mean reward 0tL0 \le t \le L9 is recorded for each task sfs_f0, and learning progress is tracked by an exponential moving average: sfs_f1 with sfs_f2.

Task sampling is then determined by

sfs_f3

with sfs_f4 to ensure exploration. At each training step, the Teacher samples a task index sfs_f5, draws a protein of the corresponding length, instantiates the environment, and runs sfs_f6 GFlowNet updates before re-sampling. Every sfs_f7 outer steps, tasks are re-evaluated to update sfs_f8 (Laajil et al., 4 Oct 2025).

The stated rationale is progressive adaptation from easier to harder subproblems. In operational terms, the curriculum does not merely sort tasks by length once; it reweights them according to measured learning progress. A plausible implication is that CAGFN treat protein length as the principal source of horizon difficulty, and use task scheduling to concentrate optimization where marginal learning remains positive.

4. Multi-objective reward design

CAGFN optimize three biological objectives simultaneously and scalarize them via a weighted sum. For a complete mRNA sequence sfs_f9, the objective vector is

s0s_00

where CAI is the Codon Adaptation Index, MFE is the Minimum Free Energy of secondary structure, and GC\% is the fraction of G or C nucleotides (Laajil et al., 4 Oct 2025).

Given a weight vector s0s_01, sampled from s0s_02 in conditional training, the scalar reward is

s0s_03

By conditioning on s0s_04, one GFlowNet is trained to learn the entire Pareto front (Laajil et al., 4 Oct 2025).

This reward specification makes CAGFN explicitly preference-conditional. Rather than train separate models for different objective trade-offs, a single policy is conditioned on sampled weights over the three objectives. In the terminology of the source, the method is therefore both multi-objective and curriculum-augmented. This suggests that diversity over biological trade-offs is intended to be handled by conditional reward scalarization, whereas diversity over sequence space is handled by the GFlowNet sampling mechanism.

5. Algorithmic implementation and model architecture

The high-level CAGFN procedure initializes policy s0s_05, uniform task sampling s0s_06, and s0s_07. For each outer iteration, a task and corresponding protein sequence are sampled, the environment s0s_08 is instantiated, and s0s_09 inner updates are executed. During each inner update, a preference vector s=(c1,,ct)s=(c_1,\dots,c_t)0 is sampled, a batch of s=(c1,,ct)s=(c_1,\dots,c_t)1 trajectories is generated from s=(c1,,ct)s=(c_1,\dots,c_t)2, the SubTB loss is computed, and parameters are updated with Adam at learning rate s=(c1,,ct)s=(c_1,\dots,c_t)3. Every s=(c1,,ct)s=(c_1,\dots,c_t)4 outer steps, tasks are evaluated to update learning progress and recompute the task distribution (Laajil et al., 4 Oct 2025).

The policy network is identified as the “PF module.” It takes as input a sequence of codon indices of length up to 180, embedded to dimension 32. The core model is a 4-layer Transformer with hidden size 256 and 8 attention heads. At each step s=(c1,,ct)s=(c_1,\dots,c_t)5, a linear head produces logits over 65 actions, which are masked to valid codons plus exit and normalized by softmax to yield s=(c1,,ct)s=(c_1,\dots,c_t)6 (Laajil et al., 4 Oct 2025).

The source also reports the following implementation hyperparameters and resources.

Component Specification
Task intervals [25,40], [45,60], [65,80], [85,120], [125,180] AA
Outer iterations s=(c1,,ct)s=(c_1,\dots,c_t)7
Inner updates per task s=(c1,,ct)s=(c_1,\dots,c_t)8
Evaluation frequency Every 5 steps
Optimizer Adam
Learning rate for s=(c1,,ct)s=(c_1,\dots,c_t)9 t<Lt<L0
Learning rate for t<Lt<L1 t<Lt<L2
Batch size t<Lt<L3
Sampled trajectories per evaluation 100
Dirichlet prior t<Lt<L4
Teacher EMA smoothing t<Lt<L5
Teacher exploration floor t<Lt<L6
Action masking exploration floor t<Lt<L7
Action-to-distribution “GreedyProp” (ε-greedy proportional), a2d_ε=0.15
Attention-computation “LP” or Mastering-Rate variants
Library and hardware torchgfn; standard GPU hardware such as 2 × NVIDIA A100

All experiments are reported as having been run with the torchgfn library on standard GPU hardware, with end-to-end runs completing in under 24 h (Laajil et al., 4 Oct 2025).

6. Experimental evaluation and reported findings

The reported dataset is based on CodonTransformer data and includes proteins of lengths 25–180 amino acids, split into the five curriculum intervals. Benchmarks are reported for small proteins (25–60 AA) and medium proteins (85–120 AA). Baselines include SGFN (short-only), LGFN (long-only), ROFN (random order), reinforcement-learning methods MOReinforce and PPO, and a multi-objective GFlowNet without curriculum (Laajil et al., 4 Oct 2025).

Evaluation uses Top-t<Lt<L8 Reward and Top-t<Lt<L9 Diversity with (t+1)(t+1)0, Pareto performance defined as the fraction of generated sequences covering the Pareto front, uniqueness as the percentage of unique sequences, and training time and loss dynamics (Laajil et al., 4 Oct 2025).

The principal quantitative findings are summarized below.

Setting Reported outcome
Small proteins CAGFN achieves Top-K reward (t+1)(t+1)1 vs 0.58 for SGFN, with 100% diversity and Pareto coverage up to 0.22 vs 0.19
Medium proteins Pareto performance up to 0.21 for CAGFN vs 0.17 for LGFN and ROFN
RL comparison GFlowNets with or without curriculum maintain 100% uniqueness vs up to 88% duplicates in PPO
Speed CAGFN trains (t+1)(t+1)2 faster than LGFN and (t+1)(t+1)3 faster than ROFN
OOD generalization CAGFN generalizes effectively to unseen proteins across all length ranges while maintaining Pareto and diversity metrics

The source further states that CAGFN improve Pareto performance and biological plausibility while maintaining diversity, and that they reach higher-quality solutions faster than a GFlowNet trained with random sequence sampling and enable generalization to out-of-distribution sequences (Laajil et al., 4 Oct 2025).

These results position the curriculum mechanism as the main differentiator from non-curriculum GFlowNet training. The reported smoother loss curves and stable credit assignment suggest that the curriculum is presented not only as a data-ordering heuristic but as a mechanism for stabilizing optimization under long horizons.

7. Interpretation, relation to nearby methods, and limitations of scope

Within the reported comparison set, CAGFN are distinct from SGFN and LGFN because those baselines are specialist models tied to restricted length regimes, and from ROFN because that baseline uses random order rather than adaptive curriculum. They are also distinguished from PPO and MOReinforce by the use of GFlowNet objectives and by the emphasis on sequence diversity and Pareto coverage rather than policy optimization alone (Laajil et al., 4 Oct 2025).

A recurrent misconception in sequence design is that improved scalar reward necessarily implies broad coverage of competing design trade-offs. The CAGFN formulation explicitly separates these concerns: scalarized rewards are conditioned on sampled preference vectors (t+1)(t+1)4, while evaluation includes Pareto performance and diversity. This suggests that the method is intended to produce not a single optimum, but a set of plausible trade-off solutions across the objective simplex.

Another possible misconception is that the curriculum simply truncates sequence length and therefore changes the target problem. The description instead presents a task-selection mechanism over protein-length intervals, with dynamic reallocation based on learning progress. The objective remains generation of complete mRNA sequences for a specified target protein. The curriculum changes the ordering and frequency of training exposures rather than redefining the terminal design task (Laajil et al., 4 Oct 2025).

The scope of the claims is limited to the stated environment and objectives: CAI, (t+1)(t+1)5MFE, and GC\%. No broader therapeutic efficacy claims are made in the source. Likewise, “biological plausibility” is reported as an empirical outcome, but the detailed operationalization of that phrase is not expanded beyond the objective design and benchmark metrics in the provided material. A plausible implication is that the paper treats these three objectives as a biologically motivated proxy rather than an exhaustive biological model.

In summary, CAGFN denote a curriculum-augmented, preference-conditional GFlowNet framework for synonymous mRNA sequence generation in which protein-length scheduling is used to stabilize training over long horizons, and multi-objective scalarization is used to learn diverse Pareto trade-offs within a single policy (Laajil et al., 4 Oct 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Curriculum-Augmented GFlowNets (CAGFN).