Skip to main content
QUICK REVIEW

[Paper Review] Cartesian Genetic Programming Approach for Designing Convolutional Neural Networks

Maciej Krzywda, Szymon Łukasik|arXiv (Cornell University)|Sep 15, 2024
Evolutionary Algorithms and ApplicationsComputer Science2 citations
TL;DR

This paper proposes a 1D reinforcement learning (RL) approach using a UNet-based policy network and Proximal Policy Optimization (PPO) to solve the 2D rectangular strip packing problem with high-granularity state and action spaces. By reducing the state and action spaces to 1D via height maps and feasibility masks, the model achieves performance comparable to the MaxRects heuristic and even outperforms it on random item sets with intermediate rewards.

ABSTRACT

The present study covers an approach to neural architecture search (NAS) using Cartesian genetic programming (CGP) for the design and optimization of Convolutional Neural Networks (CNNs). In designing artificial neural networks, one crucial aspect of the innovative approach is suggesting a novel neural architecture. Currently used architectures have mostly been developed manually by human experts, which is a time-consuming and error-prone process. In this work, we use pure Genetic Programming Approach to design CNNs, which employs only one genetic operation, i.e., mutation. In the course of preliminary experiments, our methodology yields promising results.

Motivation & Objective

  • Address the challenge of high-dimensional state and action spaces in 2D rectangular strip packing using reinforcement learning.
  • Develop a reduced 1D representation of the bin state and action space to improve training stability and convergence.
  • Enable generalization to non-rectangular packing and complex constraints beyond traditional heuristics.
  • Evaluate the effectiveness of terminal versus intermediate reward shaping in RL-based packing.
  • Demonstrate that RL can achieve performance on par with or better than the MaxRects heuristic in specific scenarios.

Proposed method

  • Represent the bin state using five channels: a normalized height map (channel 1), two binary feasibility masks for 0° and 90° rotations (channels 2–3), and a 2D shape embedding (channels 4–5) for the current item.
  • Reduce the action space to 2·w by modeling placement probabilities along the X-axis only, with separate vectors for non-rotated and rotated items.
  • Use a 1D UNet architecture as the policy network to model spatial correlations and enable segmentation-like decision-making for optimal placement.
  • Apply Proximal Policy Optimization (PPO) to train the RL agent with two reward functions: V1 (terminal-only) and V2 (intermediate + terminal) to guide learning.
  • Design the reward function V2 to penalize lost area during packing steps, encouraging early space efficiency.
  • Discretize the bin into w=125 columns and h=150 rows, but constrain agent decisions to 1D X-axis placement to mitigate dimensionality.

Experimental results

Research questions

  • RQ1Can a 1D representation of the 2D bin state and action space effectively reduce dimensionality while preserving packing performance in RL-based approaches?
  • RQ2How does intermediate reward shaping (V2) compare to terminal-only reward (V1) in guiding the RL agent toward efficient packing?
  • RQ3To what extent can an RL agent trained with high-granularity state representation match or exceed the performance of the MaxRects heuristic?
  • RQ4Does the proposed method generalize to non-rectangular shapes or complex constraints, given its vision-based, grid-like structure?
  • RQ5What is the impact of reward function design on the stability and variance of packing results across different item sets?

Key findings

  • The model with terminal-only reward (V1) achieved packing performance slightly inferior to MaxRects on fixed-size item sets, but demonstrated strategic planning near bin borders.
  • The intermediate reward version (V2) outperformed MaxRects on random item sets, indicating that early feedback improves generalization and efficiency.
  • Both V1 and V2 showed lower variance in results than MaxRects, indicating greater stability and reduced uncertainty in packing outcomes.
  • The agent with V2 learned to leave central blank spaces intentionally, suggesting strategic behavior to avoid future space fragmentation.
  • The 1D UNet-PPO approach successfully mitigated the curse of dimensionality, enabling stable training and high-granularity packing decisions.
  • The method’s architecture supports potential extension to non-rectangular packing and integration with heuristics, offering a scalable RL framework for bin packing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.