Title: LONG TERM MEMORY NETWORK FOR COMBINATO-RIAL OPTIMIZATION PROBLEMS

Abstract: This paper introduces a framework for solving combinatorial optimization problems by learning from input-output examples of optimization problems. We introduce a new memory augmented neural model in which the memory is not resettable (i.e the information stored in the memory after processing an input example is kept for the next seen examples). We used deep reinforcement learning to train a memory controller agent to store useful memories. Our model was able to outperform hand-crafted solver on Binary Linear Programming (Binary LP). The proposed model is tested on different Binary LP instances with large number of variables (up to 1000 variables) and constrains (up to 700 constrains).

1. INTRODUCTION:

An intelligent agent with a long-term memory processes raw data (as images, speech and natural language sentences) and then transfer these data streams into knowledge. The knowledge stored in the long-term memory can be used later in inference either by retrieving segments of memory during recalling, matching stored concepts with new raw data (e.g. image classification tasks) or solving more complex mathematical problems that require memorizing either the method of solving a problem or simple steps during solving. For example, the addition of long-digit numbers requires memorizing both the addition algorithm and the carries produced from the addition operations (Zaremba et al., 2016) .

In neural models, the weights connecting the layers are considered long term memories encoding the algorithm that transform inputs to outputs. Other neural models as recurrent neural networks (RNNs) introduce a short-term memory encoded as hidden states of previous inputs (Lipton et al., 2015; Hochreiter & Schmidhuber, 1997) .

In memory augmented neural networks (MANNs), a controller writes memories projected from its hidden state to a memory bank (usually in the form of a matrix), the controller then reads from the memory using some addressing mechanisms and generates a read vector which will be fed to the controller in the next time step (Graves et al., 2014) . The memory will contain information about each of the input sequence tokens and the controller enriches its memory capacity by using the read vector form the previous time step.

Unfortunately, In MANNs the memory is not a long-term memory and is re-settable when new examples are processed, making it unable to capture general knowledge about the inputs domain. In context of natural language processing, one will need general knowledge to answer open-ended questions that do not rely on temporal information only but also on general knowledge from previous input streams. In long-digits multiplication, it will be easier to store some intermediate multiplication steps as digit by digit multiplications and use them later when solving other instances than doing the entire multiplication digit by digit each time from scratch.

Neural networks have a large capacity of memorizing, a long-term persistent memory will even increase the network capacity to memorize but will decrease the need for learning coarse features of the inputs that requires more depth.

Storing features of the inputs will create shortcut paths for the network to learn the correct targets. Such a network will no longer need to depend on depth to learn good features of the inputs but instead will depend on stored memory features. In other words a long-term memory can provide intermediate answers to the network. Unlike regular MANNs and RNNs, a long-term memory can provide shortcut connections to both inputs features and previous time steps inputs.

Consider when the memory contains the output of previous examples, the network would cheat from the memory to provide answers. Training such a network will focus on two stages: (1) Learning to find similarities between memory vectors and current input data, (2) learning to transform memory vectors into meaningful representations for producing the final output.

The No Free Lunch Theorem of optimization (Wolpert & Macready, 1997) states that: any two algorithms are equivalent when their performance is averaged across all possible problems, this means that an algorithm that solve certain classes of problems efficiently will be incompetent in other problems. In the setting of combinatorial optimization, there is no algorithm able to do better than a random strategy in expectation. The only way an algorithm outperforms another is to be specialized to a certain class of optimization problems (Andrychowicz et al., 2016) . Learning optimization algorithms from scratch using pairs of input-output examples is a way to outperform other algorithms on certain classes. It is further interesting to investigate the ability of learned models to generate better solutions than hand crafted solvers.

The focus of this paper is on designing neural models to solve Binary Linear Programming (or 0-1 Integer Programming) which is a special case of Integer Linear Programming problems where all decision variables are binary. The 0-1 integer programming is one of Krap's 21 NP-complete problems introduced in Karp (1972) . The goal of Binary LP is to optimize a linear function under certain constrains. It is proved by Cadoli (2001) that Binary LP expresses the complexity class NP (i.e any problem in the complexity class NP can be modeled as Binary LP instance).

The standard form of a Binary LP problem is:

maximize c T x subject to Ax ≤ b x ≥ 0 x ∈ { 0, 1}

where c and b are vectors and A is a matrix.

We propose a general framework for long-term memory neural models that uses reinforcement learning to store memories from a neural network. A long-term memory is not resettable and may or may not store hidden states from individual time steps. Instead a long term memory stores information that is considered to be useful for solving similar instances. The controller that decides to write memories follows a policy function that properly constructs the memory contents. We train and test this framework on synthetic data set of Binary LP instances. We analyze the model capability of generalization to more complex instances beyond the training data set.

2. LITERATURE REVIEW:

A related line of work is learning to learn and meta-learning, Lake et al. (2016) argued that it is an important building block in artificial intelligence. Younger et al. (2001) and Andrychowicz et al. (2016) used recurrent neural networks to act as a gradient descent procedure to train other networks.

The application of neural networks to combinatorial optimization has a long distinguished history. Most common approach is using Hopfield networks (Hopfield & Tank, 1985) for solving Travelling Salesman Problem (TSP). Other neural approaches applied to Travelling Salesman Problem include Elastic nets (Durbin, 1987) and Self-organized maps (Fort, 1988) .

Pointer networks (Vinyals et al., 2015) an architecture similar to sequence-to-sequence neural network (Sutskever et al., 2014) to solve combinatorial problems as TSP. Pointer networks solve class of problems where the number of target classes in each step of the output depends on the input length which is variable. Recently, Bello et al. (2016) introduced a pointer network for solving combinatorial problems which is optimized using policy gradient methods. This pointer network was applied to TSP and Knapsack.

Our work is different from this recent approaches, we applied our model to a general mathematical formulation of combinatorial optimization problems, instead of learning solutions from problem dependent data. We introduce a memory neural network where the coupled memory is persistent and is not resettable. The model is able to learn and store inputs features as neural memories and utilizes them in solving Binary LP instances. The model can learn from minimal amount of data and yet generate better solutions than handcrafted solver.

3 LONG-TERM MEMORY NETWORK FOR BINARY LP Figure 1 : The operation of an LTMN processing one Binary LP instance. First the encoder receives a sequence of constrains coefficients and produces a memory vector via a linear projection of encoder final hidden state. The memory controller receives this linear projection and decides whether to store it in memory M or delete the current slot it points to. A control signal (sequence of costs) is then passed to the decoder to produce un-normalized weights w t over the memory locations. A dot product operation between w t and M Finally the output o t at each time step is generated using the memory vector (or encoder final state), the decoder hidden state and the read vector.

A sequence-to-sequence approach to solve Binary LP requires formulating the entire problem inputs (costs vector c T , bounds vector b and constrains matrix A) as one sequence and mapping it to an output sequence. A naive linear programming solver constructs the set of feasible solutions from the constrains matrix A, we denote this set as S F , then it iterates over S F using the cost function to find the optimal solution. For a Binary LP instance, the number of possible feasible solutions is 2 N where N is the number of variables.

The model we describe works in in a similar way to the naive solver, an encoder encodes the entire constrains matrix into one fixed vector v a , this vector is a continuous representation of the set S F . The vector v a is then passed as the initial state of a decoder along with each cost c t that is used as a control signal to read from memory. Figure 1 describes the operation of an LTMN for a single Binary LP instance.

A general Long-Term Memory Network (LTMN) consists of three basic modules: a core network, a memory bank in the form of a matrix and a memory controller. The core network has three main functions: providing memory fragments that are useful information from input signals to be stored in the memory, providing a reading mechanism to read from the memory, and finally producing an output. The memory bank is a matrix R × C, were each row is addressed by a pointer P T R which is a value in range [0, R -1]. The pointer is provided to the memory controller to know the last accessed memory slot. Clearing the memory contents is not allowed by the memory controller.

A memory controller is another module that uses reinforcement learning as a hard attention mechanism to store memory fragments from the core network as in Zaremba & Sutskever (2015) . Upon processing of each example, the controller basically chooses either to store or discard the memory fragments. Writing to the memory in LTMN is totally a discrete process, the final computational graph will not be fully differentiable. Thus it is essential to pass the memories to the output layer for backpropagation to work.

The final output depends on both memory contents representation (a read vector) and inputs embedding, this is similar to end-to-end memory networks (Sukhbaatar et al., 2015) that is used in question answering tasks. In end-to-end memory networks the final answer depends on both the output memory representation and question embedding.

For non-sequential data the core network can be a regular feed forward neural network and the memories can be the hidden vectors from each layer, while for sequential data the core network can be a recurrent neural network and memories can be its hidden states at each time step. The attention mechanism (Bahdanau et al., 2014) used over to attend to memory locations will depend either on a control signal or previous output.

3.1. ENCODER:

Let the sequence A = { a 11 , a 12 , ..., a 1N , SEP ARAT OR, b i , SEP ARAT OR, ..., a M N } be the sequence describing the constrains set, a ij represents the coefficient of the j th variable in the i th constrain. The SEP ARAT OR token separates between the left and right hand sides of the constrains inequality, the same token is used to separate between constrains in the sequence. Finally b i is the bound for the i th constrain. The encoder module encodes the entire sequence A in to a fixed vector. The encoder then produces a linear projection of this vector to be stored in memory.

Equations ( 1) and ( 2) describe the constrains encoder operation.

v a = C(a t , Θ c ) (1) The linear projection of v a is: h a = W hv v a + b h

(2) where W hv and b h are weight matrix and bias vector respectively.

3.2. DECODER:

The input to the decoder is a sequence of costs C = { c 1 , ...c N } . The decoder uses the fixed vector v a as initial hidden state. At each time step the decoder reads a cost c t of the costs vector C and produces a hidden state vector:

EQUATION

3) The reader uses the decoder hidden state h d t to produce weights that are used to address the memory:

EQUATION

) A simple dot product operation between the memory and the weight vector produces a read vector:

r t = w t • M (i) (5)

where M (i) is the memory produced by the memory controller after processing instance i in the data set.

The linear projection h a , the cost embedding w t and the read vector r t are used to generate a final output:

o t = O( h a , w t , r t ; Θ o ) (6)

The final output layer is a soft-max layer, and the whole model can be thought of estimating the probability distribution P (o t | h a , w t , r t ). Each cost is embedded via a linear layer first, then the embedding is passed to recurrent layers. The reader is implemented as a recurrent layer, in this sense the weights produced will depend on both the cost at time step t (the control signal) and the weight from the previous time step w t-1 .

The reader produces un-normalized weights over memory slots N in range [-1,1]. When the weight for a slot i is 0 this means that the memory slot does not contribute at all to the read vector, when it is 1 the whole memory slot is used. The interesting case is when the weight is -1 which means the inverse of the current memory slot contents, when the weight is between between 0 and 1 the information from the memory slot is preserved to a certain extent, instead a -1 weight transforms the entire slot into a new representation. Hopefully, the reader weights learned by backpropgation through the whole network will not only act as attention weights over memory slots but also transform the memory contents in to useful representations.

3.3. MEMORY CONTROLLER:

A typical memory controller is provided a memory fragment at a discrete time t and makes a decision whether to store or discard this memory. Learning to store useful memories is descirbed as an reinforcement learning (RL) framework. An agent senses the environment s, takes an action a from an action space A using a policy function π and receives an immediate reward r. The total future reward from point t is expressed by:

EQUATION

)

where γ is the discount factor.

3.3.1. ENVIRONMENT AND ACTIONS:

The environment is the memory bank at discrete time step t along with the current pointer P T R t and a window of previous memories W t that the controller has been subjected to. A window is similar to a short term memory with limited size τ and the controller chooses to store one of the contents of that memory. In all our experiments, the controller stores the last memory vector in the window, in this sense the window gives insights to the controller about what memories have been produced by the core network.

The basic actions a controller may perform are storing the current memory we refer to this as a ST R , and not to store any thing at all we refer to this as a N O-OP . We include three more actions: delete the current slot a DELET E , increment the pointer then store a ST RIN C , and decrement the pointer then store a ST RDEC .

3.3.2. REWARD FUNCTION:

An action taken by the controller is evaluated through a reward function. One can evaluate the controller the same way we evaluate the core network, through common metrics as final loss or accuracy, for each example the model solves correctly the controller gets a reward. In this way, the rewards received will only account for how better the whole model gets on solving tasks. Instead we want the controller to store useful memories that will be used in the next processed examples. The reward function is a simple question: Did the current memory result in a better response than empty memory ?. The reward function is:

r t = 1 if eval(A, C, M t ) = 1 & eval(A, C, M Zero ) = 0 0 otherwise (8)

where M Zero is the memory with zero entries, M t is the memory produced by memory controller and eval is an evaluation function for the core network. When the entries of a read vector are all zeros the output will depend only on information coming from the control signal (costs c t in case of Binary LP). The memory controller receives a reward only when the non-empty memory results in solving an example correctly and empty memory results in incorrect response. An optimal training procedure will make the core network depends only on non-empty memory to minimize a loss function, while an optimal training procedure for the memory controller will result in useful memories only.

4. MEMORY CONTROLLER TRAINING:

At the heart of the memory controller is an RL agent which interacts with the environment. The environment is basically the memories received per each example the LTMN solves. For each instance the LTMN processes, the RL agent receives a state s t and selects an action a t following a policy π(a t |s t ) and receives a reward r t and the next state s t+1 (Sutton & Barto, 1998) .

To train the memory controller agent, we used deep Q-learning algorithm with experience replay (Mnih et al., 2013) as described in algorithm 1. A neural network is used to estimate the actionvalue function Q(s, a) (Tsitsiklis & Van Roy, 1996; Sallans & Hinton, 2004; Riedmiller, 2005) . We choose to implement the action-value neural network as a stacked LSTM which receives the memory contents M t , one slot each time step, followed by window contents W t and the pointer P T R.

We draw the similarity between using deep Q-learning algorithm for playing Atari games and using it for storing long-term memories. During each episode the core network is given a sequence of instances form a training dataset X controller and the memory agent should take proper actions on memory to construct useful memory entries that helps solving theses instances. One can consider the agent is learning to construct the memory as constructing a puzzle from pieces, where the pieces come from a bucket. There will be no final state for the agent to reach, because of the fact that one can not know exactly how the memory should be constructed. In the setting of Atari games the agent will reach the final state (game over) quickly in the first few epochs as the agent will still be struggling to learn an optimal action-value function. In the case of the memory agent, we have to determine an episode length T that both simulates the agent failure in the earlier training phase and the agent reaching a final state. The final state of the agent will be reached when the LTMN processes the last example in an episode. Thus, there will be an infinite number of final states. We can keep the episode length constant so the agent have a limited time to succeed in accumulating rewards.

Both the reader and the memory controller agent should be trained jointly together. This procedure is critical since both the reader and the memory controller depend on each other, the reader learns to generate proper weights over memory slots that depend on a control signal and the memory controller learns how to construct memories that are useful for the reader. For each action the memory agent perform on the memory, one should train the core network. We sample a batch of instances from training data X train , run the memory agent using this batch for one session (memory is not cleared between instances) and perform the backward pass on the core network.

A typical learning algorithm for neural networks as stochastic gradient descent, updates the network parameters using data batches. The number of iterations (one forward pass followed by one backward pass) is equal to N/m where N is the size of dataset and m is the batch size. The number of iterations can get large as the size of the dataset increases.

To effectively train the LTMN core network, the episode length should be as the same as the number of iterations. In our experiments, we keep the episode length T as small as possible and then increase it after K epochs. To avoid similar episode lengths and simulate various solving sessions (where the memory controller agent has to store memories), each episode T is chosen randomly between

[k, N/m ],

where k is the minimum length of an episode.

5. EXPERIMENTS:



5.1. DATA GENERATION:

We generate two separate data sets: one for training the core network and the other for training the memory controller. We generate 14k Binary LP instances as the core network training set, 3k instances as the memory controller training set and 3k as a validation/test set. We use mixed curriculum learning strategy as suggested in Zaremba et al. (2016) . For each instance, we generate two random numbers n and m, where n is the number of variables and m is the number of constrains for the instance. The maximum number of variables in an instance is N and maximum number of constrains is M . In our experiments, n is chosen uniformly between [3,N ] and m is between [1,M ].

For our training dataset N is 10 and M is 5.

All the coefficients of the objective function and the constrains matrix A is generated between [-99,99] . To ensure that the constrains matrix is sparse we generate a random number SL called sparsity level, for each constrain in the problem we ensure that at most 1/3 of the coefficients are zeros. To generate supervised targets for the problems we used a python interface to the COIN-OR branch and cut solver (Lougee-Heimer, 2003) called PuLP (Mitchell & Dunning, 2011) . We ensure that all the generated problems have a feasible solution. We use denote the COIN-OR branch and cut solver as the baseline solver and compare the solver results with the LTMN results. Select randomly an episode length T 5:

for t = 1,T do 6:

Select randomly an example x i from X controller 7:

Solve x i using Encoder to get memory vector h ai 8:

Store h ai in to window W t

9::

With probability select a random action a t 10:

otherwise select a t = max a Q * (s t , a; θ)

11:

Execute action a t on memory M t observe the next memory state M t+1 and reward r t 12:

Set s t = M t , W t , P T R t 13:

Set

s t+1 = M t+1 , W t , P T R t+1 14: Store transition (s t , a t , r t , s t+1 ) in D 15:

Sample random minibatch of transitions (s t , a t , r t , s t+1 ) from D end for 21: end for

5.2. EXPERIMENTAL DETAILS:

We implement both the encoder and decoder as a recurrent neural network with gated recurrent units (GRU). We use three GRU layers each with 256 units followed by a linear layer with 128 units to project the memory vector of the constrains sequence. As suggested by Bello et al. (2016) , it is harder to learn from input-output examples of optimization problems due to subtle features that model cannot figure out. We suggest a technique to learn more features by connecting the 1, 2, ..., L -1 layers to layer L instead of connecting only the previous layer L -1. In this way an encoder can learn more features using combined features from the previous layers.

The decoder is implemented as two stacked GRU layers, the reader is implemented as one GRU layer. The costs are first embedded using a linear layer of 64 units. The rest of the decoder has 256 units. All the weights are initialized uniformly in [-0.08,0,08]. We set the dropout ratio to 0.2 in all GRU layers. We constrain the norm of the gradients to be no greater than 5 (gradient clipping). We set the learning rate initially to 0.001 and drop it by factor 0.5 after each 10 epochs.

The memory controller agent is implemented as a stacked LSTM of 2 layers each with 200 units. We used batch normalization over the inputs to normalize the memory contents and window contents to zero-mean and unit variance. We used Adam (Kingma & Ba, 2014) optimizer to train the agent. The window size τ is 5 in all our experiments. We used generalization loss as an early stopping criteria for the core network as suggested by Prechelt (2012) . We then allow the memory controller agent to train until a reasonable average total reward per episode is reached.

We compare the performance of LTMN to the baseline solver and the sequence-to-sequence approach. We trained a network of GRU units with comparable number of parameters (seq-to-seq has 1.3M parameters and LTMN has 1.9M parameters). The seq-to-seq network receives the input as one long sequence.

We train the LTMN core network and seq-to-seq model using RMSprop algorithm (Tieleman & Hinton, 2012) with cross entropy as a loss function. We define a metric to test the quality of solutions produced by the model, we define average costs over N Binary LP instances:

EQUATION

All the instances in training data and testing data are maximization problems, so the higher the average costs the better. We sample only feasible solutions using the output probability distribution with temperatures [0.6, 1.0, 1.2, 1.5, 2.2].

First we evaluate the LTMN model against the baseline solver, we generate a test set of 1000 instances where all instances have 10 variables and the number of constrains is between 1 and 5. Table 1 shows at different sampling temperatures the average costs and the number of instances where the model outperformed the solver and found a better solution. The LTMN model outperformed the baseline solver by large margin (average costs are nearly 51.7% higher).

To validate that the sampling technique is effective, we used an initial untrained model to sample solutions. Table 2 shows that the untrained model performed poorly on the same test set, and hence the random sampling is not generating solutions by chance and the trained model learned to generate solutions effectively.

We also evaluate the LTMN against the seq-to-seq GRU model which fails to generate any feasible solutions. While the number of instances is small (only 14K instances), other similar models as pointer networks (Vinyals et al., 2015) used a training data of 1M instances for Travelling Salesman Problem, however our model did not require large training dataset.

We test the generalization ability of LTMN to longer sequences beyond those in training set. Figure 2 shows the results on test sets of Binary LP instances (each test set contains 1000 instances) where the number of variables is incremented while the maximum number of constrains is 5. LTMN outperformed the baseline solver by large margin even when the number of variables is larger than 100, the LTMN was still able to generate better solutions.

We test LTMN generalization on very large instances. Table 3 shows that LTMN outperformed the baseline solver even for very large instances with 1000 variables and 700 constrains. 

5.4. MEMORY TESTS:

To understand the effectiveness of using an augmented long-term memory network for solving Binary LP instances, we conduct tests to prove that long-term memory improves model results. We calculate the average costs for the same test set (10 variables and constrains between 1 and 5) but We conduct a per-example test where we identify whether memory helped in generating good solutions or not. Given two problems identified by their cost vectors and constrains matrices as [c 1 , A 1 ] and [c 2 , A 2 ]. Let A 1 = A 2 but both of them construct the same set of feasible solutions S F . The encoder produces two memory vectors h A1 and h A2 for constrains A 1 and A 2 respectively. To ensure that both h A1 and h A2 represent the same set of feasible solutions S F , we measure the cosine similarity between these two memory vectors such that CosSim( h A1 , h A2 ) ≥ S, where S is set to 0.8. We then enforce the controller to store h A1 , and generate a solution for [c 2 , A 2 ]

We define three metrics:

Memory Faults: number of examples where non-empty memory results in worse solution than empty memory.

Memory Trues: number of examples where non-empty memory results in better solution than empty memory.

Memory Equals: number of examples where both non-empty memory and empty memory result in the same solution.

We generate 10K instances (with 10 variables and constrains in range of [1,5]), we compare the feasible solutions of each two consecutive instances and calculate the cosine similarity between the two memory vectors. We found 181 instances with the same feasible solutions. We record the solutions of these instances using both empty memory and non-empty memory containing h A1 .

Table 5 shows high memory trues where non-empty memory helped generating better solutions than empty memory. The table also shows high percentage of memory equals, for these 28 instances the non-empty memory did not help much in generating a better solution, in fact both memory faults and memory equals are similar metrics and can be thought of as the number of instances where non-empty memory failed to generate a better solution. A good memory controller agent should maximize the memory trues and minimize both the memory faults and equals at the same time.

We conclude that a long-term memory is quite effective in generating better solutions and the memory controller learns effectively how to store input features useful for longer interaction with a model. 

:



Figures and Tables:

LTMN Training Algorithm 1: Initialize replay memory D to capacity N 2: Initialize the stacked LSTM Q with random weights 3: for episode = 1,M do 4:

of training data x b from X train 18: Perform a forward pass of Q on x b and Set M x b 19: Perform a backward pass on LTMN using x b and M x b 20:

Figure 2: Evaluation of LTMN on test sets of Binary LP instances with number of constrains in range [1, 5] and number of variables up to 150

Average costs at different sampling temperatures T

Table content: <table><tr><td colspan="4">average costs of the solver = 24.76</td></tr><tr><td>Sampling Tempera-</td><td colspan="2">Average Costs</td><td>No of Instances with</td></tr><tr><td>ture T</td><td/><td/><td>a better solution</td></tr><tr><td>0.6</td><td colspan="2">51.345</td><td>575</td></tr><tr><td>1.0</td><td colspan="2">42.938</td><td>546</td></tr><tr><td>1.2</td><td colspan="2">43.056</td><td>565</td></tr><tr><td>1.5</td><td colspan="2">36.646</td><td>544</td></tr><tr><td>2.2</td><td colspan="2">29.417</td><td>503</td></tr><tr><td colspan="4">Table 2: Average costs for the untrained model</td></tr><tr><td colspan="4">average costs of the solver = 24.76</td></tr><tr><td colspan="2">Sampling Tempera-</td><td colspan="2">Average Costs</td></tr><tr><td>ture T</td><td/><td/></tr><tr><td colspan="2">1.0</td><td>1.421</td></tr><tr><td colspan="2">1.2</td><td>3.841</td></tr><tr><td colspan="2">1.5</td><td>0.517</td></tr><tr><td colspan="2">2.2</td><td>-2.574</td></tr><tr><td>5.3 RESULTS</td><td/><td/></tr></table>

Objective values generated by baseline solver and object values calculated using the sampled variables assignments from LTMN output probability distribution at different sampling temperatures for large Binary LP instances.

Table content: <table><tr><td/><td/><td/><td colspan="5">LTMN objective values at different T</td></tr><tr><td>N</td><td>M</td><td colspan="6">Solver T=0.6 T=1.0 T=1.2 T=1.5 T=2.2</td></tr><tr><td>100</td><td>50</td><td>441</td><td>387</td><td>599</td><td>462</td><td>420</td><td>286</td></tr><tr><td>300</td><td colspan="2">100 1026</td><td>1513</td><td>467</td><td>942</td><td>1107</td><td>785</td></tr><tr><td>500</td><td colspan="2">700 1175</td><td>1866</td><td>1334</td><td>2062</td><td>2263</td><td>1754</td></tr><tr><td colspan="3">1000 350 870</td><td>4189</td><td>3694</td><td>4247</td><td>4341</td><td>3309</td></tr><tr><td colspan="8">Table 4: Average costs (memory is reset between examples)</td></tr><tr><td/><td/><td colspan="4">average costs of the solver = 24.76</td><td/><td/></tr><tr><td/><td colspan="3">Sampling Tempera-</td><td colspan="2">Average Costs</td><td/><td/></tr><tr><td/><td colspan="2">ture T</td><td/><td/><td/><td/><td/></tr><tr><td/><td/><td>0.6</td><td/><td>46.896</td><td/><td/><td/></tr><tr><td/><td/><td>1.0</td><td/><td>42.526</td><td/><td/><td/></tr><tr><td/><td/><td>1.2</td><td/><td>39.727</td><td/><td/><td/></tr><tr><td/><td/><td>1.5</td><td/><td>35.621</td><td/><td/><td/></tr><tr><td/><td/><td>2.2</td><td/><td>28.063</td><td/><td/><td/></tr></table>

Memory faults, memory trues and memory equalsThis paper introduced a long term memory coupled with a neural network, that is able to memorize useful input features to solve similar instances. We applied LTMN model to solve Binary LP instances. The LTMN was able to learn from supervised targets provided by a handcrafted solver, and generate better solutions than the solver. The LTMN model was able to generalize to more complex instances beyond those in the training set.

Table content: <table><tr><td>Metric</td><td colspan="2">Value Percentage</td></tr><tr><td>Memory faults</td><td>66</td><td>≈36.4%</td></tr><tr><td>Memory trues</td><td>87</td><td>≈48.0%</td></tr><tr><td colspan="2">Memory equals 28</td><td>≈15.4%</td></tr><tr><td>6 CONCLUSION</td><td/><td/></tr></table>

Peer review (iclr2018):
 # Summary This paper proposes a neural network framework for solving binary linear programs (Binary LP). The idea is to present a sequence of input-output examples to the network and train the network to remember input-output examples to solve a new example (binary LP). In order to store such information, the paper proposes an external memory with non-differentiable reading/writing operations. This network is trained through supervised learning for the output and reinforcement learning for discrete operations. The results show that the proposed network outperforms the baseline (handcrafted) solver and the seq-to-seq network baseline. [Pros] - The idea of approximating a binary linear program solver using neural network is new. [Cons] - The paper is not clearly written (e.g., problem statement, notations, architecture description). So, it is hard to understand the core idea of this paper. - The proposed method and problem setting are not well-justified. - The results are not very convincing. # Novelty and Significance - The problem considered in this paper is new, but it is unclear why the problem should be formulated in such a way. To my understanding, the network is given a set of input (problem) and output (solution) pairs and should predict the solution given a new problem. I do not see why this should be formulated as a "sequential" decision problem. Instead, we can just give access to all input/output examples (in a non-sequential way) and allow the network to predict the solution given the new input like Q&A tasks. This does not require any "memory" because all necessary information is available to the network. - The proposed method seems to require a set of input/output examples even during evaluation (if my understanding is correct), which has limited practical applications. # Quality - The proposed reward function for training the memory controller sounds a bit arbitrary. The entire problem is a supervised learning problem, and the memory controller is just a non-differentiable decision within the neural network. In this case, the reward function is usually defined as the sum of log-likelihood of the future predictions (see [Kelvin Xu et al.] for training hard-attention) because this matches the supervised learning objective. It would be good to justify (empirically) the proposed reward function. - The results are not fully-convincing. If my understanding is correct, the LTMN is trained to predict the baseline solver*s output. But, the LTMN significantly outperforms the baseline solver even in the training set. Can you explain why this is possible? # Clarity - The problem statement and model description are not described well. 1) Is the network given a sequence of program/solution input? If yes, is it given during evaluation as well? 2) Many notations are not formally defined. What is the output (o_t) of the network? Is it the optimal solution (x_t)? 3) There is no mathematical definition of memory addressing mechanism used in this paper. - The overall objective function is missing. [Reference] - Kelvin Xu et al., Show, Attend and Tell: Neural Image Caption Generation with Visual Attention