sentence1: the first framework is based on the idea of buffer sampling , which employed a fixed-size buffer to represent the observed data for calculating the pairwise loss functions .
sentence2: the first approach adopted a framework that maintained a buffer with limited capacity to store random instances to deal with the pairwise loss function .