Nineteenth Symposium on Information Theory in the .- Benelux/ ' , .-- Veldhoven, The Netherlands May 28 & 29, 1998 L. JO'~I Proceedings of the Nineteenth Symposium on Information Theory in the Benelux 3 Proceedings of the Nineteenth Symposium on Information Theory in the Benelux May 28-29, 1998 Kongreshotel "Koningshof' Veldhoven, The Netherlands Peter H.N. de With and Mihaela v.d. Schaar-Mitrea, Editors Published by De Werkgemeenschap voor Informatie- en Communicatietheorie, Enschede, The Netherlands, 1998. 4 CIP gegevens Koninklijke Bibiliotheek, Den Haag (NL). Proceedings of the Nineteenth Symposium on Information Theory in the Benelux. Edited by P.H.N. de With and M. v.d.. Schaar-Mitrea. Published by the Werkgemeenschap voor Informatie- en Communicatietheorie, Enschede (NL), 1998. ISBN 90-71048-13-6 5 The Nineteenth Symposium on Information Theory in the Benelux has been organized by Peter H.N. de With, University of Mannheim Dept. Circuitry and Simulation (Techn. Computer Science), Mihaela v.d. Schaar-Mitrea, TV Systems Dept. Philips Research Laboratories Eindhoven, on behalf of - the Werkgemeenschap voor Informatie- en Communicatietheorie, - the IEEE Benelux Information Theory Chapter, - the IEEE Benelux Consumer Electronics Chapter. The Program Committee for the Symposium consisted of Dr.ir. Tj.J. Tjalkens (T.U. Eindhoven) Dr.ir. J.H. Weber (T.U. Delft) Ir. M. v.d. Schaar-Mitrea (Philips Research) Prof.dr.ir. P.H.N. de With (Univ. Mannheim). The organizing committee gratefully acknowledges the financial support of the Gauss Foundation. 6 Previous Symposia Proceedings l. 1980 Zoetermeer, The Netherlands Department of Electrical 2. 1981 Zoetermeer, The Netherlands Engineering, Technical 3. 1982 Zoetermeer, The Netherlands University of Delft 4. 1983 Haasrode, Belgium ISBN 90-334-0690-X 5. 1984 Aalten, The Netherlands ISBN 90-71048-01-2 6. 1985 Mierlo, The Netherlands ISBN 90-71048-02-0 7. 1986 Noordwijkerhout, The Netherlands ISBN 90-6275-272-1 8. 1987 Deventer, The Netherlands ISBN 90-7104~-03-9 9. 1988 Mierlo, The Netherlands ISBN 90-71048-04-7 10. 1989 Houthalen, Belgium ISBN 90-71048-05-5 1l. 1990 Noordwijkerhout, The Netherlands ISBN 90-71048-06-3 12. 1991 Veldhoven, The Netherlands ISBN 90-71048-07-1 13. 1992 Enschede, The Netherlands ISBN 90-71048-0~-X 14. 1993 Veldhoven, The Netherlands ISBN 90-71048-09-8 15. 1994 Louvain-Ia-Neuve, Belgium ISBN 90-71048-10-1 16. 1995 Nieuwerkerk aid Ijssel, The Netherlands ISBN 90-71048-11-X 17. 1996 Enschede, The Netherlands ISBN 90-365-0812-6 18. 1997 Veldhoven, The Netherlands ISBN 90-71048-12-8 7 Preface This booklet presents the proceedings of the nineteenth symposium on Information Theory in the Benelux. This year is particularly meaningful, since exactly 50 years ago, the initiator of Information Theory, Claude E. Shannon, published his key paper explaining the mathematical theory on communication. The symposium remembers this event by a special paper prize award, for which the Gauss foundation is appreciated. Since the funding of the Werkgemeenschap voor Informatie- en Communicatietheorie, the yearly organized symposia have provided in a useful forum for scientists, researchers and students from the Benelux countries, to exchange their latest ideas about digital communication and coding issues. This is proven by the relatively fixed core of people that have been supporting the activities over the years and the list of symposia of the past 19 years. Despite the proven usefulness of the Werkgemeenschap, it was recognized last year that the support for this work on the Dutch Universities is decreasing. Simultaneously, the applications of digital communication and coding are penetrating in normal daylife stronger than ever before. Data compression is used in for example camcorders, digi- tal video players and PCs, channel coding is being applied in telephone and satellite connections and computer networks, and so on. Apparently, scientists are better in communicating their results to colleagues, than proving the value of their work to the decision-making superiors. We believe that the insights for research planning in the Benelux will change, simply because digital communication is now creating jobs and businesses that were never explored sofar. As a consequence, the information technology will establish stronger roots in Europe, thereby leading to more value for the scientific research in this area. Mannheim-Eindhoven, April 17, 1998. Mihaela van der Schaar-Mitrea, Peter H.N. de With, Editors. 8 TABLE OF CONTENTS Page Session 1: SOURCE CODING AND VIDEO COMPRESSION • The switching method: elaborations 13 P.A.J. Vol! fj F.M..!. Willems (TU Eindhoven) • Motion estimation and compensation in the DCT-domain with im- 21 plementational aspects R.P. Kleihorst (Philips Research Labs) fj F. Cabrera (ENST, Paris, France) • Low-cost embedded compression for memory reduction in MPEG 29 decoding P.H.N. de With (Univ. Mannheim) fj M. v.d. Schaar-Mitrea (Philips Research Labs) • Establising a trade-off between error robust network protocols and 37 error robust video compression algorithms J.-D. Bakker fj F.H.P. Spaan (TU Delft) • Compression of Cardiac X-ray images based on acquisition noise 45 F.J. de Bruijn, M. Schrijver fj CH. Slump (Univ. of Twente) • Information flow and spatiallocality of image processing operators 53 P. Vanroose (KU Leuven) Session 2: INVITED LECTURE 1 • Video compression beyond 2000 58 J. Biemond (TU Delft) Session 3: CHANNEL CODING 1 • Inner decoder optimization in a simple concatenated coding scheme 67 with single-trial decoding J.H. Weber (TU Delft) fj K.A.S. Abdel-Ghaffar (Univ. Calif.) • Some results on serially concatenated codes 75 L. Tolhuizen fj E. Heksira-Nouiacka (Philips Research Labs) • A quaternary BCH-Code based Binary quasi-cyclic code 83 construction M. van Dijk (Philips Research Labs) fj J. Keuning (TU Eindhoven) • A block retransmission strategy for multiple repetition feedback 91 coding schemes M.S. Bargh fj J.P.M. Schalkwijk (TU Eindhoven) • An example of reconstructing the cells of a partition design from 99 its adjacency matrix R. Canogar (TU Eindhoven) 9 Page Session 4: SECURITY • On the security of dedicated hash functions 103 B. Van Rompay, B. Preneel fj J. Vandewalle (KU Leuven) • On the time-memory tradeoff between exhaustive key search and III table precomputation J. Borst, B. Preneel fj J. Vandewalle (KU Leuven) • A security risk for publicly available watermark detectors 119 T. Kalker (Philips Research Labs) Session 5: AUDIO PROCESSING AND COMPRESSION • On information theoretical aspects of speech transmission 127 G.H. Slump (University of Twente) • Modeling binary audio signals for lossless compression 135 R.J. van der Vleuten fj A.A.M.L. Bruekers (Philips Research Labs) Session 6: INFORMATION THEORY AND SIGNAL MODELING • Information transmission over stationary channels with additive 143 non-Gaussian noise by means of weak input signals M.S. Pinsker, V. V. Prelou (Inst. of Inf. Trans. Prob. of the RAS, Moscow) fj E. G. van der Meulen (KU Leuven) • Testing composite hypotheses applied to AR order estimation; the 149 Akaike-criterion revised R. Moddemeijer (University of Groningen) • Neuron based penalty function classifiers 157 J. Levendovsky, A. Meszaros (TU Budapest) fj E. G. van der Meulen (KU Leuven) • Experimental investigation of bounds on the rate of superimposed 165 codes in RTl S. Vangheluwe (KU Leuven) Session 7: NETWORKS • INVITED LECTURE 2: Stochastic Networks 173 O. Boxma (TU Eindhoven) • CAC based on queueing models in ATM networks 177 J. Levendovsky, Zs. Elek (TU Budapest) fj E. G. van der Meulen (KU Leuven) • On optical orthogonal codes 185 M. Stam (TU Eindhoven) fj A.J. Vinck (University Essen) 10 Page Session 8: CHANNEL CODING 2 • Soft-in soft-out multiplexers as a building block in soft-output 193 Viterbi decoders A. Koppelaar (Philips Research Labs) • Recursive decoding of multiple repetition feedback coding schemes 201 for binary-input soft-output discrete memoryless channels M.S. Bargh fj J.P.M. Schalkwijk (TU Eindhoven) 11 AUTHORSINDEX Page K.A.S. Abdel-Ghaffar 67 J.D. Bakker 73 M.S. Bargh 91,201 J. Biemond 58 J. Borst III O. Boxma 173 A.A.M.L. Bruekers 135 F.J. Bruijn 45 F. Cabrera 21 R Canogar 99 M. van Dijk 83 Zs. Elek 177 E. Hekstra-Nowacka 75 T. Kalker 119 J. Keuning 83 RP. Kleihorst 21 A. Koppelaar 193 J. Levendovsky 157,177 A. Meszaros 157 E.C. van der MAlden 143,157,177 R Moddemeijer 149 M.S. Pinsker 143 V.V. Prelov 143 B. Preneel 103,111 B. Van Rompay 103 M. v.d. Schaar-Mitrea 29 J.P.M. Schalkwijk 91,201 M. Schrijver 45 C.H. Slump 45,127 F.H.P. Spaan 37 M. Stam 185 L. Tolhuizen 75 J. Vandewalle 103,111 S. Vangheluwe 165 P. Vamoose 53 A.J. Vinck 185 RJ. van der Vleuten 135 P.A.J. Volf 13 J.H. Weber 67 F.M.J. Willems 13 P.H.N. de With 29 13 The Switching Method: Elaborations Paul A.J. Volf and Frans M.J. Willems Eindhoven University of Technology Information and Communication Theory Section Abstract The switching method [4Jis a scheme which combines two universal source coding algorithms. The two universal source coding algorithms both estimate the probability distribution of the source symbols, and the switching method allows an encoder to choose which of the two probability distributions it uses for every source symbol. The switching algorithm is an efficient weighting algorithm that uses this switching method. This paper focuses on the companion algorithm, the algorithm running in parallel to the main CTW-algorithm. 1 The switching method: A short introduction The switching method [4] defines a way in which two modeling algorithms can be com- bined. Consider a source sequence Xl," ., XN. Suppose that two sequential modeling algorithms, A and B, run both along the entire source sequence, and give for every symbol an estimate of its probability distribution. These modeling algorithms could be memoryless estimators, estimators for fixed tree models, or entire universal source cod- ing algorithms on their own. At each moment the encoder in the switching method uses the estimate from only one of the two modeling algorithms to encode the next source symbol. The estimate of the other modeling algorithm is ignored, but the statistics of both modeling algorithms are updated. The switching method starts using modeling algorithm A. It can switch from one modeling algorithm to the other one between any two source symbols. The switching behaviour of the switching method is specified for the decoder with a transition sequence tl, ... ,tNo If a transition symbol ti = 1 then the encoder switched from one modeling algorithm to the other one between source symbols Xi-l and Xi' Otherwise ti = O. The transition sequence will be intertwined with the source sequence, tl, Xl,' , ., tN, XN, to allow sequential encoding and decoding. This combined sequence will then be encoded. In principle any encoding algorithm can be used to encode the transition sequence. Once an encoding scheme is chosen, the best transition sequence can be found. Note that because both the source sequence and the transition sequence have to be encoded, the best transition sequence should minimize the cost of describing both. Instead of trying to find the best transition sequence, it is possible to weight over all transition sequences in a relatively efficient way, by choosing the encoding of the transition se- quence in a specific way. For example, using fixed probabilities for a switch (ti = 1) and a non-switch results in a scheme with a computational complexity only linear in 14 the length of the source sequence. But because the optimal value for the probability of a switch can only be found after scanning the entire source sequence, this would result in a two-pass algorithm. The switching algorithm [4] uses a binary memoryless estima- tor, the Krichevsky- Trofimov estimator, to estimate the probabilities of the transition sequence. It has a computational complexity quadratical in the length of the source sequence. The switching algorithm uses the switching method at the highest level: the two modeling algorithms are universal source coding algorithms. If the two universal source coding algorithms are sufficiently different, then the local performance of these two algorithm can differ significantly, and the switching algorithm can obtain a considerable gain in performance by being able to switch between them locally. But if the two universal source coding algorithms are very similar, switching between them during the encoding process may not result in a gain in performance. So the switching algorithm should use different source coding algorithms. It can use a wide variety of algorithms, like the context-tree weighting algorithm (CTW-algorithm), PPMD, PPM', or Lempel- Ziv algorithms once they are redesigned to estimate probability distributions. In this paper we will use the CTW algorithm as the main modeling algorithm, algorithm A. The first part of this paper will focus on a possible companion algorithm: an algorithm which behaves like a cross between PPM' and Lempel-Ziv'77. 2 The companion algorithm 2.1 Some considerations The switching method achieves its best performance if the two universal source coding algorithms are "complementary". We applied both PPMD and PPM' as companion algorithm, the algorithm running in parallel with CTW. PPM' results in far superior performance. The reason for this is the internal workings of these algorithms. PPMD resembles the CTW-algorithm in the way in which they model the source sequence. PPM' on the other hand has a more Lempel-Ziv'77 behaviour. The advantage of a Lempel-Ziv'77 type of algorithm (see [1] for an overview of Lempel-Ziv algorithms) is that it can encode a long substring with one (short) codeword the second time that this substring occurs in the source sequence. In the CTW-algorithm the first occurrence of this substring results in a few single counts at the deeper nodes of the context tree. But before the CTW-algorithm recognizes these deeper nodes as a part of the model, these nodes have to be visited many times. Thus when the substring occurs for the second time the deeper nodes do not influence the weighted probability significantly yet, and the second occurrence of the substring will be encoded less efficiently than by a Lempel-Ziv'77 type of algorithm. Considering the already excellent performance of PPM' as companion algorithm to CTW, it is interesting to develop a PPM' algorithm that behaves even more as a Lempel-Ziv'77 algorithm. 2.2 PPM* and Lempel-Ziv'77 rPM' [2] is a PPM-algorithm with an unbounded context length. Before encoding a new symbol, it first selects the context length (the order). It chooses the shortest 15 deterministic context (a context each time followed by the same symbol so far), or otherwise the longest context. From this selected context length on it performs the normal PPM-escape mechanism. For every context s from the selected length down to the empty context, the PPM-escape mechanism splits the (remaining) code space in two parts. A fraction 1-FESC of the code space is used to encode the symbols following this context s. Once this is done, PPM* escapes to the one symbol shorter suffix of the context and applies the same process to the remaining fraction of the code space, FESC. After encoding the symbols following the empty context (thus the memoryless estimates), PPM* escapes to the last model, the order -1 model. This model assigns a uniform probability to all symbols, and it is used to encode symbols not seen so far. The escape probability FESC is recomputed for every context length and for every new symbol. It is a function of several variables, like the number of symbols following that context, the number of different symbols, etc. The purpose of the escape probability is (more or less) to reserve a fraction of the code space for symbols not following the current context". active past phrases new symbol ~~ r=v=r- I-s-Iy 1_ s ~/z context Figure 1: The relation between contexts and phrases. PPM* is linked to Lempel-Ziv'77 in the way in which it handles long repetitions in the source sequence. For example, consider the second occurrence of a long sub- string. PPM* will estimate the probability distribution of the symbols in this substring symbol by symbol. As soon as the first part of the repetition, used as the context by PPM*, uniquely identifies the original occurrence of this substring, PPM* will find a deterministic context (with one count) which predicts the correct symbol for every of the following symbols of this repetition. For the symbol following the repetition, PPM* will also find 'a deterministic context, but it will predict a different symbol, and PPM* has to escape to a shorter context. Thus after an initial part, PPM* is "locked" on this repetition until it ends. We will now introduce a different terminology. Suppose the PPM-algorithm is now at context s. We will call all positions in the source sequence so far in which this context occurs (possibly one) "active past phrases" (see figure (1)). If we were to find the longest repetition (match) from the start of the current context s on, one of these "active past phrases" would be chosen. If at least one of the "active past phrases" is also followed by the new symbol, then the repetition continues for at least one more symbol. In that case the new symbol can be copied from the continua- tion of a past phrase. This continues until the repetition ends, resulting in a sequence of copies. Then none of the active past phrases is followed by the correct symbol, and the algorithm has to stop the copying and expand the set of active phrases by short- ening the context. With this in mind, we call the fraction of the code space reserved lThis is not completely true, it actually defines the weighting distribution with which the estimated probability distributions at the different context lengths are weighted together. for encoding ("copying") the symbols following the context Pcopy and the remaining fraction Pstop. These are identical to 1 - PESG and PESG, respectively. We will change two key elements in PPM* to try to obtain the desired behaviour: the type of exclusion and the computation of the escape (or stop) probability. The choice of the escape probability will be the topic of the following section. The type of exclusion determines how counts at a certain context length influence counts at shorter contexts. If a symbol follows a context of a certain length, then it will also follow every suffix of that context and thus this symbol is counted at every suffix too. This leads to the strange, un-Lempel-Ziv-like, phenomenon that the algorithm chooses to stop copying from a certain context length (it escapes to a shorter context), and then encounters counts that include the symbols following the longer context it just rejected. A first exclusion scheme, which we call weak exclusion, reduces the counts following a certain context from the counts following suffixes of this context, while computing the probabilities. We also investigated a stronger form of exclusion, which we call strong exclusion and which is the same as the exclusion in PPM-style algorithms. Ifthe symbol a follows a certain context, then if necessary it can be copied from an active past phrase associated with this context. If the algorithm escapes to a shorter context, it seems unnecessary to account for any phrases that are also followed by a since this symbol was available previously and apparently not used. Thus once a symbol has followed a certain context, it will be ignored while computing the probabilities at shorter contexts. 2.3 Some variations on PPM* 2.3.1 A single estimator In Lempel-Ziv'77 algorithms with unbounded match length, the length of a match is described by a universal encoding for the positive integer numbers. These encodings result in a number of bits that grows logarithmically with the value of the integer, and thus with the length of the match. For a moment we will assume that a long repetition will be encoded as a sequence of copies (one per symbol) followed by a stop. This corresponds to a geometric distribution with an unknown parameter. If we use the geometric distribution to model this copy-stop process (and thus to encode long repetitions), and if we use a memoryless estimator to estimate the parameter, then the number of bits necessary to encode a long repetition also grows logarithmically with the length of the repetition. In reality our algorithm will not encode a long repetition as a series of copies followed by a stop. It will at least for the first symbols of the repetition use different overlapping repetitions that started earlier in the source sequence. But still such an encoding would give the scheme a more Lempel-Ziv-like behaviour, especially on long repetitions. The main difference with PPM* is that now Pcopy depends on the context length, and in PPM* it depends on the number of seen symbols. The parameter of a geometric distribution can be estimated with a simple binary estimator. We will use the Krichevsky- Trofimov estimator. For a context s with length 1(8), the fraction of the code space assigned to the symbols following this context is defined as: 1(8) + aN Pcopy(s) = 1(8) + aD' 16 with 0 < aN < aD· This fraction will be equally divided between all symbols that follow the previous occurrences of context s. The fraction ~ OlD determines the fraction of the code space reserved for a "copy", following the empty context. We have conducted several experiments with different values of aN and o o, combined with both weak and strong exclusion. In general weak exclusion gives the best performance. The choice for the values of aN and aD was more difficult. A wide range of values results in comparable performance. Here we chose to use aN = 3.75 and aD = 8. 2.3.2 An adaptive estimator Instead of using one estimator to estimate the geometric distribution, we could also have one memoryless estimator for each context length. Then for every context length we maintain two counters: the number of times a symbol could be copied given this context length, c(.), and the number of times it could not be copied, e(.). There is a choice in the updating process of these counters, similar to the exclusion discussed before. If a context is followed by the desired symbol, then we can choose not to update the counters for the shorter context (called partial updating), or we can choose to update them anyway (full updating). Especially in the latter case the type of exclusion is also very important. Note that not all four possibilities seem equally interesting. For example, strong exclusion and full updating is a choice in which the two techniques contradiet each other. The estimator now estimates the probability of a copy given a context s, with length I(s) as: c(l(s)) + aN Pcopy(S) = c(l(s)) + e(l(s)) + aD' with 0 < aN < aD. Because with such an adaptive estimator the algorithm does not use the geometric distribution, it will not encode the tail of a long repetition in a logarithmic number of bit. Thus it is more an adaptive PPM* algorithm than a Lempel-Ziv algorithm. Experiments showed that a combination of weak exclusion, partial updates and aN = 1.75, and aD = 2 results in a good performance. 2.3.3 Escape to uniform estimates It is theorized that the main improvement in performance of switching between CTW and Lempel-Ziv is due to the ability of the Lempel-Ziv algorithm to encode long rep- etitions efficiently. This theory can be easily tested with a small experiment. The longest previously seen context 8 is used first. And again a binary estimator is used to estimate the probability of a copy: I(s) + aN Pcopy(S) = I(s) + «o' with 0 < aN < aD. But if the longest context is not followed by the correct symbol, the algorithm immediately uses the uniform distribution to estimate the probability distribution. Thus the entire PPM-escape mechanism is removed. Experiments show that even with a good set-up (aN = 0.75 and aD = 1) the results are worse than with any of the other companion algorithms. For example, on 17 some of the text files it results in 2.196 bit per symbol (bps) on paperl, 2.172 bps on paper2, 2.260 bps on progc, 1.502 bps on progl, and 1.468 bps on progp. And on the binary files it results in 3.725 bps on objl, 2.334 bps on obj2, and 1.237 bps on trans, for example. The gain achieved by using the switching algorithm with this algorithm as companion algorithm, is about half of the gain achieved by using one of the other companion algorithms. Exceptions are the source code files and the file trans (which have long exact repetitions), on which this algorithm as companion algorithm achieves results almost as good as the other companion algorithms. 3 Matching the symbol alphabets Our implementation of the context-tree weighting algorithm uses a binary decomposi- tion [3], which decomposes the bytes into bits. As a result the CTW-algorithm can use binary estimators. But now a small implementation problem arises, because all com- panion algorithms described above, and PPM* give a probability distribution over the 256-ary symbols. These two different symbol-alphabets have to be matched. Instead of computing the entire 256-ary probability distribution with the CTW-algorithm we decided to decompose the probability distribution estimated by the companion algo- rithm in the same way. This is done by placing the symbol probabilities in the leaves of the forward decomposition, and then to recompute the probability distributions in the nodes of the forward decomposition. The switching algorithm is implemented as follows. Before a new symbol is encoded, the switching algorithm computes the probabilities with which the states in its structure are reached. From these probabilities it can easily infer the weights with which the conditional symbol probabilities of algorithm A and B should be weighted. With these weights the new symbol can be encoded bit by bit. The conditional symbol probabilities for both algorithms are computed by multiplying the conditional bit probabilities. With the conditional symbol probabilities the switching algorithm updates the probabilities in its structure and then it is ready to encode a new symbol. 4 A comparison of the results We tested the switching algorithm with .the CTW-algorithm as algorithm A. It has depth 8, and it uses the special forward decomposition on the text files (see [3]). As companion algorithm we used an optimized version of PPM*, the algorithm with a single estimator, and the algorithm with the adaptive estimator. The switching algorithm could make up to 5000 switches. The performance of the four algorithms is computed individually and as a part of the switching algorithm. We used the Calgary corpus to test the algorithms. The results can be found in table 1, and are given in bit per symbol. From table 1 it is clear that a combination between CTW and PPM* is best. This is disappointing because the purpose of the new algorithms was to improve the performance of the switching algorit.hm by designing new PPM* -based algorithms that behave more like Lempel-Ziv'77 algorithms. If we compare the results of the two new algorithms, the switching algorithm with CTW and the adaptive estimators performs 18 Table 1: The results for the individual algorithms and as a part of the switching algorithm. single adapt. CTW+ CTW+ CTW+ file CTW PPM* estim. estim. PPM* single adapt. bib 1.782 l.861 2.076 2.017 1.714 l.734 l.728 book1 2.158 2.487 2.776 2.495 2.150 2.156 2.153 book2 l.869 2.025 2.280 2.151 1.820 l.836 l.835 geo 4.608 4.757 5.175 4.726 4.526 4.561 4.524 news 2.322 2.388 2.595 2.472 2.210 2.220 2.217 obj1 3.814 3.785 4.151 4.039 3.607 3.648 3.642 obj2 2.473 2.299 2.485 2.479 2.245 2.300 2.298 paper1 2.247 2.342 2.543 2.446 2.152 2.175 2.168 paper2 2.190 2.381 2.592 2.440 2.136 2.152 2.146 pic 0.800 0.839 2.501 l.374 0.764 0.772 0.785 progc 2.330 2.341 2.528 2.451 2.195 2.229 2.217 progl l.595 l.569 l.676 l.662 1.482 l.482 1.476 progp l.636 1.537 l.651 l.622 1.460 l.449 1.444 trans 1.394 1.321 l.414 1.389 1.256 l.228 1.223 better than the combination with the single estimator algorithm. Again, the algorithm that resembles Lempel-Ziv'77 most has the weakest performance. These experiments, and also the experiments with the switching algorithm that combines CTW and the algorithm that escapes to uniform estimates, all show that the spectacular improvement in performance obtained by the switching algorithm is not only based on the performance of Lempel-Ziv algorithms on long repetitions. Actually the best results were obtained by combining CTW and PPM*. A possible explanation is that we use a weighting technique: we weight over all transition sequences. If we would have selected the best transition sequence instead, then the performance of the companion algorithm on long repetitions might be of crucial importance. But now all transition sequences are considered, and in that case the overall performance of the companion algorithm might be an important factor too. Since the performance of PPM* is better than any of the more Lempel-Ziv'77-style algorithms, this might explain these results. 5 Concluding remarks Long repetitions are a basic feature of "natural" data (like texts, and pictures). It is a basic structure that is not handled well by the CTW-algorithm. Lempel-Ziv'77 algorithms on the other hand give an excellent performance on long repetitions. Thus while developing and investigating the switching method and the switching algorithm, a lot of effort went into the design of Lempel-Ziv'77 estimators: modeling algorithms that have the same characteristics as Lempel-Ziv'77 algorithms. While transforming Lempel-Ziv'77 algorithms into Lempel-Ziv estimators, the Lempel-Ziv estimator more and more resembled PPM*. The three "Lempel-Ziv" estimators presented in this paper are explained starting from the PPM* algorithm. 19 Our efforts in developing these Lempel-Ziv estimators may seem useless since the switching algorithm with PPM* outperforms the switching algorithm with all three Lempel-Ziv estimators. But it shows two important things. First of all, it shows that there is a connection between PPM* and Lempel-Ziv'77. But most importantly, it shows that the ability of the companion algorithm to encode long repetitions efficiently accounts for only apart of the gain obtained by the switching algorithm. This part of the improvement could probably have been achieved with more ad hoc methods to combine CTW and Lempel-Ziv. But a significant other part of the gain is a consequence of the strength of the switching algorithm: by weighting over all transition sequences, even very short switches from one algorithm to the other one can already contribute to the improvement in performance. 6 Acknowledgment Jan Áberg was so kind to give us his fully optimized PPM* and PPMD implementa- tions. Thanks! References [IJ T.C. Bell, J.G. Cleary, and LH. Witten. Text Oompression. Prentice-Hall, Engle- wood Cliffs, New Jersey, 1990. [2J J.G. Cleary, W.J. Teahan, and LH. Witten. Unbounded length contexts for PPM. In Data Compression Conference, Snowbird, Utah, USA, March, 1995, pp. 52-61. [3J P.A.J. Volf. Text compression methods based on context weighting. Technical report, Stan Ackermans Institute, Eindhoven University of Technology, June 1996. [4J P.A.J. Volf, and F.M.J. Willems. Switching Between Two Universal Source Coding Algorithms. In Data Campression Conference, Snowbird, Utah, USA, March, 1998, pp. 491-500. [5J F.M.J. Willems, Yu.M. Shtarkov, and Tj.J. Tjalkens. The context-tree weighting method: Basic properties. IEEE Trans. on Information Theory, 41(3):653-664, 1995. 20 VLSI Implementation of DCT-domain Motion Estimation and Compensation Richard P. Kleihorst and Fabrice Cabrera" Abstract Hybrid video compression schemes store an entire image for predictive cod- ing. Traditionally, this image is stored in the time domain needing almost 5 Mbit of memory for main-level image format. The amount of storage space can be reduced if the data is stored in the RLE-DCT domain, using the available compression and buffer-control algorithm to guarantee a storage amount. We show that a hardware implementation is feasible and worthwhile in relation to traditional encoders. Motion estimation is performed by recursive blockmatch- ing, at sub-pixel accuracy. 1 Introduction Hybrid video compression schemes such as MPEG need to store a reference image for predictive coding [1]. Traditionally, this image is stored in the time domain, simplifying motion estimation and compensation. A disadvantage, especially noticeable in current VLSI implementations, is that the amount of storage in this domain is typically so large that it has to be implemented using separate memory chips [2]. This increases the number of components in a full system, and therefore its price. It becomes feasible to embed the memory with the processing hardware on a single chip if the storage size can be reduced. This reduction can be achieved by storing the image in the compressed domain using the compression efforts of the parent system. In the compressed domain motion estimation and compensation are cumbersome and costly in hard- and software [3, 4, 5]. This paper shows that using a recursive motion-estimation technique, a hardware implementation is feasible. An actual im- plementation made with high-level synthesis tools is compared against a traditional encoder implementation. The remainder of this paper is as follows: Section 2 describes the traditional hybrid encoder approach. Section 3 introduces storage in the compressed domain. Section 4 deals with motion compensation in the compressed domain. Section 5 suggest a "Dr. Kleihorst is with Philips Research Laboratories, Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands. Mr. Cabrera is with Ecole Nationale Supérieuredes Télécommunications,46 rue Barrault, 75634 Paris Cedex 13, France. 21 motion estimation algorithm in the compressed domain. Section 6 describes some memory control methods. Section 7 compares a time-domain and a compressed-domain implementation. Section 8 draws the conclusions. 2 The Traditional Hybrid Coder Hybrid coding is a popular video compression method. This method can be found in the MPEGl, MPEG2, H.263 and H.26l coding standards [IJ where the Discrete Cosine Transform (DCT) is used to transform the signal. The data element for hybrid coding is the meerobloek consisting mostly of 4 blocks luminance information, the Y blocks, and 2 color blocks, U & V. These 6 blocks are called dei-blocks and contain 8 x 8 pixels in the time domain. The essential signal path of compression is shown in Figure la. It consists of a DCT on these blocks followed by Quantization (Q), and reordering (ZZ scan). After this, groups of zero values are usually found in the stream of coefficients. Therefore, lossless coding is done by first performing zero-Run-Length Encoding (RLE) changing the coefficient stream of a single dot-block into a dual-value stream. The couples in the dual-value stream are then coded using a Variable Length Encoder (VLE) according to the Huffman principle. The coded blocks are decoded within the encoder itself by performing Inverse Quan- tization (IQ) and Inverse nCT (mCT). The decoded dct-blocks are combined into macroblocks and stored in the loop memory, effectively creating a fully decoded im- age. Macroblocks of the subsequent frame are now matched to this stored frame and only the difference signal is coded and forwarded. Matching of the macroblocks is per- formed by Motion Estimation (ME) to find the position that has the closest match. The difference signal is created by Motion Compensation (MC) which involves sim- ple subtraction. Consecutive frames can also be mope! predictively by agaiu locally decoding the current block which now also involves Inverse MC (IMC). Note that, after being compressed, the reference image for prediction was decoded before storage. This is done to mimic the decoder, to enable time-domain motion estimation, and to create a "perceivable" image showing the visual part of the coding performance. In MPEG2's "main-level" format this full image needs 6 Mbit of storage. In current IC technology this means using external RAMs with associated bandwidth limitation, additional system expense and power consumption. 3 The Hybrid Coder with DC'Tvdornain ME&MC Roughly investigating Figure la shows that, from a storage perspective, the frame memory is located at the worst possible position within the coding loop. Much effort is spent in the encoder to compress the data, and part of this effort can be used to reduce the memory demands by modifying the coding loop. These modifications are 22 Figure 1: a) Traditional architecture; b) DCT-domain architecture shown in Figure 1b. In this set-up the input signal is directly subjected to a DCT outside of the coding loop [3, 5]. In the DCT-domain, the signal is used for ME to the previous frame and afterwards subjected to MC. The result of this operation will be quantized and entropy coded (RLE & VLE) in the traditional way. The local decoding now only goes as far as performing an IQ, and IMC. To take advantage of the large number of zero coefficients after IQ, an RLE is used before storage. With this DCT-domain encoder set-up, both ME and MC have to be performed in the DCT domain, demanding more complexity than traditional ME and MC. However, an IDCT can be omitted. Also, accuracy losses because of IDCT mismatch between the encoder and decoder are avoided. 4 Motion Compensation in the DCT Domain In the DCT-domain encoder, MC is performed from the previous image which is stored in 8 x 8 dct-blocks. The task is to retrieve the coefficients from a dct-block which is arbitrarily located in the previous image. From Figure 2, showing the time-domain situation, it can be seen that the dct-block is a combination of 4 other DCT blocks: 3 X= LhiXiWi. (1) i=O Here Xi represents a time-domain dct-block from the previous frame and hi and ui; are matrices which perform block-selection and -shifting according to the motion. These matrices are chosen and constructed as follows: Wo = w(dc), WI = h(dc), W2 = w(dc), W3 = h(dc), (2) ho = h(dr), hl = h(dr), h3 = w(dr), h4 = w(dr), 23 Figure 2: A displaced dct-block can originate from 4 neighboring blocks where dr denotes vertical and de horizontal displacement respectively. The matrices h(d) and w(d) have a shifted identity form: w(d) = (~d ~), h(d) = (~ ~), (3) where Id is an d x d identity matrix and 0 indicates a filling by zero-valued entries. Note that d can also have fractional values, for sub-pixel displacement. Using the distributive properties of the DCT operator [3]: 3 3 DCT {i} = X = L:DCT{hi} DCT{Xi}DCT{w;} = L:HiXWi. (4) i=O i=O Matrices Hand Ware the DCT-transforms of hand w respectively, their entries de- pending on d. An option is to store them in a look-up table for all non-negative d modulo-8 values. Although h(d) and w(d) are simple and sparse, H(d) and W(d) are non-sparse matrices with real-valued coefficients for most values of d. However, matrices Hand W have a property which is used for reducing the table sizes: Hd(i, j) (-l)i+iHd(j,i) 'V 0:::; d < 7, Wd(i,j) (_l)i+i H,i(i,j) 'V 0:::; d < 7. (5) These properties permit storage of only 8 half matrices including diagonal values rather than 16 complete matrices for full-pixel displacement [4]. Equation (4) can be rewritten as: X = H(dr) (XoW(de) + XIH(de)) + W(dr) (X2W(de) + X3H(de)), (6) where each multiplication is a matrix by matrix multiplication. Note that for 4 : 2 : 0 video presentation, Equation (6) has to be evaluated for both U and V signal, and four times for the Y signal. How dct-blocks compose an Y signal can be seen from Figure 3. Inspection shows that multiplications can be shared when retrieving some displaced dct-blocks. In total, we need to do 20 multiplications to generate the displaced Y block and 6 for each colour block. As the matrices contain 61 elements a totalof 1<3384 multiply-add operations are required. Afterwards, the resulting blocks can be used for compensation by simple subtraction from the DCT-transformed input blocks. 24 va VI de chrominanee luminance Figure 3: Six dct-blocks are needed for one macroblock 5 Motion Estimation in the DCT Domain There are several ways to perform motion estimation in the DCT domain. An advanced method is to use the pseudo-phase property of the DCT [6]. By peak-matching a criterion function such as in phase-plane correlation, an accurate displacement estimate is obtained [5]. However, this method is too costly in hardware. Block-matching motion estimation compensates the block from the previous frame for all of the possible positions (in principle). By evaluating a criterion function the "best fit" is obtained. This method might be feasible in the time domain but is very cumbersome in the DCT domain because of the number of multiplications involved. Rather, we propose to sample only a few (such as 5) displacements, strategically chosen by the 3 Dimensional Recursive-Search (3DRS) blockmatching algorithm [7, 8]. The candidate displacements are obtained from results from blocks in previous rows and previous frames. The selection among the candidates is done by evaluating a criterion function which only needs to be distinguishing between those candidates. In the time-domain we would need 5 full compensations, in the DCT-domain this would still be very cumbersome. However, a strong reduction of computation demands can be achieved by only com- puting single rows and columns, such as the first row or column of the dct-block. This idea is in line with the properties of quantization and DCT. After quantization, most bits in the codestream will be spent to the lower DCT coefficients. The aim of ME&MC is to reduce the information in the quantized signal. Therefore, it is beneficial to only focus on lower coefficients. In addition, horizontal motion will reflect itself mostly in the horizontal coefficients and visa versa. So, rows or columns can be chosen on basis of the candidates as shown in Figure 4. Note that the DCT-domain encoder evaluates the fit ofthe candidate displacements in a domain which more clearly reflects the number of resulting bits. In the time- domain, the residual signal still has to pass a DCT which can alter the suitability of the displacement. 25 horizontal vertical ZZ scan order motion motion Figure 4: Possible choices for evaluated coefficients 6 Memory Control Aspects Because only the non-zero coefficients have to be stored, the amount of memory nec- essary is remarkably less than in the traditional case. From experiments it was shown that with good quality video on the average only 60 coefficients in a macroblock are non-zero. By zero-run-length coding this number of coefficients can be efficiently stored in a little more than 1 Mbit/frame. In an encoder working with an alternating 1 (intra) and P (inter) profile the required size of the memory can be guaranteed by the encoder itself. This is because only intra-coded dot-blocks are stored in the memory. In between inter-coded frames an undefined number of non-zero coefficients can slip through the IMC mechanism to the loop memory. In experiments on different sequences it was shown that with up to 5 consecutive P frames a memory reduction of a factor 6 can be achieved at good image quality (around 33 dB). Note that there is a fall-back mechanism by switching to intra-blocks if the number of non-zero coefficients is higher than can be accepted. Techniques are under investigation to control the memory size, as part of the buffer regulation, for different profiles. 7 ME-MC Architectures and Implementation Two architectures were developed for DCT-domain ME & MC. They were implemented using PHIDEO, which is a high-level synthesis tool accepting an algorithmic descrip- tion [9]. The resulting architectures are compared to the corresponding blocks from a traditional encoder also designed with PHIDEO [2]. For MC the two architectures implement Equation (6) where 2 groups of matrix multiplications can be seen. First, an XW product is evaluated, second, the results are multiplied by H. The first architecture uses the RLE format for the first group of matrix multiplications and the second realizes regular matrix multiplications without taking zero coefficients into account. The ME algorithm runs as a parasite on the 26 Table 1: DCT-domain architectures versus traditional areas RLE based straightforward traditional multipliers 12 of 0.15mm2 20 of 0.15mm2 IDCT core 3.9 mm? adders 28 of 0.02mm2 28 of 0.02mm2 rDCT memories 0.22 mm'' HW block 1 of 0.65mm2 2 of 0.65mm2 ME core 3.3 mm? PHIDEO control 0.3mm2 0.3 mm'' ME memories 0.6 mm? SRAM 6 of (64 x 12) registers 18K5 bits 8K bits total area (0.5Mm) 10.5 mrrr' 7.5 mm'' 8.0 mm? existing architecture, using the intervals where the hardware is not needed for MC. The first architecture focuses on the number of multipliers. It has to perform 20 multiplications between an RLE-format matrix and a regular matrix, and then 12 regu- lar matrix multiplications. This architecture is interesting for its sharing of multipliers and for its single HW block where the Wand H matrices are stored. However, the amount of memory required is significant, because the results of the first matrix mul- tiplications have to be stored before starting the 12 last multiplications. The results of an implementation using a 0.5 Mmtechnology are given in Table 1 under "RLE based". The second architecture was developed with memory resources in mind at the cost of multipliers. The second multiplication is started as soon as possible, avoiding inter- mediate storage. This straightforward architecture has to perform 32 regular matrix multiplications, and needs 20 multipliers. Its advantage is the small amount of the memory, but the number of multipliers is significant and it also needs 2 HW blocks. The resulting area figures are presented in Table 1 under "straightforward". It can be seen that it is smaller than the RLE-based architecture. In addition, because no hardware sharing is used, the throughput rate is higher. It is important to compare the area needed for DCT-domain ME and MC with the traditional time-domain approach, were they effectively replace the time-domain ME and the IDCT. The specific numbers for the traditional approach [2] are presented in Table 1 under "traditional". Here it is obvious that the straightforward implementation of the DCT-domain motion estimation and compensation is already comparable in area with the traditional blocks it replaces. This means that DCT-domain ME&MC do not necessarily increase the encoder area. 8 Conclusions In this article we have presented a method to decrease the loop memory needed for hybrid video encoding in size. The ultimate goal is to reduce it so far that on-die im- 27 plementation with the encoder becomes feasible. The memory reduction was achieved by storing the previous image in the DCT domain. We discussed the MC technique and proposed a recursive blockmatcher with a criterion based on a limited number of coefficients as ME algorithm. It was shown that a VLSI implementation is comparable in area with the blocks it replaces from a traditionally implemented encoder. References [1] J. Mitchell, W. Pennebaker, C. Fogg, and D. LeGall, eds., MPEG video compression standard. Digital Multimedia Standards Series, Chapman and Hall, 1997. [2] A. van der Werf, W. Brüls, R. Kleihorst, E. Waterlander, M. Verstraelen, and T. Friedrich, "I.MclC: a single-chip MPEG2 video encoder for storage," IEEE Jour- nal of Solid State Circuits, vol. 32, pp. 1817-1823, Nov. 1997. [3] S. Chang and D. Messerschmitt, "A new approach to decoding and composit- ing motion-compensated dct-based images," in Proceedings ICASSP99, pp. V421- V424, 1993. [4] N. Merhav and V. Bhaskaran, "A fast algorithm for DCT-domain inverse motion compensation," in Proceedings ICASSP96, pp. 2307-2310, 1996. [5] U. Koe and K. Liu, "Dot-based subpixel motion estimation," in Proceedings ICASSP96, 1996. [6] K. Rao and P. Yip, "On the shift property of DCTs and DSTs," IEEE Transactions on Acoustics, Speech and Signal Processing, vol. 35, Mar. 1987. [7] G. de Haan, P. Biezen, H. Huijgen, and O. Ojo, "True-motion estimation with 3-d recursive-search block matching," IEEE Transactions on Circuits and Systems for Video Technology, vol. 3, pp. 368-379, oct 1993. [8] R. Kleihorst, A. van der Werf, W. Brüls, W. verhaegh, and E. Waterlander, "MPEG2 video encoding in consumer electronics," Journalof VLSI Signal Pro- cessing Systems, pp. 241~253, 1997. [9] J. van Meerbergen, P. Lippens, W. Verhaegh, and A. van der Werf, "PHIDEO: High-level synthesis for high throughput applications," Journalof VLSJ signal pro- cessing, vol. 9, pp. 89-104, 1995. 28 Low-cost Embedded Compression for Memory Reduction in MPEG coders Peter H.N. de With 1 and Mihaela v.d. Schaar-Mitrea 2 1 University Mannheim, Dept. Circuitry & Simulation, B 6-26, D-68131 Mannheim, Germany. dewi thenti. uni -mannheim. de 2 Philips Research Labs., Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands. mitreaennatlab. research. philips. corn Abstract - We present an MPEG decoder with reduced system costs by employing embedded compression of the reference frames which are used for motion-compensated (MC) decoding. The compression features simple recovery of (MC) block data, while preventing visible artifacts. The compression was optimized for low costs, enabling real application in a commercial MPEG IC. 1. Introduction The MPEG video compression standard [1] is being applied in numerous applica- tions, such as video communication in the multimedia PC, Digital Video Broadcast- ing (DVB) and more recently, storage of video sequences on the Digital Versatile Disk (DVD). The evolution of the aforementioned applications is clearly towards large-scale usage in the consumer electronics market, where low system costs are of utmost importance and a continuous price erosion occurs. In this paper, a new technical solution is proposed to realize lower system costs for an MPEG decoder, without any significant loss in the resulting picture quality after decoding, by corn- pressing the reference video frames that are kept in memory during the decoding process. The paper is divided as follows. Section 2 addresses the most relevant con- straints for embedding a compression system in the motion-compensation stage of the MP EG decoder. Section 3 is devoted to the compression systems being used. Section 4 presents simulation results of an experiment where a system was build into a state-of-the-art MPEG-2 decoder. Finally, conclusions are discussed in Section 5. 2. System requirements System costs in the MPEG decoder are dominated by the bi-directional motion compensation unit, which employs two frame memories to store the previous and 29 (b) r.---~--l' actual - 1" t- - - -t-I - -pI - - I MBgrid ,I I ,I - J ~_ -r:-~"]~-=-J /' J-!--IJ....-_j ~ .1 1 I I • external desired -- -1----1--1 SDRAM MB I • I I I I 4---+--...J Figure 1: (a) MPEG decoder architecture diagram, (b) Locations ofrequired mot ion- compensated blocks on actual macroblock (MB) grid. next reference frames (I and P pictures). The memory cost of two 4:2:0 sampled images as used in MP EG main level is 10 Mbits. The required bandwidth to offer two full-colour reference frames simultaneously is 50-60 MB/s, while the required decoding speed for real-time operation is 16-18 MHz. For reduced system costs, the reference frames are typically stored in a Synchronous DRAM (SDRAM) of e.g. 16 Mbits capacity (see Fig. l(a)). This memory serves also as a background memory for a CPU which controls the MPEG decoder and generates additional On-Screen- Display menus for user control (indicated by the hatched area in Fig. l(a)). The costs of the memory usage for motion compensation is reduced by recompressing the reference frames prior to memory storage, in order to save memory capacity for other purposes (e.g. CPU data, graphics). Several important system constraints for the embedded compression of reference frames in MPEG have to be satisfied and are listed below. The last two are rather special and typical for this type of application. • High picture quality. The quality of the embedded compression should be well above the MPEG decoder to avoid decoding noise interference. • Low complexity. The complexity should be a small fraction of the required MPEG decoder hardware. • Accessibility. The motion compensation using a motion vector for each mac- robloek (MB), requires that MB-data should be retrieved from the background memory on "arbitrary" positions, which mostly do not coincide with the static block grid (see Fig. 1(b)). The embedded compression should allow easy ex- traction of the reference data. • Stable quantization after multiple encodings. The recursivity in MPEG, where P-pictures form the input for the subsequent iteration of P-picture re- construction, requires that accurate quantization is performed, when embed- ded compression is performed in between. Otherwise, the decoder would drift away from the local reconstruction loop as applied in the encoder, leading to e.g. colour distortion. 30 digital output video in bit stream Figure 2: Block diagram of system encoder using feedforward fixed-length compres- sion of segments. digital output video in bit stream Figure 3: Block diagram of basic BPC system encoder. 3. Embedded compression system Firstly, a framework is presented for two classes of systems, using segmented cod- ing. Secondly, two systems are briefly discussed: block predictive coding and DCT transform coding. 3.1 Fixed-length segment coding Because of the accessibility constraint, we use a compression system which generates fixed-length data packets for a group of MPEG macroblocks, called a segment (see Fig. 2). Each group is compressed independently and has a size of 9 MBs. This so-called feedforward coding technique was adopted from digital video recording [2]. The video data is first analysed with a set of various quantization strategies, oth- erwise fixed-length compression is not guaranteed. The advantage of feedforward coding is that a uniform mapping of the image in the memory is achieved, improving the data accessibility without overhead. It should be noticed that the system in Fig. 2 can be used for any type of decorrelation. For this reason, we have experimented with a very simple predictive coding scheme and a more expensive transform coding system. 3.2 Block predictive coding A high picture quality and low complexity can be obtained with Block Predictive Coding (BPC) on a local basis, by using small blocks of 4 x 4 pixels. Subsequently, the maximum (MAX) and minimum (MIN) pixel values of each block are deter- mined. The difference between the MAX and MIN value in a block is called Dy- 31 [= y Figure 4: Construction of header to improve data accessibility. namic Range (DR). For low cost, the MIN sample value is transmitted as a global prediction for all other samples inside the block [3] (the decorrelation in Fig. 2). After subtracting this minimum value of the actual sample value s(i,j), all differ- ence values d( i, j) of a block are quantized adaptively, according to the actual block DR, resulting in quantized differences dq( i, j). A block scheme showing the basic steps is portrayed by Fig. 3. For simplicity, quantization based on powers of 2 was implemented. The strategy chosen after segment analysis is the finest quantization that yields the desired number of bits reserved for a group of 9 MBs. 3.3 Transform coding A transform coding scheme employing DCT and variable-length coding has also been used for experiments. The DCT transform can be optimized for low-cost hard- ware [4], and is inserted in Fig. 2 as the decorrelation step. Furthermore, simple block quantization can be applied. For variable-length coding, joint runlength- amplitude coding from MPEG [1] or similar techniques have been employed, In this case, accessibility of the data becomes more difficult, since the length of the codes is not known in advance, in contrast with the BPC system. This system enables a somewhat larger compression factor (at the expense of more hardware). In the remainder of this paper, we will primarily focus on applying the BPC system. The results with embedded DCT coding will be reported elsewhere [5]. 3.4 Accessibility In MPEG-2, the motion vector of each macroblock is used to define the motion compensation. Since this vector may varyfrom MB to MB, individual macroblocks from the compressed frames have to be recovered. However, due to a variable bit allocation within each segment (see Section 3.2), the position of the blocks cannot be easily determined. In the case of a fixed compression factor per segment (see Section 3.1), only the position of the first macroblock within the segment is known. In the worst case, to access a set of pixels within a segment, the decompression of the complete segment may be required. To keep the memory bandwidth within 32 SNR (dB) RENATA 43 42 /' /' MOBI /' 41 40 39 38 37 36 segm. size 7 50 100 200 400 (# blocks) Figure 5: SNR for Y, U, Vasa function of the segment size. acceptable bounds, the access of 0 data should be limited. The attractivity of the BPC system is that the coding step is integrated into the adaptive quantization stage: the number of bits spent per block are uniquely defined by the combination of the quantizer strategy and the DR parameter of the block. Therefore, the strategy number and the set of DR parameters suffices to compute the starting position of every block in the compressed segment. For this reason, each compressed segment contains a header consisting of the strategy num- ber and DR parameters (see Fig. 4). This header also contains offset pointers to the start addresses of the individual chrominance (C) and luminance (Y) blocks. In the segment, the chrominance blocks are placed before the luminance blocks, (C needs less bits) leading to smaller block pointers for Y blocks. Due to the fixed-length segment coding and the efficient header construction, the decrease in overall com- pression performance is negligible (this is not true for the transform coder operating at a higher compression factor). 4. Coding experiments and simulation results The embedded compression system of the previous section has been integrated in the MPEG codec designed by the MPEG Software Simulation Group. In order to quantify the loss in image quality from embedded compression, a set of experiments has been conducted. First, the original video image has been compared with the reconstructed MPEG image with and without embedded compression. A set of (em- bedded) compression factors ranging between 2-2.5 has been used. The influence of the following parameters has been investigated: quantization strategies, number of blocks within a segment and the chosen compression factors. For the experiments, two sequences were used: a detailed sequence MOBI (coded at 9 Mbit./s] and a typical video sequence RENATA (coded at 4 Mbitys). 33 4.1 Segment size and picture quality In feedforward coding, groups of N blocks are compressed together. It is easily understood that an improved picture quality is obtained for a larger segment size [2], because it leaves more flexibility in bit assignment with respect to detailed aud non/detailed areas. However, another trade-off should be made between image quality and segment memory costs, as this memory is located inside the compression system (see Fig. 2). The Signal-to-Noise Ratios (SNR), defined as 10 loglO(255)2ja2 for different segment sizes are depicted in Figure 5. The segment size includes the corresponding colour blocks as well. From Figure 5, it can be noticed that the SNR increases with the segment size. The increase becomes more smooth at a few hun- dred data blocks. If a trade-off between segment memory size and image quality should be made, then N = 216, corresponding with 9 MPEG-2 macroblocks, is an interesting alternative. A larger number of blocks results in an unnecessary increase of the memory size without significant improvement in SNR. It is emphasized that these results are valid only for a compression factor around 2. 4.2 Compression factor and picture quality To determine the range of compression factors which can be achieved employing the described BPC codec, the SNR has been evaluated for different compression factors ranging between 2-2.5. For a higher compression factor, the transform coder can be inserted [5]. The experiments have been performed for a segment size of N=216. A comparison between the MPEG-2 coder with and without embedded compression, expressed in SNR, is also presented. From Table 1 it becomes clear that, because the SNR obtained with the embedded coder is much higher than that of the MPEG-2 coder, the embedded coder does not interfere with the MPEG-2 decoder. This was also verified with numerous visual experiments. Image CF = 1 CF' = 2 CF = 2.3 CF' = 2.5 MOtH 26.9 26.7 26.7 26.5 Orig. - MPEG 30.8, 32.7 30.6, 32.5 30.6, 32.4 30.5, 32.3 MOHl 45.0 41.4 38.7 MPEG - MPEG Emb. 48.5, 49.0 45.6, 46.0 45.6, 46.0 KENA'l'A 30.9 30.8 30.6 30.5 Orig. - MPEG 38.2, 37.3 38.1, 37.2 37.9, 37.1 37.9, 37.0 KENA'lA 45.2 45.0 44.9 MPEG - MPEG Emb. 53.0, 53.2 51.3, 51.4 52.5, 52,6 Table 1: SNR for Y (up) U, V (down) obtained for different compression factors (CF) and segment size N=216. 34 SNR (dB) 46 Y Quant. strategy 2 y Quant. strategy 1 36 34 10 20 30 40 50 60 # frames Figure 6: SNR for Y, U, Vasa function of repetitive quantization. 4.3 Worst-case test: repetitive quantization In Section 2 it was mentioned that if a long series of consecutive P-pictures is coded without any I-frame in between, a cumulation of errors can occur if the quantization is not dimensioned properly. In our case, we started with using divisions factor of 2n. It was found that a cumulation of errors can lead to annoying artifacts like colour drift. The cumulation of errors is due to the fact that the representation values after quantization are not equally distributed around zero. Consider the following exam- ple of a uniform quantizer, where the lsb is removed in the encoder and an upward shift is performed in the decoder, so that 3 ---+ 2 (error -1), 2 ---+ 2 (error 0), 1 ---+ o (error -1), 0 ---+ 0 (error 0), -1 ---+ -1 (error 0), -2 ---+ -1 (error +1) and -3 ---+ -3 (error 0), where ---+ means "becomes after reconstruction". Note that the encoder quantizer specificatien equals x/2n for x :2: 0 and (-x + 2n-1 )/2n for x < 0 and n=l. In this way, the number of positive error values resulting in a positive offset is smaller than the number of negative error values, resulting in a small cumulation of negative offsets, However, quantization schemes exist where the number of positive and negative error offsets are equal, thereby avoiding the creation of a DC-offset. In the previous example, the quantizer can be modified to Ixl/2n leading to a dead- zone quantizer without DC offset. In Figure 6, the SNR for the two quantization strategies after the 1st and 61th P-frames are depicted. 5. Conclusions A simple low-cost compression system has been added to the motion-compensation loop of the MPEG-2 coder, to reduce the memory cost of an MPEG-2 coder. The 35 picture quality of the reconstructed MPEG image sequence (MOB!, SNR 26-30 dB) is hardly influenced by the embedded compression which operates at a much higher quality (SNR 39-45 dB). The negligible loss of embedded compression is substanti- ated by simulation measurements (Table 1) and is confirmed in other publications [6] [7]. For lower bit rates, (e.g. 4 Mbit/s), the SNR between the original and the reconstructed MPEG-2 image decreases, such that the losses introduced by embed- ded compression are even vanishing. It was shown that careful quantizer design is required, to maintain a stable SNR after multiple encodings occurring in large GOP sizes in MPEG. Quantizers should have no DC offset in order to keep the SNR loss within 1 dB. In an earlier paper [8], improved compression results have been presented by adding variable-length coding (arithmetic coding) to the BPC system. However, due to the unknown variable number of bits per quantized data block, the accessi- bility scheme becomes more difficult and expensive in overhead. As a consequence, the number of bits gained, are lost for creating sufficient accessibility of individuál data blocks. Since the proposed technique considers the reference pictures in the memory as normal images, it may be equally applied in both MPEG-2 encoders and in MPEG- 2 decoders. The simplicity of the system proposed, together with the promising simulation results, have resulted in the decision to include this proposal into a com- mercial IC design for further testing and evaluation. References [1] "Coding of Moving Pictures and Associated Audio", International Standard, ISO/IEC 13818, November 1994. [2] P.H.N. de With and A.M.A. Rijckaert, "Design considerations of the video com- pression system of the new digital DV recording standard", IEEE Trans. Con- sum. Electron., Vol. 43, No. 4, pp. 1160-1179, November 1997. [3] T. Kondo et. al., "A new ADRC for consumer digital VCR", lEE Proc. 8th VADR Conf., Birmingham (UK), lEE Publ. No. 319, pp. 144-150, April 1990. [4] M. v.d. Schaar-Mitrea and P.H.N. de With, "On the application of fast DCT transforms for combined SW /HW implementation", Proc. 18th Symp. on In- form. Theory in the Benelux, Veldhoven, The Netherlands, pp 33-40, May 1997. [5] P.H.N. de With. P.H. Frencken and M. v.d. Schaar-Mitrea, "An MPEG decoder with embedded compression for memory reduction" , IEEE Trans. Consum. Elec- tron., Vol. 44, No. 3, August 1998, to appear. [6] U. Bayazit, L. Chen and R. Rozploch, "A novel memory compression system for MPEG-2 decoders", IEEE Trans. Consum. Electron., Vol. 44, August 1998, to appear. [7] D. Pau and R. Bruni, "A novel adaptive vector quantization method for memory reduction in MPEG-2 HDTV decoders", IEEE Trans. Consum. Electron., Vol. 44, August 1998, to appear. [8] M. v.d. Schaar-Mitrea and P.H.N. de With, "A comparison between Huffman and arithmetic coding for video compression", Proc. 17th Symp. on Inform. Theory in the Benelux, Enschede, The Netherlands, pp 25-30, May 1996. 36 Establishing a Trade-off between Error Robust Network Protocols and Error Robust Video Compression Algorithms" Jan-Derk Bakker and Frank H.P. Spaan Delft University of Technology Faculty of Information Technology and Systems Department of Electrical Engineering Information and Communication Theory Group Mobile Multi-media Communication P.O. Box 5031, 2600 GA Delft, The Netherlands E-mail: {bakker.franks}@mmc.euudelft.nl 1 Abstract In mobile communication systems using compressed digital video, two approaches are known to deal with the errors occurring as a result of the wireless link. One is channel coding: adding error detecting or correcting codes in the protocol layer. The other is source coding: using a video compression algorithm, adapted to deal with the errors. This paper discusses an experimental set-up to assess the trade-off between the two systems in terms of the image quality aspects (Peak Signal to Noise Ratio; PSNR), at a constant bit- rate. The number of parameters influencing the PSNR is high and the way the PSNR depends on them not straightforward. Therefore, an empirical assessment of the aspects of the trade-off is chosen. For these experiments, an error-robust network protocol and an error-robust video compression technique are necessary. For both, techniques are used which have been recently developed in our group. 2 Introduction In the mobile environment, errors will occur during the wireless transmission. These errors are divided into changes in transmitted bit patterns due to noise and loss of data caused by network congestion. This poses a problem especially for compressed video data. There are mainly two areas in the comrnunication link where these errors can be handled: in the network protocol and in the video compression algorithm. Usually these areas are treated separately. In the Mobile Multi-media Communication Project [1][2], we have developed techniques for error-robust (video-)communication in both areas. This paper describes an experimental set-up which aims at establishing criteria that determine to which extent each of the two techniques should be applied in order to achieve optimal performance in terms of error-robustness and efficiency. The actual resulting parameter settings will be different • This work was supported in part by the Netherlands Organization for Scientific Research (N. W.O.) under project DEL55.3671: Mobile Multimedia Communication. This is a multi- disciplinary project, which aims to investigate various aspects of communication between mobile users using multimedia. The research topics include the usefulness of the application of MMC in work-coordination, the user-interface, transmission in the 60 GHz range, network aspects and video compression. 37 for different communication link situations. First we describe the proposed error-robust techniques in the two separate fields in section 3, after which we assess the parameters influencing the trade-off in section 4. The experimental set-up is discussed in section 5, and a discussion concludes this paper. 3 The Proposed Techniques 3.1 The Error~Robust Network Protocol For the wireless part of the link, a transfer protocol is developed that supports different traffic classes and guaranteed maximum transfer times. The protocol divides traffic streams into small fixed size units called fragments. These fragments are then queued for transmission over the wireless channel. Extra redundancy is added to the fragments in the form of a BCH forward error correction code in order to correct short error bursts. A feedback rnechanisrn is used to indicate whether fragments are received correctly. Incorrect fragments are re-queued according to their traffic class. Loss of data will occur if a fragment is not received correctly after the maximum number of retries, the latter depending on the maximum allowed delay for the wireless part of the link. 3.2 The Error-Robust Video Compression Algorithm We have developed an error-robust video compression algorithm, based on the H.263 video compression standard [3]. An approach, different from current techniques [4][5][6] has been developed. It consists of two parts. Firstly, the reference frame, with respect to which the differential frames are coded, is a frame composed of a set of N previous reconstructed frames at the decoder. Secondly, at the decoder corrupted macro-blocks are detected, replaced by ones from the previous frame thereby concealing the error, and their positions are signaled to the encoder. When the encoder receives this information, it forces intra coding of the macro blocks at these positions. The decoder will receive intra coded macro blocks at the positions of the errors, in some future frame, depending on the delay. 4 The Influence of the Parameters on the Trade-off 4.1 Parameters Influencing the Performance of the Network Protocol The network protocol is strongly influenced by environmental parameters. Noise on the wireless channel is the main cause for errors, as it causes corruption in the received fragments. As the number of retries for each traffic class is bound to a maximum to limit the delay, some fragments may be lost. Another cause for loss of traffic is congestion in the fixed part of the network, which is usually not controllable by the wireless network protocol. 4.2 Parameters Influencing the Performance of the Video Compression Algorithm There are several parameters influencing the performance of the Video Compression Algorithm: • The end to end delay, on which the arrival time of the intra coded macro blocks, and therefore the efficiency of fixing the errors, depends. • The number of used previous frames. More frames means less influence of the errors but worse prediction and less compression. 38 • The error rate and error-burstiness. • The frame size; the number of errors per frame is visually important. • The frame rate, which influences the prediction. • The bit-rate, as high compression creates a bit-stream more vulnerable to errors but also less bits, and therefore errors, per frame. • The motion vector search range. The use of more motion vectors means more spreading of errors but also higher compression. 4.3 Parameters Influencing the Trade-off between the Network and Compression Solutions These parameters are all the parameters mentioned for the techniques separately. This means that we have to solve a highly multi-dimensional problem in order to achieve the optimal performance. Since many of the parameters are dependent upon the characteristics of the actual communication situation, the optimal parameter settings will be different for different situations. 5 Experimental Set-Up 5.1 Preliminary Remarks For the proposed error-robust video compression some first results are already available. For a limited set of parameter settings they show a constant but minor decrease in PSNR at constant bit-rate as opposed to devastating results for standard H.263 at the sarne settings [3]. For the proposed error-robust network protocol network protocol, a first implementation is running, which counters the impact of errors. For a network protocol, when proteetion of data over the wireless link is added, achieved by adding redundancy and performing retransmissions, throughput will decrease and delay will increase. Using the proposed error-robust network protocol, we counter this effect by the division of traffic streams into error-sensitive and error-resistant sub-streams, and transferring each sub-stream with the minimum required amount of protection. 5.2 Experimental Set-Up Using the software version of H.263 standard [7], developed by Telenor, a set of experiments is suggested. The following settings are fixed: • Start of the insertion of errors: after 5 frames. • The DCT quantisation parameter at the beginning of the sequence: QP(begin) = 10. • Number of frames per sequence: 300. • Insertion of synchronisation words: at the beginning of every row (GOB- synchronisation). The following parameters are varied. For each parameter a range of values is given, which describes the major part of the possible communication link situations, from relaxed via average through extreme: 1. Additional source coding using a composed reference frame (ASR): excluded or included. 2. Additional source coding using adaptive I-MB request (ASI) excluded or included. 3. Additional channel coding (ACH): excluded or included. 39 4. Bit-rate (BR): from 64 kbit/s through 4 Mbit/s. 5. Bit error rate (the Signal to Noise Ratio in the channel model) (BER): Zero and from 10-6 through 10-'. 6. Delay-spread: the number of retries (NR): from 1 through and infinity. 7. Motion vector search range (MVS): 0 through 15 pixels. 8. Channel model (CM): Additive White Gaussian Noise (AWON), Rayleigh and measured. 9. Burst model (BM): using different burst-tlengths' and excluding bursts. 10. End to end delay (D): from 10 through 320 milliseconds. 11. Number of previous frames to compose the reference frame (N): 0 through 25. 12. Frame size (FS): 640x480, CIF (352 x 288) and QClF (4:2:0). 13. Frame rate (FR): 5 through 25 per second. 14. Input sequences (SE): the "News", "Weather" and "Carphone" test sequences and an own-recorded sequence. Two values for each of the 14 parameters would already require 16384 runs. Since, using several quad Pentium Pro machines, we can process about 1500 sequences per 24 hours, the total number of runs has to be limited. This means we have to limit our set of parameters, thereby making sure we cover the most interesting part of the parameter space. The limited set comprises of: • ASR, ASI, ACH: full range (8 values total) • CM: full range (3) • BR: 64, 256 kbit/s and 2 Mbit/s (3) • BER: 10-5,3*10-4,10-2,10-1 (4) • NR: 1,3,5 and infinity (4) • MVS: 0 and 158 (2) • BM: including 1 kind of bursts and excluding bursts (2) • D: 40 and 200 ms (2) • SE: "News" and Carphone" (2) • N: 5 fixed (1) • FS: CIF fixed (1) • FR: 25 frames/s fixed (1) This leaves us with 18432 runs and about two weeks of computation time. After this initial set of runs, the most interesting part of the parameter space can be investigated further with additional sets of runs using more specific sets of parameters. The results we obtain from these sequences are the PSNR for each run, for the specific set or parameters. The best runs, in average PSNR sense, are selected and further evaluated using subjective criteria. 6 Discussion We discussed the experimental set-up for establishing a trade-off between channel-coding and source-coding. The set of experiments that is suggested, assesses different communication link situations. The number of experirnents has lo be limited, given the parameter space and the computational power. Nevertheless, current work focuses on an extensive experimental quantitative evaluation of the error-robustness (PSNR of the displayed video) and efficiency (bit-rate) using 40 different settings of the parameters that influence the performance of both techniques. This will indicate how and to what extent each of the techniques should be used in the different communication situations. Optimal performance by partial application of each of the two techniques, automatically adapted on the fly in response to the changing circumstances, is one of the goals of this research. 7 References 1. http.z/mmc.et.tudelft.nl/ 2. Lagendijk, R.L., Biemond, J., and Quist, e.P.: 'Low Bit Rate Video Coding for Mobile Multi-media Communications' , Proceedings EUSIPCO-96, 1996. 3. Spaan, F.H.P., Lagendijk, R.L., and Biemond, J.: 'Error Robust Video Coding based on H.263', to appear in Proceeding ICIP '98. 4. Torres, L., and Kunt, M., (Eds.): 'Video Coding, the Second Generation Approach', Kluwer Academic Publishers, 1996. 5. Sadka, AH., Eryurtlu, F., Kondoz, A.M.: 'Modified H.263 Video Coding Algorithm for Mobile Multimedia Communications'. Proceedings Second Erlangen Symposium, 25 April 1997. 6. Ad-hoc Group on Core Experiments on Error Resilience Aspects: 'Description of Error Resilient Core Experiments' , October 1997. 7. 'Video Coding for narrow telecommunication channels at < 64 kbit/s '. ITU-T Recommendation H.263, 1996. encoder ~ channel decoder -- - ---- --- - -- ---------- ------------------- f-o-- - error MB lastN lastN MB +:- feedback ~ ~ detec ~ frarres channel Imp tion frarres ImP. r- t reference dis- error reference frarre ~ play ~ conceilrren frarre Figure 1 The source-coding block-scheme. 41 Figure 2 The original QCIF frame, compressed. Figure 3 The original frame with errors (10-3 after 2 seconds) Figure 4 With errors but using the full source coding technique. 42 HALL-MONITOR SEaUENCE (352x288) 40,-------------,---------------,--------------,--------------,-------------, 38 36 34 32 0::: t5 30 Q_ 28 26 24 22 ~lIlltllllf++fP"II~lllltt+t+tlH1tftfjlllrrlfllllltlll~lllllllllltllillllll11111)"""11111111111111111111111++- 20L_ _L L- _L L- ~ o 50 100 150 200 250 FRAMENUMBER Figure 5 The PSNR of the Hall Monitor sequence in CIF format at a random bit error rate of 10-4, number of frames used for the reference frame = 5, a delay of 15 frames, a motion vector search range of 8 and a fixed bit-rate of 250 kbitls. Shown are the original without errors (solid line), the original with errors (x) and the technique with full additional source coding without channel coding with errors (0). 70 .----- ..------ €,...---.--.-----.-------.,-.------------,'- .. ..---------------,.------ 60·· Co o (,) o 50 o 40··· o c· o o 30 o o z,.B cP 20 - .R 10 -:) Figure 6 An example of the number of requested intra-coded MBs for different values of the bit error rate: 10-5 (dashed line), 10-4 (x) and 10-3 (0). The number of frames used for the reference frame = 10. Full additional source coding is used without channel coding. 43 Compression of Cardiac X-Ray Images Based on Acquisition Noise Frederik J. de Bruijn, Marc Schrijver, and Corne1is H. Slump University of Twente, Dept. of Electrical Engineering, Signals & Systems - Network Theory P.O. Box 217, 7500 AE Enschede, The Netherlands Abstract The goal of this work is to illustrate the feasibility to use noise as a measure for data loss in compression of cardiac X-ray images. In lossy medical image compression, the requirements for the preservation of diagnostic integrity cannot be easily formulated in terms of a perceptual model. Especially since, in reality, human visual perception is dependent on numerous factors such as the viewing conditions and psycho-visual factors. In general, due to the low exposure, cardiac X-ray images tend to be relatively noisy. In the assumption that noise, in case it is not correlated with the signal, contains no diagnostic information, we propose a compression scheme, based on (overlapping) block transforms, exploiting the different spectral distributions of signal and noise. 1 INTRODUCTION 1.1 Perception- versus noise-based quantization An important issue in lossy compression of medical images is the risk of destroying diagnos- tically relevant information. Current lossy compression standards, such as JPEG and MPEG, are designed for conventional still-image and video display respectively. These algorithms are intended for viewing situations in which loss of image detail is not regarded as a loss of inforrnation to the observer, but is primarily assessed in an aesthetical sense. The quan- tization in conventional lossy image compression is mostly based on commonly accepted models of human visual perception. Some successful attempts have been reported of the application of perceptive criteria in lossy medical compression [1, 2, 3]. It is debatable, however, whether perceptive criteria are reliable for judging the preservation of diagnostic information. In this paper, we use a criterion for data loss which is not based on properties of the hu- man observer, but on the presence of noise in the image. Random noise is hard to compress, as opposed to structured information since compression is essentially a parameterization of the structured information. The use of lossy compression schemes for noise filtering is not new. Particularly in the wavelet domain, lossy compression methods are applied to recover noisy data. Noise-based quantization, is usually performed by applying a threshold to the wavelet-transform coefficients, after which only those coefficients are retained that exceed the threshold value. Clearly, the determination of the 'proper' threshold value is a crucial 45 step. Although there are several methods for determination of some 'optimal' threshold, in this paper we focus on the concept of a universal threshold, which was introduced by Donoho et al. [4,5]. 1.2 Application to medical imaging Radiological images are generally extremely noisy compared to normal optical images. Noise based quantization requires a priori knowledge of the characteristics of the acqui- sition system rather than of the observer. Our research is confined to X-ray angiography in which the noise is mainly due to the low radiation dose. The images in this paper, are acquired with a Philips Digital Cardiac Imaging (DCI) system. The system is schematically depicted in Figure 1. X-ray pulses are generated (typ. 5-8 ms) at a rate of 12.5-60 frames/s video c: 8 Figure I: Block diagram of a digital cardiac imaging (DCI) system. in order to freeze the motion of the coronary arteries which are injected with a contrast agent by means of a positioned coronary catheter. The X-ray photons which have traversed the patient are converted into a video image by the image intensifier-TV system. The resulting video signal is digitized in 8 bits after a analog non-linear contrast correction often referred to as white compression. The images are stored on a real time digital disk in 512 x 512 (or even 1024 x 1024) x 8 bit. Parallel to the storage on disk, the images are processed (i.e., correction for the low-pass filtering by the imaging components) and displayed on a monitor. 2 THEORY 2.1 Thresholding and distortion Rate-distortion theory teaches that if D is the error between the original f and the approxi- mated signal j after compression and decompression, (1) 46 any reduction of the the bit rate is accompanied by an increase of the error D. Now, let f be composed of a noiseless stationary signal g, which shows some considerable amount of correlation, and of an additional white Gaussian noise signal n with strength JJnJJ2 = u~, f = g+ n. (2) Let j be the approximation of f after decompression. When we redefine the distortion as according to (3) (3) the value of ÏJ represents the difference between the approximation j and the original noise- free signal g. In case of a monotonic descending signal spectrum Sf, thresholding of co- efficients with threshold T results in an implicit bandwidth reduction to w = a as sketched in Figure 2. In case the spectral distribution of signal and noise significantly differ, such a bandwidth reduction results in an improvement of the error ÏJ up to the frequency that the decrease of signal bandwidth is not compensated anymore by the reduction of the noise bandwidth. 7r a W--t Figure 2: Distortion after thresholding with T: conventional and alternative definition. 2.2 Universal threshold The concept of a universal threshold was introduced as a quantization criterion in noise reduction using wavelet transform by Donoho [5]. The use of a universal threshold requires the assumption that the signal has to be recovered from additive zero-mean white Gaussian noise. His goal is to minimize the error ÏJ as defined by (3), subject to the condition that the approximation j is at least as 'smooth' as f. The universal threshold combines an estimate of the noise level a.; with the multiplier .j210g N, T = UnV2 log N, (4) with N number of noise samples. The multiplier ensures that, for N --+ 00, the probability that one of the samples exceeds the threshold goes to zero. 2.3 Smoothness of the approximation The concept of 'smoothness' or 'regularity' is a commonly used criterion for evaluating a set of wavelet base functions. Intuitively, it may be clear that the smoothness of the base 47 functions determines the smoothness of the approximation. In this respect, the use of a lapped transform in the form of a modulated lapped transform (MLT) is also investigated as an alternative to the blockwise DCT of which the base functions are not differentiable at the edges. The analysis filter of the MLT is given by h[nJ=Sin[2~(n+~)]COS[Wr(n-2N2-1)+. 2 and D is ~I}en, t:O<::t:S [(0 ifD2':2andd=lmod3, (7) { D - 3l D /2 J :S 0 if D 2': 2 and d = 2 mod 3. Note that equality holds in (7) if and only if D is even and d = 0 mod 3 or D = 3 and d = 2 mod 3. This concludes the proof of (5). Finally, (4) follows by substituting the t from (5) into the expression for E(t, d, D) from Proposition 1. 0 IV Minimum unsuccessful decoding probability In the concatenated coding scheme as described in Section 11, the outcome of the inner decoder is the correct Q-ary symbol, an incorrect Q-ary symbol, or an erased symbol. The probabilities of these three events are [1, Theorems 14.2.1-14.2.3] (8) 70 (9) and PI = 1 - Po - P2, (10) respectively, where Al denotes the number of codewords of weight I in the inner code and N(l,hjs) = L . n-l ( J+h-l ) (I) (l-_Z) i J (q-1)j+h-l(q-2t (ll) 0$ i $ n O$j$n i + 2j + h = s + I The outcome of the outer decoder is the correct data sequence of K Q-ary symbols, an incorrect data sequence, or a message that a number of errors beyond the code's correction capability has occurred. Only in the first case the decoding can be called successful, in the other two cases the decoding is unsuccessful. Since we assume that decoding is successful if and only if the number of errors X and the number of erasures Y produced by the inner decoder satisfy 2X + Y ::; D -1, the probability of unsuccessful decoding is nN L Fipi(1- ptN-i i=E( t ,d,D)+ I nN L c.«, (12) i=E(t,d,D)+l where F, and G, depend on the inner and outer code parameters and on the radius t of the inner decoding spheres, but not on the channel error probability p. Note that F, is the number of error patterns of length nN and weight i which lead to unsuccessful decoding. In case the channel error probability p is sufficiently small, i.e., the value of p is below a certain positive threshold which depends on the code parameters, we have the following result. Proposition 3 For all concatenated coding schemes withan inner code of distance d and an outer code of distance D, the unsuccessful decoding probability P, in case the channel error probability p is sufficiently small, is only minimized for one or more values oft which maximize the number of correctable errors E(t, d, D), i.e., for one or more of the values of t given in (5). Proof. For ease of notation, let Et = E( t, d, D) for t = 0,1, ... , l(d - 1)/2 J. For a sufficiently small channel error probability p, the following holds. 71 1. For all t, the expression for the unsuccessful decoding probability P from (12) is completely dominated by the term with the smallest power of p, i.e., by GE,+lPE,+l. Hence, the unsuccessful decoding probability P is only minimized for one or more of the values of t which maximize E(t, d, iJ). 0 However, if the channel error probability is relatively large, then the picture might look completely different. This will be dernonstrated by showing an example. Example 1 We consider the scheme with a binary [10,3,5] inner code with generator matrix 1 0 0 1 0 0 0 l' 1 1) G= 0 1 0 0 1 0 1 0 1 1 (13) ( 001 001 1 101 and a [7,3,5] Reed-Solomon outer code over GF(8). Note that the weight disiribuiion of the inner code reads Aa = I, A5 = 3, A6 = 3, A7 = I, and Ai = 0 for i = 1,2,3,4,8,9,10. Since the inner code distance equals 5, the options for tare 0, I, and 2. It follows [roni Proposiiion 1 that E(O, 5, 5) = 4, E(l, 5, 5) = 9, and E(2, 5, 5) = 8. Hence the number of correctable errors is maximized for t = I, which is also indicated by Proposiiion 2. Figure 1 shows the unsuccessful dp.r.odingprobability P as a function of p for t = 0,1,2. It can be concluded that for a channel error probability p < 0.0024 the option t = 1 indeed optimizes P, but that for a channel error probability p > 0.0024 the option t = 2 gives the best result on P . Note that substantial differences appear. For instance, at p = 0.10, the unsuccessful decoding probability P = 1.7 X 10-2 for t = I, while P = 2.0 X 10-3 for t = 2, i.e., a difference by a factor of roughly ten in [aoor of the option t = 2. Example 1 leads to the next proposition. Proposition 4 There exist concatenaied coding schemes with an inner code of distance d and an outer code of distance D, for which the unsuccessful decoding probability P, in case the channel error probability p is sufficiently large, is only minimized f01' one 01' more values oft which do not maximize the number of correctable errors E(t, d, D), i. e., for values of t other than the ones indicated in (5). V Discussion Based on the results presented III Section Ill, it can be concluded that in order to maximize the number of correctable errors in the concatenated coding scheme under consideration with an outer code of distance D 2': 2, the inner code of Hamming distance d may be used as a t-EC (d - 1 - t)-ED code with t = ld/3J. In this way 72 , 't=2 t=1 t=2 t=1 10'35L_ __ ~ __ ~~~~~WL ~~ __ ~~~~ ~ __ ~~~~~L- __ ~ __ ~~~~~W 10-4 10'3 10.2 10.1 100 channel error probability p Figure 1: Unsuccessful decoding probability P as a function of the channel error prob- ability p for different options of the radius t of the inner decoding spheres, in case of an outer code with Q = 8, N = 7, J( = 3, and D = 5, and an inner code with q = 2, n = 10, k = 3, d = 5, Ao = 1, A5 = 3, As = 3, A7 = 1, and Ai = for ° i = 1,2,3,4,8,9,10. 73 a correction capability of approximately one third of the (designed) distance dD of the concatenated code can be achieved. Note that it follows from Proposition 1 that the choice t = L d;l J, corresponding to the case of exploiting the full error correction capability of the inner code, leads for large d and D to a final error correction capability of only approximately one fourth of the distance of the concatenated code. While optimization of the radius t of the inner decoding spheres with respect to maximizing the number of correctable errors only depends on the inner code distance d and the outer code distance D, optimization of t with respect to minimizing the unsuccessful decoding probability may not only depend on these distances, but also on the inner and outer code lengths, the weight distribution of the inner code, the alphabet size q, and last but not least the channel error probability p. Based on the results presented in Section IV, it can be concluded that the best choice of t with respect to minimization of the probability of unsuccessful decoding, for given inner and outer codes, can be sensitive to the value of the channel error probability p. For relatively small channel error probabilities, the optimal choice for t is found among the values maximizing the number of correctable errors. However, this is not necessarily the case for relatively large channel error probabilities, as demonstrated in Example 1. References [1] R.E. Blahut, Theory and Practice of Error Control Codes. Reading, MA: Addison- Wesley, 1983. [2] 1. Dumer, "Concatenated codes and their multilevel generalizations," in Handbook of Coding Theory, R. Brualdi, C. Huffman, and V. Pless, Eds., preprint. [3] G.D. Forney, JT., Concatenaied Codes, Cambridge, MA: M. 1. T. Press, 1966. [4] J.H. Weber and K.A.S. Abdel-Ghaffar, "Optimal decoding strategy for a simple concatenated coding scheme," Proceedings of IEEE Int. Syrnp. Inform. Theory, Ulm, Germany, June 29-July 4, 1997, p. 429. [5] J .H. Weber and K.A.S. Abdel-Ghaffar , "Guaranteed error correction rate for a simple concatenated coding scheme with single-trial decoding," submitted to IEEE Trans. Inform. Theorç, October 1997. [6] V.V. Zyablov, "Optimization of concatenated decoding algorithms," Probl. Per. Inform., vol. 9, no. 1, pp. 26-32, 1973. 74 Some results on the word error rate of serially concatenated codes Ludo Tolhuizen and Ewa Hekstra-Nowacka I 1 Introduetion In the field of Turbo codes, interest has risen recently in serial concatenation of codes. The scheme of two serially concatenated codes is shown in Figure I. ö- - -- --- ---- - --------- +?§1 ! :~L____jn ~i I, DJ I .... ----------- ------------------- " ' i ~_:. : Outer Encoder Inner Encoder Figure I: Two serially concatenated codes The output of the first (outer) encoder is fed to a permutator Il (often called interleaver). The output of Il is then fed to the second (inner) encoder. Benedetto et al demonstrated in [1] the advantages of serially concatenated codes through the use of a large random interleaver combined with a recursive inner encoder. Divsalar and Pollara went even further, showing in [2] the most amazing result that a rate-l encoder can improve the performance! For the inner encoder, they took a binary integrator. That is, the inner encoderencodes the sequence XI, X2, X3, .•. to the sequence Xl, XI +X2, Xl +X2+X3, •.. , where + denotes modulo 2 addition. They computed the union bound on the bit error rate (BER) after maximum likelihood (ML) decoding of the serial concatenated code, averaged over all permutators Il. Examples were provided where the average performance is superior to that of the outer code alone. In the present paper, we will focus on the word error rate (WER) after decoding, as this is a more relevant performance measure than the BER for several applications. In Section 2, we give an explicit formula for the average union bound on the WER after ML decoding for serially concatenated codes. For obtaining this average union bound, we require the input- output weight enumerator of the inner encoder. That is, we should determine the number of input sequences of weight h for which the inner encoder produces a sequence of weight w. In Section 3, we give an explicit formula for the input-output weight enumerator of the binary integrator operating on n-bits sequences. In the same section, we give, for a fixed input weight, the average output weight. From this, we give a heuristic explanation why the binary integrator could improve the performance. With the input-output weight enumerator of the binary integrator at hand, we can compute the average union bound for any outer code with known weight enumerator. In Section 4, we "The authors are with Philips Research Laboratories, Prof. Holstlaan 4,5656 AA Eindhoven. e-mail: tolhuizn.hekstra@natlab.research.philips.com 75 choose a specific outer code C, and take the binary integrator as inner encoder. We compare the union bound on the WER after ML decoding of C with the average union bound over all Fl, and with the average union bound over all block codes of equal length and dimension. The latter bound is smallest of all. The average union bound implies that, for an appropriate interleaver Il, serial concatenation may result in a reduction of the union bound on the WER after ML decoding. We choose three permutations and show the union bounds on the WER after ML decoding for them. Finally, we study lhe effect of the block length on the average union bound. For codes obtained by tail biting of a specific convolutional code, the average union bound seems to decrease quadratically in the block length. We compare this with the known results on the interleaving gain for the union bound on the BER after ML decoding. 2 The average union bound Let a binary linear code D be used for transmission over an AWGN channel with BPSK as modulation system. We denote the symbol energy by Es, and assume the noise has variance No/2. According to the union bound [3, Sec. 2.3], the word error rate after ML decoding, P word, satisfies where Q(x) = I r:c 100 e-!J2dy, and Aw(D) is the number ofweight w words in D. ",2Jl" x The technique for computing the average union bound over all permutations Il, introduced in [4] and [5] for parallel concatenation of codes, has been extended to serial concatenation of codes in [I]. It can be explained as follows. Let V be a class of codes of equallength and dimension. The average union bound over V is defined as I~I ~ [~Aw(D)Q ()2:: w )]. (1) For every value of Es / No, there is a code D E V for which P word is at most the average union bound. There need not be a code in V for which Pword is at most (I) for all values of Es/No. We may view (I) as the union bound to Pword for a (hypothetical) code D for which the number weight w words equals the average number of weight w words of the codes in V: - Aw(V) = -1 ~ '" Aw(D). lVI DeV In other words, the average union bound is obtained from the average weight distribution of the codes in V. Now consider Figure 1. In order to fix the notation, we denote the outer code by C, and the inner encoder by j, for all i E {I, 2, ... , n} and (XI, X2, ... , Xfl) E {O, W. j=1 The addition is to be understood modulo 2. Clearly, 'R 'S~"':'~:::.,._--:+.: le-08 ................................................................. _. ···a...···'l'-~.:.'::·-:::a· •."s:::: le-09 L-_.L.... -'-- --' .L.... -'-- __J -1 o I 2 3 4 &/NO Figure 4: Influence of the block length N on the average union bound 80 As we see from Figure 4, the average union bound decreases in the block length. In- spection of the numerical outputs for large but fixed Es! No, suggests that the average union bound is proportional to 1/N2. This result may be explained with the interleaver gain on the BER after ML decoding. As shown in [I], for large interleaver length N, the average union bound on the bit error rate after ML decoding for large, but fixed, Es! No, is proportional to r Na, with ct = - ~d11, where dl denotes the free distance of the outer code. In our case, dl = 5 and so ct = 3. As the number of bits in a codeword equals N, it is not too surprising that the average union bound on the word error rate after ML decoding be proportional to Na+l, which equals N-2 in our case. A The average output weight of the binary integrator for fixed input weight In this appendix, we compute for each input weight h, the average the weight of the output of binary integrator of length n. We start with some simple relations. Proof. The first sum counts the vectors of weight h. The second sum counts the vectors for which the image has weight w. As 0 I i4j == i mod k} - 1. Since k is odd, it follows that i == i4jo modk {o} 2i == 2i4jo modk. Hence, 10ii = 102il. 0 Lemma A.5 Lel k be an odd integer and g(x) be a polynomial in 1F4[X] dividing xk - 1. Then GCD4(g(x),g(x2)) = GCD2(g(x),xk -1). Proof: Since g(x) divides xk - 1, it can be written as g(x) = DiEG mi(x). The polynomial g(x2) consists of the polynomials n1i(X2), for i E G. Using Lemma A.4(3), it follows that m2i(x2) = DjEÓ2,(x2 - (Jj) = D~~~I-\x2 - i (J2i4i) = rr~~~-\x - (Ji4 )2 = (mi(x))2 Since k is odd, it follows that 2 has a multiplicative inverse modulo k. Therefore, g(x2) = DiEG (mi2-1 modk(X))2 Let the set ê be defined by GCD4(g(x), g(x2)) = DiEG mi(x). We will show that if i E ê then 2i E ê. If i E a then i E G and i2-1 E G. From Lemma A.4(2) it follows that 04i = Di so that m4i(x) = mi(x) or m2i(x) = mi2-1(x). Since i2-1 EG it follows that m2i(x)1 g(x). Similarly, i E G implies that m2i(x)1 g(x2). Hence, 2i E ê. The lemma now follows from the fact that mi(x)m2i(x) = mi(x) (see Lemma A.4(I)) so GCD4(g(x),g(x2)) is the product of minimal polynomials over 1F2 dividing g(x). 0 The previous lemma shows that a decrease in dirnension occurs if both i and 2i are zeros of g(x). However, there exist values of k for which mier) = ·rh2i(x) for all i. Selecting any zero for g(x) automatically leads to a decrease in dimension. To keep the decrease in dimension as low as possible, we want to know these values of k. The following lemma shows which values of k are candidates for having this property. The (technical) proof will be omitted. , Lemma A.6 Let k be an odd integer. If for all i, ai = ai = 02i then for every prime pj in the factorization of k it holds that Pj = ±1 mod 8. If each Pj in the factorization of k is equivalent to -1 modulo 8, the reverse is also true. References [1] G.F.M. Beenker, "On Double Circulant Codes," Rep. 80-WSK-04, Eindhoven University of Technology, July 1980. [2] A.E. Brouwer, http://www.win.tue.nl/math/dw/voorlincod.html. URL for minimum-distance bounds for linear codes. [3] A.E. Brouwer and T. Verhoeff, "An updated table of minimum-distance bounds for binary linear codes," IEEE Trans. on Inf. Th., vol. IT-39, pp. 662-677, 1993. [4] P.W. Heijnen, Ph.D. thesis, to appear. [5] P.W. Heijnen, H.C.A. van Tilborg, T. Verhoeff and S. Weijs, "Some New Binary, Quasi-Cyclic Codes," IEEE Trans. on Inf. Th., to appear. [6] F.J. MacWilliams and N.J.A. Sloane, "The Theory of Error-Correcting Codes," North-Holland Publishing Company, 1981. [7] H.C.A. van Tilborg, "Error-correcting Codes - a first course," Studentlitter- atur, 1993. [8] S. Weijs, "A Computer Search for Quasi-Cyclic Codes," Master's thesis, Eind- hoven University of Technology, June 1997. 90 A Block Retransmission Strategy for Multiple Repetition Feedback Coding Schemes M.S. Bargh and J.P.M. Schalkwijk Abstract This paper concerns retransmission within the framework of Binary Rep- etition Feedback Coding (BRFC) schemes. The performance of block BRFC schemes with a right-to-left decoder is enhanced to that of the recursive BRFC schemes with a left-to-right decoder. In the case of asymmetrical BRFC schemes, the left-to-right decoding error exponent can even be improved upon. 1 Introd uction It is well known that retransmission strategies greatly improve the performance of block and sequential one-way codes. Using the error detection properties of the applied one-way code, the receiver asks the transmitter to send some extra information if the decoder is unable to correct all errors in the received data. At a little cost in transmission rate and complexity, the resulting methods yield a higher error exponent than do normal one-way codes. In these so called Automatic Repeat Request (ARQ) schemes, the feedback line reports whether or not the decoder has detected an error. On the other hand, information feedback schemes yield very simple and efficient error correction methods. In these schemes, where the transmitter is able to see every received symbol via a noiseless feedback channel, there is no need for one-way codes. This paper concerns retransmission methods within the framework of information feed- back schemes. In particular, the performance of Multiple Repetition Feedback Coding (MRFC) schemes with retransmission strategies will be investigated. 2 MRFC schemes Basically, MRFC schemes force [2] the output symbol of the channel to be the same as the input symbol. For example, in MRFC schemes for Binary Symmetrical Channels (BSC), referred to as Binary Repetition Feedback Coding (BRFC) schemes, when a 0 is erroneously received as I, the transmitter repeats the input 0 bit k-times. By seeing subsequence lOk (i.e. 1 followed by k a's) in the received sequence, the decoder detects a transmission error and replaces the lOk subsequence by a O. Of course, the input sequence to the transmitter should be constrained (or precoded) such that lOk and Ol k subsequences do not occur. In this paper we confine ourselves to the BRFC schemes. "Eindhoven University of Technology, Department of Electrical Engineering, Group on Information and Communication Theory, PO Box 513, 5600 MB Eindhoven, The Netherlands. 91 1 0.8 0.6 Rate of BRFC with k = 4 R 0.4 / Capacity of BSC (the Hamming bound) 0.2 0 :p j l P4 I 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 f 0.7r--------.--------.--------,--------,-------~ 0.6 .................................................•........... 0.5 0.4 E 0.3 0.2 R(p) C(p) R(U.25) 0.1 / j 0 0 0.2 0.4 0.6 0.8 1 RU) Figure 1: Above: the rate of BRFC scheme with k = 4; Below: the corresponding block and recursive error exponents at p = 0.02. 2.1 Block BRFC schemes In the encoder of block BRFC schemes, a block of L precoded bits is appended with N - L tail bits. This tail, for example, can be constructed by alternating the L- th precoded bit. The tail constitutes the redundancy of the repetition part of the encoding. Whenever a transmission error occurs and the transmitted bit is repeated k times, the last k bits of the tail are deleted. In the decoder of block BRFC schemes, a block of received symbols is repeatedly scanned from the end towards the beginning of the block (right-to-Ieft decoding). Channel errors are detected and corrected when forbidden subsequences 10k and 01k are found and, consequently, replaced by 0 and 1, respectively. Assume the length of the tail is such that the block coding scheme is capable of correcting a fraction of f errors in the block, i.e. e = If Nl errors, therefore, N - L 2: k e + 1, see [5]. The transmission rate can be written as RU) = Ro(1- k f), 92 where Ra is the precoding rate of the BRFC scheme. The rate of a BRFC scheme with k = 4 is depicted in the upper part of Fig. 1 for a BSC with crossover probability p. Note that if P = Pk (e.g. P4 = 0.08 in Fig. 1) and we choose N - L = k fpkNl + 1 (i.e. I = Pk), then the rate equals to channel capacity, as N ~ 00. In general for every k there is a crossover probability Pk at which channel capacity is achieved. A decoding error occurs when the number of channel errors in the block is bigger than the number that can be corrected by the tail. In other words: (1) in which Eb is the error exponent of the block coding. From the Chernoff bound, Eb can be written as: 1 for P::; I::; k,k 2: 3, in which D(·II·) is the binary informational divergence function. The lower part of Fig. 1 depicts Eb for k = 4. Note that if P = Pk, then R(p) = C. As we can see from Fig. 1, the block error exponent is very small for rates close to R(p) (or to channel capacity when P = Pk). 2.2 Recursive BRFC schemes Unlike the previous method, recursive MRFC schemes [3] use left-to-right decoding methods. This means that the decoding is done after a short amount of delay. In an estimator unit, the recursive decoder estimates every transmitted symbol based on the following D received symbols. For a BRFC scheme, the estimator is a state diagram with integer numbers as its states. Starting from state 0, we walk to right or to left according to whether the j-th received bit is a 1 or 0, respectively, j : 0 ... D. All transitions towards the O-state have unit length. All transitions away from the O-state have a length of k - 1 units. After D steps, the estimate is 0 or 1 depending on the walk ending up in a negative or a positive state, respectively. In case that 0 is the last state of the walk, we flip a coin. The estimator detects an error when the estimated bit differs from the corresponding received bit. Then in a channel error remover unit, the erroneous bit and its following k - 1 bits are deleted from the received sequence. The decoding error happens when the transmitted bit is wrongly estimated. In [3], the error exponent for this estimation error is proved for P = Pk to be: Pr 1 1 1 Er = D~oo lim D = D(-kllpk) = D(-kll-)2 for (2) The last equality in 2 comes from the fact that p(l - p)(k-l) = (~)k when P = Pk, see t [3]. It is conjectured in [5] that also Er = D( lip) for other values of P if the repetition parameter is chosen as the closest integer to log2p, designated by k =< log2P ». Here note that the last equality in 2 does not hold anymore. In the lower part of Fig. 1 the exponent of the left-to-right decoder is shown by a dot at R(p) (or at capacity if P = Pk). The value is equal to the error exponent of the right-to-left decoder at the zero rate. 93 3 Retransmission strategy with BRFC schemes In information feedback schemes, the transmitter can easily know whether the received message is decodable or not. For example, if the number of errors exceeds rf Nl , then the transmitter knows that the decoder of the block BRFC scheme will yield an erroneous block. In the following, we show how the transmitter can use this information and improve the performance of the block decoding of BRFC schemes in the framework of retransmission strategies. In BRFC schemes the message can be considered a precoded sequence Mwhich does not contain any 01 k and 10k subsequences. Sequence Mcan be completely specified by Ui and sequence :l!.in which bit Vi is the modulo 2 addition of the two consecutive bits Ui and Ui+1, i : 1,2, .... This transformation from Mto g is known as differential phase shift keying. Thus, the sequence :l!.will not contain the subsequence Ok-i. In order to produce sequence Min our strategy, the message is mapped onto constrained sequence :l!.and retransmission rules determine Ui. As M is only one digit longer than :l!.,the precoding rates of:l!. and M are asymptotically equal, i.e. Rö = R~ = Ro. Let j : 1,2, ... , denote the j-th transmitted block. Thus, precoded sequence Mj consists of:l!.j and u{ parts. The transmitter counts the errors that happen during a block transmission. If the (j - 1)-th block is transmitted correctly, i.e. e(;-l) :s;rf Nl, then u{ = 0 and :l!.jis a new precoded message. Otherwise, .u{ = 1 and :l!.j= :l!.(j-l). In this way, the first bit of the transmitted block indicates whether the current block is a new block or retransmission of the previous block. In the decoder, the first bit of the j-th block is decoded by the lejt-io-riqhi method. For this bit, the error exponent is Er (i.e. the error probability :s; 2-N Er). If estimation û{ = I, then M(j-l) is discarded and if û{ = 0, then yy-l) is decoded by the right-ta-left algorithm. As we can see, only one bit per block is decoded by the left-to-right algorithm and the rest of the block is decoded by the right-to-left method. The transmitter also simulates the left-to-right estimation of the first bit of each block. Thus, the transmitter is aware of the outcome in which the first bit is estimated incorrectly by the left-to-right estimator. There are two following cases . • u{ = 0 but its estimation is û{ = 1 (a 0 -+ 1 error). In spite of being decodable, Mj-l will be discarded by the decoder. Therefore, in the (j + l)-th block we have ui to retransmit :l!.j-l with j +1) = 1 in order to undo the error. In this way, we can correct a 0 -+ 1 estimation error of the first bit at the cost of discarding blocks '!!:.j-land Mj . • u{ = 1 but its estimation is ûi = 0 (a 1 -+ 0 error). In this case the (j - 1)-th j ) block will be considered as a decodable block and, therefore, a erroneous block will be produced. A 1 -+ 0 estimation error of the first bit can not be corrected. 3.1 Rate Assume M is the maximum number of times that a block will be retransmitted. The average transmission length of a block can be written as: - 2 M N(l _ p;M+l)) N = N(l + Pb + Pb + ... + Pb ) = , 1 - Pb 94 in which Pb is the block decoding error probability (retransmission probability) as upperbounded in 1. In fir, we ignored those retransmissions due to a 0 ---+ 1 estimation error of the first bit. Therefore, the total transmission rate is: L I-Pb L 1- Pb R; = fir = 1 _ pCM+l) N ------,C,.,-M:...._+'"'7'l) Ra (1 - k f)· b 1- Pb For a tail such that f > p, D(fllp) is positive and Pb ---+ 0 for large values of N. Therefore, lim Rt = Ra(1 - k 1) = R(f). (3) N-too 3.2 Error exponent In the retransmission scheme of BRFC, there are two sources of decoding error, namely, a 1 ---+ 0 estimation error of the first bit and the probability that the number of retransmission blocks exceeds M. Therefore, the total block error probability of the retransmission strategy can be written as: M 11· r; < Pr + PbM < TNET + 2-NMEb. For a given f in Eb = D(fllp), we can choose M such that: or M= Er. Eb This choice makes the total error exponent of the strategy equal to that of the left-to- right decoding method. If we let M ---+ 00, then for f = p + E and arbitrarily small E, we obtain Et = Er at R(p). This means that in spite of using the left-to-right decoding only for one bit, we obtain the same performance as the recursive decoding. This result coincides with Forney's interpretation of the erasure decoding [1]. He defines the exponent of the ARQ schemes as the limit of the block error exponent (Er here) when the erasure exponent (Eb here) goes to zero, see Fig. 1. 4 Improving the error exponent of asymmetrical BRFC schemes For a BSC, consider an asymmetrical BRFC scheme that repeats a 0 to 1 error k times, and a 1 to 0 error l times. In [3], Schalkwijk and Post called this scheme the I-up (k - I)-down and I-down (l - l j-up strategy. They derived the error exponent of the recursive asymmetrical BRFC scheme in the BSC at a certain crossover probability p = pu and an input distribution Pr{x = O} = 1 - Pr{x = I} = a as: The corresponding rate at p = Pkl and Pr{x = O} = a is below the capacity of the BSC. On the other hand, Veugen [4] proved that for every repetition scheme there is 95 a DMC for which capacity can be achieved. This means that for every asymmetrical BRFC scheme there exists a binary asymmetrical channel, i.e. Pr{y = llx = O} = Pk and Pr{y = 0lx = I} = Pl, whose capacity is achieved by the scheme. The above exponents are also valid for such a binary asymmetrical channel and we can write: Ef,l = min{E+, E-}, in which, as mentioned in [3], the estimation error exponent of a 0 ~ 1 is: E+ = D(~llh) = D(~llpk) and the estimation error exponent of a 1 ~ 0 error is: 1 1 E- = D(yllb) = D(yllpl), where Pr{y = I} = h, b + h = 1, is the unique capacity achieving output distribution. Again the last equalities in the above relations come from the fact that Pk(l-Pk)(k-l) = hb(k-l) and Pl(1 - Pl)(l-l) = bh{l-l) where Pk and Pl are the transition probabilities of the binary asymmetrie channel for which the capacity is achieved by an asymmetrical BRFC scheme with repetition parameters k and I, see [5], p 69. Moreover, according to a conjecture in [5], p 62, E+ = DGllp~) and E- = D(tllpD even if the asymmetrie BRFC scheme does not achieve the capacity as long as the repetition parameters are chosen as k =< log2P~ > and I =< log2P: >. As we can see for asymmetrical cases, the estimation error of the left-to-right de- coding algorithm can be substantially different for received bits 0 and 1. So far, even the left-to-right algorithm was limited to the smaller exponent. However, our retrans- mission strategy can operate with the larger error exponent. If E+ < E-, then the described retransmission strategy in Section 3 yields error exponent E- due to a 1 ~ o estimation error. If E+ > E-, we can redefine ui to be 0 or 1 for indicating a re- transmission or a new transmission, respectively. Thus in this way, our retransmission strategy outperforms the previous recursive decoding of asymmetrical BRFC schemes. Note that in asymmetrical cases, there are two sequences 1!_~ and 1!_~ depending on whether u{ being 1 or 0, respectively. 5 Some points on rate improvement We are interested in increasing the transmission rate as much as possible. Even though the rate of the retransmission strategy approaches R(J), as seen in 3, there are few parameters that can influence the total throughput. 5.1 Choice of the repetition parameters rf Assume that we are interested in correcting e = Nl errors in each block and obtaining block retransmission exponent D(Jllp) when the channel crossover probability is pand M is finite. In [5J, Veugen gives a rule to determine k as the closest integer to log, p. In this way, the transmission rate is maximum, however, the error exponent is almost o since f = P + f. Therefore, we can not directly apply this rule in our problem. The following two situations can be distinguished. % 1. To have maximum rate for a given f > p, we have to choose k =< log2 f ». 2. To have maximum retransmission exponent D(jllp) for a given rate R, it can be shown that k =< log2 f >, where R = 1 - h(j). 5.2 A save-up technique Equation 3 shows that for large N, the rate of the retransmission strategy approaches RU)· However, for moderate values of N or for small values of the retransmission exponent D(jllp), it is possible that the total rate deviates from its optimum value due to a rather high retransmission probability. The following observation partly remedies this problem. For a block saturated by the noise, i.e, the number of errors in the bloèk exceeds rJNl, assume m, m : 0 ... (L - I), to be the last precoded bit which either itself or its last correction bit is transmitted correctly. It is possible to retrieve precoded sequence UI, ... ,Um by the right-to-left decoding algorithm if the block decoder of the BRFC scheme knows ti, n. : O... N, the transmission position of the m-th precoded bit or its last correction bit. Assume that the j-th block is saturated, then in the (j + 1)- th block which starts with UI = 1 as before, L precoded bits comprise the precoded form of n (or (N - n)), the rest of the precoded bits of the previous block (from the (m + 1)-th to L-th bit) and new precoded bits. It is easy to show that as long as: log2N --- O. This edge will be labeled at the side of C, with the number mij and at the side of C, with mji. The following facts are only true for distance-regular graphs but in fact I will assume that we have a Hamming space of dimension n, the vertices of the graph will be all the points in the space and the edges will join points at distance 1. Now I will introduce the notation and afterwards two results of [1]. We fix now one of the cells, lets say Ci. For any given vertex x we define Aj(x) to be the number of paths of length j joining x to some element of Ci. Bj(x) will be the number of elements of C, at distance j from x. The number of paths of length j joining any two points at distance k apart will be denoted by Skj. Now we have the easy relation n A~(x) = L skjB~(x) (1) k=O for all x, this is Proposition 2.2 in [1]. Theorem 3.1 from [1] tell us that A)(x) and Aj(y) are equal for all j whenever x and y belong to the same cell and that (2) for all xE Ck. We will define Bi(x) as (B~(x), ... ,B~(x)), and Bi(j) will be Bi(x) for any element x E Cj• The matrix S will be (Skj) for 0 :::;k, I:::; n. The (n + 1) x (n + 1) matrix S is upper triangular and Skk = k! for 0 :::;k :::; 'r. Thus S is non-singular. From equations (1) and (2) we can write (3) From equation (3) we can find for a given !VI all the Bi(k) for 0 :::;i, k :::;r . 3 The Example Now we will turn to the problem of reconstructing a partition design given M: We will show an example where this can be made in a unique way. We will work with a matrix representing some partition design in the Hamming Space of dimension 10: (4) 64 r=1-"'0 ·=-{2320r8-----=-i By the method explained above we obtain that (1 n 0 5 0 10 32 10 0 5 0 ( 11"(0)) B (0) 1 = 0 10 0 40 80 60 80 40 0 10 B2(0) 0 0 40 80 120 160 120 80 40 0 100 ( Bl(l) 8'(1)) B2(1) = C 1 0 2 0 8 0 21 24 8 32 80 16 .58 136 12 96 144 16 .58 1:36 8 32 80 0 21 24 2 0 8 n Bl(2) ) ( 8'(2 B2(2) 1 = C 0 0 4 1 6 4 12 29 8 40 -') l_ 12 68 1:30 16 72 164 12 68 130 8 40 72 4 12 29 0 4 6 n It will be convenient to work in Z10 and in Z~. If we extend coordinatewise the function 4>: Z4 1--+ ~ defined by 4>(0) = 00, 4>(1) = Ol, 4>(2) = 11, 4>(3) = 10. we get a mapping from Z~ to Z10. This induces in Zl the Lee distance. In this way the graphs obtained by taking the vertices as the points and edges joining points at distance 1 are equivalent. We say a coordinate of ~ is of type e if it is even and of type d if it is odd. Our first step will be reconstructing half of Co. We fix 00000 as a vertex of Co, there is no vertex of Co at distance 1 (they are all from Cl) and there are 5 vertices at distance 2. The support (non-zero coordinates) of these five vertices expressed in ~o coordinates have to be disjoint. If not, there would be a vertex of Cl of weight 1 with three neigh- bours in Co. But this is not possible because BP(l) = 2. We can permute the ten coor- dinates so that in Z~we have the following points: 20000,02000,00200,00020,00002. These five vertices are of type eeeee. Each of these has 5 vertices in Co at distance 2, one of them is common for all of them, this is 00000. The rest have to be vertices with' weight 4 in ~o; since B~(O) = 10 in total there are 10. Therefore each vertex of Co with weight 4 in Z10 is at distance 2 from two vertices (because it is not possible more than two, it must be exactly two) of {20000,02000, 00200, 00020, 00002}. But this condition holds if and only if we have a vertex of type eeeee. We know now 16 vertices of Co, but in fact all the complements in Z10 are as well in Co because BPo(O) = 1. These are all the 32 vertices of type eeeee. The other 32 vectors of Co are at distance 5 from any vertex of type eeeee. A straightforward argument shows that these vertices are all of the type ddddd. Since Bi( 0) = 10 all the vertices 'surrounding' (at distance 1) Co are in the cell Cl, and because Bg(1) = 2 there are no more. The cell C2 contains the rest. 'vVecan write the cells in a very compact way using the notation of parity and writing only one representative of all the cyclic shifts of a type (i.e. deeed will represent the following types {deeed, ddeee, eddee, eedde, eeedd}): Co = {eeeee, ddddd}, Cl = {eedee, ddedd}, C2 = {eddde, deeed, deded, edede}. 4 Acknowledgment I thank A. E. Brouwer for helpful discussions and comments. 101 References [1] P. Camion, B. Corteau, and P. Delsarte, On r-partiiioti designs in Hamming spaces, Applicable Algebra in Engin., Comm. and Comput. 2(1992), 147-162. [2] .1.H. Conway and N ..1.A. Sloane, Quaternary Constructions for the Binary Single- Error-Correctinq Codes of Julin, Best and Others, Designs, Codes anel Cryptogra- phy, 4(1994), 31-42. [3] C.D. Godsil, Equitable Partitions, Combinatorics, Paul Erdös is eighty, Vol. 1, 173- 192, Bolyai Soc. Math. Stud., Jànos Bolyai Math. Soc., Budapest, 199:3. [4] C.D. Godsil and B.D. McKay, Feasibility conditions for the existence of walk-regular graphs, Lin. Alg. Appl. 30(1980), 51-61. 102 On the security of dedicated hash functions Bart Van Rompay] Bart Preneel] and Joos Vandewalle Katholieke Universiteit Leuven, ESAT-COSIC K. Mereierlaan 94, B-3001 Heverlee, Belgium e-mail: bart.vanrompay@esat.kuleuven.ac.be Abstract Cryptographic hash functions are an important building block for a wide range of applications such as the authentication of information, digital signatures and the protection of pass-phrases. The most popular hash functions are the custom designed iterative hash functions from the MD4 family. Over the years various results on the cryptanalysis of these functions have become available and this paper intends to summarize these results and their impact. We will describe attacks on MD4, MD5 and RIPEMD, and discuss the design and security of the hash functions SHA-l and RIPEMD-160 which are included in the new standard ISO/IEC 10118-3. 1 Introduction Cryptographic hash functions or message-digest algorithms (see [Pre93] for a compre- hensive treatment) are functions that map a string of arbitrary length into a fixed length result. Given h and an input x, computing h(x) must be easy and does not require any secret information. The cryptographic properties that are required depend on the application in which the hash function is used, but the most important in prac- tice are one-wayness and collision resistance. The first property implies that it should be computationally infeasible to find any input which hashes to a pre-specified output (pl'eimage resistance), or find any second input which has the same output as a speci- fied input (second preimage ·resistance). For an ideal one-way hash function with n-bit result finding a preimage or second preimage requires about 2n operations. Collision resistance implies that it should be infeasible to find two distinct inputs that hash to the same result. In the ideal case 2n/2 operations are needed to find a collision (using a birthday or square root attack). 'Sponsored by the Timesec project of the Federal Office for Scientific, Technical and Cultural Affairs (OSTC), Belginm. IF.W.O. postdoctoral researcher, sponsored by the Fnnd for Scientific Research - Flanders (Bel- gium). 103 While many hash functions are based on existing security mechanisms such as block ciphers or modular arithmetic schemes, performance-critical applications require the use of functions designed for the explicit purpose of hashing (dedicated or customized hash functions). MD4 was introduced in 1990 by R. Rivest and was designed specifically for software implementation on 32-bit machines [Riv92a]. As a result of progress in cryptanalysis a whole family of MD4-like hash functions has been developed, with the goal of precluding the attacks known at the moment of their introduction: MD5 ('91, [Riv92b], which is still the most widely used hash function), SHA-l ('95, [FIPS95]), RIPEMD ('92, [RIPE95]), RIPEMD-128 and RIPEMD-160 ('96, [DBP96]). The remaining of this paper is organized as follows. We briefly explain the structure of these hash functions in Section 2, concentrating on the historically important MD4 function. For full descriptions we refer to the references given in this introduction. In Section 3 we will show how collisions can be generated for MD4 and a weakness with respect to the one-way property. Section 4 discusses the improvements in the designs of MD.5 and RIPEMD, together with the weaknesses that have been identified. We look at the designs of the new ISO IIEe standards SHA-l and RIPEMD-160 in Section .5 and finish with our conclusions. 2 Description of the MD4 family The members of the MD4 family are iterative hash functions, based on a compression [u.nctioii with fixed size input. The computation of the hash value for some message depends on what is called a chaining variable. At the start of hashing, this c:ha.ining variable gets an initial value which is specified as part of the algorithm. The compres- sion function is then used to update the value of this chaining variable in a complex way under the influence of part of the message being hashed. This process is iterated, with the chaining variable being updated under the action of different parts of the message, until all of the message has been used. This corresponds to the description of a finite state machine, with the chaining variable as state, the used message part as input and the compression function as next state fnnr.t.ion. MD4 [Riv92a] is an iterative 128-bit hash function operating on 32-bit words. The compression function takes as input a4-word (128-bit) chaining variable and a 16-word (512-bit) message block and maps this to a new chaining variable. The transformation consists of 3 rounds, and each round consists of 16 steps. In every step one word of the chaining variable is modified as follows: a message word, an addit.ive constant and a non-linear function of the three other chaining words are added, and the result is rotated over a variable number of positions. Every message word is used exactly once in every round, but the order in which they are applied differs between the rounds. The rounds also use different additive constants (one constant per round, but zero is used for the first round), different rotation constants (four per round) and a different non-linear Boolean function. These are respectively the multiplexer, majority and exclusive-or functions: fl(X, y, z) = xy V xz; h(x, y, z) = xy V xz V yz; h(x, y, z) = x EBy ffi z. The operatien in one step can be noted as a := (a + fi(b, c, d) + Xj + k)«s; where a is the chaining word being modified; b, c, d are the other chaining words; X.i(j = 1... 10) is the applied message word; k is the additive constant and s the rotation constant; ( .) < -Cs represents a. rotation (circular shift) to the left. After the 3 rounds, the previous 104 chaining variable is added to the modified chaining variable (a feed-fanvaI'dl in order to make the function irreversi ble. A padding procedure ensures that the input is a multiple of 512 bits and includes the length of the message in this input. The result of the last application of the compression function is the 128-bit output of the hash function. Before explaining the structure of the other hash functions of this family we show the weaknesses of this scheme in the next section. 3 Analysis of MD4 Since the length of the hash code calculated by MD4 is 128 bits, in the ideal case an opponent would require 2128calculations to invert MD4, and 264 calculations to find a collision, which is considered to be infeasible in practice. But already soon after the publication it was realized that the design of MD4 represents an uncomfortable compromise between security and speed. It was shown how to produce collisions when the first or the last round is omitted from the compression function [dBB92, Vau95]. These attacks exploit the fact that the rounds in MD4 are not distinct enough, and depend on details in the structure like the order in which the message words are applied and the choice of rotation amounts. In 1995 H. Dobbertin found a new approach for analyzing this type of hash func- tions and developed an attack which finds collisions for the complete version of MD4 [Dob96a]. The attack requires only a few seconds on a PC and stillleaves some freedom for the choice of 'meaningful' messages. Hence it clearly rules out MD4 as a collision resistant hash function. Description of the collision attack The basic idea is that a small difference in only one of the input variables can be controlled in a way that the differences occurring in the computations of the two associated hash values are compensated at the end. The attack has two main components. The first component deals with the solution of a set of non-linear equations. The second component deals with a differential attack [BS93] and the matching of initial values. Collisions are found for two message blocks X = (x j) j=1...16and X' = (xj ).i=1...16 differing in only one message word: X~3 = X13+ 1. The message word X13 (or X~3) is applied once in every round of the compression function, more specifically in steps 13, 20 and 36 (there are 48 steps, 16 per round). By choosing X13the shortest segment between the first two applications, in step 13 and step 20, is obtained. The calculations for X and X' will start to be different at step 13. To obtain a collision the difference has to disappear at step 36. We will note the four 32-bit chaining words as (a,b,c,d) or (a',b',c',d') for the hashing of X and X' respectively. In each step (numbered 11,) one chaining word is modified, this defines two variables tun and tu~ (tu = a, b, c or d). Inner almost-collisions (steps 13-20) In order to obtain a collision in step 36 (second part of the attack) one requires a certain well-chosen value for the difference in step 20: b.20 = (a17 - a~7' b20 - b;o, C19- C~9' d18 - d~8) = (0,1 «25, -(1 «5),0). 105 Finding such an almost-collision is equivalent to the finding of a set of values for the chaining words in steps 13 to 20. The conditions for the corresponding variables are derived by elimination of the message words Xj. As an example, by the defi- nition of step 16 we have b16 = (b12 + .fI(C15' d14, a13) + X16)«19 and b~6 = (b~2 + .fI(c~.s,d~4,a~3) + X~6)«19. We also have b12 = b~2 and XlB = X~6' The equation that follows is: .fI (C15' d14, a13) - I,(d15, d~4' a~3) = (b16)>>19 - (b~6)>>19. In this way we construct a system of 8 non-linear equations in 14 variables. Solving this system gives us the values of the chaining words in steps 13 to 20; next the message words Xj can be calculated. The problem can be solved in different ways, giving various degrees of freedom to the messages for which we find a-collision. It is a, natural idea to make settings for some of the variables such that finding a solution for the remaining variables is feasible. Another idea used in the attack is a kind of continuous ap praximaiion. One of the equations is solved in several steps: first the right 4 bits of the equation have to be satisfied (least significant bits are used since the equation uses additions, where bits are 'carried' from right to left). The obtained values for the variables are 'basic values'. We then search a solution for the right 8 bits, in a continuous manner, by randomly changing bits in the basic values. This veryefficient process is continued until the equation is valid (for all 32 bits). The computations take less than one second on a PC. Differential attack (steps 21-36) and matching the initial value (steps 1-12) The almost-collision derived in the first part of the attack now leads to a collision after the final application of ;7;13 and x~3' This follows from a standard differentral attack (d~ffel'ential cryptanalysis is a technique introduced for the analysis of block ciphers and later extended to hash functions [BS93]). Some of the message words Xj applied in steps 21-36 have been fixed in the first part, but the remaining ones can be chosen randomly and by checking the evolution of the difference between the computations for the two messages we quickly find a collision (difference zero in step :36). Calculating backwards from step 13 we also find the initial values for the chaining words (a, b, c, d), We have enough variables free to match the initial values specified in the description of the algorithm. The workload of this part of the attack is about 222 operations (deterrnined by the probability for the differentlal attack). Finding meaningful collisions Due to the flexibility of the attack it is possible to find collisions for two meaningful inputs to the MD4 hash algorithm, e.g., two different versions of a contract. One example, using a message with only 20 random bytes (5 random message words), took less than one hour to find on a PC. Inverting MD4 A recent result by H. Dobbertin showed that MD4 is not very secure with respect to one-wayness either [Dob98]. If the compression function is restricted to the first two rounds, the hash function can be inverted. The attack exploits the majority function used in the second round of the compression function. If two inputs to the majority function are kept equal, the value of the third input is irrelevant. This allows to seperate the contents of one of the chaining words from those of the other words (in round 2). In this way the attack can be directed at one 32-bit word, so we need only about 232 trials to find a preimage. This can be further speeded up by a 106 factor of 100 or more if we use the technique of continuous approximation , allowing us to find preimages for the reduced MD4 in less than an hour on a PC. 4 Improved designs: MD5 and RIPEMD MD5 [Riv92b] is a more conservative design proposed by R. Rivest after the first partial attacks on MD4. RIPEMD was developed within the framework of the European RACE project RIPE [RIPE95]. 4.1 MD5 The first obvious improvement in the design of MD5 is the addition of a fourth round to the compression function. In the second round the majority function (xy V xz V yz) has been replaced by the less symmetric multiplexer function (xz Vyz). A new function (:l~V E) EBy is introduced for the fourth round. The order in which the messa.ge words a.re applied in the different rounds has been changed, to make these patterns more distinct. Each of the 64 steps (16 per round) has a unique additive constant and different rotation amounts are used. The step operation has been changed as well: ct := b + (a + fi(b, c, d) + X.i + k)«s. Each step adds in the result of the previous step so that changes made to one chaining word will propagate quickly to later calculations, However it is precisely this change that a.llows the first partial attack on MD5, which finds pseudo-collisions [or the compression function [dBB94]. These are collisions for a certain 16-word message block and two different initial values for the chaining variable. This is of no practical importance for normal hashing but it shows that there are some undesirable characteristics in the design of the compression function and that some changes with respect to MD4 were not well-considered. In 1996 the attack on MD4 was extended to MD5 [Dob96b]. It finds collisions for a random initial chaining variable and two message blocks differing in only one word; these are called collisions fOT the compressioii junction. The attack can be seperated into three main parts: finding a collision for rounds 1/2, finding a collision for rounds 3/4, and connecting these two. It takes a few hours on a PC. To obtain a real collision for the hash function the value of the initial chaining variable would have to be directed to the prescribed value. This would require hard additional cryptanalytic work, but because of the flexibility of the evaluation technique it is anticipated that this can be done. So it seems unwise to use MD5 as a collision resistant hash function. 4.2 RIPEMD The hash function RIPEMD also borrows heavily from the design of MD4. Its compres- sion function consists of two parallellines of a modified version of the MD4 compression function. The lines are different from one another because of the application of different a.dditive constarits. The chaining variables of both lines are combined together with the previous chaining variable (feed-forward) at the end of the compression function. The recent evaluation techniques were however first used in attacks on reduced- round versions of RIPEMD [Dob97]. If the first or the last round of the compression 107 function is omitted then collisions can be found. So the security level of RIPEMD is at best only marginal (comparable to the status of MD4 before the recent breakthrough). The weakness is caused mainly by the fact that in both parallel lines the message words are applied in exactly the same ordering. Again the messages differ in only one word, this word is applied once for each of the parallel lines in both rounds of the reduced compression function. The first part of the attack establishes a simultaneons collision after the second application for both parallellines (inner collision). The sec- ond part (which solves a set of non-linear equations) lets the values of the chaining words coincide for both lines at the beginningof the compression function (backward collision). In the last part we match the prescribed initial chaining value. The attack finds collisions for the reduced RIPEMD in less than a day on a PC. 5 ISO/lEe 10118-3: SHA-1 and RIPEMD-160 In 1993 NIST (National Institute for Standards and Technology, US) published the Secure Hash Algorithm (SHA) as a Federal Standard. This hash function is designed to work with the Digital Signature Algorithm (DSA). It is based on the designs of MD4 and MD5. In 1995 a slight modification was made, resulting in SHA-1 [FIPS95]. Two improved versions of RIPEMD were proposed in 1996: RIPEMD-12S and RIPEMD-160 [DBP96]. These hash functions are now being standardized by ISO/IECI. 5.1 SHA-l The first major improvement in the design of SHA-1 is the length of the hash code: 160 bits instead of 128. This improves the resistance against a brute force collision search (ideally 280 computations would be required). Recent hardware designs [vOW94] and distributed computing efforts over the Internet show the importance of this. The compression function (which operates on five32-bit chaining words) has four rounds (like MD5) and uses the Boolean functions from MD4 as follows: the multiplexer function in the first, the majority function in the third, a.nrl the exclusive-or function in both the second and fourth rounds. Each round has 20 steps instead of 16, so every word of the chaining variable is transformed 4 times per round as in MD4 and MD5. A ba.sic step of the compression function consists of a := a + b«5 + fie c, d, e) + x j + k and c := c«30. Four non-zero additive constants are used. Another important design idea is that the order of the message words is not sim- ply permuted for their application in the different rounds. Instead these words are processed using a cyclic code. Within the compression function the 16-word message block is expanded to an SO-word block, by a process whereby each of the last 64 of the SO words is calculated as the exclusive-or of 4 words from earlier positions in the expanded block: Xj = Xj-3 EB:"j-S EBXj-I4 EBXj-I6. For the second version (SHA-1) a slight modification was made to this operation, the resulting code is no longer cyclic: :ri = (X.i-3EBX.i-SEBXj-14EBX.i-I6)«I. These 80 words are then input one-word-per-step to the compression function. I ISO/lEe DIS 10118-3, "Information technology - Security techniques - Hash-functions - Part 3: Dedicated hash-functions," draft, 1997. 108 The expansion procedure certainly increases the strength of the algorithm. It is no longer possible to change a small number of input bits to the 4 rounds: any message bit affects between 107 and174 bits of the expanded block. However the design principles and the weakness of the first version (SHA) have not been made public. 5.2 RIPEMD-160 In response to the attack on RIPEMD two strengthened versions were proposed. Like SHA-l, RIPEMD-160 generates a l60-bit hash code. RIPEMD-128 was only designed as a plug-in replacement for older l28-bit hash functions. The first main improvement in the compression function is an increase in the number of rounds: five for RIPEMD-160 or four for RIPEMD-128 (RIPEMD uses three rounds). Also the two parallellines are made more different from one another. From the attack on RIPEMD it was concluded that having only different additive constants in the two lines is not sufficient. Now the order in which the message words are applied is completely different for both lines. Five different Boolean functions are used (only four for RIPEMD-128): the exclusive-or function, two multiplexer functions, (x Vy) EBzand x EB(y V z). The order in which they are applied in the succeeding rounds is different (reversed) for both lines. For RIPEMD-160, which uses five 32-bit chaining words, one step of the compression function consists of a := (a + fi(b, c, d) + Xj + k)«s + e and c := c«lO. As in MD5 the result of a previous step (e) is added to promote the avalanche effect. The rotate of the c word has been added to avoid the MD5-attack. 6 Summary and conclusions We have discussed the different designs of the dedicated MD4-like hash functions. It can be concluded that MD4 is no longer secure: collisions can easily be generated (even for meaningful messages), and a weakness with respect to the one-way property has been identified. MD.5 seems to be at risk with respect to collision resistance and RIPEMD is not as strong as one should expect when the computational effort is doubled (compared to MD4). These functions should no longer be used in applications requiring a collision resistant hash function. The most important example of this are digital signature algorithms (generating collisions makes it possible to construct two distinct documents which have the same signature). We have shown the improved designs of SHA-l and RIPEMD-160, which are secure with respect to all known evaluation techniques including brute force search. These functions will be standardized by ISO IIEe and used for some years to come. It is important that they are further analyzed, for a more accurate assessment of their security. We can also remark that many protoeels are designed in a way that the security does not rely entirely on the used hash function. Timestamps for instance can be renewed using a new hash function, when the security of the previously used hash function is no longer guaranteed. An important note is that the increased security of more recent hash functions is achieved at the expense of lower performance. Table 1 compares the software perfor- mance of the discussed hash functions. 109 Table 1: Processing speed (in Mbitjs) for a 90MHz Pentium processor, for both As- sembly implementation and portable C implementation. Figures due to A. Bosselaers. algorithm MD4 MD5 SHA-l RIPEMD RIPEMD-12S RIPEMD-160 C S2 60 21 44 36 19 Assembler 191 137 55 96 7S 46 References [BS93] E. Biham and A. Shamir, Differential Cryptanalysis of the Data Encryption Sian- dard, Springer-Verlag, 1993. [dBB92] B. den Boer and A. Bosselaers, "An attack on the last two rounds of MD4," Advances in Cryptology - C,·ypto '91, LNCS 576, J. Feigenbaum, Ed., Springer- Verlag, 1992, pp. 194-203. [dBB94] B. den Boer and A. Bosselaers. "Collisions for the compression function of MD5," Advances in Cryptology - Eurocrijpt '93, LNCS 765, T. Helleseth, Ed., Springer- Verlag, 1994, pp. 293-304. [Dob96a] H. Dobbertin, "Cryptanalysis of MD4," Fast Software Encryption '96, LNCS 1039, D. Gollmann, Ed., Springer-Verlag, 1996, pp. 53-69. [Dob96b] H. Dobbertin , "The status of MD5 after a recent attack," Cryptobytes, vol. 2, no. 2, pp. 1-6, Summer 1996. [Dob97] H. Dobbertin , "RIPEMD with two-round compress function is not collision-free," Jourrial of Cryptology, vol. 10, no. 1, pp. 51-69, Winter 1997. [Dob98] H. Dobbertin, "The first two rounds of MD4 are not one-way," Fast Software Encryption '.98, LNCS 1372, S. Vaudeuay, Ed., Springer-Verlag, 1998, pp. 284- 292. [DBP96] H. Dobbertin, A. Bosselaers and B. Preneel, "RIPEMD-160: A strengthened ver- sion of RIPEMD," Fast Software Encryption '96, LNCS 1039, D. Gollmann, Ed., Springer- Verlag, 1996, pp. 71-82. [FIPS95] FIPS 180-1, Secure Hash Standard, NIST, US Department of Commerce, Wash- ington D.C., April 1995. [Pre93] B, Preneel, Analysis and Design of Cryptogmphic Hash Functions, Doctoral Dis- sertation, Katholieke Universiteit Leuven, January 1993. [RIPE95] RIPE, Integrity Primitives for Secure Information Systems. Final Report of RA CE Integrity Primitives Evaluation (RIPE-RACE 1040), LNCS 1007, A. Bosselaers and B. Preneel, Eds., Springer-Verlag, 1995. [Riv92a] R.L. Rivest, "The MD4 message-digest algorithm," Request for Comments (RFC) 1320, Internet Activities Board, Internet Privacy Task Force, April 1992. rRiv92b] R.L. Rivest, "The MD5 message-digest algorithm," Request for Comments (RFC) 1321, Internet Activities Board, Internet Privacy Task Force, April 1992. [Vau95] S. Vaudenay, "On the need for multipermutations: cryptarialysis of MD4 and SAFER," Fast Software Encryption '94, LNCS 1008, B. Preneel, Ed., Springer- Verlag, 1995, pp. 286-297. [vOW94] P.C. van Oorschot and M.J. Wiener, "Parallel collision search with application to hash functions and discrete logarithms," Proceedings 2nd A CAf Conference on Computer and Communications Security, ACM, 1004, pp. 210 218. 110 On the Time-Memory Tradeoff Between Exhaustive Key Search and Table Precomputation Johan Borst, Bart Preneel*, and Joos Vandewalle K.U. Leuven, Dept. Elektrotechniek-ESAT/COSIC Kardinaal Mercierlaan 94, B-3001 Heverlee België {Johan.Borst,Bart.Preneel,J oos.Vandewalle}@esat.kuleuven.ac.be Abstract In cryptanalysis of block ciphers, there are several attacks that are always feasible and for which the success probability and complexity only depend on key length and/or block size. Exhaustive key search and table precomputation are two of such attacks. In [HeI80] an attack was introduced which provides a tradeoff between the processing complexity of exhaustive key search and the memory complexity of table precomputation. We introduce a variant on the Hellman time-memory tradeoff, which decreases the expected number of memory accesses by a large factor and we demonstrate its advantages in a distributed key search. 1 Introduction In this paper we study an attack on block ciphers that combines the following two attacks. One is exhaustive key search in which an attacker tries all possible keys to encrypt a known plaintext for which he has the corresponding ciphertext. The other is table precomputation in which the attacker precomputes and stores encryptions of a chosen plaintext and corresponding keys for all possible keys. The studied method is a chosen plaintext attack that provides a. tradeoff between the processing complexity of exhaustive key search and the memory complexity of table precomputation. The tradeoff method was introduced and applied to DES in [HeI80]. Only re- cently in [KM96] the Hellman method was generalized, stricter bounds on the success probability were derived and relationships between the memory complexity, processing complexity, and success probability were given. This enables to optimize the tradeoff with respect to memory and processing cost. Using this in [KM96] estimates were made for the cost and capacities of key search machines using dedicated hardware. In all previous work the number of memory accesses was considered to be negligible. We show however that this is not the case when one uses Hellman's tradeoff method to perform a distributed key search over a LAN or over the Internet. In this paper *F.W.O. postdoctoral researcher, sponsored by the Fund for ScientificResearch - Flanders (Bel- gium) 111 Table 1: Complexities of brute force attacks. Attack " Key Search I Table I Tradeoff I Hellman I DP-method I Known plaintexts r~l - - - - Chosen plaintexts - r~l r~l r~l rkl n .- Precomp. - O(2k) ? O(rmt) O(rm-y) complexity Memory - O(2k) < O(2k) O(mr) O(ar) complexity Processing O(2k-l) - < O(2k-l) O(rt) O(r-y) complexity Success 1 - e-g(uJW 1 - e-'f! ~l ~l ? probability we introduce a tradeoff method that reduces the expected number of memory accesses with a large factor and thus overcomes the mentioned problems. The remainder of the paper is organized as follows. In Section 2 we give some preliminaries. In Section 3 we show how to define a one way function which we need to invert in our attacks. Then in Section 4 and 5 two methods to invert this function and their complexities are given. In Section 6 the two methods are compared and in Section 7 the advantages of the introduced method in distributed key search are discussed. Finally in Section 8 some possible practical applications are described. 2 Preliminaries Let E : {O, l}n x {O, l}k ~ {O,l}n be a hlock cipher with block length n and key length k. Define q = r~l, hence when q plaintextj'ciphertext pairs are known with high probability the used key or target key can be determined uniquely. It can be determined by exhaustive key search, which is a known plaintext attack. Another possibility is a chosen plaintext attack, which we refer to as table precomputation. Here, an attacker precomputes the encryptions of q chosen plaintexts under all possible keys and stores the corresponding, ciphertext./key tuples, The complexities are summarized in the first two columns of Table 1. The aim of a time-memory tradeoff is to mount an attack which has a lower online processing complexity than exhaustive key search and a lower memory complexity than table precomputation, as indicated in the third column of Table 1. 3 A One-Way Function In this section we show how to construct a one-way function .f from a block cipher and a set of chosen plaintexts. This function has the property that for given encryptions 112 of the chosen plaintexts, the target key can be found by inverting the function for a point that depends on the ciphertexts. In the next two sections we give two methods to invert this function. Define a function 9 : {O, l ]?" --t {O, as IV where the ij's are different elements of {1, ... , qn}. This function has the following two properties, which are important for our purpose. It is efficiently computable and there are many, namely d~~~)!, different possibilities to define g. Define further a function on the key space i :{O, l}k --t {O, l}k as where P1, ... , Pq are q different (chosen) plaintexts. It has the following property. hence g(C11 ... ICq) is the image of K under i, or in other words K is a predecessor of g(C11· .. ICq). So we want a method to invert i. Note that from g(C1 1 ICq) = i(K) it does not necessarily follow that C, = ... EK(P;) for i = 1, ... , q, since g(C) can have more than one predecessor, from which one is the target key. The situation where an inversion method finds another predecessor is called a false alarm. 4 Hellman's Tradeoff Method For a random start point SPE {O, 1V, define a chain Ko, K 1, ... , Kt of length t + 1 as Ko SP K, f(Ki-1) for i = 1, ... , t + 1. If only the start point and end point EP = Kt are stored then it is possible to determine whether a key K is equal to K, for some i E {O, ... , t + I} and, if so, to determine its predecessor in the chain, all with a complexity of t operations. This can be done as follows. Let K E {O,I}k. 1. For l = 0 to t do 2. Check if il(K) = EP, if so then predecessor of Kis it-l-1(SP). 3. Else, take next l. In the tradeoff method one tries to store information about as many different pre- decessors as possible by taking m different random start points and constructing thus m chains of length t + 1. A set of m chains of length t + 1 can contain information about at most mt different predecessors, but can contain several predecessors that are equal, which we call overlap. Overlap is caused by one the following two situations. 113 • A chain can cycle. This is the situation in which there are an i and j with i =1= j and Ki+1 = Kj+l' • Two chains can merge. This is the situation in which two keys in different chains have the same image. Note that this means that from the moment of the merge till the end of at least one chain both chains contain the same keys. From this it follows that taking m and t large would mean that there would be significant overlap. To reduce the overlap caused by merging of two chains we take different functions I by choosing different g-functions. We call a set of chains that are computed with the same I-function a table. Now we have the following precomputation algorithm and search algorithm, which use parameters m, tand r. Precomputation algorithm 1 Make r tables with m (SP, EP)-pairs, sorted on EP. 1. Choose r different random functions gi, i = 1, ... , r 2. For i = 1 to r A. Choose m different random starting points S pfi), ... , SP;:') B. Compute m end points EP?) = IHSP?)) C. Store in table i: m (SP, EP)-pairs, sorted on end point Search algorithm 1 Given C, = EK(Pi), i = 1, ... , q. Find K. For i = 1 to r 1. Y = gi(C11·· .ICq) 2. For j = 0 to t - 1 A. If Y = EP?) for some I then a. Compute predecessor te = ir:: (Sp/i)) b. If C = Ek(P) then K = ie. stop c. If C =1= Ek(P) then false alarm B. Set Y = I(Y) Under the assumption that for all J; the images are generated uniformly and ran- domly (i.e., J; can be modeled as a random mapping), the success probability can be estimated. Using this and the assumptions that m » 1, t » 1, and mt « 2k in [KM96] the probability that a randomly chosen key is in one of the r tables was be lower-bounded by: Pr(success) ~ 1 _ e-g(u)r~t, where g(u) = - 1 !nu 1 - e-x dx and u = mt 2 -k . U 0 x 2 It was also shown in [KM96] that this upper-bound is a good estimate when 7/. :::; 1., The success probability and precomputation, memory and processing complexity are summarized in the fourth column of Table 1. Note that the processing complexity 114 caused by false alarms can be neglected [HeISO,KM96]. When the attack is mounted with a precomputation complexity of 2k and memory complexity equal to processing complexity, then m = t = r = 2~k and the success probability is around 0.55. 5 An Alternative Method For the alternative method, we need the following definition. Definition 1 Let K E {O,ly and « {1, ... , k-l}. ä Then K is a distinguished point (DP) of order d if there is an easily checked property which holds for K and which holds fOT 2k-d diffeTent elements of {O, l}k. Easily checked means a property that can be checked with a lower complexity than needed for a search in a table of about 2d elements. An easily checked DP-property is for example having d bits with a fixed value on d specified places. For the method a DP-property of order d is chosen. Again r tables will be precom- puted by choosing r different iteration functions f, but now each end point in each table will be a DP. For each iteration function m different start points will be randomly chosen. For each start point a chain will be computed until a DP is encountered or until the chain has length t + 1. Only start points that iterate to a DP in less than t iterations will be stored (with the corresponding chain length), the others will be discarded. Hence, all chains that cycle are discarded. Besides that, if the same DP is an end point for different chains, then only the chain of maximal length will be stored. Hence, no two chains merge. Consequently there is no overlap in a single table. If the parameters d, t and m are chosen properly, the extra computation that has been dorie for discarded points is neglectable [BPV9S]. Precomputation algorithm 2 Make r tables with (SP, EP, i)-triples, sorted on end point. l. Choose a DP-property of order d 2. Choose r different random functions gi, i = 1, ... ,r 3. For 'i = 1 to r A. Choose m random start points Spl(i),.,., SP!:,) B. For j = 1 to m, i = 1 to t a. Compute ff(SPY)) b. If ff(SPY)) is a DP, then Store the triple (Sp}i), EPl) = ff(Spl)), i) and take next j c. If l > t 'forget' sPy) and take next j C. Sort triples on end points. If several end points are the same, only store the triple with the largest l D. Store maximum l for each table: l~ax For the search algorithm holds that a table only has to be accessed when a DP is encountered during an iteration. Moreover, if the encountered DP is not in the table, 115 then all values encountered during further iterations will not be in the table. Hence, then the table can be discarded. Search algorithm 2 Given Ci = EK(Pi), i = 1, ... , q. Find K. For i = 1 to r 1. Look up l:nax 2. Y = g.;(C1, .•. , Cq) 3. For j = 0 to l~ax - 1 A. If Y is a D P then a. If Y in table i and j < l, then ff- i. Compute predecessor ie = 1-j(Sp?)) ii. If C = Ek(P) then K = ie. stop iii. If C 1= Ek(P), take next i b. Else take next i B. Set Y = f(Y) Each table contains maximal m chains and each chain has a maximal length of t + 1. We introduce two variables a(m, t, d) and f3(m, t, d) as the expected number of chains in a table and the expected length of a chain, respectively. Further we introduce a variable 0f as t t 0f(m, t, d) = te-2à + 13(1 - e-2à). m and f3 :::; 7 :::;t. The complexities and success probability of the Note that a :::; method can be expressed using a, f3 and 7 and are summarized in the last column of Table 1. These estimates are made under the assumptions that 2-d « 1 and af3 « 2k A formal derivation of these results and estimates for a and 13 can be found in [BPV98]. There are several adjustments possible for the algorithms described in this section. For example, one can decide not to store the chain length in a triple and make corre- sponding changes in the search algorithm. This reduces the memory complexity at the cost of processing complexity. But the consequencesof these adjustments are outside the scope of this paper. Remark: the idea of using distinguished points in Hellman's tradeoff was noted earlier by Rivest [Den82, p.l00], although no further reference in public literature is known to us, 6 A Comparison Table 1 demonstrates that a and f3 (and 7) play a crucial role in the performance of the new method. We have tested the DP-method for relatively small key sizes. In accordance to the optimal results of previous research [HeI80, KM96] we have selected a precomputation complexity of about 2k. Here we tried to find the optimal success probability by varying m, tand d. With such a choice tables can be computed till the complexity is 2k; this determines r. In this way we have found that about the same optimal probability can be achieved as mentioned at the end of Section 4, namely about 116 0.55. It can be achieved by taking d ~ tk, m ~ Ûk and t ~ 2~k+3. Moreover, the memory complexity is about equal to the processing complexity, both are about 2~k. From this we conclude that the optimal results that can be achieved with the DP- method are at least close to the ones achievable with Hellman's method. We have also derived general expressions for ct and (3, which confirmed our previous conclusion. Experimental results and formalization can be found in [BPV98]. An advantage of the DP-method is that for each table the list of end points has to be checked for membership at most once. In the Hellman method this number has at least an expected value of ~t. Hence the DP-method has a considerably lower data access time than the Hellman method. In the next section we will give a practical situation in which this property is needed. 7 Distributed Key Search Assume that the precomputation is feasible, for example with a distributed key search over the Internet or a LAN or with the temporarily borrowed dedicated search machine of a friendly intelligence agency, and that the tables are stored somewhere safely. A possible way to speed up the actual attack is a distributed key search over the Internet or a LAN, where the tables are searched through in parallel. Hence, one central server distributes the tables over many clients. We examine two different methods for this. In the first method the central server sends whole tables and corresponding g- functions (and of course the known ciphertext(s)). Each client performs one of the previously described search algorithms with his part of the tables. This has the following disadvantages. • In practice the central server has to distribute large amounts of data. This takes time. • The tables that have to be sent contain sensitive information that should not fall in the wrong hands, and hence need to be sent encrypted, especially when sent over the Internet. The needed encryption and decryption would again slow down the search considerably. As alternative for this method there is a second one which only can be done with the DP-method and which does not have the disadvantages described above. In this method the central server distributes the tables by sending only the g-functions with corresponding lmax. Now each client iterates I. and there are the following possibilities. • A DP is encountered after j iterations, then the client sends j, i and Jl (K) to the central server, which checks whether the DP is an end point in the corresponding table and, if so, checks whether the target key is in the corresponding chain. • If no DP is produced within l:nax iterations then the target key is not in table i: the table does not need to be searched. The second method has as advantage that no table needs to be sent at all. The workload that the central server has to do, caused by checking the received DP's, can 117 be loosely upperbounded by r- Pr(DP in table)· E(# iterations to find predecessor) < '" r . 2k-d 1 a < r· 2k-d • 21-' m 1 • 2 1 = 2d . 2k+l mkt < 2d'f ,I t h e precomputation. comp Iexity . IS. O(2k) or higher. Hence, this workload can be neglected. Thus we have identified a situation in which the DP-method should be preferred over the Hellman method. 8 Applications The attacks described here are chosen plaintext attacks on a block cipher in ECB-mode and can be prevented by (for example) using CBC-mode with a random IV-vector. Still there are practical applications, which would be vulnerable to a chosen plaintext attack. We give the following two examples . • In the UNIX-password one-way function [MOV97], a user password of 8 ASCII- characters is used to encrypt O ... 0 with DES 25 times iterated. Although pass- word salting gives 212 variations of the block cipher, it is possible to make a database for part of the salt values . • S/MIME is an email security protocol that for example is used in Netscape Corn- municator 4.04 and Microsoft's Internet Explorer 4.0. Besides DES it supports RC2 with a 40-bit key. The block cipher is used in CBC-mode, but the first en- crypted block is always the ASCII-equivalent of 'Content-'. lt is encrypted using a random IV-vector, which is then sent along with the message. If the random generator is predictable or can be influenced, then an attacker might profit by making tables for the corresponding IV-values. We conclude that time-memory tradeoff attacks need to be taken seriously into account in the design of secure systems. References [BPV98] J. Borst, B. Preneel, and J. Vandewalle, A Time-Memory Tradeoff Using Distinguished Points, Technical Report ESAT-COSIC Report 98-1, Department of Electrical Engineering, Katholieke Universiteit Leuven, 1998. [Den82] D.E. Denning, Cryptography and Data Security, Addison- Wesley, 1982. [HeI80] M. Hellman, A Cryptanalytic Time-Memory Tradeoff, IEEE Transactions of Injormaiioti Theory, Vol. 26, 1980, pp. 401-406. [KM96] K. Kusuda and T. Matsumoto, Optimization of Time-Memory Trade-Off Cryptanalysis and lts Application to DES, FEAL-32, and Skipjack, IEICE Trans- actions on Fundamentals of Electronics, Communications and Computer Science, E79-A, 1996, pp. 35-48. [MOV97] A.J. Menezes, P.C. van Oorschot, and S.A. Vanstone, Handbook of Applied Cryptography, CRC Press, 1997. 118 A security risk for publicly available watermark detectors Ton Kalker Philips Research Eindhoven Prof. Holstlaan 4, 5656 AA Eindhoven The Netherlands 31-40-2743839 (tel) 31-40-2744675 (fax) kalker(Q)natlab.research.philips.com (email) 1 Introduction A watermark is a perceptually unobtrusive signal embedded in an image, an audio or video clip, or any other other multimedia asset. Its purpose is to be a label which is holographically attached to the content. Moreover, it can only be removed by malicious and deliberate attacks (without a great loss of content quality) if some secret parameter K is known. In contrast, a watermark should be readily detectable by electronic means. This implies that electronic watermark detection is only feasible if the watermark detector is aware of the secret K. A priori there are many ways in -which a pirate may try to retrieve watermarking secrets. Without special precautions many watermarking schemes are vulnerable to collusion attacks. In these types of attacks the pirate tries to make an estimate of secret noise patterns by averaging over a large set of watermarked data, each of them marked with the same watermark. Another type of attack tries to remove a watermark by estimating the original content. Tills type of attack is particularly successful if the watermarking process modifies some clearly recognizable characteristics of the original data. As an example one can think of watermarking schemes which destroy sparsity of histograms. In this presentation we will discuss a third type of attack based upon the availability of a watermark detector D. In particular we will try to answer the question to which extent an attacker is able to retrieve watermark secrets by observing the detector for a large number of inputs. As it is obviously not possible to deal with this question in full generality we will focus a the restricted (but still large) class of thresholded correlation detectors. This work is an extension of earlier work at the Philips Research Laboratorles [1] [2] [3]. Some of the roots of this work can also be found in [5]. 2 Watermark detection model A prototypical watermark detection scheme can be modelled by a black box D which takes as input a vector x E X C IRN (N large) and returns a binary decision b E {-I, +1}. A decision b = -1 is interpreted as x not being watermarked, otherwise x is said to be watermarked. The black box D is characterized by a 5-tuple {w,A,B,h,g} where A ~ B are positive real numbers and where w E VN for some small! and symmetrical- subset V C IR. The function h is some hash function on the space of inputs X returning uniformally distributed values on the interval [0,1]. The function g is a monotonically increasing self map of the interval [0,1]. '#V« N. 2_V = V. 119 The vector w is referred to as the watermark. The entries of ware obtained by randomly drawing from V for some probability distribution pv under the restrietion that w is DC-free, Le. N-I LWi=O. ( 1) i=O For our purposes we may assume without loss of generality that the second moment of w is equal to 1, i.e, 1 N-I 2 N LWi = 1. (2) i=O The decision b = D(x) is essentially obtained by correlating x with w and comparing the correlation value d with the thresholds A and B. More precisely d is computed ",N-I d = L-i=O WiXi (3) uz.JN If x and ware independent one can show that for large N the d-distribution is close to a normal distribution .N(O, 1). If d is small, i.e. if Idl ::; A, then x is judged to be watermark-free and the value b = -1 is returned. If d is large, i.e. d 2: B then x is judged to be watermarked and the value b = + 1 is returned. For d between A and B a value b is returned which also depends on the hash hex) of the input x. This dependency is such that for d close to A the probability of a return value -1 is close to 1. Similarly, for correlation values close to B the probability of b = + 1 is close to 1. More precisely the return value b is computed as -I if Idl::; A, b = +1 if Idl 2: B, (4) { -1 if A y(d), +1 if A di - B. This approach will certainly work if the we can find a signal ii; which is close to the threshold B, and if the probability of a watermark-free decision is sufficiently large for correlation valuations just below B. Watermark detectors which use a transition interval of length zero, i.e. A = B, are therefore vulnerable to this attack. The approach of a pirate would be as follows. He or she would start with an arbitrary watermarked signal and iteratively degrade its quality (e.g by putting sample values to zero, see also Figure 2). By observing the output of the detector, a signal ii; just above the threshold B can be constructed. By perturbing single sample values of ii; and recording for which sign and magnitude of the perturbation the detector D changes output from watermarked (b = +1) to watermark-free (b = -1) a reliable estimate of the watermark w can be obtained. It followsthat a secure watermark detector needs to have a non-zero uncertainty interval [A, B] and a transition function 9 with sufficiently small derivatives. Achievable changes in the correlation values d will then result in small changes of probability of return values. This will force a pirate to do a large number of experiments in order to retrieve information from D. In [1] it is shown that the most secure function 9 for a fixed interval [A, B] is given by the formula d- A g(d) = cos((2 B _ A - 1)11-). (9) 3.4 Fourth attack Due to restrietion on allowed sample values for the space of signals X it is not always feasible to achieve sufficiently large changes in correlation values by perturbing only single sample values. For example, in the majority of image formats the color components are restricted to 8 bits. In this fourth attack method we therefore propose to perturb signals x by adding random noise to all sample values aimultaneously. As in the previous attack, information can only be obtained from signals which are at threshold of detection. The attack therefore starts by constructing a signal ii; which somewhere in the interval [A, B]. As before ii; can be constructed by iteratively degrading a properly watermarked signal x (see also Figure 2). Figure 2: Output of the watermark detector as a function of the number of untouched sample values. In the second phase of the attack we perturb ii; by adding DC-free {-k, +k }-valued noise sequences v and feeding ii; +v to D. If the correlation between w and w is positive there is a slightly increased chance that D returns b = + 1. If wand v are negatively correlated there is a slightly increased chance of D returning b = -1. In the former case we take 11 as an approximation of w, in 122 the latter case we take -vas an approximation of w. These perturbations of x are geometrically represented in Figure 3 as the shaded sphere around x. The lighter and darker shaded areas of this sphere indicate the negatively and positively correlated perturbations, respectively. By averaging over all interrnediate estimations we obtain an estimate of ÛJ of w up to a positive scalar K.. When perturbing x there is a choice in the strength k of the perturbations, If k is either too smallor too large the variation in standard deviation of the perturbed images has a dominant effect on the outcome of the experiments. These cases can however easily be recognized by comparing the standard deviation of the intermediate estimation with the theoretical standard deviation for experirnents on non-watermarked signals. If k is "just right" (quoting Goldilocks) then the measured standard deviation will be (significantly} larger than this theoretical standard deviation. In the pseudo-code below we obtain a proper value of k by monotonically increasing k, starting at the value k = L A formal description of the attack is given below. eorrelated pertnrbattcns Non Et:= -"'lIJ Negatively cor-elated perturbanons Figure 3: A geometrical interpretation of the watermark attack. = 0; 1Î/ k = 1; whiIe(std(ÛJ) < K) {-IN/ u = 0; for(L = 0; L < K2N; L = L + 1) { v = dcfreef): d = D(x + k * u); u = u + d*v; ÛJ = ui k = k + 1; } The parameter K in the pseudo-code above determines the accuracy of the watermark esti- mation. One can show that the number of watermark samples which is incorrectly estimated, is linear with 1/ K. 123 4 Experiments The attack described in Section 3.4 has experimentally been verified. An attack was simulated in MATLAB for a watermarked image" of size 128 x 128 (marked at 9 times standard deviation) and a software model of a watermark detector with A = 5 and B = 7. The chosen image size 128 x 128 is realistic in the sense that any practical watermarking scheme for images will use tiling with moderately sized tiles, usually smaller than 128 x 128. A watermark detector in such a system essentially computes correlation values on the basis of this tile size. The watermarks sequence w used in this experiment is as given in the introduetion of Section 3. First an image at the threshold of detection was obtained by iteratively replacing sample values by the mean value of the image (see Figure 4). This threshold image was used for a number of experiments in which the quality of watermark retrieval was measured as a function of the perturbation strength k and the total number of iterations K. The results are given Figure 5. The quality of retrieval is measured in the percentage of watermarks bits which are correctly estimated. The number of iterations is measured in multiples of the number of samples N = 1282. The figure clearly shows that the percentage of retrieval is easily above 90% for a moderated number of iterations. The figure also shows that the attack is reasonably insensitive to the exact value of k as long as k is not too smalI or too large. In Figure 6 the distribution of sample values of ill before quantization is plotted for K = 30 * Nand k = 5. This figure clearly shows a distribution which is divided in 3 different regions. The left, middle and region correspond to the values which are quantized to -y2, 0 and +y2 respectively. From this figure one can also see that about half of the values in ill is equal to O. Figure 4: The (partial) Lena image at detection threshold. 5 Conclusions In this paper we have addressed the issue of watermark security based on the availability of a watermark detector and a single watermarked image. We extended the work started in [5] and [1] by presenting a simple attack method. A slight extension of the theory shows that the same method is applicable to all correlation based watermark methods. This implies that watermarking methods based upon thresholded correlation are not suited for applications where the detector is publicly available (DYD). 3The central part of the well known Lena image was chosen for this experiment. 124 Figure 5: Retrieval percentage as a function of the perturbation strength k and the total number of iteration K. ~.~,----~--~----~,~---7--~~--~. Nonnali1ed:;amfievelut, Figure 6: Distribution of sample values in 'ÛJ for K = 30 * N and k = 5. References [IJ J.P. Linnartz and M. van Dijk. Analysis of the sensitivity attack against electronic watermarks in images. In Proceedings of the Workshop on Information Hiding, Portland, April 1998. Accepted. [2J Ton Kalker. Watermark estimation through detector observations. In Proceedings of the IEEE Benelux Signal Processing Symposium, pages 119-122, Leuven, Belgium, March 1998. [3J T. Kalker, J.P Linnartz, and M. van Dijk. Watermark estimation through detector analysis. In Proceedings of the ICIP, Chicago, October 1998. Accepted. [4J W. Bender, D. Gruhl, N. Morimoto, and A. Lu. Techniques for data hiding. IBM Systems Journal, 35(3/4}:313 - 336, 1996. [5J l.J. Cox and J .P.M.G. Linnartz. Public watermarks and resistance to tampering. In Proceedings of the ICIP, Santa Barbara, California, October 1997. Paper appears only in CD version of proceedings. 125 On information theoretical aspects of speech transmission C.H. Slump University of Twente, Dept. of Electrical Engineering, Signals & Systems - Network Theory P.O. Box 217, 7500 AE Enschede, The Netherlands Abstract In this paper we look into the problem of digital speech transmission over non-ideal channels. Our interest mainly is in the mobile channel. Especially in mobile communication the bandwidth is limited and speech compression is widely applied. This increases the sensitivity for transmissions errors. Therefore channel coding has to be applied with even more demand for bandwidth. The approach in this paper is omit the speech compression and channel coding, but to apply signal recovery techniques at the receiver. We compare the performance of a speech generation model with the classical Wiener and Kalman techniques for the case of transmission over a Binary Symmetric Channel (BSC) with constant error probability. 1 Introd uction Speech coding for digital transmission over non-ideal channels is a topic which receives much research attention nowadays. Speech transmission over hostile channels such as in mobile communication with limited bandwidth and power requires all kinds of error proteetion techniques which increase the overhead and reduce the number of effectively transmitted data bits. The demand for higher compression ratios likely increases the sensitivity for channel bit errors. Unequal error proteetion techniques e.g. [1] that protect the most significant databits, only partly solve this problem. Once the data has been decoded, error concealment techniques can be applied to reduce to subjective effects of residual bit errors that have passed the channel decoder [2]. This paper reports about research in the relation between speech compression, transmission and channel coding in comparison with the classical statistical Wiener and Kalman filtering techniques [3]. As our goal is primarily insight rather than (simulated) numbers we choose the viewpoint of information theory although this may obscure the practical application. Fig. 1 presents a standard block diagram of a communication system. We assume that the infor- noise Figure 1: Standard block diagram of a communication system. mation source selects message elements from a predefined set of symbols. The message elements are coded as signal elements for transmission over the channel. The task of the decoder is to detect the signal elements and to restore the message elements. Two quantities are important: the rate at which the source emits symbols i, j = 1,"', N with the corresponding probabilities Pj and the capacity C in symbolsjs of the transmission channel for the transport of the pertinent signal elements. We consider the task of the receiver to discover the transmitted message as a signal recovery problem from noisy, inconsistent and incomplete data. In the recovery we incorporate as much a priori information about the source as possible. We also exploit the mechanisms of channel coding and digital modulation. Following [4] in a simple application of the diagram in Fig. 1 to the process of speech transmission we select as the set of signal elements of the coder the different speech sounds in a language. For example English has 40 different sounds, this means that any spoken sentence can be transcribed by a sequence of signs from a set of 40 different elements. In principle the sequence of signs produces the 127 same information when someone reads the signs aloud as listening to the original talker-would provide. The information source is characterized by the probabilities of the symbols together with the rate at which th~ signs are produced. For independent and equiprobable sounds the information per sound would be log240 = 5.3 bits. With a production rate of ten signs per second we have an information rate of 53 bits/so In practice speech sounds are neither equiprobable nor independent. With the zero order probabilities [5]and the digram transitions [6]the information rate of speech becomes 43 bits/so Taking into account the redundancy between sounds in words the rate is further reduced to about 35 bits/so With the redundancy between words it is estimated that the information rate drops further to 12 bits/so It has been estimated [4]that the definition of the topic of conversation the information rate in telephone discussions is in the order of 0.2 bit/so The required channel capacity is related to the auditory perception system of the listener. Listeners can make fine distinctions between individual sounds. The set of distinguishable different sounds is very large. The detection of a sound may take between 50 to 200 ms for a discrimination to be made. With an average of 100 ms per sound the ear is' able to receive information at 50 kbits/s. This number is not uncommon in the reproduetion of digitally recorded music. However, the ability to detect differences in sounds is not the only factor determining the information capacity of a listener. Psychophysical effects as auditory masking limit the detection capability. Due to limitations in the internal processing in the brain, no human activity-can be continued at information rates exceeding 43 bits/so With respect to the channel an information capacity of less than 50 bits/s in principle would suffice to transmit all the information in the speech and also meet the information capacity of the listener. In practice we have according to Shannon with a standard low quality telephone line with a bandwidth of 3 kHz and SNR of 30 dB, a channel capacity of about 30 kbits/s. In theory there is clearly a large improvement possible in the efficient representation of the information. Of course the production of speech by the vocal tract and the complimentary process of recognition by the auditory system is much more complex than transmitting information coded in a fixed set of sound patterns. In order to use the a priori information about the speech generation process in the signal recovery at the receiver, we now describe a simplified model for the.speech generation in which we follow [4, 7]. 2 Speech generation The human speech production system is illustrated in Fig. 2. The main vocal tract extends from the larynx to the lips, a distance of about 135 mm for females and about 170 mm for males. By lowering the velum for certain sounds, the nasal cavity is coupled to the main vocal tract. During speech production, the passage from pharynx to esophagus is closed. Air flowsfrom the lungs through the trachea to the larynx, a narrow slit with a length of about 18 mm and extending about 3 mm in depth. The width of the slit is variable and is called the glottis. Speech sounds can be classified into three classes corresponding with the excitation. Figure 2: Vocal tract (after Richards [4]). Voiced sounds are produced by the vocal cords which vibrate open and closed, thus interrupting the flow of air forced through the glottis in a rapid sequence of pulses. The pulse rate or pitch of the sound denoted by Fa is about 250 per second for females and 130 per second for males. Fa may vary for a given person over plus or minus half an octave. 128 Unvoiced sounds result from noise - like turbulence excitations produced with open glottis if air is forced through a constriction in the vocal tract at high velocities. Plosive sounds result result from releasing the air pressure built up in a complete closure in the vocal tract. Some sounds are the result from a mixture of the excitation type. The speech produced by a speaking person communicates information to a listener. This speech is the response of the vocal tract that acts as a filter to the sound source. The human speech production system can be characterized by a set of partial differential equations describing the flow of air from glottis to lips. However, this approach is very complicated. For our purpose we first put attention in the stationary speech sounds, i.e. vowels. We will model the speech production system as an acoustic tube model. We assume that the sound waves propagate from the glottis to the lips along the axis of the vocal tract. This is a valid assumption for sounds with wavelengths large in comparison with the diameter of the vocal tract which is about 2 cm. At 4 kHz we have a wavelength of about 8.5 cm. For telephone quality speech the tube modeling seems justifiable. For non nasal speech sounds the vocal tract consists of a tube with almost constant cross-section and open at the mouth side and with natural modes at 500, 1500, 2500, etc. Hz. These modes are also called formants with respective frequencies denoted by F1, F2, F3 etc. The bandwidth of the formants is about 50 Hz for Fç and F2 and about 100 Hz for F3. With the mouth relaxed and slightly open, the neutral vowel will result. Greater opening of the lips will cause the vowel a as in barn, while nearly closing the lips will result in u as in boot. Opening of the mouth effectively shortens the length of the resonant tract and raises the modal frequencies whereas partial closure increases the air velocity at the lips and thereby lowers the frequencies. Other vowel sounds are produced by changing the position of the tongue so that the cross-section becomes narrower at particular locations along the vocal tract. The 500 Hz mode corresponds to an air velocity maximum at mouth only; the 1500 Hz mode corresponds with a velocity maximum at ! of the distance from the larynx as well as at the mouth. The 2500 Hz mode corresponds to velocity maxima at t and ~ of the distance from the larynx, as well as at the mouth, see Fig. 2. We will base our model for the speech generation on the tree parameter tube model of [7]. For the speech processing we will apply the well known models of [8, 9], see Fig. 3 and Fig. 4 respectively. LU~JC VOLuME Figure 3: The vocal tract as acoustical system (after Flanagan [8]). 3 Speech recovery processmg Our approach can be applied to the mobile channel characterized by multipath propagation and fading as extension of our work on channel equalization [10, 11]. Due to limited space we describe here only 129 Pitchperiod Vocal""" pM- u=~ ..~ Figure 4: Speech production model (after Rabiner and Schafer [9]). the speech recovery processing applied to the Additive White Gaussian Noise (AWGN) channel which we model as a Binary Symmetric Channel (BSC) with bit error probability p. A transmission error in the BSC channel provides a wide band noise component uncorrelated with the signal. Fig. 5 presents a block diagram of the recovery processing. The received speech signal is processed in blocks of about 20 ms, a time period over which we assume the signal to be stationary. The first block detects whether the pertinent frame is voiced or unvoiced for which we apply standard vocoder techniques. The unvoiced recovery is simple, the signal mean and variance are computed and outliers are removed. The removed samples are linearly interpolated. The voiced signal is analyzed and the Linear Prediction Coefficients (LPC) are computed. From these the corresponding tube model is determined. The variation of the dynamics of the tube parameters in consecutive segments is monitored and mitigated corresponding to physical time constants. We apply the Perceptual Speech Quality Measurement (PSQM) [12] as recommended by ITU-T recommendation P.861 for the objective analysis of speech codecs (300 - 3400 Hz bandwidth) for the evaluation of the recovery processing in the block indicated with PSQM. This block steers the tracking of the tube parameter dynamics for the voiced segments and the outlier removal in the unvoiced frames. We prefer the use of the PSQM over the classical least squares approach of Wiener or Kalman filtering [3] because PSQM represents better the human auditory perception than least squares: weighting of silent frames, auditory masking is included and the addition of artifacts weights more than the removal of components. Figure 5: Block diagram of the speech recovery processing. 4 Simulation results We apply the speech recovery processing to the speech signal depicted in Fig. 7. This speech signal is received after f.l - law companding and transmission using 8 bit logarithmic PCM over a BSC with p = 10-2. The received signal after J.t - law expansion is shown in Fig. 7. About 8% of the received speech samples are affected by a bit transmission error of the BSC. The per segment averaged PSQM value is as bad as 7.91 whereas the original is 1.:19. Fig. 8 contains a segment of 200 samples of a voiced part of the speech signal. Fig. 9 shows the result of the recovery processing based upon the speech processing model parameters of the pertinent 130 4 X 10 2.5~~--~-----.-----,-----,.-----~-----.-----,-----. 2 1.5 -1.5 _2L_----~----~------~-----L------L------L-- __~ __J o 2000 4000 6000 8000 10000 12000 14000 16000 Figure 6: Original speech signal 16 bit, sample frequency 8 kHz. 4 X 10 2~~--~----~----~----~-----.-----r----~-----' 1.5 -1.5 _2L_----~----~------~-----L L_ _L ~ __J o 2000 4000 6000 8000 10000 12000 14000 16000 Figure 7: Speech signal transported over a BSC with p = 10-2. segment characterized by the LPC segment spectrum of Fig. ID. The tata! processed speech signal is presented in Fig. 11. Many of the bit errors in the voiced segments have disappeared. The PSQM value has improved significantly. Note that no use of channel coding has been made. If we take into account the consistency of the tube parameters between consecutive voiced frames 131 Figure 8: Voiced segment of 200 samples of the received speech signal over a BSC with p = 10-2. Figure 9: Processed speech segment based upon the speech generation parameters of the pertinent segment. Figure 10: LPC spectrum. we arrive at the result presented in Fig. 12. At the frame edges transients still occur, the PSQM value is greatly improved. 5 Discussion and conclusion In this paper we take a signal recovery problem approach to speech transmission over non-ideal channels. As much a priori information is included in the detection process. The effective use of transmission capacity is the goal. We follow the well-known linear prediction model for speech pro- duction. From this we solve the inverse problem of the tube parameters following [7J. Currently we apply the model for stationary voiced segments with encouraging results, the purpose is to expand L32 4 X 10 2~~------------.----------------r---------------. 1.5 -1.5 _2L_----------------L_----------------~--------------~ o 5000 10000 15000 Figure 11: Recovered speech signal with vocal tract model per consecutive frame. 4 2 X 10 1.5 -1.5 _2L_----------------L_----------------~--~----------~ o 5000 10000 15000 Figure 12: Recovered speech signal with vocal tract model and applying consistency between consec- utive frames. the approach to include transition effects. With respect to the latter, the current heuristic inverse dynamics leads to encouraging results. The sensitivity for background acoustical noise neads to be investigated further. 133 References [1) G. StolI, "EU147 DAB: High quality audio due to a combined concept of source, channel coding and concealment," in Codierung für Quelle, Kanal und Überlragung, vol. ITG-Fachbericht 130, pp. 233-241, VDE-Verlag, Oktober 26-28, München 1994. [2) T. Fingscheidt and P. Vary, "Robust speech decoding: a universal approach to bit error conceal- ment," in IEEE International Conference on Acoustics, Speech and Signal Processing, Munich, April 21-24, vol.3, pp. 1667-1670,1997. (3) M. Hayes, Statistical digital signal processing and modelinq. J. Wiley, 1996. [4) D. Richards, Telecommunication by speech, the transmission performance of telephone networks. Butterworths, 1973. . [5) G. Dewey, Relative frequency of English speech sounds. Harvard University Press, 1923. [6) C. Shannon, "Prediction and entropy of printed english," Bell Syst. Tech. J., vol. 30, pp. 50-64, 1951. [7) G. Fant, Acoustic theory of speech production. 2nd ed. Mouton, The Hague, 1970. [8) J. Flanagan, Speech Analysis, Synthesis and Perception, 2nd ed. Springer-Verlag, Berlin, 1972. [9) L. Rabiner and R. Schafer, Digital Processing of Speech Signals. Prentice Hall, Englewood Cliffs, NJ, 1978. [10) J. Tijdhof, J. van Bussel, C. van Heerde, C. Slump, and M. Bentum, "On the design and realiza- tion of adaptive equalization for mobile communications," in IEEE signal processing workshop, vol. Signal Processing Advances in Wireless Communications, pp. 381-384, April 16-18, Paris 1997. [lIJ C. van Heerde, C. Slump, and O. Herrmann, "Low power adaptive equalizing techniques for mobile communications," in 2nd European Personal Mobile Communications, pp. 313-320, Sept. 30 - Oct. 2, Bonn 1997. [12) ITU-T, Contribution COM 12-67, Draft recommendation P.861, Objective quality measurement of telephone-band (300-3400 Hz) speech codecs, study period 1993-1996. 134 Modeling Binary Audio Signals for Lossless Compression R.J. van der Vleuten" A.A.M.L. Bruekers" A binary data format, also known as bit stream, has been proposed for the representation of audio signals. The typical sample rate of these binary audio signals is 64 x 44.1 kHz, resulting in a bit rate of64 x 44100 = 2.8 Mbit/s (per audio channel). In order to reduce this rate, without affecting the audio qual- ity in any way, lossless compression of these signals is necessary. We have developed a new lossless compression method that is tailored to binary audio signals. It is based on a new linear model of those signals that produces both a prediction of the value of the next signal bit and the probability that this pre- diction is correct. The actual lossless compression of the signal is performed by an arithmetic coder, which optimally uses the model output. Compared to the traditional scheme, in which the linear prediction and arithmetic coding operate independently, significantly improved (by 20% or more) compression ratios, of 2.3 and higher, have been achieved in our experiments. Further- more, our method allows real-time hardware implementation. 1 Introduction In [1, 2], a binary representation of audio signals is proposed. A disadvantage of such a representation is its high data rate. Since the typical sample rate of the binary audio signals is 64 x 44.1 kHz, the bit rate equals 64 x 44100 = 2.8 Mbit./s. In order to reduce the data rate, without affecting the audio quality, it is necessary to apply lossless compression. We have developed a lossless compression method that is optimized for binary audio signals and allows real-time hardware implementation. 2 Block Diagram The general structure of the lossless compression scheme is illustrated in Figure l. To enable editing of the signal, the scheme operates on individually decodable 'Philips Research Laboratories, Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands. 135 ENCODER DECODER ,, ,, ,, ,, ,, X , , , , , , , X INVERSE ,, FRAMING ~ -:-.!. ~ ,, :c: 'H' ~, FRAMING ;, , , :A: ,,, , ,, ,, lF :N: ,,, 'N' Fl ,, , ,,, : L: ,, 'E' INVERSE ,, PREDICTION ~ -:-, +-+ , , PREDICTION , ,,, ,,, ,,, ,, ,,, 1E ,, ,, , , ,, ,, , ,, , , , , ,, , El , ,, , , , , ENTROPY ENTROPY ,, ~, -:-, +, +, ,, ENCODER -------rö-----~ • I , ,, ,, I , , , ,, I DECODER : - - - - - D- r------~ , Figure 1: Basic structure of the lossless coding scheme. data chunks, called frames. Framing further enables the exploitation of short-term (pseudo-) stationarity of the signal and limits the effect of a channel error to the amount of data contained in a single frame. We found that, for a sample rate of 2.8 MHz, a constant frame length of L = 37632 bits (75 frames per second) provides a good balance between performance and system requirements. After splitting the binary input signal into frames, it is modeled, the model being used to predict the value of the next input bit, based on the values of previous bits (the context). The model output and the actual input signal are then combined and used by the entropy coder, which removes the redundancy from the signal. 3 Modeling and Prediction The well-known tree-based models that are applied for lossless compression of general binary data (see, e.g., [3,4]) need operating memory to store the information associated with the tree. The storage requirement is related to the size of t.he tree, which usually grows exponentially with its depth. As a consequence, there is a practical limit on the depth of the tree, or the context size. To be able to use a larger context (with the aim to obtain better compression), we apply a model that is limited to only exploit linear dependencies between the bits, i.e. linear prediction (see e.g. [5, 6]). As can be observed from Figure 2, which shows the power spectral density of a typical frame F of a binary audio excerpt, the spectrum is more or less flat for the higher frequencies, but not for the lower frequencies. 136 60r---~----r---~----r---~----r----.---, t :F(F) 50 40 30 4 8 12 16 20 24 28 32 --t f (x44.1 kHz) Figure 2: Power spectral density of a typical binary audio excerpt. In the binary audio signal Fi E {O,I}, 1 :::;i :::; L, a '0' corresponds to a decrement of the internal reference signalof the delta-sigma data converter that is used to obtain the binary representation and a '1' represents an increment of that reference signal [7J. For illustration purposes, we assume that the increment and decrement step sizes have been normalized to -1 and + 1and denote these by Y (i.e. Y; = 2Fi - 1). Figure 3 shows the encoder and decoder modules that remove the linear dependencies from the audio signal F. The signal Y is fed into the prediction filter z-lA(z), with A(z) = 'Ef:=1 Akz-(k-l), the coefficients, Ab of which are obtained with one of the well-known methods such as the autocorrelation or covariance methods (see, e.g., [5, 6]). The prediction coefficients are computed for each frame and sent to the decoder as side information, enabling it to perform the same prediction as the encoder. A prediction signal Z is generated from Y, using A: N z, = LAk' Yi-k, (1) k=1 where N is the prediction order, i is the sample number (reset to 1 at the beginning of each frame) and, by definition, lj = 0 for j < 1. The real-valued signal Z is then quantized in order to obtain a prediction for F, denoted by F: ft; = {O ~f z, < 0, and (2) 1 If z, ~ O. Finally, the prediction found from (2) is used to produce the residual error signal E = FEB F, where EB represents the exclusive or (XOR) operation. As a result of the prediction, the error signal E contains many '0' bits. As described in [8J, it is converted into a zero-run lengths description and transmitted to the decoder, using a Huffman code that is optimized for the frame and efficiently transmitted as 137 E F----r--------1 E !---------r-----F Figure 3: Linear prediction encoder (top) and decoder modules. Excerpt #frames 'fJmin 'fJavg Do 27000 1.52 1.87 Dl 23343 1.63 1.93 D2 26978 1.83 1.99 Table 1: For three stereo excerpts, the minimum compression ratio 'fJmin and the average compression ratio 'fJavg are listed for prediction order N = 100. side information. The decoder first determines the prediction coefficients and Huffman code from the side information, after which it is able to carry out the same prediction as the encoder and use the residual signal E to correct the incorrectly predicted bits, thus exactly reproducing the original binary audio signal F. In Table 1, the minimum and average compression ratios are listed for three stereo binary-audio excerpts. 4 Further improvement Although the method described in the previous section already outperforms the pre- viously used methods [8, 9], it can be significantly improved upon. The prediction modules in Figure 3 take a hard decision on the value of F; by quantizing the real- valued signal Zi. We have found that information about the reliability of the predicted 138 0.7 0.6 Figure 4: Probability Pi of a correct prediction as function of the filter output IZil, for a typical frame. value of F; (and thus the probability of a zero in the residual signal) can be derived from the magnitude of Zi' In order to obtain the reliability of the prediction, a table, p(.), is generated in the en- coder and transmitted to the decoder as side information. For each frame, the encoder generates the table by more or less finely quantizing IZil [from (1)] and counting the number of correctly (Pi = Fi) and incorrectly (Pi 1= Fi) predicted bits for each quan- tizer representation level/interval. The (conditional) probability of correct prediction for each interval is then set to the number of correctly predicted bits for the interval divided by the total number of times the value of IZil fell in this interval, as shown in Figure 4 for a typical data frame. As shown in Figure 5, the table, p(.), is used to supply, for each individual bit, the associated probability, Pi, that it was correctly predicted to an arithmetic coder ([3, 10]), a type of entropy coder that can optimally use the probability information. For each frame, the decoder first obtains the prediction filter, A(z), and the probability table, p(.), from the side information and then reproduces the original signal, F, as shown in Figure 5. For a typical frame, Figure 6 shows the compression ratio 'Tl as function of the prediction order N. Increasing the prediction order up to N ~ 100 gives an increase of the compression ratio 'Tl thanks to the better prediction. For higher prediction orders, the compression ratio decreases due to the overhead information associated with the transmission of the prediction coefficients. The dashed line in Figure 6 shows how the compression ratio 'Tl depends on the prediction order N if the overhead of sending the coefficients is ignored. 139 F------,-------------~ AC I----+-D Enc. ~------------_r----~F AC D-----+I Dec. Figure 5: Lossless encoder (top) and decoder using linear prediction and arithmetic coding (AC). 1.4 1.2 '0 50 100 150 200 250 300 350 400 450 500 -+N Figure 6: For a typical frame, the compression ratio 'Tl is given as function of the prediction order N (solid line). If the overhead of transmitting the filter coefficients is ignored, a higher compression ratio is obtained (dashed line). 140 1400 t #(ry) 1200 1000 I 800 600 I I; 400 ··t j' J j: ... ' .. ~..!.; ..... 200 ; : i 0 1.9 2.' 2.2 2.3 2.4 2.S 2.S 2.7 2.8 2.9 --try Figure 7: Histograms for compression ratio TJ (per frame), for excerpts Do, Dl, and D2' for fixed order N = 100 prediction. Excerpt #frames Tlmin. TJavg Do 27000 1.90 2.30 Dl 23343 1.93 2.47 D2 26978 2.24 2.47 . Table 2: For excerpts Do, Db and D2' the minimum compression ratio TJmin and the average compression ratio TJavg are listed for fixed prediction order N = 100. Figure 7 shows the histograms for the compression ratios per frame for the same three stereo binary-audio excerpts that were used before, for a prediction order of N = 100. In Table 2, the minimum and average compression ratios are listed for each excerpt. Comparing these with the compression ratios listed in Table 1, it can be observed that both the minimum and average compression ratios have significantly improved (by 20% or more). 5 Concl usions We have presented a new lossless compression method that is tailored to binary audio signals. Based on a new linear model, which uses the output of a linear prediction filter to determine the probability of correct prediction, it obtains significantly higher com- pression ratios than the traditional method, in which the linear prediction and entropy coding operate independently. Furthermore, our method allows real-time hardware implementation, processing 2.8 Mbit/s (per audio channel). 141 References [1] A. Nishio, G. Ichimura, Y. Inazawa, N. Horikawa, and T. Suzuki, "Direct stream digital audio system," in lOOth AES Convention, (Copenhagen, Denmark), May. 11-14, 1996. Preprint 4163. [2] A. Nishio, M. Akune, G. Ichimura, Y. Ogura, and Y. Tsuchida, "A new CD mastering processing using direct stream digital," in JOlst AES Convention, (Los Angeles, CA), Nov. 8-11, 1996. Preprint 4393. [3] A. Moffat, R. Neal, and 1. H. Witten, "Arithmetic coding revisited," A CM Trans. In- formation Systems, 1998. To be published. [4] F. M. J. Willems, Y. M. Shtarkov, and T. J. Tjalkens, "The context-tree weighting method: Basic properties," IEEE Trans. Inform. Theory, vol. 41, pp. 653-664, May 1995. [5] N. S. Jayant and P. Noll, Digital Coding of Waveforms: Principles and Applications to Speech and Video. Englewood Cliffs, NJ: Prentice-Hall, 1984. [6] A. Gersho and R. M. Gray, Vector Quantization and Signal Compression. Boston, MA: Kluwcr Acad. Pub., 1992. [7] J. C. Candy and G. C. Temes, eds., Oversampling Delta-Sigma Data Converters: Theory, Design, and Simulation. New York: IEEE, 1992. [8] A. A. M. L. Bruekers, A. W. J. Oomen, R. J. van der Vleuten, and L. M. van de Kerkhof, "Lossless coding of I-bit audio signals," in 8th Japanese Regional AES Convention, (Tokyo, Japan), Jun. 25-27, 1997. [9] F. Bruekers, W. Oomen, R. van der Vleuten, and L. van de Kerkhof, "Improved lossless coding of I-bit audio signals," in l03rd AES Convention, (New York, NY), Sep. 26-29, 1997. Preprint 4563. [10] 1. H. Witten, R. M. Neal, and J. G. Cleary, "Arithmetic coding for data compression," Communications ACM, vol. 30, pp. 520-540, June 1987. 142 INFORMATION TRANSMISSION OVER STATIONARY CHANNELS WITH ADDITIVE NON-GAUSSIAN NOISE BY MEANS OF WEAK INPUT SIGNALS' Mark S. Pirisker-l , Vyacheslav V. Pr elov ", Edward C. van der Me ulen! Abstract - A stationary channel with an additive noise is considered. It is assumed that the input signal é, and the noise ( are independent discrete-time second order stationary processes obtained by means of a reversible linear trans- formation L from a stationary weakly regular process X and a seq1bence of i. i. d. random variables Z, respectively. Under several assuraptions on the properties of the linear transformation L and on the density [unctioii of the noise process, an asymptotic expression for the information rate I(Eé,; EÇ + Ç) as E --+ 0 is ob- tained. This qeneralizes the correspandinç results of [1,2} where ( was assuraed to be Caussian. 1. INTRODUCTION Let é, = {é,j} and ( = {Cj} he independent second-order stationary processes. Consider a stationary channel whose output signal T) = {11J} is equal to the sum j=O,±l, ... , (1) where E is some positive constant. The information rate in such a channel is defined as (2) where 1(';') is the mutual information, é,j' = ((,1, ... ,é,n), and (i' = ((1, ... ,en). In the case, where ç and (are Gaussian, an explicit formula [3, Theorem 10.2.1J for I( EÇ; 11) in terms of the spectral densities of the processes é, and ( is well known. If ç and ( are not Gaussian, the problem of the explicit calculation of I(Eé,; 11) is rather hard, in general. Therefore, it is of interest to investigate the asyruptotic behavior of I(Eé,; T)) as E --+ O. This case corresporids to a weak signal transmission over the channel in question. In [1,2Jthe asymptotic. behavior as E --+ 0 of !(fé,; T)) has been investigated in the case, where ( is a Caussian stationary process (the continuons-time case was * This work was supported in part by INTAS under Grant No. 94-469 anel in part by the Russian Fundamental Research Foundation under Grant No. 96-01-00884. t Institute for Inforrnation Transmission Problems of the RAS, Moscow, Russia. Department of Mathernaties. Katholieke Universiteit Leuven, Leuven, Belgium. 143 considered in [4, Lemma 2]). In this paper we present a generalization of this result to a certain class of non-Gaussian processes (, which can he obtained by means of a. reversible linear transformation from a sequence of i.i.d. random variables Z = {Zj}. The full paper [5], containing such a generalization together with the proof of the results, described below, will appear in Problems of Information Transmission. 2. PRELIMINARY RESULTS Consider first the simplest case, where both ~ = X = {Xj} and (= Z = {Zj} are sequences of i.i.cl. random variables. Then I(EX; EX + Z) = I(EXo; EXO + Zo), and the asymptotic expression for I(fXo; EXO + Zo) as E --+ 0 is given by Theorem 1 below. But before we state this theorem, recall that the quantity IS the Fisher information of Zo (or its probability density function p(:c)), provided p(x) and its derivative p'(:r;) exist and the integral converges. Theorem 1. Let Xo and Zo be random variables such that var Xo = cr2 < 00 and var Zo < 00. Suppose Zo has a bounded differentiable probability density function p(:r:) with finite Fisher infonnation .I = .1(Zo). Then, the following asymptotic expansion holds : (3) if at least one of the conditions (A) - (E) below is satisfied: (A) The range of the random variable Xo is bounded; (B) The random variable Xo has an infinitely divisible, in particular , Gaussian distribution: (C) The equalities 2 such that EIXla < ex) (6) and cp(x) sup < ex) x:lxl2:b Ixia for all b > o: (E) The random variable Xo satisfies condition (6), and the random variable Zo can be represented as the sum Z = U + W of two independent random variables U and a Gaussian W. This theorem, as was already mentioned, is proved in [5]. Here we only note that the assertion of the theorem under condition (A) was earlier proved in [6]. Note also that condition (5), entering as well in (4), is a well-known relation between the divergence and the Fisher information (see, e.g., [7, Ch. 1, Sec. 1]), which holds under rather general assumptions on the density function p( x), allowing one to use L'Hospital's rule to calculate the limit on the left-hand side of (5). Consider now a general case, where f, = {f,j} and ( = {(j} are rather arbitrary stationary processes. More precisely, throughout what follows we will suppose that processes f, and ( can be obtained by means of a reversible linear transformation L from a stationary process X = {Xj} and a sequence of i.i.d. random variables Z = {Zj}, respectively. Note that a linear transformation L is called reversible if there exists a linear transformation L -1 such that for any pair of stationary processes U and V the equality V = L-1U holds if U = LV. In the main theorem, which will be stated in the next section, we will suppose that (7) It seems to be rather surprising that although the linear transformation L is assumed to be reversible, one can not claim, in general, that equality (7) is correct. It is well known that (7) is fulfilled for the special case, where X, Z, f" and ( are sequences of i.i.el. random variables. Moreover, it is also known (see [3, Ch. 2, §6]) that (7) is correct if all processes considered take a finite number of values. In the next assertion we formulate rather general sufficient conditioris for the validity of (7). But beforehand, recall that the quantity ~ {;. 1 0 I(Uj V) = lim -1(U;'; VIU_oo) n-+OCl n is one of the variants of definition of the inforrnation rate for the random processes U = {Uj} and V = {Vj}. It is known [3, Ch. 2, §7] that for stationary processes feu; V) always exists and coincides with I(U1 j vIU~(X»). Theorem 2. For the stationary processes é" (, X, anel Z described above the follow- ing assertions hold: 1. Suppose that for any f > 0 145 (i) led,; EÇ + () is defined, (ii) l(Eç; EÇ + () = Ï(fÇ; fÇ + (), (iii) I(EXo; EXO + Zo) < 00, then equality (7) is correct; II. Suppose that I«(~oo; (d < 00. Then the information rate l(fç; fÇ + () IS defined for any E > 0, and equality (ii) is fulfilled provided l(fç; fÇ + () is finite. Moreover, equality (7) also holds under the additional assumption (iii). In particular, if L is a linear transformation of a moving summation of the form 00 00 00 (j = L CiZj-i, çj = L CiXj-i, ~2 LCi < 00, )=0,±1, ... , i=O ;=0 i=O then I«(f_!_oo; (d < 00 is fulfilled if Zl has a bounded probability density function. Some sufficient conditions for the validity of (i) and (ii) can be found in [3, Ch. 2, §7]. In particular, assertion II of Theorem 2 uses a part of them. 3. ASYMPTOTICS OF THE INFORMATION RATE Before the main result can be formulated, we need to recall a few definitions. A stoelrastic process U = {Uj} is called regular if the IT-algebra ntF( -00, t) is trivial (that is, it contains only the events which have probability 0 or 1), where :F( -00, t) is the minimal IT-algebra which contains all the events {Uil E El,"" Ujn E E,,} for any positive integers n, any integers )1, ... ,)" E (-oo,t), and any Borel sets El .... , En of real numbers. A stationary stoelrastic process U = {Uj} is called weakly regular [3, Ch. 2, §5] if any nontrivial quantized stoelrastic process U" = {UI} with a finite number of values is regular. It is possible to show that any stationary process U = {Uj} is weakly regular if and only if any nontrivial (different from a constant] subordinate (see [3, Ch. 2, §5]) stationary process U' = {U;}, stationarily connected with U, with a finite number of values is regular. Therefore, the class of weakly regular processes coincides with the class of entropy-regular processes [8]. Among the important properties of weakly regular processes the following ones should be notecl. Any regular stationary process is weakly regular. If U = {Uj} is a weakly regular stationary process then any nontrivial subordinate stationary and stationarily connected with U process is also weakly regular. In other words. any (nontrivial) transformation (not only linear) of a weakly regular process leads again to a weakly regular process. Every stationary weakly regular process has a spectral density and any Gaussian stationary process having a spectral density is weakly regular. Theorem 3. Let ç = {çj} and ( = {(j} be independent stationary second-order processes such that ç = LX and ( = LZ, where L is a reversible linear transformation , 146 X = {Xj} is a stationary weakly regular process, and Z = {Zj} is a sequence ofi.i.d. random variables independent of X. Suppose also that Zo has a differentiable clensi ty function p( x) such that p( x) and p' (x) are bounded, anel the Fisher information J = J(Zo) is finite. If the infonnation rate left,; ft, + () is defined for all e > ° sufficiently small and equalities (3) and (7) are fulfilled, then - 1 2? 2 I(tE,; tE, + () = -;;/!7 e: + O(f), e -+ 0. Note that the main conditions (3) and (7) of this theorem appeared in connection with non-Caussianness of the process C. It is net difficult to verify that both of them are satisfied if C is a regular Gaussian process. Thus, the result of [1,2] concerning the asymptotic expansion of l( d,; fÇ + () for a Gaussian C are some consequences of the results described here. The condition of weak regularity for X (anel, hence, for E, also) seems to be one of the weakest restrictious on the class of processes f, under which the assertion of Theorem 3 holds. In the proof of this theorem the following lemma, having an independent interest, is essentially usecl. Lemma. Let Zo anel Wo be independent random variables such that Zo has a differ- entiable density function p( x) and, moreover, p' (x) is bounded, the Fisher infonnation J(Zol is finite, anel Wo has a Gaussian distribution with parameters (0,1). Then lim J(Zo ,--+0 + tWo) = J(Zo). REFERENCES [1] M.S. Pi nsker, V.V. Prelov, anel S. Verdu, "Sensitivity of channel capacity," IEEE Trans. Inf. Theory, 41, No. 6, 1877-1888 (1995). [2] M.S. Pinsker and V.V. Prelov, "Infonnation rates in stationary Caussian chan- nels in weak signal transmission ," Probl. Peredachi Inj., 30, No. 4,3-11 (1994). [3] M.S. Pinsker, Information and Information Stability of Random Variables and Processes, Holden-Day, Sail Francisco (1964). [4] M.S. Pinsker, V.V. Prelov, anel S. Verdu, "Sensitivity of the e-entropy of sta- tionary continuous-time Gaussian processes," Probl. Peredachi Inf., 33, No. 2, 3-25 (1997). [5] M.S. Pinsker, V.V. Prelov, and E.C. van der Meulen, "Infonnation rates in certain stationary non-Gaussian channels in weak signal transmission" , to appear in Probl. Peredachi Inf.. [6] LA. Ibragimov and R.Z. Khasminsky, "Weak signal transmission in a mernoryless channel," Probl. Peredachi Inf., 8, No. 4,28-39 (1972). [7] L Csiszár and J. Kórner , Information Theory: Coding Theorems for Discrete Memcrulees Systems, Akademiai Kiaclo, Budapest (1981). [8] M.S. Pinsker and V.V. Prelov, "On error-free filtering of certain stationary pro- cesses," Uspekhi Math. Nauk, 52, No. 2, 109-118 (1977). 147 Testing composite hypotheses applied to AR order estimation; the Akaike-criterion revised Rudy Moddemeijer * Abstract Akaike 's criterion is used to test composite hypotheses; for example to determine the order of AR models. A modification is presented to test composite hypotheses given an upper-bound on the error of the first kind (Neyman-Pearson). The presented theory is applied to AR order estimation and verified by simulations. The experimental results are so good that we consider the AR order estimation problem as solved. 1 Introduction This paper is a shortened version of the full paper submitted for publication [1]. We test composite hypotheses [2, pp. 86-96], hypotheses specified except for a few parameters to be estimated, to select the Auto-Regressive (AR) model order. This is a difficult estimation problem because lower order models are contained in higher order models. Especially in the critical test, e.g. if both models are nearly equally likely, a reliable test is needed. The Akaike criterion [3, 4], a heuristic which is not convincingly motivated, integrates the method of Maximum Likelihood (ML) to estimate parameters and the likelihood-ratio test to discriminate the hypotheses. The Akaike criterion is widely accepted to determine the AR order. Akaike's concept will be modified and extended. Simulation show that the presented method is correct and behaves better in critical tests. Hocking [5] showed that two completely different definitions of the best model order can be given. The usualone, which we will use, applies to the overall fit of the model and leads to selection criteria like the Akaike criterion. The other order is applicable to situations where the estimated AR parameters themselves are important because they are used as an intermediate to compute quantities like harmonic frequencies, spectra, Moving Average (MA) or ARMA model parameters. Broersen [6] showed that the best order for those applications will be higher than the best order for the overall fit. Steinberg and Franke [7] reviewed some of these criteria with respect to AR Model fitting applied to EEG time series. Broersen [8] recently reviewed a large number of criteria empha- sizing the behavior in case of finite samples. Broersen considers samples to be finite if the maximum candidate order for the model is greater than N /10, where N denotes the sample size. Assume the Ith order AR model: (1) "University of Groningen, Department of Computing Science, P.O. Box 800, NL-9700 AV Gronin- gen, The Netherlands, tel. +31/50-3633940, fax. +31/50-3633800, email: rudy@cs.rug.nl 149 N I À-O À=" À-I I À=O À=" À = 1 10 0 1.40792 1.45792 1.50792 1 1.4683 1.5683 1.6683 1 1.32074 1.42074 1.52074 2 1.2619 1.4119 1.5619 2 1.26383 1.41383 1.56383 3 1.2034 1.4034 1.6034 3 1.20595 1.40595 1.60595 4 1.1332 1.3832 1.6332 100 0 1.45986 1.46486 1.46986 1 1.5527 1.5627 1.5727 1 1.40902 1.41902 1.42902 2 1.4041 1.4191 1.4341 2 1.40411 1.41911 1.43411 3 1.3992 1.4192 1.4392 3 1.39915 1.41915 1.43915 4 1.3941 1.4191 1.4441 1000 0 1.46561 1.46611 1.46661 1 1.5619 1.5629 1.5639 1 1.41805 1.41905 1.42005 2 1.4176 1.4191 1.4206 2 1.41754 1.41904 1.42054 3 1.4171 1.4191 1.4211 3 1.41704 1.41904 1.42104 4 1.4166 1.4191 1.4216 Table 1: The estimated mean of the criterion, based on 10,000 estimates of AIC(>') in case of ~n = 0.3 ~n-l + fn (left-hand side) and ~n = 0.75 ~n-l - 0.50 ~n-2 + fn (right-hand side). ! The>. = choice leads to an approximately consistent criterion which also approximates the entropy 1.41894. where the noise f is white and normally distributed with zero mean and unit variance, so the conditional probability density function (pdf) is: (2) where p = (al, a2,·.·, 0.1, a) consists of dimp = 1+1 independently adjustable parameters. Estimate the best generation model of 2£, e.g. the optimal hypotheses HI, given a sequence of N observations Xn. To show the objections against Akaike's criterion some simulations are performed. In case of a 1st order AR model, hypothesis HI is sufficient, any hypothesis Hi with i ~ 1 will also match! So these models should therefore be equally likely and should have equal values of the Akaike criterion. To obtain high accuracy estimates of the mean of Akaike's criterion (AIC) divided by 2N, AIC(>'), is estimated from 10,000 sequences of N observations (see table 1). The division of the criterion by 2N makes it easier to compare the results with the entropy of f (1.41894). The optimal hypothesis is considered to be the hypothesis having a minimum: AIC(>') = -Ê{L(p)} + >.di~P (3) and where Ê {l(p)} is the Maximum Average Log Likelihood (MALL), e.~. the Alleragp. T,og Likelihood (ALL) at the ML parameter estimate, and>' is a constant. NE (Hp)} equals the well-known log likelihood function of ML-method. Different values for>. are used: no Akaike correction (À = 0), Bhansali (>. = ~) [9], Akaike (>. = 1) [3], Broersen (>. = ~) [8] and Áström (>. = 2) [10]. AIC(!) is a good statistic to approximates the entropy and seems to be consistent. This was already theoretically derived by Miller [Ll.] and confirmed by Moddemeijer [12]. Inter- preting À di~ P as a correction for the N dependent bias, Bhansali's choice is to be preferred. Any choice of À < ~ will lead to selecting the hypothesis with a maximum number parame- ters. The choice of À > ! selects the hypothesis which sufficiently models the process with a minimum number parameters. The problem of the variance of the criterion is overlooked. This suggests there exist better criteria containing two components: a bias correction and a variance evaluation. 150 2 Some theory Because all measurable aspects of the hypotheses are reflected by the pdf, the selection of a hypothesis can be done by selecting one pdf identified by the parameter vector p. Assume g; is a random variable and assume N observations Xn distributed according to the a priori unknown pdf g(x). We are going to model g(x) by f(xlp). Using a finite number of observations we select the optimal pdf f(xlp') using likelihood of f(xlp) given N observations Xl, X2, ... , XN· This likelihood tends to decrease with N. To overcome this problem we use the geometric mean instead: N Loo(p) lim N N-+oo IT f(xnlp) (4) n=l The pdf for which the criterion reaches a maximum is considered to be the optimal pdf: f(xnlp'). It is convenient to search for the maximum of loo(p) instead: N loo(p) lim N-+oo -tt L logf(xnlp) (5) n=l E{logf(;£lp)} where loo(p) is the Mean Log Likelihood (MLL). The MLL measures the acceptability of f(xlp) as an approximation of g(x). Due to the information inequality the MLL is bounded by the neg-entropy -R {;£}: E{logf(;£lp)} s E{logg(;~J} = -Rh} (6) Equality holds if and only if f(xlp') = g(x). It is doubtful whether g(x) is an element of the f(xlp)'s considered. If not, f(xlp') is due to insufficient modeling Riepresentaiioiû-biased. We introduce a new concept: the stochastic single obseruation loqaritlimic likelihood Hp) = log f(;£lp) of the parameter vector p, which is merely the value of log f(xlp) selected by ;£; we will use the term stochastic log likelihood instead. This stochastic log likelihood is a random function with a mean (function), the MLL-function, a variance, a pdf and so on. All techniques to determine the properties of random variables can be applied to these stochast ie log likelihoods. Unfortunately the MLL-function is a priori unknown and has to be estimated by the ALL-function: N -tt L logf(xnlp) (7) n=l We aim to estimate the Maximum of the Mean Log Likelihood function (MMLL): E U(p')}. To estimate this MMLL we can distinguish three different statistics. 1. The ALL-function is an unbiased statistic: (8) 2. The ALL-function at the ML-estimate of the parameter vector (MALL): is an N-biased statistic: (9) We have approximated this N-bias by error propagation. 151 Akaike, N - 100 1%, N - 100 20%, N = 100 I J 0 1 2 3 I J 0 1 2 3 I J 0 1 2 3 0 94.0 88.8 82.6 0 67.5 56.8 49.0 0 95.2 92.1 88.9 1 6.0 15.3 13.4 1 0.0 0.9 1.0 1 0.3 19.4 19.7 2 11.2 84.7 15.8 2 0.0 0.8 0.9 2 0.4 20.4 20.0 3 17.4 86.6 84.2 3 0.0 1.1 1.1 3 0.6 20.5 20.0 Akaike, N = 1000 1%, N = 1000 20%, N = 1000 I J 0 1 2 3 I J 0 1 2 3 I J 0 1 2 3 0 100 100 100 0 100 100 100 0 100 100 100 1 0.0 16.5 13.5 1 0.0 1.0 1.0 1 0.0 20.4 20.6 2 0.0 83.5 15.6 2 0.0 1.2 1.0 2 0.0 19.4 19.9 3 0.0 86.5 84.4 3 0.0 1.0 1.1 3 0.0 19.3 19.8 Table 2: The estimated probability (percentage) on selection of the higher (above the diag- onal J = J) and lower (beneath the diagonal) order model in case of testing the Jth against the Jlh order AR model using the criterion of Akaike and our method for ex = 1% or 20% in case of the process ~n = 0.3 ~n-l + £n. The percentages do not at up to 100%, in the remaining cases the models are considered to be indistinguishable. The percentages deviate severely from ex in case of insufficient modeling of the 1st order process by a oth order model. 3. The MLL-function at the ML-estimate ofthe parameter vector is also an N-biased statistic: (10) Sakamoto calls the left-hand side of (10) the mean expected log likelihood [4). Akaike uses (10) as a criterion and (9) as the statistic to estimate this criterion [3). The difference equals the Akaike correction. In (10) Akaike takes the mean before and after the substitution p = Ê: It is curious that by this substituting the method of model selection is implicitly part of the criterion to select the model. We can conclude that Akaike's correction is correctly computed, but his criterion is doubtful. The interpretation of his criterion as a bias correction with respect to E {I(p')} is wrong. 3 Testing hypotheses 3.1 Testing two hypotheses with a priori preference Assume two hypotheses: H, and HJ where J < J. We want to keep the models as simple as possible, so we select H, unless HJ is significantly more likely. The essential question is: what do we mean by significantly more likely? To construct a likelihood-ratio test we define the siochastic log likelihood-ratio: 61 [j = LJ - Lr· If the MLL-ratio, e.g. the mean of the 61IJ, is positive HJ is more likely, otherwise Hr is more likely. We use the ALL-ratio Ê {61 IJ} as a test statistic. Due to the central limit theorem the distribution of this statistic converges to a normal distribution. We split the range of the outcomes of this statistic into two intervals: Ê {61 r J} < Tlhigh accept Hl Ê { 61 r J > TJhigh accept H J where TJhigh is a positive constant; the threshold. Making 'fJhigh larger means that we want to be more certain before rejecting HJ. 152 2N1)low 2N1)high Cl' 1 2 3 1 2 3 0.5 % 0.000 0.010 0.072 7.879 10.597 12.838 1.0 % 0.000 0.020 0.115 6.635 9.210 11.345 2.0 % 0.001 0.040 0.185 5.412 7.824 9.837 5.0 % 0.004 0.103 0.352 3.841 5.991 7.813 10.0 % 0.016 0.211 0.584 2.706 4.605 6.251 20.0 % 0.064 0.446 1.005 1.642 3.219 4.642 Table 3: The threshold Tltoio respectively TJhigh as a function of the probability on an error Cl! in case of a chi-squared distribution with J - I = 1, 2 and 3 degrees of freedom. We choose a threshold such that the probability of erroneously selecting H J instead of HI, an error of the first kind, is smaller than cr (Neyman-Pearson). The MLL-ratio is unknown, though it is positive if the correct decision is to accept H J. For the critical test where the MLL-ratio approaches zero we compute 1)high from Cl! and (7. In this case the correct hypothesis is selected by the preference. In non-critical tests the probability of erroneously selecting HJ will be smaller then Cl' because the MLL-ratio differs significantly from zero. 3.2 Testing two hypotheses without a priori preference To test without a priori preference, the result should be independent of exchanging the roles of the hypotheses HI and Hr Ê {6II J < 1)low accept HI 1)low < Ê { 61 IJ } < 1)high indistinguishable 1)high < Ê {61 IJ } accept HJ We can make the error probability infinitely small by accepting a large probability of no decision at expense of a decreased probability on a correct decision. 3.3 Testing two composite hypotheses We test composite hypotheses as if they were ordinary hypotheses; e.g. if Pr and pj were a priori known. Substituting the ML-estimates PI and PJ instead, the MALL is a biased estimate of the MMLL. This bias disturbs our log likelihood-ratio test. If the MMLL-ratio of the two hypotheses is large, the models are essentially different, the MALL-ratio has approximately a normal distribution. Nevertheless if this ratio approaches zero or, which is the case in a critical test, 2NÊ { 61 I J (p I, PJ)} seems to be chi-squared distributed with dimjij - dim jij = J - I degrees of freedom. So: E {E {61 IJ(PI, PJ)} } N-BIAS {E {6IIJ(PI, PJ)}} J-/ 2N (11) VAR {E {6I (PI, j-I IJ PJ)}} 2fT! The chi-square approximation in the critical test is confirmed by the excellent correspondence of the simulation results with the theory. The MALL-ratio is in the non-critical case, the effect ofthe parameter estimation is negligible, normally distributed and converges for N -+ 00 with a 0 {N-1/2} standard deviation to the MMLL-ratio. In the critical case the MALL-ratio 153 N 0 1 2 >3 0 1 2 >3 Akaike 10 69.2 25.2 4.7 1.0 12.8 71.4 12.7 3.1 1% 96.2 3.8 0.0 0.0 40.1 58.9 1.0 0.0 5% 86.0 13.1 0.9 0.0 23.0 71.6 5.0 0.5 20% 63.8 27.9 6.4 1.9 10.7 69.2 15.2 4.9 Akaike 100 6.0 79.7 12.1 2.2 0.0 68.1 21.4 10.5 1% 32.5 67.0 0.5 0.0 0.0 99.1 0.9 0.0 5% 14.9 81.0 3.8 0.3 0.0 95.2 4.5 0.2 20% 4.9 76.8 H.7 3,7 0.0 7!J.6 16.5 4.0 Akaike 1000 0.0 83.5 14.0 2.5 0.0 84.4 13.0 2.6 1% 0.0 99.0 1.0 0.0 0.0 99.0 1.0 0.0 5% 0.0 94.9 4.8 0.3 0.0 95.0 4.7 0.3 20% 0.0 79.6 16.6 3.8 0.0 80.3 15.7 4.0 Table 4: The experimentally determined probability on selecting an [th order AR model, given N samples of the AR processes x., = 0.3 :1£n-l +£n (left-hand side) and x., = -0.8 :1£n-l + £n (right-hand side). The order is estimated according to Akaike's method and our method as a function Q. Notice the excellent correspondence between the chosen and the observed probability of selecting a to high order. is chi-squared distributed and converges with a 0 {N-1} standard deviation to zero. The differences in the distribution of the MALL-ratios between the critical and the non-critical test have consequences for the choice of T/high' Now T/high and îliou: should be computed from N, Q and the difference I - J in the number of degrees of freedom (see table 3 ). 4 Simulations We compare t.he results using Akaike's and our method by the simulations in table 2. Akaike's criterion has a clear preference for the hypothesis with the smaller number of independently adjustable parameters. We would expect that for increasing N the probability on selecting a too high order would decrease. Given the chi-square distribution and J - I = 1 the convergence to pr{E{61[J(P['PJ)} > J;i} = 15.7% is explained. In case of testing two composite hypotheses with a priori preference for the hypothesis with the smallest number of independently adjustable parameters we see for all three values of the probability on an error of the first kind Q satisfactory results. Notice that T/low and TJhigh converges like N-1 to keep Q constant. 5 Order estimation We test an [th order AR model against an (I + 1)th order AR model, with a priori preference for the [th order, for increasing I till the [th order model is preferred above the (I + 1)th order model. The last value of I is considered to be the AR order. Usually all models up to a certain a priori chosen candidate order are tested simult.aneously using the Akaike criterion. Using this strategy the result depends on the highest candidate order. Our method of t.esting, even using Akaike's criterion, performs significantly better [13] and is independent of the highest candidate order. A simple strategy for simultaneously testing three or more composite hypotheses can not be constructed because the threshold for 154 N 0 1 2 3 >4 0 1 2 3 >4 Akaike 10 35.6 53.4 90 1.6 0.4 37.0 22.5 32.8 5.8 2.0 1% 76.1 23.6 0.3 0.0 0.0 92.0 7.0 1.0 0.0 0.0 5% 55.6 41.5 2.7 0.2 0.0 69.2 18.9 10.9 0.9 0.1 20% 31.2 53.9 11.4 2.6 0.9 30.1 21.4 37.0 8.1 3.6 Akaike 100 0.0 81.5 15.8 2.3 0.5 0.0 0.0 84.8 12.9 2.3 1% 0.1 98.4 1.5 0.0 0.0 0.0 0.4 98.7 0.9 0.0 5% 0.0 93.4 6.3 0.3 0.0 0.0 0.1 95.2 4.5 0.2 20% 0.0 77.1 18.5 35 1.0 0.0 0.0 80.3 16.0 3.6 Akaike 1000 0.0 45.0 46.3 7.4 1.4 0.0 0.0 84.1 13.5 2.5 1% 0.0 84.2 15.7 0.2 0.0 0.0 0.0 99.0 1.0 0.0 5% 0.0 65.7 32.6 1.7 0.1 0.0 0.0 94.9 4.9 0.2 20% 0.0 39.6 48.0 9.9 2.6 0.0 0.0 79.8 16.6 3.7 Table 5: Like table 4 for the AR processes ~n = 0.55 ~n-l + 0.05 ~n-2 + .sn (left-hand side) and ~n = 0.75 ~n-l - 0.50 ~n-2 +.sn (right-hand side). a difference of two degrees of freedom is less then two times thresholds for a difference of one degree of freedom (see table 3). The results using our criterion for different values of Cl! is compared with the results using Akaike's criterion (see table 4 and 5). The observed probability ofselecting a too high order model is for large N mostly in agreement with the chosen value of o. Only if the difference in MMLL is small, both models are almost indistinguishable, we observe for small N that a too low model order is selected. Comparing our method with Akaike's method is difficult because we have a tuning pa- rameter Cl!. Our method performs significantly better, e.g. there is a higher probability of selecting the correct order, if Cl! = 1% and N = 1000 except for the cases in which the models are more or less indistinguishable. Our method seems to be consistent because the correct order is as predicted estimated in 100% - Cl! of the cases. 6 Conclusions The correspondence between the theory and the simulations is so good that we consider the AR parameter estimation problem as solved. The distribution of the test statistic, the MALL-ratio, seems to be chi-squared; this should be derived theoretically. Now we can focus the research on questions related to risk management in AR order estimation like: which probability on selecting a too high or too low AR order is acceptable for our application or how large should the sample size N be for a good discrimination between two adjacent AR orders? Even minimizing cost function related to the AR order is now possible. Akaike [3], Bhansali [9], Broersen [8] and Áström [10] were all right in selecting a criterion with À 2: ~. The whole consistency discussion about Akaike's criterion should be divided into three separate statements: a) The criterion is only consistent for À = ~. Choosing À = ~ will give poor results; some positive correction is necessary to deal with the variance of the criterion. b) The probability on selecting a higher order model is and has always been consistent and depends on À: Bhansali 31.7% (À = ~), Akaike 15.7% (À = 1) and Áström 4.6% (À = 2). This has already been noticed by Broersen [14]. c) The selected order becomes consistent if Cl! decreases with increasing sample size N. Broersen [8] distinguishes finite samples ff < L, where L is the maximum candidate order, as a special case. Within the scope of our criterion there is no need to distinguish 155 between finite and infinite samples. In AR order estimation you have two risks: the risk of selecting a too high order and the risk that the (I - 1)th and Ith order model becomes indistinguishable. Both risks depend on the same "'high, Decreasing the risk of selecting a too high order automatically results in increasing the risk of indistinguishable models. Broersen concluded [8J that the choice À = 1 reduces the probability of under-fit at the cost of over-fit. From our point of view is the indistinguishability of models given a certain sample size N the problem and not under- fitting. The problem of indistinguishable models mainly occurs for small N and small Q. This means that for small N in our risk management we have to accept a higher risk on selecting a too high to avoid indistinguishable models. The problem of AR order selection is closely related to the problem of entropy estimation. For a good entropy estimate a sufficient AR model order is needed. References [1] R. Moddemeijer, "Testing composite hypotheses applied to ar order estimation; the Akaike- criterion revised," Submitted for publication in IEEE Transactions on Signal Processing, 1997. [2] H.L. van Trees, Detection, estimation, and modulation theory part I, John Wiley & Sons, New York, 1968. [3] H. Akaike, "Information theory and an extension of the maximum likelihood principle," in Proceedings 2nd International Symposium on Information Theory, P. N. Petrov and F. Csaki, Eds., pp. 267-281. Akademia Kiado, Budapest, 1973. [4] Y. Sakamoto, Akaike information criterion statistics, Reidel Publ. Cornp., Dordrecht, 1986. [5J R.R. Hocking, "The analysis and selection of variables in linear regression," Biometrics, \"01. 32, pp. 1-49, 1976. [6] P.M.T. Broersen, "On orders for long ar models for arma estimation," in The First European Conference on Signal Analysis and Prediction, Prague, Czech Republic, June 24-27 1997. [7] H.W. Steinberg et. al., "Fitting autoregressive models to eeg time series: An emperical comporison of estimates of the order," IEEE Transactions on Acoustics, Speech, and Signal Processing, vol. 33, no. 1, pp. 143-150,1985. [8] P.M.T. Broersen, "The abc of autoregressive order selection criteria," in llth IFAC Symposium on System Identification, SYSID '97, Kitakyushu, Fukuoka, Japan, July 8-ll 1997, vol. 1, pp. 231-236, Society of Instrument and Control Engineers (SICE). [9] R.J. Bhansali, "A monte carlo comparison of the regression method and the spectral methods of regression," Journal American Statistical Association, vol. 68, no. 343, pp. 621-625, 1973. [10] K.J. Áström, "Maximum likelihood and prediction error methods," Automatica, vol. 16, pp. 551-574, 1980. [11] G.A. Miller, "Note on the bias of information estimates," in Information Theory in Psychology, H. QuastIer, Ed., pp. 94-100. Glencoe, Ill., 1955. [12] R.. Moddemeijer, "On estimation of entropy and mutual information of continuous distri- butions," Signal Processing, vol. 16, no. 3, pp. 233-246, 1989. [13J R.. Moddemeijer, "Application of information criteria to ar order estimation," Submitted for publication in IEEE Transactions on Automatic Control, 1998. [14] P.lvI.T. Broersen, "Selecting the order of autoregressive models from small samples," IEEE Transactioris on Acoustics, Speech, and Signal Processing, vol. 33, no. 4, pp. 874-879, 1985. 156 Neuron based penalty function classifiers J. Levendovszky+, A. Meszaros+, E.C. van der Meulen'' Abstract Binary classification of patterns is often perceived as a dichotomy over a pattern space. Neural networks have long since been used to implement pattern classifiers because of their good approximation capabilities [7, 8, 9]. Good classification performance was achieved after a proper training period, during which the network minimized the classification error. The error function (or performance index) was usually defined as a quadratic matching criterion between the desired output and network output. Unfortunately, traditionallearning algorithms deployed to minimize the quadratic error allow both kind misclassifications (i.e. the network output classifies Class 1 whereas the input pattern falls in Class 2, or vica versa). Therefore the approach, which is set to approximate the underlying separation surface and thus unable to distinguish between the two types of misclassifications, can only be applied to systems where the costs of errors are taken to be uniform. In practice, however, there are a geat number of systems which needs classification with "weighted errors", meaning that the costs associated with the different types of misclassifications can significantly differ from each other. For example, the cost of the "first order error", associated with a kind of system break-down, is much higher then the cost of the "second order error", related to a little loss in performance. As a result, the paper is concerned with proposing alternative learning algorithms which are able to distinguish between the two types of errors and avoid first order misclassifications. The problem will be investigated with special regard to the Call Admission Control function of ATM networks, where strong differentiation between first and second order error is needed. Based on the developed algorithms one can implement a fast, neural based CAC in multi-access systems. 1 Introduction CAC is implemented in a multi-access system (e.g. in ATM) to preserve a Quality of Service (QoS) level by accepting or rejecting users [1,2, ?]. The role of this function is to control the number of users which are in the process of accessing the system, in order to keep the probability of overload (which is usually termed as cellloss probability) under a certain threshold. QoS is basically used here to identify the cellloss probability or other performance measures of interest (e.g. mean cell delay, average cell jitter ... etc.). As a result, CAC can be defined as a pattern classification over the space including all traffic configurations. Each traffic configuration is labelled either as Class 1 (Accept) lTechnical University of Budapest, Department of Telecommunication, RTD USA BME Labera- tories, Stoczek u. 2. Budapest, Hungary, H-llll 2Katholieke Universiteit Leuven, Department of Mathematics, Celestijnenlaan 200B, Leuven (Hev- erlee), B-300l 157 if the QoS holds or Class 2 (Reject) if it does not. One can formulate the problem quantitatively as follows: There are users accessing the system and presentinga load by their emitted traffic. The random traffic of an individual user is denoted by X (e.g., X is the number of cells emitted in a time interval) and characterized by the mean m and peak h rate of X. Assuming bursty traffic, X is supposed to be Bernoulli r.v. with distribution P(X = 0) = 1-m/h and P(X = h) = m/h. Ifthere are i = 1, .. , M different traffic classes (e.g. voice, video, data ...etc.) then each class has its own standard mean mi and peak hi parameters. A traffic configuration is specified by a state vector n = (nI, ... , ni, ... , nM), the ith component of which refers to the number of users being present from the ith class. A traffic state vector n is accepted if P (L:;':;o a.X; > C) < exp( -Î), where C is a system capacity and Î is often called as the required level of QoS. In this way, CAC can be interpreted as a dichotomy over the traffic state space, where from an observation n one has to recognize whether the observed pattern is form Class 1 (Accept) ór from Class 2 (Reject ). The associated set separation is depicted by the following figure: For numerical tractability instead of the labels Accept, Reject we Figure 1: Pattern recognition as a dichotomy rather use the class identifiers {1, O}. The task we embark on solving in this paper is how to implement this dichotomy with a properly trained neural network, taking into account the different weights of errors. In the proposed solution a neural network classifier will be introduced to perform the associated classification. Then we introduce different learning algorithms, such as directed gradient and penalty function method, in order to cope with the weighted errors. 2 Neural network classifiers The input-output mapping of a two layer neural network (depicted in Figure 2) is given by the following formula: (1) where ip is usually a monoton increasing and differentiable function, e.g. t.p(z) = I+ex~(-az. For notational simplicity, the mapping given by (1) will be referred to as y = Net(n,w), where the vector w = (aJ, ... .o c.b«, ... ,hM) denotes the free parameters of the network usually called as weights. It is well known from the corresponding literature [6, 8J that neural networks can perform the role of universal approximators 158 Figure 2: A two-layer neural network in LP, meaning that Vf(x) ELP, e < 0 :3 w: 11 f(x) - Net(x, w) 11< e, This fact can prompt us to use a two layer neural network to carry out the classification task related to CAC. It is worth mentioning that when we apply a neural classifier given in the form of (1) then hard nonlinearities are to be used (at least at the output) to obtain a definit 1 if Accept and 0 if Reject. One way to achieve this is to place a comparator at the output which realizes the following mapping: 0 if x < 0.5 comp(x) = { 1 if x> 0.5 The underlying question of neural classifiers is how to set the weights w of the cor- responding network in order to achieve minimal classification error. One way to approach the problem is the so-called polygonial approximation [4, 5, 10]. In this case we exploit the fact that the dichotomy is carried out by a differentiable sep- aration surface r(nl' ..., nM) = 0.5, as follows: if r(nl, ..., nM) > 0.5 then Accept otherwise Reject. In the case of CAC I'( nI, ... , nM) is a convex function. Based on the knowledge of the separation surface one can set weights of the neural classi- fiers by approximating it by a polygon. For example the lth neuron in the first layer y(lth neuron in the 1st layer) = sign {L;~l bljnj} yields a set separation with a linear hy- perplane. The polygonial approximation can then be implemented by performing a set separations with L number of linear hyperplanes in the first layer and making a union of the corresponding linear hyperplanes by the single neuron in the second layer. This approximation is indicated by Figure 3. Figure 3: Polygon approximation of the separation surface The number of neuron L in the first layer depends on the required level of ap- proximation error. Note that in this case the so-called soft nonlinearity ip(z) must be replaced with a hard nonlinearity represented by the sign function to obtain separa- tions by linear hyperplanes. Unfortunately, setting the weights with this method needs 159 the a priori knowledge of the separation surface I'( nl, ... , nM) = 0.5 which may not be available. Therefore, we investigate the method of learning from examples. In this case it is assumed that a set of training samples is given in the form of Here dk E {O, I} represent the correct classification output for the corresponding input vector nk. These training samples can be available from some earlier observations made on the system (e.g. in ATM networks the network operator has a long record of traffic configurations resulting in congestion). When learning from examples, we restrict ourselves to applying only soft nonlinearities as threshold functions in the network to ensure the differentiability of a properly defined error function. In the traditional neural network theory, the error function is usually chosen to be quadratic given as K Wopt: mJn ;( L (d k - Net(nk' W))2 . (2) k,.-,l Based on thiserror function, the minimization can be carried out by a gradient descend method (3) where E(Wk) = -if r:f=l (dk - Net(n,,, W))2 and {j is a constant used to accelerate the convergence. In spite of their great popularity, gradient descent type algorithms, like Back Propagation learning, suffer from two major disadvantages: 1. they can get stuck in one of the local minima; 2. they fail to distinguish between first and second order error. In this paper we are only concerned with the second problem, namely, how to modify the learning algorithm to dituingish between tolerable and intolerable errors. 3 Directed gradient search for minimizing weighted errors In this section we introduce a modified gradient algorithm to get rid of the intolerable errors .. In order to do this let us reformulate the optimization problem as Wopt: minwE(w) n wE A (4) where A is defined as A = L61 (dk - Net(nk, w)) > O} . (5) The definition of A implies that only those weights are allowed which do not yield intolerable errors on the training set T. Let lAC(W) denote the characteristic function of the complement of A, namely I if wE AC lAC = { 0 if w c A 160 Then the corresponding learning algorithm which prohibits intolerable error on the training set is defined as Wk - ókgradE(wk) if lAC =0 (6) Wk+! = { Wk and Ók+1 = W(Ók) if lAC =1 It is easy to see that the algorithm "directs" the graident toward those solutions which are in A. Parameter Ók in (6) is referred to as a relaxation parameter and decrasing it with a proper contractive function W: w( Ók) < Ók the convergence can be guaranteed. In the simulations reported in this paper Ók was decreased according to Ók '" IOg(k) rule similarly to simulated annealing. On the other hand, after a relaxation period, one can change Ók drastically to force the algorithm into another minimum over the set A, if there is any. Doing this repeatedly and comparing the obtained minima, the global minimum can be selected. These results are summarized in the following theorem: Theorem 1: Applying algorithm (6) with relaxation Ók+1 < Ók for learning, one can find the nearest local minimum of the error function on a resctricted set A, where the restrietion guar- antees the exlusion of first order (intolerable) errors over the training set. Including jumps in the relaxations (sudden and big changes of Ók) the global minimum can also be achieved. The proof drops out neatly from the results of optimization theory and elementary analysis. 4 Learning with penalty functions Unfortunately, learning the optimal weights by the directed gradient method can be- come numerically cumbersome, which is due to the fact that in each step the status of the indicator function must be checked. The definition of the set A according to (5) implies that to evaluate the state of the indicator function for a certain w, one has to go through all the examples (dk, Ok), k = I, ... , J{ by checking the condition nf=l(dk - Net(ok, w)) > O. This process can take a long time and therefore slow down the learning algorithm unnecessarily. This delay can especially be significant when the learning is to be performed on-line (updating Wk based on the kth error dk - Net(Ok' wx), whereas the state of the indicator must be evaluated off line. In order to get rid of this computational overhead penalty functions are applied. Namely, the original error function E(w) is re-defined as 1 KIK Emod(W) = l{ L: (dk - Net(Ok' W))2 + J{ L: A (dk - Net(ok, w)), (7) k=l k=l where the function A is set to penalize the first order (intolerable) error enough, to force it to disappear after the learning period. One plausible choice to take A(z) as a polynomial function defined as 0 if z 2: 0 A(z) = { z" if z < 0 where n is even (8) 161 Apparently the penalty function yields positive values if dk - N et(nk' Wk) < 0, meaning that only the first order (intolerable) error is penalized. This drives the error function far away from those minima where the obtained weights would allow first order error, thus w would fall in AC. More formally, the following theorem holds: Theorem 2: If the penalty function is chosen to be any function which fulfills that =0 if z> 0 A(z) = arbitrary if -0.5::; z < 0 (9) { 2: 1 if z < -0.5 where n is even and differentiable on the interval [-1, OJ and if Wopt: minw-fç 2:i:=1(dk - N et(nk' W))2 + K K K1 2:k=1 A (dk - Net(nk, w)) then nk=1 (dk - Net(nk' wopt)) > O. In other words, the penalty function method yields the same minimum as the directed gradient search. Proof: Only the main line of reasoning is given here, the details can be checked by the reader using the results of elementary calculus. For short let us rewrite the function to be optimized as Emod(W) = E(w) + Pe(w), where the first term represents the original quadratic error function while the second is the penalty term. It is clear that max., E(w) = maxw-fç 2:i:=1(dk - N et(nk, W))2 = l. Thus, if we choose function A in Pe(w) = -fç2:i:=1A (dk - Net(nk' w)) in such a way that minw Pe(w) 2: 1 if w s AC (10) then Wopt: min., E(w) + Pe(w) can only fall in A. This follows from the fact that if w s AC then E(w) + Pe(w) 2: maxwE(w) which exludes any w as an optimum for which Pe(w) =I- o. To achieve this, we have to guarantee that minw Pe(w) 2: maxwE(w) = 1 if wE AC. This can be guaranteed, though, by choosing the function A according to (9), which yields min., Pe(w) = minw -fç2:i:=1A (dk - Net(nk' w)) 2: 1 if w s AC, taking into account that when wE AC then -1 < dk - Net(nk' w) < -0.5. This ends the proof. Furthermore, since E(w = 2:i:=1 ek(w), where the minimization now can be performed not only off-line (as in the case of directed gradient) but on-line, as well, using the following algorithm (11) This method can considerably speed up the process of learning. 162 5 Numerical results To test the proposed algorithms, simulations were performed on two traffic cathegories which are typical in ATM. Cathegory 1 examplified videophone traffic with parameters mI = 128 Kbit/s and hl = 384 Kbit] s, whereas Cathegory 2 examplified data sources with parameters m2 = 250 Kbii]« and h2 = 1000 Kbit] s, The maximum numbers of sources in Cathegory 1 is 105 and in Cathegory 2 is 34, which yields a total 3710 number of possible traffic configurations. The node capacity was taken to be C = 25 Mbit]» and the QoS ( which measured the CellLoss Probability (CLP)), was set to C LP :s:10-9. For the sake of comparison we calculated the number of acceptable sources based on the inequality P(nIXI + n2X2 > C) < 10-9 which is 1808 yielding 48,7 % acceptance rate. This calculation will be referred to as theoretical calculations. Then we applied a training set containing 250 randomly chosen training sample and performed the learning with the tradional algorithm (based on the quadratic error function), with the directed gradient algorithm and with the penalty function method, respectively. After reaching equilibrium the corresponding two-layer neural network was set to carry out the underlying classification task, i.e. accepting or rejecting input configurations based on the knowledge obtained in the wieghts through learning. To measure the performance of the different methods we calculated the acceptance rate. The difference between the acceptance rate provided by the net and the theroetically calculated one is due to the two kinds classification errors: 1. There are some second order errors (the net refuses some traffic configurations which should have been accepted). These errors will decrease the system utiliza- tion, therefore the accpetance rate can be termed as utilization. 2. On the other hand, some first order (intolerable) errors can also occur, meaning that the net accepted some configurations which should have been rejected. The obtained results are depicted in Figure 4. As can be seen the calssical learning 99.94 99.39 [%)100 90 so 70 60 50 40 30 20 10 Tradl:ional Directed Penalty Learning Oracïent Flrlction (n=O,S) Figure 4: Comparative performance of the different learning methods yields very high acceptance rate (system utilization is 99.94%), however the rate of the first order (intolerable error) is 3.8%. This is unacceptably high for a system operator. The directed gradient provides almost the same utilization 99.4%. However the rate of the first order error is 0%. In the case of penalty function method, the utilization 163 is only 91.87% and the rate of fisrt order error is also 0%. It seems that the trade off for the higher learning speed obtained in the penalty function method is a small decrease in performance. Furthermore, one can also see the price measured in the slight reduction of utilization which is paid for safety of getting ricl of first order errors. Acknow ledgement The work reported here was supported by the project COP579 sponsored by the EU and project T025964 sponsored by the Hungarian National Scientific Foundation. Parts of the simulations were done in the framework of RTD USA BME Laboratories. References [1) de Prycker, M: "Asynchronous Transfer Mode Solution for Broedbaad ISDN", Ellis Harwood Ltd. 1991. [2) Sohraby, K.: "Flow Admission Control of ON-OFF Sources in High Speed Net- works", IEEE, GLOBECOM, San Francisco, 1994. [3) Hui, J.: "Switching and Traffic Theory for Integrated Broadbatid Networks", Kluwer Academic Publishers, 1990. [4) Hiramatsu, A.: "ATM Traffic Control Using Neural Networks", Neural Networks in Telecommunications, edited by Yuhas, B. and Ansari, N., Kluwer Academic Publishers, 1994. [5) Levendovszky J., Imre, S.: "Comparative analysis of CAC algorithms for ATM networks", Scientific Progress Report, COPP579-SPR-l, EU [6) Cybenko, G.: "Approximation by superpositions of a sigmoidal function", Math- ematics of Control, Signals and Systems, 1989, Vol. 2, pp.303-314 [7) Fuuahashi, KJ.: "On the Approximate Realization of Continuous Mappings by Neural Networks", Neural Networks, 1989,Vol 2, pp.183-192 [8) Hornik. K.: "Approximation Capabilities of Multilayer Feedforward Networks", Neural Networks, 1991, Vol 4, pp.251-257 [9) Hornik, K. and Stinchcombe, M. and White, H.: "Multilayer Feedforward Net- works are Universal Approxirnators", Neural Networks, 1989, Vol 2, pp.359-366 [10) Levendovszky, J, van der Meulen, E.C.: "Tail Distribution Estimation for Call Admission in A'l'M Networks", Proceedings of IFIP, Third Workshop on Perfor- mance Modelling and Evaluation of ATM Networks, Ilkley, West Yorkshire, UK, 2-6th July 1995. 164 Experimental Investigation of Bounds on the Rate of Superimposed Codes in !Rn Saskia Vangheluwe' Abstract Ericson and Györfi [I] described a lowerbound and an upperbound on the rate of a superimposed code. These bounds are good for large values of m. Füredi and Ruszinkó [2] recently improved the upperbound for large m. Unfortunately these bounds are not so good for small values of m. Therefore an experimental study of these bounds has been carried out for the value m = 2 and a comparison is made. 1 Superimposed Codes in lRn We introduce the concept of superimposed codes in Euclidean n-space lRn. Roughly speaking, a superimposed code in lRn is a set C of vectors in IRn with the property that all possible sums of any m or fewer of these vectors form a set of points all of which are separated by a certain minimum distance d. These codes are motivated by multiple access communication as follows. Suppose T users share a common communication channel. Each user is equipped with a real-valued n-dimensionalunit norm vector Xi = (xt, xT,···, xr), for i = 1,2, ... ,T. The ith user transmits his vector if he is active, otherwise not. It is assumed that the transmission is bit and block synchronized. The output of the channel is the sum of the input vectors assigned to the active users: u= LXi. 'Vi active Moreover, we suppose that at most m users are active simultaneously. Let C be a finite set of unit norm vectors in IRn For any subset A of C let lAl denote the cardinality of A and denote by f(A) the sum of the vectors X in A : f(A) = LX. xEA Also, for m = 0, 1,···, T, define A(m) {AÇC:[AI::;m} Cem) {J(A) : A E A(m)} min#B l[f(A) - f(B)[[; A,BEA(m) 1Katholieke Universiteit Leuven, Departement Wiskunde, Celestijnenlaan 200B, 3001 Heverlee,Belgium,e-mail Saskia.Vangheluwe@wis.kuleuven.ac.be 165 Definition 1 : The set C is a superimposed code with parameters (n, m, T, d) if IC! = Tand dE(c(m») 2 d. This definition means that any two sums f(A) and feB) of at most m vectors in C, (lAl, IBI :s; m), are separated by at least distance d. The norm Ilxll is the usual Euclidean norm n Ilxllz = 2:>7, ;=1 so "distance" simply means ordinary Euclidean distance. It is easily seen that o :s; d:S; l. Let B(n, m, T, d) be the set of all superimposed codes with parameters (n, m, T, d). Definition 2 : T(n,m,d) = max{T: B(n,m,T,d) 1= 0}. We are interested in T( n, m, d) as n tends to infinity with m and d fixed. It has been shown that T( n, m, d) increases exponentially in n under these circum- stances. Let the exponent of increase be defined as E( m, d) = lim sup ~ logz T( n, m, d) (1) n 71-700 which can be regarded as the rate of a superimposed code with parameters (n, m, T, d). In the next section we will discuss some bounds on this quantity. 2 Bounds on the Rate of Superimposed Codes Ericson and Györfi [1] showed that the following bounds on E(m, d) hold: ERc(m, d) :s; E(m, d) :s; Esp(m, d), (2) where (Sphere-packing bound) (3) and (R.andom-coding bound) (4) with 2 ( F-\(I) = -logz - -4-\k L." elk 21 ) ')-21 ~ . (5) k=-I + The function ERc(m, d) is positive for all (m, d), m = 0, 1,"'; 0 < d:S; l. For large m these bounds have the form 1 Esp = -logz m[l + O(m)] (6) m and 166 1 ERG = -log2 4m m[l + O(m)]. (7) Füredi and Ruszinkó [2] recently improved (6) to E~r~r(m,d) = _1-log2m[1 + O(m)]. (8) 2m Unfortunately these bounds are not so good for small values of m. Therefore, an experimental study is done on these bounds for the value m = 2. 3 Experimental Investigation of the Bounds for a Fixed Value of d 3.1 Introduction We wrote a computerprogram for randomly generating vectors of unit length. We chose codelength n = 5 and generated 950 such vectors. We took all pairs (m = 2) and calculated the minimum distance d of their sums. We carried out the above procedure several times, each time with a different seed of the random number generator. In our further calculations we consider the largest d = 0.01375376 and ignore the limsup in (1) when calculating the exponent E(m, d). Our experimental results imply that E(2, 0.01375376) ~ I09~950 = 1.97835674064. (9) In the next sections we calculate (3) and (4) for the values m 2 and d = 0.01375376. 3.2 Sphere-packing bound As seen before, the upperbound on E(m, d) is equal to 1 2m Esp(m, d) = m log2(1 + d)' Substituting the values of m = 2 and d = 0.01375376 into this formula gives us Esp(2, 0.01375376) = 4.09449132694. (10) 3.3 Random-coding bound The lowerbound on E(m, d) is equal to (11) where (12) 167 Since m = 2 we only have to calculate (12) for I = 1 and I = 2 : F>.(2) 3 - log2(e-l6>. + 4e-4>' + 3). After substituting (12) into (11) we obtain ERc(2,O.01375376) = maxmin{Tl(À), T2(À)} >'20 with 3.4 Calculating the random-coding bound usmg MAPLE V We first calculate the minimum of TlCÀ) and T2(À) for all positive real values of À. Using Maple V we found that the difference of those two functions has two zeroes namely Àl = 0.00001639104236 and À2 = 3092.326947. This gives us the following result: (13) Now we have to determine the maximum of (13) with respect to À. Observing Tl and T2 we notice the following : • The maximum of Tl is reached for À = 2.581415295, but this value does not belong to [0, Àll U[À2,00). • Tl is an increasing function on the interval [0, Àll where Tl(O) = 0 and Tl(Àd = 0.00002364534969. • Tl is a decreasing function on the interval [À2, 00) where Tl(À2) = 0.2075187496. • The maximum of T2 is reached for À = 2.653335813. This value of À belongs to [Àl, À21 and T2(2.653335813) = 0.3536220716. We conclude that the maximum of (13) with respect to À is equal to 0.3536220716 and this maximum is achieved for À = 2.653335813. Observing the results obtained with MAPLE V we can now state that an exper- imentally obtained value for ERC(2, 0.01375376) is equal to 0.3536220716. We conclude this section by summing up the obtained results: • ERcC2,0.01375376) = 0.3536220716 • Esp(2, 0.01375376) = 4.09449132694 • E(2,O.01375376) ;:::1091950 = 1.97835674064. The experimentally obtained lowerbound lies about half way between the random- coding bound and the sphere-packing bound for m = 2 and d = 0.01375376. 168 d root1 (d) root2( d) 0.005405018 2.53E-06 20023.20893 0.007214829 4.51E-06 11237.66017 0.008294795 5.96E-06 8501.913211 0.008515259 6.28E-06 8067.376814 0.008865039 6.81E-06 7443.320639 0.009200489 7.33E-06 6910.44874 0.010441036 9.45E-06 5365.878205 0.010626044 9.78E-06 5180.656409 0.010717452 9.95259E-06 5092.66247 0.011221973 1.09117E-05 4645.041077 0.011708781 1.1879E-05 4266.823677 0.011734526 1.19313E-05 4248.1212 0.013753759 1.6391E-05 3092.326947 Table 1: Roots of DIF(d, À) 4 Influence of d on the behavior of the bounds 4.1 Random-coding bound In calculating the random-coding bound we used the largest experimental value of d. In this section the other experimental values will be taken into consideration and we determine an approximate random-coding bound for m = 2 and all d- values in the interval [0,0.015]. From Section 3.3 we know that To calculate the minimum in this expression in an easy way we consider the following two terms and the difference between them : T1(d, À) = T1[1-log2(1 + e-4,\) - Àd2] (14) T2(d, À) = 4-1[3 -log2(e-16,\ + 4e-4,\ + 3) - Àd2] (15) DIF(d,À) = T1(d, À) - T2(d, À). (16) By using MAPLE V it is easily seen that the shape of DIF(d, À) is the same for all experimcntal d-values. A list of those d-values and of the roots of DIF(d, À) for each d-value can be found in Table l. Using MATLAB we searched for the best fitting curves and obtained that: 169 • the probably best fitting curve describing the relation between d and root1(d) of DIF(d, >') is a straight line with the following equation root1(d) = (1.6593E-3)d - (7.5399E-6) • the probably best fitting curve describing the relation between d and root2(d) of DIF(d, >') is a curve of order four with equation root2(d) - (5.8186E12)d4 - (2.6495Ell)d3 + (4.6060E9)d2 - (3.7059E7)d + 1.2263E5. We can now conclude the following about min{T1(d, >'), T2(d, >')} : Tl(d,>') if x E [0,root1(d)]U[root2(d),oo) min{T1(d,>'),T2(d,>')} = { T2(d, x) if >. E [root1(d), root2(d)]. (17) The next step consists of determining the maximum of (17) with respect to >.. Following the same argumentation as in Section 3.4 we can conclude that the maximum of (17) is reached for>. E [root1(d),root2(d)] in which case the maxi- mum equals T2(d, X). Let us denote that specific value of >.by >'max(d). We can state that ERc(2, d) = T2(d, >'max(d)) for 0 ::; d ::; 0.015. (18) The only thing we still have to do is to find a good fit for the relation between d and >'max(d). Using MATLAB we find that the probably best fitting curve is a curve of order three with equation >'max(d) = (-2.13127452E5)d3 + (9.15945590E3)d2 - (1.69028630E2)d + 3.79970595. This relation makes it easy to calculate an experimental value for the random- coding bound for each d-value, 0 ::; d ::; 0.015, and m = 2. The behavior of this bound is plotted in Figure 1. 4.2 Sphere-packing bound The sphere-packing bound for m = 2 is equal to (19) The behavior of this bound in function of d, 0 ::; d ::; 1 can be seen in Figure 2. 170 0.3537 0.3537 0.3537 '0:0.3537 N Ü ffi 0.3537 0.3536 0.3536 0.3536 0.3536L--------'----------l-------_j o 0.005 0.01 0.015 Figure 1: Random-coding Bound for m = 2 5r--._--.-~--~-~-_.--._-._-_.-_. 4.5 4 3 'ti' N è:'2.5 (/) w 1.5 0.5 0L__ _l_ _ _L_~ __ -'--- _ _L _ _i __ L_ _ _l_ _ _L_~ 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 d Figure 2: Sphere-packing Bound for m = 2 171 References [1] T. Ericson and L. Györfi, Superim.posed Codes in !Rn, IEEE Transactioris on Information Theory, vol. 34, No. 4, July 1988. [2] Z. Füredi and M. Ruszinkó, An Improved Upper Bound of the Rate of Eucle- dian Superimposed Codes, manuscript 1997. [3] P.-O. Anderson, Superim.posed Codes for the Euclidean Channel, Linköping Studies in Science and Technology, Dissertations No. 342, Linköping 1994. 172 Stochastic networks - The performance analysis of communication networks O.J. Boxma CWI P. O. Box 94079, 1090 GB Amsterdam, The Netherlands The last two decades of this century have witnessed the explosive growth of two technologies: data processing (the processing of data by computers) and datacom- munication (the transmission of data, in digitized form, via communication channels). For a long time these giants have grown more or less independently, but inevitably they have met: computers and communication networks melt together into computer- communication networks. Technological developments have resulted in, e.g., satellite communication and optical communication via glassfibre, which in their turn have given rise to a huge increase in capacity. Presently a major new development is broadband-ISDN (Integrated Services Digital Networks): broadband networks that offer an integrated package of various services, in digitized form: the classical voice, but also data and images. The capacity of such a broadband connection will exceed 155 Mbps. Again, an enormous increase in capacity, which suggests: no more congestion, no queues on the communication superhighway! On the contrary, in the talk I shall argue that there will be many congestion problems; congestion problems that are stochastic in nature, problems that have to do with com- plex networks with scarce resources, problems whose deep understanding is essential in our modern information and communication society. That deep understanding can be provided by queueing theory. The first half of the talk will contain an elementary introduetion to queueing theory. Queueing theory is concerned with the mathematical research of the performance of a system offering services for collective use. Examples of such systems are a telephone exchange, flexible manufacturing system, and computer network. The object of study is formulated in abstract terms as a network of service units and customers requiring services at those units. The nature of the arrival processes and service requests is usually such that they have to be represented by stochastic processes. Hence the most important performance measures, like waiting times, workloads and queue lengths, are random variables. Accordingly, the main techniques of queueing theory stem from probability theory. In the beginning of this century, queueing theory was developed as a tool for dimen- sioning telephone exchanges. In the sixties and seventies it turned out that queueing models could also lead to accurate predictions of the behaviour of complex computer 173 2 systems. Today, the (distributed) structure of modern computer-communication net- works as well as the nature of the traffic offered to those networks pose new challenges to queueing theory. In the second half of the talk, the emphasis is on these new challenges. Below a few introductory statements are made about broadband networks and about the nature of modern communication traffic. In the Broadband ISDN area, an enormous amount of research (cf. [8]) and develop- ment effort is currently being expended upon a type of technology known as ATM (Asynchronous Transfer Mode); in an ATM network, all data (whether voice, video, or computer data) is carried on a common network backbone, in cells of fixed length. In order to take full advantage of the available network bandwidth (i.e. capacity), it is desirable to make use of statistical multiplexing effects. In other words, rather than reserving capacity on the network to accommodate the maximum throughput requirements of a given traffic source, one uses the fact that it is unlikely that two different sources are simultaneously going to require their maximum allocation of net- work bandwidth, so that excess network capacity can be more efficiently utilized. The performance analysis of ATM networks gives rise to stochastic networks that still com- prise traditional single or multiple server queues, but with often complicating features like intricate priority structures. In classical applications of teletraffic theory, the service time distributions in queue- ing models were frequently assumed to have a negative exponential tail. In modern applications of teletraffic theory, the assumption of exponential tails often appears to be invalid. Plots of traffic measurements for traffic in Ethernet Local Area Networks [9], Wide Area Networks [7] and VBR video [1] have shown a striking similarity when one considers a time period of hours, minutes or milliseconds: bursty subperiods are alternated by less bursty subperiods on each scale. This scale-invariant or self-similar feature of traffic, and the related phenomenon of long-range dependence (i.e., the in- tegral over time of the covariance of the traffic rate diverges), was also convincingly demonstrated in [6] using a careful statistical analysis. It forces one to consider novel, non-exponential, stochastic networks. A natural model for long-range dependent traffic appears to be that of a buffer that is fed by a number of sources, that alternate between active and silent periods. When active, a source feeds fluid into the buffer at constant rate. As long as the buffer is not empty, fluid also leaves the buffer at some constant rate. When the active periods of one or more of the sources have a heavy-tailed (non-exponential) distribution, i.e., P(A > t) ~ t:" for t ---t 00, with 1 < 1/ < 2, then the input process of the buffer is long- range dependent [5]. As observed in [9], in many cases active periods of actual traffic sources do indeed exhibit such a heavy-tail behaviour. The occurrence of heavy-tailed active (and/or silent) periods ofsources seems to provide the most natural explanation of long-range dependence and self-similarity in aggregated packet traffic. These obser- 174 References 3 vations have triggered much research on fluid queues with heavy-tailed active period distributions [2, 3, 5]. In its turn, this has led to an interest in the effect of heavy-tailed service time distributions in ordinary single server queues [4]. REFERENCES 1. J. Beran, R. Sherman, M.S. Taqqu, and W. Willinger (1995). Long-range depen- dence in variable-bit-rate video. IEEE Transactions on Communications 43, 1566- 1579. 2. O.J. Boxma (1996). Fluid queues and regular variation. Performance Evaluation 27 & 28,699-712. 3. O.J. Boxma (1996). Regular variation in a multi-source fluid queue. In: V. Ra- maswami and P.E. Wirth (eds.), Teletraffic Contributions for the Information Age - Proc. of ITCi5, (North-Holland Publ. Cy., Amsterdam, 1997), pp. 391-402. 4. O.J. Boxma and J.W. Cohen (1997). The MIGll queue with heavy-tailed service time distribution. To appear in IEEE J. Sel. Areas Commun., June 1998. 5. O.J. Boxma and V. Dumas (1997). Fluid queues with long-tailed activity period distributions. Technical Report PNA-R9705, CWI, Amsterdam; invited survey, to appear in Computer Communications. 6. W.E. Leland, M.S. Taqqu, W. Willinger, and D.V. Wilson (1994). On the self- similar nature of Ethernet traffic (extended version). IEEE/ ACM Transactions on Networking 2, 1-15. 7. V. Paxson and S. Floyd (1995). Wide area traffic: the failure of Poisson modeling. IEEE/ ACM Transactions on Networking 3, 226-244. 8. J.W. Roberts, U. Mocci and J. Virtamo (eds.) (1996). Broadband Network Tele- traffic (Final Report of Action COST 242). Springer-Verlag, Berlin. 9. W. Willinger, M.S. Taqqu, W.E. Leland, and D.V. Wilson (1995). Self-similarity in high-speed packet traffic: analysis and modeling of Ethernet traffic measurements. Statistical Science 10, 67-85. lit ~e\<;OfI v: Ros£. Kk(,w~ 175 CAC based on queumg models in ATM networks J. Levendovszky", Zs. Elek2, E.C. van der Meulen 3 1 Abstract Efficient traffic control IS Imperative in ATM networks when statistical multiplexing results in bursty aggregate traffic. To maintain a.previously negotiated level of Quality of Service (QoS), a Call Admission Control function must be performed which estimates how much the aggregate traffic is in match with the available node capacity [3,5]. This casts the problem as estimating the tail of the aggregate traffic as a function of traffic descriptors (e.g., mean and peak rate denoted by m and h., respectively) [2,10,11]. The numerical complexity of estimate plays a key role in obtaining real-time CAC functions. In this paper we develop algorit.hmically simple estimates based on the geometric tail for the stationary queue length of H/D/l queue (meaning Heterogeneous input traffic, Deterministic service time and Single Server, respectively). The tail of this estimate upperbounds the buffer overflow probability which yields the cell loss probability as the measure of QoS. In this way CAC can be performed by analytical calculations yielding real time adrni ssion algorithms. 2 Introduction The ATM switch is modeled as a bufler connected to a single server with deterministic service time [3,6,7] as indicated i 11 the next figure. Figure 1.1: The simple A'I'M'Sioitc): model lTechnical University of Budapest, Department of Telecommunication, RTD-USA Laboratories Stoczek u. 2. Budapest, Hungary, !-I-I11I 2Technical University of Budapest, Department of Telecommunication, Stoczek u. 2. Budapest, Hungary, H-llll 3Katholieke Universiteit Leuven, Department, of Mathernatics, Celestijnenlaan 200B, Leuven (Hev- erlee), B-300 1 177 The input traffic generated by the users is hel erogeneous and classified into different classes i = 1 M (e.g .. voice. video. data). where each class has its standard mi and hi parameters. The aggregate traffic is the combination of the underlying Poisson pro- cesses, with the interarrival time distri bution .4.(t) = PtT < t) = 1 - exp (- Li Àit) = 1- exp( -Àt) where À = Li Ai = Lr!l nim;! h, denotes the intensity of the aggregated arrival process ni representing the number of sources emitting cell's from the ith class. Cell loss occurs when there is a buffer overflow, therefore the aim of the corresponding analysis is to evaluate the tail of the stat ionarv distribution of the underlying queuing system. The speed ol this evaluat.iou wi!l delC'rJl1ine how the CAC algorithm can sup- port real-time eperation. Real time traffic management comes to be important for the following reason: CAC decisions are taken during connection setup time. These setup-time values can be different for each type of traffic, (they are usually less then 1 sec), but these values are standardised, and they have to be kept hy all connections. As a result, CAC decision must be performed in real-time. Thus .. the more time is spent on characterising the sources and the state of the network, the slower the CAC functions will be, yielding a bad trade-off between efficiency and speed. Our major concern is to obtain real-time CAC algorithms by developing analytical models for quick tail evaluation given as Peel!vs> :::; W(ml,h1, ... ,mM,hIvI} , where the function IJ! is numerically simple. This can be easily achieved if the tail is geometric given in the form of Tri = L.i Ct.irj. In this case only the corresponding Tj-S have to be calculated or the largest one Il1 i-I Pij = P(q"+1 = J I Cf" =/) = f/,2 dA(I.) = A(t2) - A(tI! if j::; i-I (1) Here A(t) denotes the iuterarrival time distribution. Assuming that deterministic ser- vice time with T = 1, the stoelrastic matrix takes the following form: if j >i +1 if j =0 (2) ifj :::;1 + 1 where Pi = (1 - exp(-À))exp(-iÀ). We seek tile solution of the sta.tionary equation = Lj Pij'Trj in the form of ITi = f{ exp( -(Ji). Using the notations y = exp(,iJ) and 'Tri x = exp( -À) with the conditions 0 < x < 1 and y > 1 and substituting into stationary equation one can arrive at the following formula: 1 ( T) = I (I - ;3 = og -- J - a og exp( - À) ) exp] -À) . (3) Based on the obtained stationary distribu tion CAC can be performed as follows: 1. When a new user wants to log in, first its traffic parameters mi, hi must be declared (assume the user belongs to class i). 2. An updated À"ew must be calculated according to the formula whew parameter ÀoId denotes the ani val intensi ty before the log-in request of the new user. 3. Then parameter /3 must be dcterrnined based on solving the equation ,a 10g a:(1-") = 10 g (l-eX -.1) exp( p(-.\)) 4. With the obtained ,a the following inequality must be checked Pcelloss = P(qn > L) = L 7i"i = L J( exp i,iJ < exp -, ;=L+1i=L+1 If this inequality holds then the new user can be accepted, 179 otherwise it should be rejected. The next Figure exhibits the function y(x) for a typical traffic scenario. 0.8 Simulated - 0.7 Estimated .... - 0.6 - 0.5 - 0.4 - 0.3 - 0.2 0.1 - o () 05 1.5 2.5 :3 3.5 4 Figure 4.~: Ap proxinuüion. u.itli parameter À = 0.7 4 CAC by inverse z transform From the corresponding results or queuing tlWCiI·.1 [L,:3] the moment generating function of the stationa.rv clistributiou of M/e/l is obt aiued as (1- p)B"(>- - À:)(1 - z) fI(::) = B'(À _ À.:) - z ' (5) where B*(.s) denotes the Laplace transferm of probability density function of the serving time density a(t). Assuming deterrninistic serving then b(t) = ó(t - T) leading to B*(.s) = e=". Substituting this into ('i) we obi ain 1- z n(.:) = "0 1 - ze-' \(_)' (6) .-1 The value of "0 can be ascertained by the Little formula, yielding 1To = 1 - ÀT. Unfortunately, it seems that one cannot dete-rmine the tail based on the inverse z transform directly as it is an irrationa.l function of z . To circumvent these difficulties we try to evaluate the t.a.i l by using cl tru nratr-d Laurent series expansion of exp( -Àz) as a first approach. On the orher haud. wc' also attempt to perform an analytical inverse z transform by using Ure residuum theore-m. 4.1 Tail estimation by truncated Laurent serres In this approach one can approximate exp( -,\.~) with a second, or higher order poly- nomial. In the case of second order approx irnat.iou wo I.I~(' eO ~ 1 + z + ~ which yields 77"u H( -) ~ -----=------ (7) - ~ 0.')À2z2 - (0.'),,\1 + À).: + 1 180 Taking into account the condition 0 < À < I. the denomina.tor has real roots if À > 2(v'2 - 1) ~ 0.8284, which in turn limits the usability of the second order ap- proximation. The roots of the denominator is shown in the next figure with different N. Original - N=l 0.8 N=2 - N=3 ...• N=4 - 06 N=5· .. N=6 - N=lO 0.4 N=15 - 0.2 -0.2 L__ __ ___.I___.L __ -Ll._......L_......L_~_~ ...J.._ __ __j o 2 4 8 10 12 Figure 4.1: Apvro;rim.al-ton uuth parameter À = 0.7 In order to get rid of this bottleneck we eau extend the approximation to higher order polynomials. One, however) must notice that only odd order of polynomials will suffice, as in the case of even order polynomials there will not always exist a second root. In the next figure the roots are shown wh.-n À = 0.9 and N = 1, ... , 15. 0.05 0.04 riginal - N=l 0.0:3 N=2 N=3 0.02 N=4 0.01 0 -001 -0.02 -0.03 -0.04 -0.05 () 05 1.5 3.5 4 Figure 4.2: Ap-pro+iniat ion uil l: parameter À = 0.9 181 The tail obtained from the second and tb i Id order approximation are depicted in Figure 4.3 in comparision with the real tail calculated by the Inverse Discrete Fourier Transform. 1.6e-OG ~-~r-----'------'-----r----....,...--'----'------' IDFT - 1.4e-OG Approx. N=:3 Approx. N=2 - 1.2e-OG 1e-OG 8e-07 6e-07 4e-07 2e-07 ol_~--~--~--~~~=e==~~ lJ() i is 120 12'> 1:10 I:;:) 140 145 150 Figure 4.3: The ap prorim ai ed t.ails [o : .'\1=.'3.:3 with parameter). = 0.95 4.2 Tail estimation with residuurns By using the residuum theorem of complex analysis one can obtain the stationary distribution as ] ~. 1 - .: -,,-1 I~·., )Tn=~ )To ,_.\(0-1): d.:=-:;::- X(z)dz=Res[X(z),zp]. (8) ~)T.J . 1:1=1 j - ~t -".J 1:1=1 The function X(.::) has multiple poles ill O. 011(' pole in q and one pole outside of the unit circle. For the sake of simple evalu at.ion II'C analyze the following formula Res [X(:),q] = I.im(z - q)X(z) = ,g,(q)), :-" 1 (q. Let g(z) = (I -:):-"-1 1:=.,= (I _q)q-n-1 h(.:) =1 - .:;,-\(.:-1) 11'(z) = p:; 1)c-·\(Z-1) 1:='1- (>..i] -1)~, q then ï.". g(q) = - /i'(11l q-l (1)" = ï.1I ,\,/_1 ~ The underlying calcular.ions delllollsLlaLf' tha: 't > 1, which is a condition to have a real probabi lity distribut ion. The elficieucy of 1 ail estimate given by the residuum theorem is confirmed with the fact that it; alrnoxt fully coincided with the tail calculated 182 by IDFT. In the next figure the tail yielded by the residuum and IDFT are plotted against the tail generated by the histogram estimation of the qn+l = [qn - lJ+ + Vn+1 queue distribution. (Both sirnulations lasted the time of several billion arrivals.) 1.6e-06 ,----,---,-----,---,-----,----,---..,--------, lOFT - l.4e-06 Analytical Simulation l. l.2e-06 Simulation 2 .... - le-06 8e-07 6e-07 4e-07 2e-07 115 120 125 130 1:35 140 145 150 Figure 4.4: The analytical tail and siuiulation. liisioqrams with>' = 0.95 5 Acknowledgement The work reported here was financed by the project COP579 sponsored by the EU. Parts of the simulaticns were done in the framework of RTD USA BME Laboratories. References [IJ Leonard Kleinrock Queuing systems, 1975. [2] Andras Gyorgy Upper Bound on the Disirilnitioii of a Simple Queuing Model, 1998. COP Report COP-SPR-ll [3J Levendovszky, J., Elek, Zs. : CAC on Traditiotuil Queuing Models, 1998. COP Report COP-SPR-9 [4J de Prycker, M: "Asynchronous Transfer Mode Solution. for Braadband ISDN", Ellis Harwoocl Ltd. 1991. [5J Sohraby, K: "Flow Admission Control of ON-OFF Sources in High Speed Net- works", IEEE, GLOBECOM, San Francisco, 1994. [6J Eckberg, A., Dashi, B. and ZoccoliIla, R.:"Controlling congestion in B- ISDN/A TM: Issues and Strateqies", IEEE Cornmunication Magazine, Vol. 29, No. 9, pp. 64-70,September 1991. 183 (7) Hui, J .. "Resource Allocation for Broadbatul Networks", IEEE Journalon Selected Area of Communications, Vo1.6, No.9., pp. 1598-1608, December 1988. (8) Hui, J.: "Switching and Traffic Theory for Integmted Broedband Networks", Kluwer Academic Publishers, 1990. [9] Yasuhiro, M.: "A Dimensionin.g Schemtin ATM networks", Networks'92, pp. 171-176, May 1992. [10] Hiramatsu, A.: "ATNf Traffic Gont7'01 U.sillfJ Neural Networks", Neural Networks in Telecommunications, edited by Yuhas, B. and Ansari, N., Kluwer Academic Publishers, 1994. [11] Levendovszky, S. Imre: "Compuraiiue analysis of GAC algorithms for ATM net- works", Scientific Progress Report, COPP579-SPR-l, EU. 184 On Optical Orthogonal Codes Martijn Stam A.J. Han Vinck m.stam~stud.tue.nl vinck~exp-math.uni-essen.de Abstract An optical orthogonal code is a constant weight block code with good autocor- relation and crosscorrelation properties. In this article we will give an overview of optical orthogonal codes sofar, with an emphasis on optimality. We will also discuss a new, additional property, called super-crosscorrelation. 1 Introduction We consider coding for the multi-access "OR" channel. Every user is given a signature in the form of a codeword. If a partienlar user wants to send a '1' he sends his signature, if he wants to send a '0' he sends the zero-codeword. The problem with the random access "OR" channel is that a partienlar set of users can cause the occurrence of a valid codeword for some other user at the receivers end. This interference can be reduced or even avoided by limiting the number of users and employing specific codes An interesting class of codes, called Optical Orthogonal Codes (OOC), was introduced by Chung, Salehi and Wei [1]. In short an optical orthogonal code is a constant weight block code with convenient autocorrelation and crosscorrelation properties, thus giving the code a minimum dis- tance of about twice the weight. Codes with maximal cardinality are called optimal. In this article we will summarize the known optimal constructions. Section 2 deals with definition, notation and related topics. In section 3 we will discuss known lower and upper bounds and we willlist some difference sets in relation with the existence. In sections 4 and 5 parameters are given for which optimal codes exist and some gaps are filled with near optimal codes. Section 6 contains a brief analysis of a new notion, namely that of the super-crosscorrelation. 2 Definitions An (n, w, À) optical orthogonal code C is a family of binary sequences of length nand weight w which satisfy the autocorrelation property: n-l L XtXt+T :s; À t=o for any x E C and any integer 0 < T < n, and the crosscorrelation property: n-l L XtYt+-r :s; À t=o for any x # Y E C and any integer 0 :s; T < n (where the subscripts are to be taken modulo n). 185 A (n, w, À)-OOC is called optimal if there does not exist another OOC with the same parameters but with more codewords. ~(n, w, À) denotes the size of an optimal (n, w, À)-OOC. Our definition of optical orthogonal codes differs from that of Chung, Salehi and Wei [1J. Where they (and others) do not by definition demand equality of autocorre- lation and crosscorrelation constraints, we do. We mention in this context the article by Yang and Fuja [2], which gives a construction method for near optimal codes with unequal autocorrelation and crosscorrelation constraints. Another way of looking at OOC's is regarding a code not as a family of binary sequences, but rather as a family of w-sets (sets with cardinality w) of integers modulo n. In this case each element in a w-set corresponds to a non-zero entry in the binary sequence and vice versa. Since codewords of an ooe are typically sparse (i.e., many zeros and few ones) the w-set notation is more efficient than the sequence notation. A second, even more important advantage of the w-set viewpoint, is the link with mathematical design theory, which gives several (if not most) optimal constructions of OOC's. In [1J expressions can be found for the auto- and crosscorrelation based on w-sets. Instead of using correlation properties in the definition of OOC, one can also make use of cyclic properties. This is done by A, Györfi and Massey [3J and the resulting constant weight cyclically permutable codes are equivalent to optical orthogonal codes. The concept of a Cyclically Permutable Code (CP'C] was introduced by Gilbert [4J and a CPC is defined to be a binary block code of block length n such that each codeword has cyclic order n (i.e., has n distinct cyclic shifts) and such that the codewords are cyclically distinct (i.e., no codeword can be obtained by the cyclic shifting, one or more times, of another codeword). It is important to realize that for a CPC the fundamental property is not the usual minimal distance but the cyclic minimal distance, defined as the minimal distance of the code obtained by replacing every codeword in the CPC with its n distinct cyclic shifts. 3 Bounds 3.1 Upper bounds The above mentioned construction of turning an OOC into a cyclic constant weight code can also be used to derive upper bounds on ~(n, w, À). Consider a (n, w, À)-OOC with cardinality M and replace each codeword with its n distinct shifts. The result is a constant weight block code with minimum distance 2w - 2À and cardinality nM. This gives the following bound: (1) where A( n, d, w) denotes the maximum number of codewords in a constant weigth block code of length n, weight wand with minimum distance d. If A(n, d, w) in (1) is replaced by an upper bound on A( n, d, w), this of course still yields an upper bound on ~. In particular we can substitute the Johnson bound for A(n,d,w). This results 186 in the following upper bound on ,which is also called the Johnson bound. (n,w,À) ~ l~l:=~ l:=~ l···l:=~JJ...JJJ The Johnson bound is known to be fairly tight for small ;\ but it becomes less tight for increasing À. Furthermore it is conjectured [5] that the original Johnson bound (on A) is exact for every fixed wand d for n large enough. In [6] Chung and Kumar present two new upper bounds, which are actually small classes of bounds of which the best (minimum) value is taken. The bounds are not applicable for all triples (n, w, À), they only work for smaller values of n. When the bounds do apply they not seldom give considerably lower values than the Johnson bound. For example, the Johnson bound on (120,20, 4) is 98, whereas Chung and Kumar's best bound gives 6. It seems that their bounds give the best results for those values of (n, w, À) for which the Johnson bound is expected to perform less. 3.2 Lower bounds Apart from lower bounds derived from explicit code constructions, there are several general lower bounds, most of which have the form: (n) _ A (n,w, À) 2:: W B where A is an upper bound on the number of words whose autocorrelation is too high and B is an upper bound on the number of words for which the crosscorrelation with a given word is too high. Examples of such bounds can be found in [I, 7] and [2]. Chung, Salehi and Wei [1] give a second lower bound, but there seems to be a small error in derivation and formula, as a result of which this bound is slightly weaker as stated. One occasion where the bound obviously gives a false result is for (4,2,1). For more details see appendix I. Although none of these bounds are likely to be very tight, they do provide us with the proof that, for fixed wand À < w, (n,w,À) = O(nÀ). For À > 1 this would be quite difficult to prove with explicit code construction. 3.3 Existence bounds An interesting question is the existence question: for which parameters does a nonempty OOC exist? More accurate the question becomes what is the smallest n, given wand À, for which an OOC exists. This problem is related to that of the existence of a difference set of certain parameters. A (n, w, À)-difference set is a w-set of integers modulo n such that every nonzero in- teger modulo n can be written in exactly À ways as the difference between two members of the w-set. A (n, w, À)-OOC with only one codeword is a w-set of integers modulo n such that every non zero integer modulo Ti can be written in at most À ways as a difference. Thus it is clear that every difference set is an OOC with one codeword, but not necessarily vice versa. A known necessary condition for the existence of a difference set, is w( w - 1) = (n - 1)À. The lefthand side of this equation denotes the number of differences that 187 occurs in any w-set (i.e. the amount of ordered pairs) and the righthand side denotes the amount of available differences (there are 71. - 1 non zero differences and every difference should occur). times). A similar argument leads to the lower bound TI. :::: W(~-l) + 1 for the existance of a (71., w, >')-Ooe. Furthermore this lower bound is met if and only if (iff) there exists a (71., w, >')-difference set, so knowing the smallest 71. for which a (71., w, >.)-OOe exists means knowing whether a (1 + w( w - 1)1>',w, >')-difference set exists. For>. = 1 it is conjectured that there is a difference set with w elements iff w - 1 is a prime power. For cyclic difference sets with w < 3600 this conjecture has been verified. For fixed>' > 1 it is conjectured that there are only finitely many difference sets. The only difference sets with>' = 2 and w < 5000 have w E {2, 3, 4,5, 9} We therefore will not attempt to derive a general expression for the minimum 71. given w and>' for which an ooe exists. Instead we will give some lower and upper bounds for >. = 1,2 and w small (see table 1). We also provide a code for 71. equal to the upper bound. This either means giving a difference set or a computer generated ooe. The difference sets (as well as the conjectures above) are taken from [8] and [9]. Table 1: Bounds on minimal 71. with i!»(n, w, >') ::::1 w LB UB ooe for>. = 1 w LB UB ooe for>. = 2 3 7 7 0,1,3 2 2 2 0,1 4 13 13 0,1,3,9 3 4 4 0,1,2 .5 21 21 3,6,7,12,14 4 7 7 0,1,2,4 6 31 31 1,5,11,24,25,27 5 11 11 0,1,2,4,7 7 44 49 0,1,3,13,18,29,43 6 17 18 1,2,3,10,13,15 8 57 57 1,6,7,9,19,38,42,49 7 23 24 3,7,9,14,21,22,23 9 73 73 1,2,4,8,16,32,37,55,64 8 30 31 5,12,16,17,18,20,26,29 10 91 91 0,1,3,9,27,49,56,61,77,81 9 37 37 1,7,12,10,33,9,26,34,16 4 Maximal correlation equals one (À = 1) The case for which>' = 1 is the best analyzed. There are several optimal constructions, some of which concentrate on a specific weight, while others give codes for a wide variety of parameters. In this section we will summarize the known optimal codes, where we will use a subdivision by weight. The crosscorrelation between two distinct words, both of weight w, is at most w -1, which means that, for w = 1 and w = 2, both the crosscorrelation property and the autocorrelation property are automatically satisfied and the optimal code is simply the set of all words that have full cyclic order (of course only one word per orbit). l For w = 1 this set contains only one word, for w = 2 it contains n~l J words (the l J). codewords can be taken to be {O,i} for 1 ::; i ::; n~l . The first problems arise when w = 3, since the correlation constraints can then no longer be neglected. Nevertheless this case is completely solved. Chung, Salehi and Wei [1] give an optimal construction for 71. i- 2 mod 6, for which rI>(n, 3, 1) = n~l l J, 188 meeting the Johnson bound with equality. In [10] optimal constructions are given for n i:- 14 or 20 mod 24, all meeting the Johnson bound with equality. Bitan and Etzion [11] show that for n = 14 or 20 mod 24 the Johnson bound can not be met with equality and that for those n (n, 3,1) = n~8. For w = 4 Bitan and Etzion [11] give a table of the lengths n < 264 for which an optimal OOC was constructed. This table can be augmented with n = 121 (projective geometry construction by Chung, Salehi and Wei [1]) and n = 157 (see [6]). A problem of the table given there is that it does not state what the sizes of the optimal codes are. For the given constructions it is clear that they meet the Johnson bound with equality, but for the codes found by computer search and for the recursive codes derived from these, this is not certain. There are only a few constructions for w > 4 that give optimal codes. One construc- tion is the projective geometry construction in [1], which gives codes with parameters ((qd+l _ l)/(q - 1), q + 1,1), where q has to be a prime power. Other constructions can be found in [11] and [6], These are based on design theory, in particular balanced incomplete block designs and difference families, and improve on constructions by Wil- son [12]. In table 2 we will summarize for which values of n an optimal code is known with w = 5. For each value of (n, 5, 1) < 50 we give the smallest n for which a code with corresponding cardinality can be made. Alllisted codes are optimal and attain the Johnson bound. Table 2: Minimal codeword length to attain (n, 5,1) 0 1 2 3 4 5 6 7 8 9 0 0 21' 41c 61c 85s 131 b 191b 10 241c 281c 311b 341' 20 401b 421 c 461c 521c 54F 30 601c 64F 661c 70F 761c 40 821c 881c 941c 971 b b: Bitan and Etzion [11] (construction D) c: Chung and Kumar [6] (generalisation of Wilson) s: Chung, Salehi and Wei [1] (projective geometry) 5 Maximal correlation equals two (À = 2) Whereas several optimal constructions for À = 1 are known, only a few are known for À = 2. It would therefore be of small avail to make a subdivision as thorough as in the previous section, a smaller subdivision will do quite nicely. For w < 4 and À = 2 the correlation properties are automatically satisfied, so all that is important is the set of sequences with full cyclic order. The case w = 4 is for À = 2 what w = 3 is for À = 1, the first non-trivial case. Bitan and Etzion [13] give a method for constructing optimal (n,4, 2)-codes with the use of Steiner quadruple systems. This means that (n, 4, 2) attains the Johnson bound for infinitely many values of n. In table 3 we give an overview of both lower 189 and upper bounds on cI>( n, 4, 2) for 5 < n < 32. We also tabulated the exact amount of cyclically distinct codewords with weight 4 and length n that satisfy the autocorrelation constraint (of course this automatically excludes codewords with cyclic order less than n), according to the formula (without proof): M = (~) - (2In) (ï) n -ln - 2· IJ - (3In)( ~ - 2) + (4In) + (51n) 3 where (din) equals one if d divides n and zero if not. The upper bounds are all instances of the Johnson bound, unless otherwise stated. Table 3: Bounds on cI>(n,4,2) n M LB n UB M LB UB 6 0 0 190 195 11e 12 7 2 1 20 1 233 14S 14 8 6 1 21 1 270 15S 15 9 9 le 1 22 320 16e 17 10 17 3e 3 23 374 16e 18 11 25 3e 3 24 424 1ge 20B 12 34 3e 3e 25 495 20e 22 13 49 4 4e e 26 560 25S 25 14 64 6e 6 27 630 22e 26 15 82 7S 7 28 716 26e 29 16 106 e 805 27G 30 8 8 29 17 132 8e 9 30 889 30e 33 18 15610e 11 31 1000 358 35 e: exhaustive search B: using A(n,4,4) from Brouwer et al. [5] s: Using Steiner quadruple systems [13, 14] c: by constructing code with computer Chung and Kumar [6] give a construction which produces codes for variable tv, with at most one code per value of w. In table 4 we give an overview of their results for variable w. Some asymptotically optimal constructions are given by Moreno et al. [15], also for variable w. Table 4: Optimal codes with À == 2 n w ICI n tv ICI n w ICI 15 5 2 120 12 9 528 24 21 24 6 3 168 14 11 624 26 23 48 8 5 255 17 14 728 28 25 63 9 6 288 18 15 R40 30 27 80 10 7 360 20 17 960 32 29 190 6 Super-crosscorrelation We now introduce a new, additional constraint on what we call the super-crosscorrelation, defined by: n-T-l n-l 2: XtYt+T + 2: XtZt+T < À t=o t=n-T where Y =I- zand 0 < T < n, The subscripts are once again taken modulo ti. One of the most remarking consequences of this constraint is the disappearance of indifference in the choice of representatives. In the normal OOC's it does not matter which one of the n cyclic shifts of a word is chosen in the code. With the new constraint, it does. A striking example can be found in the (7,2,1)-OOC. Previously we regarded this code as trivial, since the (normal) correlation properties are automatically satisfied and an optimal code would be: 1100000, 1010000, 1001000 It is easy to check that this code also satisfies the super-crosscorrelation. Now consider the following code, which under normal circumstances would be equivalent: 1000001, 1000010, 1000100 This code does not satisfy the super-crosscorrelation: 1000010 1000100 10 00001 The main use of codes that satisfy the super-crosscorrelation constraint is in those applications where there is partial synchronizing between different codewords and where the mutually synchronized words typically are not sent simultaneously. One possible scheme would be to allow every user to have more signatures, so each user is in effect able to send a q-ary sequence instead of a binary. We did not exploit this possibility further, so we can not say whether this new scheme performs better than the classical. We do know however that in some cases the maximum code size reduces. Appendix I Chung, Salehi and Wei [1] give in theorem 3 the following lower bound (where Àa denotes the constraint on the autocorrelation and Àc on the crosscorrelation). This bound is derived by use of an accelerated greedy algorithm. This algorithm tries to fill the code one codeword at a time and the codewords are generated as w-sets, one element at a time. During the construction of a new w-set before each insertion both the autocorrelation and the crosscorrelation constraints are checked with regard to the current codeword and code. Part of the argumentation of the bound goes as follows: 191 "Assume m - 1 w-sets have been included in the code and w - 1 elements have been included in the w-set under consideration. For each number x, 0 :::::x < n, the algorithm calculates the number of ways x can be expressed as x = a + b - c, where a, b, c, a #- c, are elements in the incomplete codeword-set at hand. If there are less than Àa ways, than x can be included without violating the autocorrelation property." Unfortunately there are situations in which inclusion ~f x does violate the autocor- relation property. The reason for this is that the addition of only one element to a set, can cause an increase of two in the occurrence of a difference. This happens in the case that an element is added right in the middle of two other elements (for example, the addition of 3 to {1,5}). Knowing this, the last sentence in the quoted argumentation can be corrected by changing Àa in Àa - 1. An immediate result of this is that the algorithm no longer works for Àa = 1. A second result is a change in the lower bound, which becomes: Àc(n - w + 1) - (Àc/(Àa - l))(w - l)2(w - 2) <1>( n, w, Àa, Àc) ~ () ww -12 References [IJ F. R. K. Chung, J. A. Salehi, and V. K. Wei, "Optical orthogonal codes: design, analysis and applications," IEEE Trans. Inf. Theory, vol. 35, pp. 595-604, May 1989. [2J G. C. Yang and T. E. Fuja, "Optical orthogonal codes with unequal auto- and cross-correlation constraints," IEEE Trans. Inf. Theory, vol. 41, pp. 96-106, Jan. 1995. [3J N. Q. A, L. Györfi, and J. L. Massey, "Constructions of binary constant-weight "ydic codes and cyclically permutable codes," IEEE Trans. Inf. Theory, vol. 38, pp. 940-949, May 1992. [4J E. N. Gilbert, "Cyclically permutable error-correcting codes," IEEE Trans. Inf. Theoru, vol. 9, pp. 175-182, July 1963. [5J A. E. Brouwer, J. B. Shearer, N. J. A. Sloane, and W. D. Smith, "A new table of constant weight codes," IEEE Trans. Inf. Theory, vol. 36, pp. 1334-1380, Nov. 1990. [6J H. Chung and P. V. Kumar, "Optical orthogonal codes-new bounds and an optimal construction," IEEE Trans. Inf. Theory, vol. 36, pp. 866-873, July 1990. [7J F. R. K. Chung, J. A. Salehi, and V. K. Wei, "Correction to "optical orthogonal codes: design, analysis and applications"," IEEE Trans. Inf. Theory, vol. 38, p. 1429, July 1992. [8J D. Jungnickel, Difference Sets, pp. 241-324. New York: Wiley, 1992. [9J D. Jungnickel and A. Pott, Difference Sets: Abelian, pp. 297-307. Boca Raton, Florida: CRC Press, 1996. [10J E. F. Brickell and V. K. Wei, "Optical orthogonal codes and difference families," in Proc. South- eastern Conf. on Combinatorics Graph Theory and Algorithms, 1987. [l l] S. Bitan and T. Etzion, "Constructions for optimal constant weight cyclically permutable codes and difference families," IEEE Trans. Inf. Theory, vol. 41, pp. 77-87, Jan. 1995. [12J R. M. Wilson, "Cyclotomy and difference families in elementary abelian groups," Journalof Number Theory, vol. 4, pp. 17-47,1972. [13J S. Bitan and T. Etzion, "The last packing number of quadruples and cyclic SQS," Designs, Codes and Cryptography, vol. 3, pp. 283-313, Oct. 1993. [14J C. C. Lindner and A. Rosa, "Steiner quadruple systems - a survey," Discrete Mathematics, vol. 22, pp. 147-181, Apr. 1£)78. [15J O. Moreno, Z. Zhang, P. V. Kumar , and V. A. Zinoviev, "New constructions of optimal cyclically permutable constant weigth codes," IEEE Trans. Inf. Theory, vol. 41, pp. 448-455, Mar. 1995. 192 Soft-in Soft-out Multiplexers as building blocks in Soft Output Viterbi Decoders Arie G. C. Koppelaar 1 Abstract The transfer from data in the path memory of a Viterbi decoder can be mod- elled with conventional multiplexers. We show that by generalizing these multi- plexers towards so called Soft-in Soft-out multiplexers. we obtain a soft output generalization of the Viterbi Algorithm. With a simplified instance of this Soft-in Soft-out multiplexer, one can model a soft output algorithm which is equivalent with the traditional Soft Output Viterbi Algorithm. 1 Introduction Likelihood information in the form of soft outputs from channel decoders can be used in different ways. In concatenated coding schemes for example, the soft outputs can be used as erasure information for the outer code. In source decoders, the likelihood information obtained from the channel decoder can be used for error concealment purposes. The use of likelihood information in the subsequent component decoders is crucial for the good performance of Turbo Codes [IJ. In case of convolutional codes, several soft output decoding algorithms are known, like the Forward-Backward Algorithm [2], the Two-way Viterbi Algorithm [3J and SOYA (Soft Output Viterbi Algorithm) [4J. While the first two decoding algorithms use two recursions (a forward and a backward), SOYA uses only the forward recursion like the Viterbi algorithm. Therefore, SOYA is more suitable for hardware implementation. In this paper a hardware oriented approach to soft output Viterbi decoders is pre- sented. The Viterbi Algorithm, some implementation aspects of the Viterbi Algorithm, the modelling of data transfer in the path memory, and SOYA are discussed in Section 2. The Soft-in Soft-out Multiplexer (SISOMUX) is introduced in Section 3. With this basic building block it is possible to make a soft output Viterbi decoder. In Section 3 it is also shown that SOYA can be modelled with a simplified version of the SISOMUX. Switching characteristics of both multiplexers are compared in Section 3. 2 The Viterbi Algorithm The Viterbi Algorithm is an algorithm which can be used for Maximum Likelihood decoding of convolutional codes [5J. Given a received sequence, the Viterbi Algorithm searches for the most likely code sequence. This is done efficiently by using the merging characteristics from the code sequences (merging paths in the code trellis). Hence, not every code sequence has to be evaluated. A path in the code trellis that merges with a more likely path does not need to be evaluated anymore, because its likelihood will be 1 Philips Research Laboratories, 5656 AA Eindhoven, the Netherlands, Email kop- pelr@natlab.research.philips.com 193 Figure 1: Merging of two paths in code trellis. smaller in the future for always. The likelihood of a code sequence is calculated with the aid of branch merries and path metrics in a recursive way. This is illustrated in Figure 1. Let >'A(k), >. B (k) be the path metrics of the best paths that go through state A and state B respectively at time k, and let rc,A(k), rc,B(k) be the branch metrics for the branch between state A at time k and state C at time k + 1 respectively state B at time k and state C at time k + 1. The path metric of the best path through state C at time k + 1 is given by the following recursion >'c(k + 1) max (>.,:,;t(k), >'Ët(k)) , max (>'A(k) + rc,A(k), >'B(k) + rc,B(k)), (1) Er where X',r (k) and >. (k) are extended path metrics. The most likely candidate path is called the survivor. In order to obtain this additive structure, path metrics are expressed as logarithms of probabilities instead of probabilities themselves. In the Viterbi Algorithm three different kind of operations have to be performed in each trellis section • the branch metric computations. The branch metrics depend on the received samples and the actual transition and express the likelihood of that transition. • the path metric computations, which are often called the Add-Compare-Select (ACS) operations. These computations consist of the calculation of the extended path metrics (Add), calculation of the path metric difference 6.AB(k + 1) = >'~tt(k) - Xj;t(k) (Compare) and deciding which of the incoming paths is best (Select) . • handling the decisions from the Select operations in one of another way. In order to generate decoded bits, the decisions from the ACS unit have to be processed. How this can be done is discussed in the next paragraph. 2.1 Implementations aspects A final decision can be made when all paths merge somewhere in the past. In practice it is difficult to wait for the desired merging characteristi ..s of the paths because this will lead to discontinuous outputs. Therefore usually a truncated version of the Viterbi 194 Algorithm is used, i.e. only a finite length called truncation length of the path history is memorized. The actual value of the truncationlength is a trade-off between complexity (path memory) and performance. As suggested before, there is more than one way to cope with the decision of the Select operation in the ACS unit [6J. One way is to store for each state at any time which of the incoming paths is the survivor. If there are only two incoming paths at each state at any time, one can store a 0 when the upper path survives (path A in Figure I) and a I otherwise. In this way it is possible to trace a path back in the path memory. Therefore this method is called the trace back method. Another way is to store for each path the corresponding information bits in a FIFO (first-in first-out) register. According to the result of the ACS unit, the register from the survivor path is copied and the information bit required for making the corresponding transition in the trellis is shifted in the register. Each iteration of the Viterbi Algorithm the output of the register of the best path produces a (decoded) bit. This method is called register exchange method. 2.2 Modelling of data transfer in the path memory The data transfer in the path memory of a Viterbi decoder can be modelled with I-bit memory cells and binary multiplexers [6, 7J. This can be done for both the trace back method and the register exchange method. In Figure 2 the Viterbi kernel and the path memory for a 4 state convolutional code is given. In [7J this model is called the >-_.:::_ou::::tp'_~ state ü state 1 state 2 state 3 Figure 2: Concept of a 4 state Viterbi decoder with traceback. reduced form of the Viterbi algorithm, while the register exchange method is called the dual form of the reduced Viterbi algorithm. The register exchange method can be 195 represented in a similar way [6, 7]. The functional block BMC represents the Branch Metric Calculations, while ACS stands for the Add-Compare-Select unit. The path metrics are denoted by Ài for i = 0, 1,2,3. The binary decision results of the ACS units (!Si for i = 0,1,2,3) are memorized in the I-bit memory cells of the path memory and are used as selection inputs of the multiplexers. A trace back is performed by looking at the output of the rightmost multiplexer of the corresponding best path metric. This output is obtained by propagating the leftmost bits through the multiplexers according to the memorized decisions of the ACS units. 2.3 The Soft Output Viterbi Algorithm The Soft Output Viterbi Algorithm [4] provides reliability information on the decoded bits. For both the trace back method and the register exchange method there exists a soft output version. With the trace back method, the reliability information is obtained by comparing the decoded bit from the best path with the bits that we would have obtained when we had selected the discarded paths (only the discarded paths within the truncation length are considered). When a path is discarded on base of a small path metric difference and that path would have led to another decision, then the decoded bit will get a small reliability. This can be fonnalized by looking into more detail to the path metrics. The ACS unit first calculates the extended path metrics (see Figure 1) : >.~.t(k) = ÀA(k) + Ic,A(k) and À'i;t(k) = ÀB(k) + Ic,B(k). Because we choose to use metrics that are logarithms of probabilities we can define X:.t(k) ~ logp:r(k) and Ài;t(k) ~ logpir(k). The survivor decision taken in the ACS unit is done on base of the (extended) path metric difference ~AB(k + 1). We now show t.ha.t this path metric difference call he considered as a log-likelihood ratio. ~AB(k + 1) À,:t(k) - À'Bt(k), logp,:t(k) -logp'Bt(k), pÄt(k) log p'Bt(k)' p",{'(k) (2) Hence, the ACS unit basically produces log-likelihood ratios. However, in the Viterbi Algorithm only the signs of the log-likelihood ratios are used. For generating a soft- output, at each trellis section the best path is traced back over the truncation length and the information bit at the last (w.r.t. trace back) transition determines the sign of the soft-output. The magnitude of the soft-output is determined by the path metric differences found along the traced back path. Not all path metric differences are used for the calculation of the magnitude. When a discarded path led to the same information bit, its path metric difference is not used. Only the path metric differences from discarded paths that would give another information bit will be used. Let bk-I be the result from the trace back from the beet path at Lime k (I stands for the truncation length) and let E be the set of time instants where the discarded paths would have 196 resulted in a different decision, then the log-likelihood L(bk-l) of bit bk_l is given by (3) where Ldisc(j) are the path metric differences along the traced back path. 3 The Soft-in Soft-out Multiplexer (SISOMUX) As explained in Section 2.2, binary-in binary-out multiplexers are basic building blocks when the transfer of data in the path memory is modelled. Generalization of such a multiplexer to a Soft-in Soft-out multiplexer results in a hardware oriented approach to soft-output Viterbi decoders. A simplified version of the Soft-in Soft-out multiplexer results in the Soft Output Viterbi Algorithm. 3.1 Generalization of the binary-in binary-out multiplexer The binary-in binary-out multiplexer with inputs ba, b, and selector input 8 and output c (See Figure 3) has the following input-output relation: (4) We want to use this Boolean expression as a base for the derivation of the Soft-in Soft-out multiplexer. Instead of using binary values for the input and output variables, c Figure 3: Binary-in binary-out multiplexer and Soft-in soft-out multiplexer. we want to use log-likelihood ratios. The log-likelihood ratio Ld of a binary variable d is given by . Pr(d=O) Ld = log Pr (d = 1)" (5) Applying the definition of log-likelihood ratio on the inputs and output of the binary multiplexer and assuming that the inputs of the multiplexer are independent, the output Le is given by : (6) As expected, we obtain for a very likely decision i L; -+ oo or L, -+ - ()and Lbo <, 0). One can consider this as a kind of controlled cross-talk. 198 Output Le of SISO multiplexer Output Le of SOYA multiplexer 12 :ç;,; 12 .. . ':'ç~ 10 : 10· 10 ':.[.]210 :9 _J" 8 6 4 F--'--'~' .,.~...-.~~ . ":8' 7 4· . _J" :. 4 . 'F! _'<---.5 .//--__:___:_~ 4· . ~---.3 ~ .: ... / 32" %o 2 ~;;,;+; t-.2:::::::=:=:=.~· %o 2' L~;;';+; _,<-----.1 ~ >< "" 0 -2:' -4 .. :---:-:.=~~~====-1 ~----O ~----'-3 ~---'-4" ,-~---'-5 . -2· >< ~ O}: . -2' :--~_:____:___:_"_r_:_-:-__:_:---:- -4 .. ./-j:..__' ---- t------·-3 f-,----.,------,-----c-. 1-------. 0 . -1 -2· -4.. -5 -6:' ..... -"'--'-6' -6 ... t-----.-6. . -7 t-------7 -8 :.-.......-6 -8 ; .. 1--------,-. -8 . . -9 1---:---:---:--' -9 -10 .: ':"':_'1-0' -10 - ~~~~~~~~~~~~ '-------. -rG: -10 -8 -6 -4 -2 0 2 4 6 8 10 -10 -8 -6 -4 -2 0 2 4 6 8 10 Selector input Ls Selector input Ls Figure 4: Example of multiplexer output. c The SISOMUX can change hard-decisions. For SOYA it is known that the hard- decision output is identical to that from the Viterbi algorithm. But with the SISOMUX the hard-decision output is not necessarily identical with the Viterbi Algorithm (-1 < ï-, < 0 and Lbo> 0). From a multiplexer point of view, the switching characteristics (b and c) from the SISOMUX can be defended. When the selector is very sure about its decision (IL.I large) one should choose for the indicated input. However, in case of an uncertain decision (ILsl small), the output Le is a weighted version of both inputs. From a coding point of view, it is unexpected that the SISOMUX can change the hard-decision output. Therefore, we studied this effect with a small experiment. Some simulations are done with a R = 1/2, K = 7 convolutional code on a AWGN channel. In Table 2 Bit Error Rates are shown of a Soft Output Viterbi decoder with SISOMUX and with SOVAMUX. The results show that the Bit Error Rate of a decoder with SISOMUX Bit Error Rate Eb/No SISOMUX SOVAMUX 1.0 4.49.10 2 4.53.10 2 1.5 1.60.10-2 1.64.10-2 2.0 5.79.10- 3 5.77· 10-3 2.5 1.57.10- 3 1.61.10-3 3.0 4.10 . 10- 4 4.11 . 10-4 Table 2: BER from R = 1/2, K = 7 convolutional code. and a decoder with SOVAMUX are similar. The distribution of the errors has not been studied. Because the SISOMUX can intervene the hard-decisions, the bit error distribution will certainly be different. 199 4 Discussion The application of Soft-in Soft-out multiplexers in the path memory of a Viterbi decoder provides a method to make soft outputs. The Soft Output Viterbi Algorithm (SOVA) can be described with a simplified version of the SISOMUX. Although the hard-decision output from a soft output decoder with SISOMUX will be different from that of hard output decoder, a small experiment showed that with a R = 1/2, K = 7 convolutional code on a AWGN channel the BER performance will be similar. The question whether a soft output decoder with SISOMUX will be better than for example SOYA is difficult to answer. The definition of better depends on the way the soft outputs are used. In order to show the practical and theoretical relevance of the SISOMUX, more research has to be done. References [1] Berrou, C. et al. Near Shannon limit error-correcting coding and decoding: Turbo codes (1). Proc. ICC '93, Geneva, Switzerland, pp. 1064-1070, May 1993 [2] Bahl, 1. et al. Optimal Decoding of Linear Codes for Minimizing Symbol Error Rate. IEEE trans. on Information Theory, Vol. IT-20, pp. 284-287, March 1974 [3] Petersen. .J. Implementierungsaspekte zur Symbol-by-Symbol MAP Decodierung von Fal- tungscodes. Proc. ITG Tagung, Codierung fur Quelle, Kanal und Übertragung, pp. 21-29, October 1994 [4] Hagenauer,.J. and P. Hoeher A Viterbi Algorithm with Soft-Decision Outputs and its Applications. Proc. Globecom '89, Dallas, Texas, pp. 47.1.1-47.1.7, November 1989 [5] Forney, G.D. jr. The Viterbi Algorithm. Proceedings of the IEEE, Vol.61, No. 3, pp. 268-278, March 1973 [6] Paaske, E. et al. An area-efficient path memory str-ucture for VLSI implementation of high speed Viterbi decoders. Integration, the VLSI journal, Vo1.12, pp. 79-91, 1991 [7] Breejen,.J. den, The energy complexity of the Viterbi Algorithm when realized in CMOS. Master Thesis, Report no. BSC085N95, Technical University Twente, November 1995 200 Repetition Feedback Coding Schemes for Binary-Input Soft-Output DMCs with Recursive Decoding M.S. Bargh and J .P.M, Schalkwijk Abstract Recently we have generalized multiple repetition feedback coding (MRFC) schemes as to be applicable to soft decision channels with noiseless feedback. These soft decision channels can be obtained from continuous channels by quantizing the output. In contrast with previous MRFC schemes, in the new schemes it is neces- sary to precode adaptively according to the channel output. In this contribution, we modify the recursive decoding algorithm in [6] to decode the new multiple repetition feedback scheme for binary input soft output channels. The transmis- sion rate of the new scheme almost achieves the capacity of the corresponding discrete memoryless channel. The maximum transmission rate for some binary input soft output channels is given by schemes with repetition parameters that are only decodable by recursive decoding methods. This reflects the importance of recursive decoding for binary input soft output channels. 1 Introduction Based on earlier results by Horstein [2], Schalkwijk [5] derived a class of simple and optimal strategies for block coding on the Binary Symmetrical Channel (BSC) with noiseless feedback. Let I and 0 denote the sets of input and output symbols, re- spectively, of a Discrete Merrioryless Channel (DMC). Becker [1] extended Schalkwijk's scheme, the so called Multiple Repetition Feedback Coding (MRFC) scheme, to DMCs with III = 101.Recently, Veugen [7] further extended MRFC schemes to DMCs with lIl::; 101· He divided the set 0 into two subsets I and 0 - I and considered all outputs in subset 0 - I as erasures. So far, all proposed methods are not suitable for the class of soft output DMCs for which also III < 101.In soft output DMCs, outputs within subset 0 - I carry some information about the transmitted symbols and, therefore, it is inefficient to consider these outputs as erasures. Here, a new repetition coding scheme, named Soft Repetition Feedback Coding (SRFC), and its recursive decoding method are introduced for binary- input soft-output symmetrical DMCs. This new scheme is explained using a two-input four-output symmetrical DMC, see the left hand side of Fig. 1. We call this channel a Binary-Input Quatery-Output (BIQO) channel. Moreover, it can be showed that the 'Eindhoven University of Technology, Department of Electrical Engineering, Group on Inforrnation and Communication Theory, PO Box 513, 5600 MB Eindhoven, The Netherlands. 201 block decoding of SRFC schemes is only possible for SRFC schemes with repetition parameters k > kt > 2. In this paper, we modify the recursive decoding algorithm for binary MRFC schemes [6J. The resulting algorithm is able to decode SRFC schemes with repetition parameters k > k' 2: 2. The fact that SRFC schemes with kt = 2 give the maximum throughput for BIQO channels increases the importance of recursive decoding methods. 2 A brief look at MRFC schemes In this section, two important aspects of MRFC schemes are explained. The basic error correcting mechanism of MRFC schemes is to force the output symbol of the channel to be the same as the input symbol. For example in the MRFC schemes for BSCs (referred to as Binary Repetition Feedback Coding (BRFC) schemes), when a 0 is erroneously received as 1, the transmitter repeats the input 0 bit k-times. By seeing subsequence 10k (i.e. 1 followed by k a's) in the received sequence, the decoder detects a transmission error and replaces the subsequence by a o. Of course, the input sequence to the transmitter should be constrained such that 10k and alk subsequences do not occur. Therefore, in an precoder the input message is mapped onto such a constrained sequence according to following precoding rule. After every change in the output bit of the precoder, there should not be k similar output bits. 3 SRFC scheme We explain the SRFC scheme for the BIQO channel. The block diagram of the system with a recursive decoder is depicted in the right hand side of Fig. 1. The outputs of the BIQO channel can be characterized by their type and status. The type of an output symbol indicates whether the output symbol is 1 or o. The status of an output symbol indicates whether the output symbol is a strong bit or a weak bit, designated by subscripts sand w, respectively, see the BIQO channel in Fig. 1. The status of the output symbol indicates the reliability of the output symbol from decoder's point of view. 3.1 Encoding of SRFC scheme We use the error correcting mechanism and the precoding rule of BRFC schemes to design a similar repetition scheme for BIQO channels. Since, in the BIQO channel, the number of inputs is less than the number of outputs, we can only force the type of the output symbol to be the same as the input bit. Therefore, every 0 of thc precoded sequence is allowed to be received as Os or Ow and every 1 is allowed to be received as 1w or 15. That is, every correct reception has a strong or weak status. If a weak error occurs (e.g. a 0 is received as 1w) the input bit is repeated kl-times and if a strong error occurs (e.g. a 0 is received as 15), the input bit is repeated k-times, k > k' 2: 2. According to our strategy, in case of a channel error (either a strong or a weak one), the status of the last correction bit determines the status of the corresponding preceded bit. 202 m o . . . . - . . . .' _., - . >... i., 1.·' -'--'" .............. 15 Channel erro~-_-J.......J remover - - - - I Figure 1: Left: A binary-input quatery-output (BIQO) channel; Right: Block diagram of the SRFC scheme with a recursive decoder The precoder of the SRFC scheme can be modeled as a Finite State Machine (FSM). Being at state Q and based on message m, the precoder produces the i-th precoded bit similar to its previous output bit with probability (3 (i.e. Pr{ Vi = Vi-d = (3), see the left-upper part of Fig. 2. Therefore, h((3) is the amount of information in Vi. After transmission, the status of this precoded bit, denoted by Si, becomes known to the precoder, and accordingly the next state of the precoder is determined (see the right- upper part of Fig. 2). Note that if u; is received erroneously, the last correction bit determines the status bit of Si. We can state that every precoded bit is received either weakly or strongly. Therefore, in SRFC schemes, it is necessary to precode adaptively to the channel output due to the fact that the reception status of precoded bits is not known beforehand. The probability of the strong reception of precoded bit Vi is: ()= Pr{si = s I Vi is received correctly} = _q-. q+q' The FSM of the SRFC scheme with k' = 3 and k = 5 is depicted in Fig. 2. After receiving the i-th precoded bit and knowing its status, being in state Q~w indicates that the last j + 1 bits of 1!. and §.. are Vi-j, Vi-Hl, ... ,Vi-l, Vi = mj or loJ (the distinc- tion between these two will be resolved by knowing Vl) and Si-j, Si-Hl,· .. ,Si-l, Si = S, -, ... ,-, w. Here a - denotes a don't care status which is based on the following assumption. At the precoder, if the type of the next output bit is the same as the type of the current output bit, then the status of current output bit is not relevant, because then the current output bit can not be the beginning of a forbidden subsequence. The solid transition edges in the FSM indicate that the type of the corresponding output bit of the precoder is the same as the type of the previous output bit. The dashed transitions show a type change. Also indicated in Fig. 2 , are the state transition probabilities. Resulting from the error correcting principles of the SRFC, the precoding rules of the new scheme are as follows. A change of preceded bit after a weak reception should not be followed by k' similar precoded bits. And similarly, a. change of preceded bit after a strong reception should not be followed by k similar preceded bits. 203 e 1- e *.. _-..,---, 4 e 1- e 'I ------r---------------------------------------------_ , / I I \ I I I 1- e " e V I I I, I, "I ...... _< __ I ) 1 I, I, / I , I I ... _ -......e:- I 1- 0<3 -->_ ... 1 Figure 2: The FSM of the precoder, for kt = 3 and k = 5. 3.2 Recursive Decoding As a result of the error correcting principle and the precoding rules of the SRFC scheme, the decoder only has to consider the number of bits of the same type after every type change to discover the forbidden subsequences, i.e. IwOk', Owl k', IsOk and Os Ik The block decoding of SRFC schemes is done from right to left, i.e. from the end to the beginning of the received sequence. This decoding technique is only applicable for SRFC schemes with k > kt > 2. Here we present the recursive decoding method of binary-input SRFC schemes. Unlike the previous solution, this method is a left-to- right decoding. This means that the decoding is done after a short amount of delay. A recursive decoder consists of three units: an estimator, a channel error remover and an inverse precoder, see the block diagram of the system in Fig. 1. 204 a-state -6 é--~--~--~ -5 -4 -3 -2 -1 T .r:'. w S ---_ s Figure 3: State diagram of recursive decoding when k' = 3 and k' = 5 3.2.1 Estimator In this unit the decoder obtains an estimation of the transmitted sequence. Let i. be the estimate of t: To estimate ti, the estimator uses the received subsequence :d+D = ri, ... ,ri+D, therefore, only a delay of D transmissions is necessary to estimate every transmitted bit. There are two estimation techniques: right-to-left, and left-to- right estimations. The right-to-left estimator, introduced in [7], uses the block decoding method of MRFC schemes to estimate ti by ti. Here we extend the left-to-right estimation method of [6] to binary input SRFC schemes. This estimation method, which was discovered in 1973 by Schalkwijk [6], has only been applicable for BRFC schemes. The possibility for variable delay decoding is the main advantage of the left-to-right estimation method. To estimate the i-th transmitted bit ti from D + 1 received symbols :d+D (or, in other words, from Xi+j and Yi+j representing the state and the type of received symbols ri+j, j : O... D) the state diagram of Fig. 3 is used. Starting from O-state, the random walk moves right or left according to Xi+j and Yi+j at the j-th step, j : O... D. Let Zj denote the state of the estimator after the j-th step with initial state Z-l = O. The rules of the random walk can be formalized as: Zj-l - 1 for Zj-l > 0 Zj-l - (k - I)Yi+j - (k' - 1)(1 - Yi+j) for Zj-l ::; 0 _ { Zj-l +1 for Zj-l 0.4 inthe range PI ~ 0.03. 6 Conclusions and recommendations MRFC schemes were extended to a class of soft output DMCs which, for example, can be obtained from quantizing the output of a continuous channel. Unlike in previous MRFC schemes, the precoding of the new scheme is dependent of the channel output. Here we explained a sequential decoding method which is able to decode SRFC schemes for the BIQO channel with repetition parameters k > k' ?: 2. Having low decoding complexity, the recursive decoder yields a rather large error exponent at rates very dose to the capacity of the BIQO channels. This decoding method is more important than the block decoding method due to the fact that SRFC schemes with k' = 2, which give maximum transmission rate for quantized AWGN channels, are only decodable by recursive decoding methods. Moreover, it seems possible to extend the idea of SRFC scheme to finite state channels. These channels model a fading channel where the state of the channel is a discrete-time stationary Markov process as described in [4]. 7 Acknowledgment The authors wish to thank Thijs Veugen for the proofreading of the manuscript. The first author would like to thank Tjalling Tjalkens, Erik Meeuwissen and Paul Volf for the helpful discussions. References [1J Donaid Wesley Becker. Multiple-repetition feedback coding. PhD thesis, University of California, 1973. [2J Michael Horstein. Sequential transmission using noiseless feedback. IEEE Trans. on Inform. Theory, 9:136-143, July 1963. [3J G. Nigel N. Martin, Jr. Glen G. Langdon, and Stephen J. P. Todd. Arithmetic codes for constrained channels. IBM J. Res. Dev., 27(2):94-106, March 198::!. [4J Mordechai Mushkin and Isreal Bar-David. Capacity and coding for the gilbert-elliott channels. IEEE Trans. on Inform. Theory, 35:1277-1290, November 1989. [5J J. Pieter M. Schalkwijk. A class of simple and optimal strategies for block coding on the binary symmetric channel with noiseless feedback. IEEE Trans. on Inform. Theory, 17(3):283-287, May 1971. . [6J J. Pieter M. Schalkwijk and Karel A. Post. On the error probability for a class of binary recursive feedback strategies. IEEE Trans. Inform. Theory, 19(4):498-511, July 1973. [7J Thijs Vengen. Multiple repetition coding for channels with feedback. PhD thesis, Eindhoven University of Technology, 1997. 208 .,. : _- -- ... • I I1 •_ _.___- ..... .._ ~04- • •