[Paper Review] Mamba Meets Scheduling: Learning to Solve Flexible Job Shop Scheduling with Efficient Sequence Modeling
The paper introduces Mamba-CrossAttention (M-CA) for flexible job shop scheduling, using linear-time Mamba state-space models to enable end-to-end, efficient sequence modeling and outperform learning-based baselines on FJSP benchmarks.
The Flexible Job Shop Problem (FJSP) is a well-studied combinatorial optimization problem with extensive applications for manufacturing and production scheduling. It involves assigning jobs to various machines to optimize criteria, such as minimizing total completion time. Current learning-based methods in this domain often rely on localized feature extraction models, limiting their capacity to capture overarching dependencies spanning operations and machines. This paper introduces an innovative architecture that harnesses Mamba, a state-space model with linear computational complexity, to facilitate comprehensive sequence modeling tailored for FJSP. In contrast to prevalent graph-attention-based frameworks that are computationally intensive for FJSP, we show our model is more efficient. Specifically, the proposed model possesses an encoder and a decoder. The encoder incorporates a dual Mamba block to extract operation and machine features separately. Additionally, we introduce an efficient cross-attention decoder to learn interactive embeddings of operations and machines. Our experimental results demonstrate that our method achieves faster solving speed and surpasses the performance of state-of-the-art learning-based methods for FJSP across various benchmarks.
Motivation & Objective
- Extend Mamba models to scheduling domains to address FJSP efficiently.
- Propose Mamba-CrossAttention to learn interactive operation-machine embeddings from full sequences.
- Replace graph-based state design with linear-time sequence modeling for improved performance and speed.
- Demonstrate near-optimal solutions and state-of-the-art results on diverse FJSP benchmarks.
Proposed method
- Encoder-decoder architecture where the encoder uses dual Mamba blocks to separately extract operation and machine features.
- Cross-attention decoder to fuse operation and machine embeddings and learn interactive representations.
- Decision network that concatenates operation, machine, and global features with candidate pair features to compute selection probabilities.
- MDP formulation of FJSP as sequential decisions over eligible operation-machine pairs with makespan-based reward.
- Training with PPO in an actor-critic framework using GAE for stability.
- Evaluation on six public FJSP benchmarks and synthetic/large-scale instances to compare against baselines.

Experimental results
Research questions
- RQ1Can full-sequence modeling via Mamba improve FJSP representation learning beyond neighborhood-restricted graph methods?
- RQ2Does the Mamba-CrossAttention architecture yield faster solving speeds while achieving near-optimal makespans on FJSP benchmarks?
- RQ3How does M-CA compare to graph-based and heuristic baselines across standard and large-scale FJSP instances?
- RQ4Can FJSP be effectively framed as an end-to-end learning problem with an encoder–decoder policy and PPO training?
Key findings
- M-CA attains faster solving speed than state-of-the-art learning-based methods on multiple FJSP benchmarks.
- The approach achieves near-optimal solutions and outperforms various baselines including graph attention and MLP-based methods.
- The Dual Mamba Encoder provides efficient feature extraction with linear time complexity for operation and machine sequences.
- Cross-attention decoder enables efficient interaction learning between operations and machines with complexity O(|O|·|M|).
- PPO-based training with GAE yields stable optimization and strong performance across synthetic and public benchmarks.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.