Curriculum-Augmented GFlowNets for mRNA Design
- 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 is a prefix of codons , , or the special sink state . The initial state is the empty prefix. If with , then the action space is restricted to synonymous codons encoding the th amino acid of the target protein; if , the only forward action is , which transitions to 0. Backward actions remove the last codon (Laajil et al., 4 Oct 2025).
A full episode is a trajectory
1
The flow-based formulation posits a nonnegative flow function 2 on edges. For every non-terminal state 3, incoming and outgoing flows satisfy conservation,
4
and for each terminating state 5,
6
The associated forward and backward policies are
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 8, the loss is
9
For full trajectories terminating at 0, this reduces to the Trajectory Balance loss with learned normalizer 1: 2
Within the proposed environment, non-terminal rewards are zero and only terminal states receive reward. The design environment, named CodonDesignEnv, represents states as length-3 integer vectors with 4 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 5 (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 6 intervals: 7 Each task corresponds to training on proteins whose length lies in one of these intervals. At each evaluation step 8, the mean reward 9 is recorded for each task 0, and learning progress is tracked by an exponential moving average: 1 with 2.
Task sampling is then determined by
3
with 4 to ensure exploration. At each training step, the Teacher samples a task index 5, draws a protein of the corresponding length, instantiates the environment, and runs 6 GFlowNet updates before re-sampling. Every 7 outer steps, tasks are re-evaluated to update 8 (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 9, the objective vector is
0
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 1, sampled from 2 in conditional training, the scalar reward is
3
By conditioning on 4, 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 5, uniform task sampling 6, and 7. For each outer iteration, a task and corresponding protein sequence are sampled, the environment 8 is instantiated, and 9 inner updates are executed. During each inner update, a preference vector 0 is sampled, a batch of 1 trajectories is generated from 2, the SubTB loss is computed, and parameters are updated with Adam at learning rate 3. Every 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 5, a linear head produces logits over 65 actions, which are masked to valid codons plus exit and normalized by softmax to yield 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 | 7 |
| Inner updates per task | 8 |
| Evaluation frequency | Every 5 steps |
| Optimizer | Adam |
| Learning rate for 9 | 0 |
| Learning rate for 1 | 2 |
| Batch size | 3 |
| Sampled trajectories per evaluation | 100 |
| Dirichlet prior | 4 |
| Teacher EMA smoothing | 5 |
| Teacher exploration floor | 6 |
| Action masking exploration floor | 7 |
| 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-8 Reward and Top-9 Diversity with 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 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 2 faster than LGFN and 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 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, 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).