Twentieth , , Haasrode, Belgium May 27 & 28, 1999 PROCEEDINGS OF THE 20TH SYMPOSIUM ON INFORMATION THEORY IN THE BENELUX r I I PROCEEDINGS OF THE 20TH SYMPOSIUM ON INFORMATION THEORY IN THE BENELUX May 27-28, 1999 Haasrode, Belgium by A. Barbé E. van der Meulen P. Vanroose Published by : Werkgemeenschap voor Informatie- en Communicatietheorie, Enschede, The Netherlands, 1999 ij The zo= Symposium on Information Theory in the Benelux has been organised by: Prof. A. Barbé, Prof. E.C. van der Meulen, Dr. P. Vamoose from the Katholieke Universiteit Leuven, Belgium, Department of Mathematics and Department of Electrical Engineering, on behalf of the Werkgemeenschap voor Informatie- en Communicatietheorie and the IEEEBenelux Chapter on Information Theory. Program Committee: A. Barbé, B. Preneel, E.C. van der Meulen, J. Vandewalle, L. Van Eycken, P. Vamoose, P. Wambacq Financial support has been received from the Gauss Foundation CIP-gegevens Koninklijke Bibliotheek, Den Haag (NL) Proceedings Proceedings of the ... symposium on information theory in the Benelux. - Enschede: Werkgemeenschap Informatie- en Communicatietheorie Proceedings of the zov symposium: May 27-28, 1999, Haasrode, Belgium / by A. Barbé, E.C. van der Meulen, P. Vamoose, eds. Met lit. opg. ISBN : ISBN 90-71048-14-4 SISO Trefw. : informatietheorie iii Previous Symposia : 1. 1980 Zoetermeer, The Netherlands Department of Electrical 2. 1981 Zoetermeer, The Netherlands Engineering, Technical 3. 1982 Zoetermeer, The Netherlands University 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-71048-03-9 9. 1988 Mierlo, The Netherlands ISBN 90-71048-04-7 10. 1989 Houthalen, Belgium ISBN 90-71048-05-5 11. 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-71 048-08-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 IJsset. 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 19. 1998 Veldhoven, The Netherlands ISBN 90-71048-13-6 20. 1999 Haasrode, Belgium ISBN 90-71048-14-4 iv T ABLE OF CONTENTS Page • Guest lecture: Automatic sequences Fritz von Haeseler Session 1 : Data compression. video coding • Nonasymptotic lower bound on the maximal cumulative 17 redundancy of universal coding Vladimir B. Balakirskv, Frans M.J. Willems • Complexity reducing techniques for the CTW algorithm 25 Paul A.J. Volt, Frans M.J. Willems. Tjalling J. Tjalkens • Stochastic language modelling using context tree weighting 33 Peter Vanroose • A fast full search equivalent for mean-shape-gain vector 39 quantizers Jean Cardinal • Efficient coding of non-static texture in 3D scenes 47 Stef Desmet. Bert DeKnuydt. Luc Van Gooi. Luc Van Eycken • High-quality embedded compression for digital TV 55 Mihaela v.d. Schaar-Mitrea. Peter H.N. de With Session 2 : Cryptography 1 • Timing attack: what can be achieved by a powerful adversary? 63 Gaël Hachez, François Koeune, Jean-Jacques Ouisquater • The digital timestamping problem 71 Bart Van Rompay. Bart Preneel, Joos Vandewalle • Design of a secure timestamping service with minimal trust 79 requirement H. Massias. X. Serret Avila, J.-J. Ouisquater v Session 3 : Cryptography 2 • Characterization of the secrecy of a common key 87 constructed via data transmission over the two-way « AND» channel Vladimir B. Balakirsky • An attack against the Alabbadi-Wicker scheme 95 Sheng-bo Xu, Jeroen Doumen • Diffusion analysis of Feistel networks 101 Jorge Nakahara Jr, Joos Vandewalle, Bart Preneel • Anonymity controlled electronic payment systems 109 Joris Claessens, Bart Preneel, Joos Vandewalle Session 4 : Speech processing, communication networks • Improved noise robustness for speech recognition by 117 adaptive SVD-based filtering Kris Hermus, Patrick Wambacq and Dirk Van Compernolle • On the objective speech quality of the TETRA system 125 C.H.Slump, T. de Bont, A.M. Mertens, K. Verwey • Proposal for an adaptive multi-rate coder for GSM 133 A. Gerrits, A. Koppelaar, R. Taori, R. Sluijter, C. Baggen, E. Hekstra-Nowacka Session 5 : Classification, pattern recognition, neural networks • Linear feature transformations based on MCE and MMI 141 Kris Demuynck, Patriek Wambacq • Generalization capacity of neural networks for the classification 149 of ovarium tumours Ellen Lerouge, Sabine Van Huffel • Generalized moment invariants for viewpoint and illumination 157 independent color pattern recognition Florica Mindru, Theo Moons, Luc Van Gooi vi Session 6 : Shannon theory, detection, signal processing • On certain channels with a random parameter 165 Mark S.Pinsker, Vyacheslav V.Prelov, Edward C. van der Meulen • On error correction in information feedback schemes 173 M.S. Bargh, J.P.M. Schalkwijk • More on the duality between source and channel coding 181 V.N. Koshelev, E.C. van der Meulen • An efficient algorithm for selecting optimal configurations 189 of AR-coefficients Rudy Moddemeijer • Optimal resource management algorithm for adaptive modelling 197 J. Levendovszky, L. Kovács, I. Koller, E.C. van der Meulen Session 7 : Channel coding, zero-error information theory • Multirate block codes 205 J.B.H. Peek • The binary multiplying channel without feedback: Newrate 215 pairs in the zero-error capacity region Ludo Tolhuizen • Error correction capabilities of concatenated coding schemes 219 with single-trial bounded distance decoding and optimized erasing Jos H. Weber, Khaled A.S. Abdel-Ghaffar • Coding for random access communications 227 A.J. Han Vinck vii AUTHORS INDEX Abdel-Ghaffar K.A.S. 219 Peek J.B.H. 205 Baggen C. 133 Pinsker M.S. 165 Balakirsky V.B. 17,87 Prelov V.V. 165 Bargh M.S. 173 Preneel B. 71,101,109 Cardinal J. 39 Ouisquater J.J. 63,79 Claessens J. 109 Schalkwijk J.P.M. 173 de Bont T. 125 Serret Avila X. 79 de With P.H.N. 55 ~Iuijter R. 133 DeKnuydt B. 47 Slump C.H. 125 Demuynèk K. 141 Taori R. 133 Desmet S. 47 Tjalkens T.J. 25 Doumen J. 95 Tolhuizen L. 215 Gerrits A. 133 v.d. Schaar-Mitrea M: 55 Hachez G. 63 Van Compernolle D. 117 Hekstra-Nowacka E. 133 van der Meulen E.C. 165,181,197 Hermus K. 117 Van Eycken L. 47 Koeune F. 63 Van Gooi L. 47,157 Koller I. 197 Van Huffel S. 149 Koppelaar A. 133 Van Rompay B. 71 Koshelev V.N. 181 Vandewalle J. 71,101,109 Kovács L. 197 Vanroose P. 33 Lerouge E. 149 Verwey K. 125 Levendovszky J. 197 Vinck A.J. 227 Massias H. 79 Volt P.A.J. 25 Mertens A.M. 125 von Haeseler F. Mindru F. 157 Wambacq P. 117,141 Moddemeijer R. 189 Weber J.H. 219 Moons T. 157 Willems F.M.J. 17,25 Nakahara J. 101 Xu S. 95 viii PREFACE Since 1980 an Annual Symposium on Information Theory in the Benelux has been held. This sequence originated as an idea of Prof. Y. Boxma (T.U.Delft) to provide a platform where researchers in Information Theory from the various universities and other institutions in the Benelux could present their recent research results and have interaction. The response was so enthusiastic that in 1984 an organisation was formed, called the "Werkgemeenschap voor Informatie- en Communicatietheorie" (WIC). It is this Working Community for Communication and Information Theory that since 1984 formally organises this Annual Symposium. In 1989 the Information Theory Chapter in the Benelux Section of IEEE was formed. Since then, the IT Chapter cosponsors the organisation of this Annual Benelux Symposium. The location of the Information TheorvSvrnposiurn usually rotates over various sites in the Benelux, depending on which group takes the responsibility to carry out the local organisation. This year, the 20th Symposium on Information Theory in the Benelux is held in Belgium. It is organised locally by members of the Department of Electrical Engineering and the Department of Mathematics of the Katholieke Universiteit Leuven. Thus, this year we celebrate the 4th lustrum of the Annual Benelux Symposium on Information Theory, the 15th anniversary of the WIC and the 10th anniversary of the IEEE IT Chapter. For this occasion we have invited a special guest speaker, PD. Dr. Fritz von Haeseler, whose talk on automatic sequences will hopefully inspire all participants. These proceedings contain the papers submitted to and to be presented at this Symposium. Altogether there are 1 invited and 28 contributed papers. The ix topics channel coding, classification, communication networks, cryptography, data compression, neural networks, pattern recognition, sequences, Shannon detection theory, signal processing, speech processing, video coding and zero- error information theory are all represented in the program. The fact that a relatively small group of researchers is able to come up every year with about 30 papers in a wide range of topics within Information Theory demonstrates the strength and vitality of this group and of the WIC in particular. This success augurs well for the performance and well-being of our research community in the future. Whereas in the next millennium the emphasis will undoubtedly be on more technologically oriented topics, we are confident that the research presented here will provide an important contribution towards future deve opments in information technology. We would like to express our sincere thanks to Mrs. Ida Tassens from ESAT for the skilful assistance in putting these proceedings together. André Barbé Edward C. van der Meulen Peter Vanroose Leuven, May 1999 x Automatic sequences (Selected topics) Fritz van Haeseler ' CeVis Universität Bremen Universitätsallee 29 28359 Bremen Germany 1 Introd uction The goal of this note is to provide a glimpse into the realm of automatic sequences. The notion of automaticity comes in several disguises, all equivalent in a strict mathematical sense. In the course of this note we are going to know all these disguises. It is difficult to trace back all the contributions which have been made in the vast field of automatic sequences (and its equivalents). But it is beyond doubt that the pioneering work of A. Thue [56, 57J had a strong impact on the development of the theory of auto- matic sequences, where automatic sequences were investigated within the framework of combinatorics on words. Nowadays automatic sequence appear in several branches of mathematics, physics and computer science. In this short note we will sketch some of the fields where automatic sequences play a role. This article is by no way exhaustive, it covers only a small part of the world of automatic sequences - as does the list of references. Some further introductionary articles which emphasize and stretch out in directions different to ours are [3J and [IJ. We begin our travel through the world of automatic sequences with some well known 'classic' examples. Each of these examples exemplifies different aspects of automatic sequences. 2 A bouquet of examples 2.1 The Thue-Morse sequence It is not exaggerated to state that the (Prouhet)- Thue-Morse sequence is 'the' automatic sequence, see [9J where almost all different facets of the Thue-Morse sequence are dis- ~l1SRP.cl. Around the years 1906-1912 A. Thue was wondering whether it is possible to construct an infinite binary sequence such that the sequence contains no cube, i.e., no subword of the form www.wherewisafinitesequence(word)ofzerosandones.Itis plain that it is impossible to construct an infinite binary sequence which contains no square. In fact, the reader should try to prove that there is no such finite sequence of length greater than or equal to 4. A. Thue finally found a solution which can be generated in the following way. We consider the set of words formed by the letters 0 and 1 and define a substitution by 0-(0) = 01, 0-(1) = 10. If w is any word with letters 0,1, we define o-(w) by replacing each o by 01 and 1 by 10, respectively. Starting with 0 and iterating the map 0- we obtain a lCurrent Address: ESATjSISTA, KV Leuven, Kardinaal Mercierlaan 94,3001 Heverlee, Belgium sequenceof words o H Ol H OHO H 01101001 H 0110100110010110 H ... and we see that the beginning of the words stabilizes. Therefore it is justified to speak of the limit ofthis substitution. The limit is an infinite sequence f. = (tnk:::o the Thue-Morse sequence. It is an example of an infinite binary sequence without subword that is a cube. By its construction, we see immediately that the Thue-Mors·e sequence can be con- structed also recursively, i.e., if we set to = 0, then tn is given by t2n ~ tn t2n+l = 1 - tn for all n E N. Since the sequence has only the values 0 and 1, it is natural to replace the definition of t2n+l by t2n+l = tn + 1, where the addition is carried out modulo 2. 2.2 Paperfolding sequence The next sequence, again an automatic sequence, is a species in the huge zoo of paper- folding sequences, see, e.g., [27, 45, 46, 50] and the literature cited there. Take a long strip of paper, mark its right end and fold repeatedly such that the marked end is always the right end of the folded strip. Unfolding the strip in such a way that the folds form right angles and moving from the marked end towards the unmarked end along the strip produces a sequence of left- and right turns. Folding the paper once we obtain one left turn denoted by L. Folding the paper two times, the unfolding yields LLR, a third fold gives the word LLRLRR. Thus we have a sequence of words L H LLR H LLRLLRR H LLRLLRRLLLRRLRR ... , and, as for the Thue-Morse sequence, the n-th word is the initial word of the n + I-st sequence. We may therefore speak of the limit of this process. A careful analysis of the folding procedure reveals that we can obtain the n + I-st word wnH in the following way: if Wn = aOal ... aN, then is given by where L = R and vice versa. The limit sequence pf = (Pnk:::o of this process is called a paper-folding sequence. 2.3 Baurn-Sweet sequence The Baum-Sweet sequence [16] is a binary sequence bs = (bn)n>o, where the entries are determined by a condition imposed on the binary expansion of n. We set bo = 1 and define bn for n :::: 1 by b = {O the binary expansion of n contains an odd number off successive zeros n 1 otherwise The first few terms of the Baum-Sweet sequence are given by 1101101101001 ... 2 Note that we have that U2n+l = u.; (multiplication by two and addition of one does not change the number of successive zeros in the binary expansion of n), U4n = Un (multipli- cation by 4 does not change the parity of successive zeros), and U4n+2 = 0 (multiplication by 4 and addition of two creates an odd number of successive zeros). As we shall see later the Baum-Sweet sequence is also an example of an automatic sequence. 2.4 The Cantor set Let c(x) be a power series with coefficients in the real numbers lR. We are interested in the solutions of the following functional equation c(x) = (1 + X2)C(X3). It is clear that if c(x) is a solution of the above equation, so is rc(x), where r E IR. Thus we may assume that c(x) = 1 + CIX + C2X2 + ... and we find the solution 00 c(x) = IT (1 + x2-3 = 1 + x2 + x6 + x + X + x20 + X24 + X26 + ... j ) 8 I8 j=O which is the unique solution satisfying Co= 1. The sequence £ = (en)n>O is a binary sequence and automatic. It is related to the Cantor set C C [0, 1] in the following way 1 C = lim -3 {j I Cj = 1 and 0 :::::j < 3n} , n~oo n where the limit is taken w.r.t. the Hausdorff distance of compact non-empty sets, see, e.g., [29, 31, 47] for more details on fractal geometry. 3 Automatic sequences and finite automata The goal of this section is to give the definition of an automatic sequence and to state their basic properties. In particular, we explain the relation between automatic sequences and finite automata, thus clarifying the expression automatic sequence. A sequence (Jnk?o, where fn E A and A (the alphabet) is a finite set, is denoted by its generating function 00 n=O or simply by f. The set of all sequences is denoted by A(x). The advantage of this notion becomes clear if the set A carries an additional structure like a ring structure. We can then speak of sums and products of sequences. The sum of two sequences f(x), g(x) is simply the sum of the two power series, and the product of f(x) and g(x) is the usual product of two power series. From now on let k denote a natural number such that k :::::2. Definition 3.1 Let k :::::2 be a natural number and let A be a finite set. The map EA,j : A(x) -+ A(x), j = 0,1, ... , k - 1, defined as 00 n EJk,j(f) = EJk,j (~fnxn) = Lfkn+jX n=O is called j-decimation (w.r.t. k). 3 If it is clear from the context, we simply speak of a j-decimation and denote it by Oj. Decimations provide the proper framework for the repeated selection of subsequences. The set of all possible subsequences obtained by repeated decimations is called the k-kernel of a sequence. It is denoted by Note that for n = 0 we obtain the sequence L Definition 3.2 Let f(x) E A(x) be a sequence and let k be a natural number such that k ~ 2. The sequence f (x) is called k-automatic if its k-kernel is finite. Examples 1. The Thue-Morse sequence is an example of a 2-automatic sequence. Indeed, due to the recursive definition one easily computes that the 2-kernel consists of the sequences (t;')n2:0 and (tn + 1)n2:2. 2. By analysing the process of generating the paperfolding sequence one obtain that the 2-kernel has for elements, which are pf and the periodic sequences 11. = (LRLRLR ... ), MI. = (LLLL ... ), 1! = (RRRR ... ). - 3. The Baum-Sweet sequence is 2-automatic. That is a consequence of the recusive character of the Baum-Sweet sequence we already established. The 2 kernel is given by where Q denotes the constant sequence with values equal to O. 4. The sequence £ which is related to the Cantor set is a 3-automatic sequence. The 3-kernel contains two elements, namely £ and Q. 5. A sequence f(x) is called ultimately periodic if there exist K, NE N such that fn+N = t; holds for all n ~ K. An ultimately periodic sequence is k-automatic for all k ~ 2. 6. The sequence 00 with values in {O,I} is not k-automatic for all k ~ 2. 2 7. The sequence defined by 00 fk(X) = Lxkn, n=O where k ~ 2, is k-automatic. 2It is not too difficult to prove this assertion for a particular value of k. The hard part is to prove it for all k. 4 Lemma 3.3 A sequence f(x) E A(x) is k-automatic if and only if the sequence is k": automatic for all a E N. The second of the above examples shows that there exist sequences which are k-automatic for all k ~ 2. Due to a theorem of Cobham [23] these are the only examples. Theorem 3.4 A sequence is ultimately periodic if and only if there exist klJ k2 E N such that :~~~~is irrational and f(x) is kl-automatic and k2-automatic. An application of Cobham's Theorem for the proof of the non-automaticity of certain sequences is given in [5, 8]. As a next step, we introduce finite automata (in [24], finite automata are called uniform tag systems). A finite automaton is a finite 'device' which reads (either from the left to right or from the right to left) words formed with the letters {O, 1, ... , k - I} . During the successive reading the automaton changes its state depending on the current state a.nd the letter just read (the transition map), the final state of the automaton determines the output of the automaton (output function). For a general definition of a finite automaton the reader should consult Eilenberg [30]. We restrict ourself to a definition which fits our needs. A finite (k- )automaton consists of • a finite set S, the state set, • a distinguished element So E S, the initial state, • a map 7 : {O, ... , k - I} x S ~ S, the transition- or input map, • a map cp : S ~ A, the output map and A is the output alphabet. We denote a k-automaton by A = (S, so, 7, A, cp). If the input word is, e.g., ioili2' where ia, il, i2 E {O, ... , k - I}, then the state of the automaton after reading the word (from left to right) the automaton is in the state and the corresponding output is cp(7(i2,7(il,7(io,so)))) = cp(7;27i, 7io (.so)) E A. One should think of a finite automaton as a directed graph. The vertices correspond to the possible states of the automaton. There exists an arrow from s[ to S2 with label jE {O, ... , k - I} ifT(j, sd = S2 holds. j o k-l Figure 1: A part of a finite automaton as directed graph 5 To any finite k-automaton (5, So, r, A, cjJ)we can define a sequence (un)n2:0 with values in A. To this end we represent n E N, n =I 0, by its k-adic representation m n= Ljiki, i=O where i. E {O, I, ... ,k - I} and i-; =I O. Therefore n defines a finite worn which in turn defines Un by setting Un = cjJ(rim rim_I' .. rio (so)). For n = 0 we define Uo = cjJ(so). The sequence 'u(x) = I:unxn is generated by a finite k- automaton. The next Theorem, see Cobham [24], provides the link between k-automatic sequences and sequences generated by a k-automa.ton. Theorem 3.5 A sequence f E A(x) is k-automatic if and only if there f is generated by a finite k-automaton. - - It is interesting to note that the construction of the k-automaton which generates a k- t automatic sequence is a straightforward procedure. If E A(x) is a k-automatic sequence, then A(J) = (k (f) f . {O, ... , k - I} x.kerk(i_) -+ kerk(i_) A,I,. kerk(i_) -+ A ) - erk _ ,_,r. (j,!J.) H 8j(lJ.) , ,'I" lJ.H ho defines a k-automaton that generates the sequence. In [37], the directed graph associated with the automaton AU) is called the kernel graph of f. The kernel graph allows to decide whether an automatic sequence is (ultimately) periodic or not. Theorem 3.6 If fE A(x) is k-automatic, then the automaton AU) is the smallest (with regard to the number of states) of all automata (5, so, r, A', cjJ) that-generate t. and satisfy cjJ(s) = cjJ(S') if r(O, s) = Si. Although the result seems to be folklore, the author knows no reference, except [41]. In Figure 2, we present the kernel graph of the paperfolding sequence. The computa- tion of the kernel graph for the remaining examples is left to the reader. 4 Automatic sequences and substitutions In this section we explore the relation between automatic sequences and substitutions. 3 A substitution is basically a kind of rewritingrule. If al ... an is a. word over the (finite) alphabet A, then a substitution a replaces each letter ai by a word (or letter) Wa, = a(ai)' A substitution is a map a from A to A*, the set of all words with letters in A. Of particular interest for our considerations are the so called constant length substi- tutions. Any letter a E A is replaced by a word of length equal to k, where k ;:::2, cf., the Thue-Morse sequence from Section 2.1. These substitutions are called k-substitutions. Note that a substitution is also well defined on the set of sequences A(x). A sequence l_ E A(x) is called a fixed point of the substitution if a(i_) =L 3Similar terms are 'inflation rules' or 'morphism' 6 o o 1 o o 1 1 Figure 2: Kernel graph of the paperfolding sequence (see Example 2 on page 4) Definition 4.1 A sequence j(x) E A(x) is generated by a k-substitution ijthere exists a finite set B a k-subsiitution u : B --+ B* with fixed point E E B(x) and a map cp: B --+ A such that holds. The connection between k-automatic sequences and sequences generated by a k-substitution was again investigated by Cobham in [24J. Theorem 4.2 A sequence t E A(x) is k-automatic ij and only ij t is generated by a k-substitution. By Lemma 3.3, we have that a sequence which is generated by a kO-substitution is k- automatic and therefore generated by a k-substitution. Examples 1. The 2-substitution for the paperfolding sequence is given by u(O) = Ol, u(l) = 21, u(2) = 03, u(3) = 23. The map cp: {a, 1,2, 3} --+ {L, R} is given by cp(O) = cp(l) = L cp(2) = cp(3) = R. 7 2. The 2-substitution for the Baum-Sweet sequence is given by a(O) = 01, a(l) = 21, a(2) = 13, a(3) = 33, and rjJ: {a, 1,2,3} -+ {a, I} is defined as rjJ(O)= rjJ(l) = 1 rjJ(2) = rjJ(3) = O. 3. The 3-substitution for the sequence f. is given by o (l ) = 101, a(O) = 000, and rjJ: {O, I} -+ {O, I} is the identity map. Fixed points f of a non-constant length substitution prove to be much more difficult to handle, see [3] and the references cited there. 5 Automatic sequences and equations The most fruitful relation of automatic sequences and other structures in mathematics was discovered some ten years ago. Of course, in order to explore this connection we have to assume that our set A has an additional structure, namely the structure of a finite field of characteristic p.4 To emphasize the fact that our sequence has values in a field we write E lFp(x), i where lFp denotes a field of characteristic p. Since we can add and multiply power series (sequences) the question arises whether these operations preserve the automaticity. The answer is in the affirmative. Lemma 5.1 Let f(x), g(x) E lFp(x). If f(x) and g(x) are k-automatic, then the sequences r f(x) + Sg(.T), r, sE lFp f(x)g(x) are also k-automatic. The proof of the first assertion is an immediate consequence of the lFp-linearity of the decimations. The second assertion is based on a multiplication formula for the decimation of a product, see, e.g., [40]. Note further that the assertion of Lemma 5.1 remains true if the field is replaced by an arbitrary (finite) ring. Also note that k is not related to the characteristic p of the field under consideration. If k is related to the characteristic p, then we have an algebraic characterization of k-automatic sequences. Theorem 5.2 A sequence f(x) E lFp(x) is p-automatic if and only if the power series satisfies ro(x) + rl(x)f(x) + r2(x)f(x)2 + ... + rD(x)f(x)D = 0, where rj(x), j = 0, ... , D are rational functions, i.e, quotients of polynomials. 4p is always a primenumber, the number of elements is equal to v", where Cl< E N. The simplest finite fields are ·Zp (addition and multiplication modulo the prime number p) 8 A proof may be found in [21, 22]. Since a p-automatic sequence f(x) E IFp(x) satisfies an equation of the above type, one says that f(x) is algebraic over IFp((x)), the field of rational functions. In a field of characteristic p we have the following identity f(x)P = f(xP) for all f(x) E IFp(x). Therefore the above equation can be transformed into a Mahler equation, i.e., f(x) satisfies po(x)f(x) + Pl(x)f(xP) + P2(x)f(xP2) + ... + PL(x)f(xpL+l) = 0, where Pj(x), j = 0, ... , L are polynomials with coefficients in IFp. Examples 1. We show how to achieve an algebraic equation for the Thue-Morse sequence. We . consider t(x) = Ln~o tnxn E Z2(X) and obtain t(x) = Ltnxn = Lt2nx2n + 2:t2n+lX2n+l, n~O n~O n~O the recurrence relations and f(x)2 = f(x2) (in Z2(X)!) yield x t(x) = t(x? + xt(x? + 1 + x2 as an algebraic equation for the Thue-Morse sequence. 2. In order to find the algebraic equation for the paperfolding sequence we replace L by 1 and R by 0, respectively. Then pf(x) satisfies the following equation 1 + (1 + x)4f(x) + x(l + x)4f(x)2 = o. 3. The Baum-Sweet sequence bs(x) E Z2(X) satisfies the equation 1+ xf(x) + f(X)3 = o. 4. The sequence c(x) E Z3(X) satisfies the equation used to define the sequence, i.e., f(x) = (1 + x2)f(x3) = (1 + x2)f(x? It is plain that the above result translates to arbitrary p-automatic sequences f E A(x). Choose c¥ E N such that v" ?: Card(A) and embed A into IFp, a field with p" elements, It remains to discuss the situation if a sequence f(x) E R(x), where R is a finite corn- mutative ring (by the above embedding argument that is no restriction), is k-automatic and k is not a prime number. In [37] it is shown that a similar result can be achieved, see also [17, 28, 48, 49] for related results. Theorem 5.3 If f(x) E R(x), where R is a commutative ring, is k-ouiomaiic, then f(x) satisfies a M ahler equation, i. e., po(x)f(x) + Pl(Xk) + ... + PD(x)f(XkD) = o. Unfortunately, as shown by an example in [37] and by a more systematic study in [39], the converse is not true, i.e., there exist Mahler equations which posses non-x-automatic solutions. 9 6 Automatic sequences in higher dimensions It is quite natural to generalize the concept of automaticity to higher dimensions, i.e., to sequences which are multi-indexed. In [51, 52], the author considers sequences of the form 00 f(x, y) = 2.: fn,mxnym, n,m=O where fn,m E A. The analogous notion of k-decimations are maps Ok,(i,j), or O(i,j) for short, defined as 00 O(i,j)(l_) = 2.: fkn+i,km+jXnym, m,n=O where (i,)) E {O, ... , k - IF. The k-kernel of a sequence is defined in the same way as for one-dimensional sequences. A double-indexed sequence is called k-automatic if the k-kernel is finite. As for one-dimensional sequences we have the same characterizations of k-automatic sequences, i.e., a k-automatic sequence is generated by a finite automaton (the labels assigned to the arrows are of the form (i, j)), it is a fixed point of a substitution (a letter is replaced by a k x k-square of letters), and a sequence f (x, y) E Fp (x, y) is p- automatic is p-automatic if and only if f(x, y) satisfies a Mahler equation (replace the x by x, y in Theorem 5.2). Of course, all results mentioned so far readily generalize to multi-indexed sequences (fnl,n2, .. ,nd) with values in a finite set. The same holds for Theorem 5.3. In certain applications, see the next section, it may be necessary to study bi-infinite sequences, i.e., Ut}lEZ with values in a finite set, or even sequences ofthe form (f(n))(n)EZd. In [37] a general framework is developed to deal with sequences of this type. By Cobham's Theorem, we know that the only one-dimensional sequences which are k-automatic for all k are the ultimately periodic sequences. In [19, 20], one can find a discussion of the situation for multi-indexed sequences. Using tools from the theory of first order logic they present the celebrated Cobham-Semenov- Theorem, which gives a complete description of multi-indexed sequences that are k-automatic for all k. In [39] multi-indexed sequences with values in a finite ring and which are k-automatic for all k where characterized in complete algebraic terms. Besides moving into higher dimensions there are other kinds of generalizations of automaticity, like k-regular sequences [2, 17, 53] or (D, b)-sequences [7]. 7 Applications of automatic sequences In this section we touch upon same applications of automatic sequences. 7.1 Number tables One well known number table is given by the binomial coefficients, i.e., the double se- quence .c» n,m::O:O' and it has been observed by several authors, see [18, 54], that the tables reduced modulo a number I exhibit certain patterns. The proper framework for a description of these patterns is the notion of automatic double sequences. In [4, 33] the ob- 10 Figure 3: Binomial coefficients mod 3 (white= 0, black= 1, grey= 2) served patterns for the binomial coefficients are classified using the notion of automaticity. The main result is Theorem 7.1 The double sequence ((;:J mod l)n,mê:o is k-tiuiomatic if and only if I and k are powers of the same prime number. Similar results for other number tables like Gaussian and Sterling numbers may be found in [6,42,43]. It is worthwhile to mention that these patterns lead to fractal objects, e.g., [29, 31], which can be described as attractors of a hierarchical iterated function system, [47], or as a graph directed construction, [10, 44]. 7.2 Automatic sequences and cellular automata Cellular automata, see [60], are discrete dynamical systems. A one dimensional cellular is a map that assigns to a hi-infinite string of cells, where each cell has states in a fixed set A, a new string in such the way that the new entry of the cell at position i is completely determined by the states of finitely many neighbors. We denote the set of bi-infinite sequences with values in A by A±oo(x) and the elements are written as J(x) = "EmEzJnxn or L = (Jn)nEZ. A cellular automaton is a map C : A±oo -+ A±oo such that there exists a function (the local rule) 1> : A21lHl -+ A with holds for all i E Z. 11 Now it becomes clear how automaticity questions enter the stage. Given an initial configuration 1.0E A±oo and 311 cellular automaton C, we consider the double sequence, the orbit of f_ (w.r.t. C, O(f_) = (Un,t)nEZ,t::::O defined as i.e., the value of the cell at position n after t time steps. That clearly defines a double sequence which can be investigated in terms of automaticity. Figure 4: Orbit of a CA For linear cellular automata, i.e., A = n is a finite ring and the local rule cp : n2M+l -+ R: is a linear map, a thorough study of the orbits has been made in [5]. Since the orbits of cellular automata can be considered as special number tables, there is also a connection between orbits of cellular automata and fractals. This connection was observed by [55, 58, 59] and further investigated in [32, 34, 35, 36]. Finally we mention number tables or orbits of linear cellular automata which exhibit a particular pattern, namely being invariant under a certain renormalization operation, the so called coarse graining invariant tables, cf., [11, 12, 13, 14]. They provide further examples of automatic double sequences. 7.3 Automatic sequences and images As already mentioned in the two subsections above, for certain automatic number tables or orbits of cellular automata one we can associate a (fractal) subset of the plane with the number table. The fractal set itself is generated by a (hierarchical) iterated function system ([10, 15, 15, 44] to name but a few). It was the author of [15] who used the methods of (hierarchical) iterated function systems as a way for data compression of images. In the same vein is the work presented in [26, 25], where finite automata are used to generate and process images. References [1] J.-P. Allouche. Automates finis en théorie des nombres, Expo. Math. 5(1987), 239- 266. [2] J.-P. Allouche, J. Shallit. The ring of k-regular sequences, Theoret. Comput. Sei. 98(1992), 163-197. 12 [3J J.-P. Allouche, M. Mendès France. Automata and automatic sequences, in F. Axel et al. (eds.), Beyond Quasicristals, Les Editions de Physique, Springer, Berlin, 1994, 293-367. [4J J.-P. Allouche, F. von Haeseler, H.-O. Peitgen, G. Skordev. Linear cellular au- tomata, finite automata and Pascal's triangle, Discrete Appl. Math. 66(1996), 1-22. [5J J.-P. Allouche, F. von Haeseler, H.-O. Peitgen, A. Petersen, G. Skordev. Auto- maticity of double sequences generated by one-dimensional linear cellular au- tomata, Theoret. Oomput. Sci. 188 (1997), 195-209. [6J J.-P. Allouche, G. Skordev. Schur congruences, Carlitz sequences of polynomials and automaticity, Inst. Dyn. Syst., Universität Bremen, Rep. 399, 1997. [7J J.-P. Allouche, E. Cateland, W. J. Gilbert, H.-O. Peitgen, J. O. Shallit, G. Skordev. Automatic maps in exotic numeration sequences, Theory of Computing Systems 30 (1997), 285-331. [8J J.-P. Allouche, F. van Haeseler, E. Lange, A. Petersen, G. Skordev. Linear cellular automata and automatic sequences, Parallel Computing 23(1997), 1577-1592. [9J J .-P. Allouche, J. Shallit. The ubiquitous Prouhet- Thue-Morse sequence, Proceed- ings of the "International Conference' on Sequences and their Applications - SETA '98", Singapore, to appear. [10J Ch. Bandt. Self-similar sets 1. Topological markov chains and mixed self-similar sets,Math. Nachr. 142(1989),107-123. [lIJ A. Barbé, F. von Haeseler, H.-O. Peitgen, G. Skordev. Coarse-graining invariant or- bits of one-dimensional two-state linear cellular automata, Internal. J. Bifur-cation and Chaos 5(1995), 1611-1631. [12J A. Barbé. Coarse-graining invariant orbits of one-dimensional Zp-linear cellular automata, Internal. J. Bifurcation and Chaos 6(1996), 2237-2297. [13J A. Barbé. Complex order from disorder and from simple order in coarse-graining invariant orbits of certain two-dimensional linear cellular automata, Internal. J. Bifurcation and Chaos 7(1997), to appear. [14J A. Barbé, G. Skordev. Decimation invariant sequences, SISTA/COSIC report nr.97-106, Katholieke Universiteit Leuven, 1997. [15J M. Barnsley. Fractals everywhere, Boston MA, Academic Press Inc., 1988. [16J L. Baum, M. Sweet. Continued fractions of algebraic power series in characteristic 2, Ann. Math, 107(1976), 593-610. [17J P.-G. Becker. k-regular power series and Mahler-type functional equations. J. Number Theory 49(1994),269-286. 13 [18J B. Bondarenko, Generalized Triangles and Pyramids of Pascal, Their Fractals, Graphs and Applications, Tashkend, Fan, 1990 (in russian). [19JV. Bruyère, G. Hansel, C. Michaux, R. Villemaire. Logic and p-recognizable sets of integers, em Bull. Belg. Math. Soc. 2(1994), 191-238. [20J V. Bruyère, G. Hansel, C. Michaux, R. Villemaire. Correction to: Logic and p- recognizable sets of integers, em Bull. Belg. Math. Soc. 4(1994), 577. [21J G. Chris tol. Ensembles presque périodiques k-reconnaissables, Theoret. Comput. Sci. 9(1979), 141-145. [22] G. Christol, T. Kamae, M. Mendès France, G. Rauzy. Suites algébriques, automates et substitutions, Bull. Soc. Math. France 108(1980), 401-419. [23J A. Cobham. On the base-dependence of sets of numbers recognizable by finite automata, Math. Systems Theory 3(1969),186-192. [24] A. Cobham. Uniform tag sequences, Math. Systems Theory 6(1972), 164-192. [25J K. Culik Il, S. Dube. Automata-theoretic t.echniques for image generation and com- pression, in Foundations of software technology and theoretical computer science, Lect. Notes Comput. Sci. 472, 1990, 76-90. [26J K. Culik Il, I.Fris. Weighted finite transducers in image processing, Discrete Appl. Math. 58(1995), No.3, 223-237. [27J F.M. Dekking, M. Mendès France, A. van der Poorten. FOLDS!, Math. Inteli. 4(1982),130-138,173-181 and 190-195. [28J P. Dumas. Algebraic aspects of B-regular sequences, in A. Lingas, R. Karlsson and S. Carlsson (eds), Automata, Languages and Programming, Lect. Notes Comput. Sci., Springer-Verlag, 1993,457-468. [29J G. Edgar. Measure, Topology and Fractal Geometry, Springer-Verlag, New York, 1990. [30J S. Eilenberg. Automata, Languages and Machines, VoI.A, Academic Press, New York, 1985. [31J K. Falconer. The Geometry of Fractal Sets, Cambridge Univ. Press, New York, isss. [32] F. von Haeseler, H.-O. Peitgen, G. Skordev. On the fractal structure of rescaled evolution sets of cellular automata and attractors of dynamical systems, Inst. Dyn. Syst., Univ. Bremen, Rep. 278, 1992. [33J F. von Haeseler, H.-O. Peitgen, G. Skordev. Pascal triangle, dynamical systems and attractors, Erg. Th. Dyn. Syst. 12(1992),479-486. [34J F. von Haeseler, H.-O. Peitgen, G. Skordev. Cellular automata, matrix substitu- tions and fractals, Ann. Math. and Art. Intell. 8 (1993), 345-362. 14 [35J F. von Haeseler, H.-O. Peitgen, G. Skordev. Multifractal decomposition of rescaled evolution sets of equivariant cellular automata,Random and Comput. Dynamics 3(1995),93-119. [36J F. von Haeseler, H.-O. Peitgen, G. Skordev. Global analysis of self-similarity fea- tures of cellular automata: selected examples, Physica D 86(1995), 64-80. [37J F. von Haeseler. On algebraic properties of sequences generated by substitutions over a group, Habilitationsschrift, Universität Bremen, 1995. [38J F. von Haeseler. A solution of the periodicity problem for automatic sequences, Inst. Dyn. Syst., Universität Bremen, Rep. 416, 1997, Journalof Automata, Lan- guages, and Combinatorics to appear. [39J F. von Haeseler, A. Petersen. Automaticity of Rational Functions, Beiträge zur Algebra und Geometrie 39(1998), No. 1, 205-215. [40J F. von Haeseler, W. Jürgensen. Automaticity of Solutions of Mahler equations, Universität Bielefeld, Forschungsschwerpunkt Mathematisierung - Strukturbil- dungsprozesse, Preprint 127, 1998. Proceedings of the "International Conference on Sequences and their Applications - SETA '98", Singapore, to appear. [41J F. von Haeseler. Aspects of automatic sequences, de Gruyter, Berlin, to appear. [42J F. von Haeseler, H.-O. Peitgen, G. Skordev. On the fractal structure of rescaled evolution set of Carlitz sequences of polynomials, Discrete Appl. Math., to appear. [43J E. Lange, H.-O. Peitgen, G. Skordev. Fractal patterns in Gaussian and Stirling number tables, Ars Combinatoria 48(1998),3-26. [44J R. Mauldin, S. Williams. Hausdorff dimension in graph directed construe- tion, Trans. Amer. Math. Soc. 309 (1989), 811-829. [45J M. Mendès France. Paper folding, space-filling curves and Rudin-Shapiro se- quences, Contemporary Mathematics 9(1982), 85-95. [46J M. Mendès France, A. van der Poorten. Arithmetic and analytic properties of pa- perfolding sequences, Bull. Austr. Math. Soc. 24(1981), 123-131. [47J H.-O. Peitgen, H. Jürgens, D. Saupe. Chaos and Fractals, Springer-Verlag, New York, 1992. [48J A.J. van der Poorten. Substitution automata, functional equations and functions algebraic over a finite field, Contemp. Math. 9(1982), 307-312. [49J B. Randé. Équations fonctionelles des Mahler et fonctions élémentaires, Thèse, Univeristé de Bordeaux, 1992. [50J A. Rodenhausen. Paperfolding, generalized Rudin-Shapiro sequences, and the Thue-Morse sequence, Fractals 3(4)(1995),679-688. [51J O. Salon. Suites automatiques á multi-indices, Séminaire de Théorie des nombres Bordeaux, Exp. 4 (1986-1987),4-01 - 4-27. 15 [52] O. Salon. Suites automatiques á multi-indices et algébricité, C. R. Acad. Bei. Paris, Série 1305(1987),501-504. [53] J. Shallit. A generalization of automatic sequences, Theoret. Comput. Bei. 61(1988),1-16. [54] M. Sved, J. Pitman. Divisibility of binomial coefficients by prime powers a geomet- rical approach, Ars Combinatoria 26A(1988), 197-222. [55] S. Takahashi. Self-similarity of linear cellular automata,J. Comput. Bei. 44(1992), 114-140. [56] A. Thue. Über unendliche Zeichenreihen, Norske vid. Belsk. Skr. 1. Mat. Kl. Chri- tiana 7(1906), 1-22. [57] A.Thue. Lage gleicher Teile gewisser Zeichenreihen, Norske vid. Belsk. Bkr. 1. Mat. Kl. Chritiana 1(1912), 1-67. [58] S. Willson. Cellular automata can generate fractals,Discr. Appl. Math. 8(1984), 91-99. [59] S. Willson. Calculating growth rates and moments for additive cellular au- tomata,Discr. Appl. Matlt. 35(1992), 47-65. [60] S. Wolfram. Theory and application of cellular automata, World Scientific Pub!. Co. Pte. Lid., Singapore, 1996. 16 NONASYMPTOTIC LOWER BOUND ON THE MAXIMAL CUMULATIVE REDUNDANCY OF UNIVERSAL CODING Vladimir B. Balakirsky and Frans M. J. Willems Eindhoven University of Technology, Electrical Engineering Department P.O.Box 513, 5600 MB Eindhoven, the Netherlands v.b.balakirsky,f.m.j.yillems~ele.tue.nl We address the problem of estimating the maximal cumulative redundancy of unioersol coding and present a nonasymptotic lower bound for the Ber- noulli sources with the unknown parameter that can be used for different assignments of the length distributions of both the messages and codeuiords; this includes the variable-to-variable length coding. The approach can be directly generalized to the other source models. INTRODUCTION, NOTATION, AND STATEMENT OF THE PROBLEM Let us consider a Bernoulli source with the parameter () E (0,1), i.e., the probability that the source generates a binary sequence u of length a(u) + b(u) consisting of a( u) zeroes and b( u) ones is equal to Po(u) = (1 _ (})a(u)(}b(u). (1) Suppose also that S c {O,1}* is a finite set of binary sequences chosen in such a way that {Po(u), u E S} is the probability distribution on S for any () E (0,1), L Po(u) = 1. (2) uES The set S will be referred to as the source segment set, and we represent it as a union of pairwise disjoint subsets S(a, b) = { u ES: a(u) = a, b(u) = b }, a, b ? O. (3) Then (1)-(3) imply L IS(a,b)I(I- (}t(}b = 1. (4) a,b 17 For any encoding f : 5 ---+ {O, 1}' such that L 2-1/(")1 < 1 (5) "ES where If(u)1 denotes the length of the binary sequence f(u), let us introduce the function Qo(f,5) = L Po(u) . If(u)l- L Po(u) log p:--(1 ) (6) "ES "ES 0 U which is known as the cumulative redundancy of coding the sequences belonging to the source segment set ("coding" is understood as a pair (encoding, decoding) where the decoding is assumed to be noiseless). The function Qo(f, 5) is non- negative,as it follows from the Shannon's coding theorem, and can serve as a measure of the coding performance. There are several explicit constructions of codes for the case when the parameter e is known. In particular, one can assign the Huffman or arithmetic code and get the redundancy which is not greater to 1 and 2 bits, respectively. The case when f should be assigned without knowing the e is regarded as unioersol coding. Then a proper measure of the performance is the maximal value of the function Qo(f, 5) for all e E (0,1) distinguished as the maximal cumulative redundancy of unioersol codino, Q(f,5) = max Qo(f, 5). (7) 0<0<1 One of the explicit constructions of universal codes is based on the context tree weighting method [5J which guarantees the cumulative redundancy not greater to the function depending on the average source segment length, £(5) = L Po(u) . lul "ES as log.)£(5). This means that Q(f,5) is not bounded from above by a constant like for non-universal codes. It is also known [2J that the cumulative redundancy of any universal code of a fixed length (the fixed-to-variable length coding) is not less than a function proportional to log .)£(5). However, as it follows from the arguments used in the proof, this lower bound can be applied only in the asymptotics when £(5) is very big and, for the practical cases, we could only say that the maximal redundancy is non-negative. Another important class of source coding problems concerns different assignments of the length distributions 18 of the sequences belonging to the source segment set and the code sequences, and one usually distinguishes between the fixed-to-variable, variable-to-fixed, and variable-to-variable length coding. Therefore we address the problem: derive a nonasymptotic lower bound on the maximal cumulative redundancy of unioersol coding that can be used for any source segment set satisfying (2) and any encoding function satisfying (5). THE KRICHEVSKY -TROFIMOV ESTIMATOR AND ITS PROPERTIES The universal coding technique developed in [3], [4], [5] and other papers essentially uses the properties of the function introduced in [1] and known as the K richevsky- Trofimov estimator, Pe(a, b) = {J (1 - B)BBb dB, for all a, b ~ o. (8) Jo 1rV(1- B)B The function Pe(a, b), a, b ~ 0, has the following remarkable properties: (PO) Pe(O,O) = 1; (PI) Pe(a, b) = Pe(a + 1, b) + Pe(a, b + 1), for all a, b ~ 0; (P2) for all a, b ~ 0 such that a + b > 0, the value of Pe(a, b) can be recurrentlu computed based on (PO) and equations a + 1/2 b + 1/2 Pe(a + 1, b) = b Pe(a, b), Pe(a, b + 1) = b Pe(a, b); a+ +1 a+ +1 (P3) for all a, b ~ 0 such that a + b > 0, where the product is understood as 1 when the lower limit is greater to the upper one and (9) Furthermore, using (4), (8), and (PO) we have L Pe(a(u), b(u)) = L IS(a, b)IPe(a, b) uES B,b 19 i.e., Pe = {Pe(a(U), b(u)), U ES} is the probability distribution on the source segment set. The upper bound on the cumulative redundancy proved in [5] can be pre- sented as a b (1 - e)aeb 31*: eeU*,S) < 1 +:L IS(a,b)l(l- e) o log. P ( b) (11) G,b e a, < 2 + :L IS(a, b) I(1 - e)aeb log v'a+b. (12) a,b The term 1 at the right-hand side of (11) comes from the assumption that we use the Huffman code for the sequences included in the source segment set and Pe is the probability distribution on this set, and the sum on a, bin (11) can be obtained using the approach developed in the proof of Theorem 2 in [5] since the coincidence of the lengths of the code sequences is not used in the analysis. The inequality (12) follows from (9). We try to derive a converse statement to the method of proving the inequality (12) rather than to the final result and conclude with the bound for any source segment set S and encoding f satisfying (2) and (5). This inequal- ity is proved in the next section. LOWER BOUND ON THE MAXIMAL CUMULATIVE REDUNDANCY OF UNIVERSAL CODING Theorem: If (2) and (5) holds, then the maximal cumulative redundancy of universal coding defined by (6), (7) satisfies the inequality (13) where H(Pe(S)) = E 1 IS(a, b)lPe(a, b) log Pe(a, b) (14) 20 and fl (1 - B)aBb [ 1 1] He(S)=LIS(a,b)llo a,b 0 1f J (1 - B)B alog1_B+blog o dB. (15) Proof: Let us upper-bound the maximal cumulative redundancy by the expected value of (joU, S) over the ensemble specified by the probability density function 1f-I(I- B)-1/2B-I/2,B E (0,1), i.e., 1 loo J (1 - B)B (jo(j,S) se. l (jU,S) ~ (16) 1f Let us denote 2-lf(ull P(u) = L: 2-lf(U'll' for all u E S. u'ES Then (joU,S) = L Po(u) log ~((u)) -log LTlf(ull ~ L Po(u) log ~((u)) uES U uES uES U where the inequality follows from (5). Therefore we can continue (16) as (jU, S) > f J o 1f 1 (1 - 6)B [L uES Po(u) log ppO((u))]dB u L fl Po(u) [lOg Po(u) + log Pe(a(u), b(U))] ae uEs lo 1fJ(1- B)B P(u) Pe(a(u),b(u)) L t' Po(u) log Po(u) dB lo 1fJ(I- B)B uEs Pe(a(u),b(u)) + L fl Pil(u) log Pe(a(u), b(u)) dB uEslo 1fJ(I- B)B P(u) b b L IS(a, b)1 t' (1 - B)aB log (1 - B)aB dB a,b 101fJ(I-B)B Pe(a,b) "'"'P( ( ) b( ))1 Pe(a(u),b(u)) + L...J e a u, u og P() uES U b > L IS(a, b)1 fl (1 - B)aB log (1 - B)aBb dB a,b 10 1fJ(1 - B)B Pe(a, b) where the inequality follows from (10) and the non-negativity of the divergence, and obtain (13) using notations (14), (15). Q.E.D. 21 Note that the inequality (13) can be also presented in such a way that the maximal cumulative redundancy of universal coding is not less than the mutual in- formation between the continuous random variable B distributed over the interval (0,1) in accordance with the probability density function 71"-1 (1- B)-1/2B-1/2, B E . (0,1), and the discrete random variable u E S. The transition probabilities are defined as (1 - B)a(u)Bb(u) for all B E (0,1) and u E S. NUMERICAL RESULTS FOR FIXED-TO-VARIABLE CODING Suppose that the source segment set is specified as the set s(n) consisting of all binary sequences of length n. Then Is(n)(a, n - a)1 = (:), for all a = 0, ... , n and s(n) (a, b) = 0 for all a, b such that a + b =f. n. In this case, the upper bound (12) can be expressed as (17) Since I:Is(n) (a, b) I (1 - B)aBb [ a log 1 ~ B + b log ~] = nh(B) a,b where h(B) = -(1- B) log(l- B) - BlogB!s the binary entropy function, we also have where he = (I h(B) dB. Jo 71"V(1-B)B Thus, the bound (13) can be presented as t [ [w~nl(a) . Dbnl(a)] dB a=O 0 (18) - ~ (:) Pe(a, n - a) log Pe(a, n - a) - nli; 22 \ \ Figure 1: The functions w~n) (a), Db n ) (a), and their product contributing to the lower bound (18) for a = 5 and ti = 8. where The functions w~n)(a), D~n)(a), and their product contributing to the lower bound (18) for a = 5 and n = 8 are shown in Figure 1 and some numerical results obtained from the bounds (17), (18) are given in Table 1. 23 . Table 1: The values of the upper and lower bounds on the maximal cumula- tive redundancy of universal coding for the Bernoulli sources generating binary sequences of length n = 2k for k = 1, ... ,9. n log ,;n Upper bound Lower bound 2 0.500 2.500 0.695 4 1.000 3.000 1.014 8 1.500 3.500 1.385 16 2.000 4.000 1.791 32 2.500 4.500 2.218 64 3.000 5.000 2.651 128 3.500 5.500 3.072 256 4.000 6.000 3.452 512 4.500 6.500 3.737 REFERENCES [1] R.E. Krichevsky and V.K. Trofimov, "The Performance of Universal Encod- ing", IEEE Trans. Inform. Theory, IT-27(2), pp. 199-207, 1981. [2] J. Rissanen, "Universal Coding, Information, Prediction, and Estimation", IEEE Trans. Inform. Theory, IT-30(4), pp. 629-636, 1984. [3] Yu.M. Shtarkov, "Universal Sequential Coding of Single Messages", Probl. Inform. Transm., 23(3), pp. 3-17, 1987. [4] Tj.J. Tjalkens and F.M.J. Willems, "A Universal Variable-to-Fixed Length Source Code Based on Lawrence's Algorithm" , IEEE Trans. Inform. Theory, IT-38(2), pp. 247-253, 1992. [5] F.M.J. Willems, Yu.M. Shtarkov, and Tj.J. Tjalkens, "The Context-Tree Weighting Method: Basic Properties", IEEE Trans. Inform. Theory, IT- 41(3), pp. 653-664, 1995. 24 COMPLEXITY REDUCING TECHNIQUES FOR THE CTW ALGORITHM Paul A.J. Volf, Frans M.J. Willems and Tjalling J. Tjalkens Technische Universiteit Eindhoven, Den Dolech 2, 5600 MB Eindhoven, The Netherlands {pa u I,frans, tja 11 ing}@ei.ele.tue.nl In [3} Willems, Shtarkov and Tjalkens presented the context-tree weighting algorithm (CTW algorithm). Since then it has been the topic for many re- search projects. In [Sj a first step towards a practical implementation has been made. This paper discusses several other implementation details con- cerning the CTW algorithm. The computational work has been improved, the memory requirements have been significantly reduced, and finally, a construction of a forward decompositioti [2} is presented that reduces the complexity further, while it improves the performance at the same time. INTRODUCTION The context-tree weighting algorithm is a universal source coding algorithm. It computes a conditional weighted probability, P~(xn+llx~), for every symbol Xn+l of the source sequence. An arithmetic encoder can then be used to encode the source sequence with these probabilities. The CTW algorithm has become a well-known universal source coding algorithm in the information theory field over the past few years. But in practice it has not been fully accepted yet as a good alternative for more popular algorithms like PPM, while it can match PPM's performance. One possible reason can be that most previous implementations of the CTW algorithm were rather complex: these experimental programs could use more than 100 MB of memory and compress only a few kilobyte per second on fast workstations. In [5] a first step was taken to reduce the complexity of the CTW algorithm considerably. Here we will explain some more modifications that williead to a new and efficient implementation. First we discuss a technique that reduces the number of mathematical operations further. Next, a hash table implementation will be investigated that reduces the memory usage of the CTW algorithm. Finally, a construction of a forward decomposition will be explained that reduces the computational and memory complexity even further. 25 COMPUTATIONS The research described in [5] was primarily concerned with the reduction of the number of computations in each node. It also introduced a j3-factor, which replaced both the estimated probability and the weighted probability that nor- mally would be stored in a node. Furthermore, it introduced a fixed-point log- implementation for the floating point numbers. We will use all of these techniques, except for one modification. In a node s not at maximum depth of the context tree, the conditional weighted probability for Xn+1 is now computed with the following steps: 1 . Compute j3s'()xn1 = ~as(xn) as+bs+l' and the terms: . [j3S(x~)P:(Olx~)] = j3s'(x~)(as + 1/2), [j3S(x~)P:(1lx~)] = j3s'(x~)(bs + 1/2). 2. Compute the intermediate results with the previous results: Pt(x~, 0) = [j3S(x~) . P:(Olx~)] + P~S(Olx~), Pt(x~, 1) = [j3S(x~) . P:(1lx~)] + P~S(llx~). 3. Now, compute the conditional weighted probabilities (and normalize at the same time): S( I n) Pt(x~,O) r; 0 Xl = ps(xn ~ 1 0) + PS(xn 1 , 1)' 1 'l PS( I Ti) Pt(x~, 1) w 1 Xl = PS(xn l' 0) + ps(xn 1, 1) 'l 'l 4. Update j3s and store the new value: 5. Increment as if Xn+l = 0, or bs otherwise. Here t' is the child node of s which is also on the context path and which provides the conditional weighted probability from the next level in the context tree. Note that the decoder can perform steps 4 and 5 only after symbol Xn+l has been decoded. These steps use one multiplication, one division and one addition less than the ones described in [5]. 26 MEMORY The records in a context tree consist of two parts: a CTW part that contains all CTW related information, and a structural part, used to find the record that corresponds to a certain context. The CTW information in the records differs for records representing nodes and records representing leaves. A record that represents a node s needs to store the counts as and bs and the factor B", As described in [5], not more than 2 bytes are necessary to store B", Furthermore, by applying a count-halving technique, both counts in a node will be halved and rounded up if one of them reaches 256, the counts require 1 byte of storage space each. Thus the CTW information in nodes takes only 4 bytes. In leaves the CTW algorithm needs to store the counts and, if the leaf is not at the maximum depth, some information to extend the context path. Every memory efficient implementation of the CTW algorithm will construct the context paths only until they become unique. When a context s becomes unique (all contexts so far that had s as suffix, are identical), the CTW algorithm can create a leaf for that context, because P:(.) = P:'(.). But if a new context occurs that has s as a suffix, and that differs from the unique path, then, in order to achieve a good performance, the old unique path through the leaf has to be extended until it is unique compared to the new context. One solution would be to store the file in a file buffer, and store in each leaf an index to the position of that context in the file. But since we do not want to waste valuable memory resources on a file buffer, we decided to store a fixed number of new context symbols in each leaf. Experiments show that with 3 context symbols stored in each leaf, the performance of the CTW algorithm will not degrade more than 0.22 % on the entire Calgary Corpus. This leaves only one byte for the counts, but fortunately, from simulations we know that almost all leaves have counts smaller than 16. The leaves in which one of the counts is greater than 15 account in general for less than 1.3 % of all counts. Therefore, if we apply the count-halving technique if one of the counts in the leaves reaches 16, then the counts can be stored in 4 bits, and the CTW information of the leaves also fits in 4 bytes. But note that the CTW algorithm needs three additional bits: one bit to be able to distinguish between nodes and leaves, and two bits to specify the number of valid context symbols in each leaf. Similar to [4], we implemented the context trees in a hash table. The only structural information in a record is the key with which it can be identified. Hash 27 tables can be efficiently searched, and records can be easily added and updated. A disadvantage of hash tables is that their efficiency decreases as soon as the hash table is filled for more than 80 %. The key in every record can be smaller than 2 bytes, if we use the sequential search behaviour of the CTW algorithm. As the CTW algorithm traverses through a context tree it searches in every step for a context that is one symbollonger than the previous context. First we make a table of the indexes of the root nodes of the context trees. Once we know which context tree to use next, we immediately know the index of its root node. Furthermore, we make a table with offsets: every possible source symbol gets a different offset. Now, suppose we already found the record corresponding to context s in a certain context tree. Its child node corresponding to a context t' s is created at an index which is at a multiple of the offset of t' from record s. This child node has as key the next context symbol t' (which specifies the offset) and the number of steps that were necessary to reach this record from the record corresponding to its parent node s. This key uniquely specifies the parent node of this record, and the CTW algorithm can find the child node by looking at indexes which are multiples of the offset from the parent node. We willlimit the number of steps to 31, thus each record needs 1 byte to store the most recently used context symbol, and 5 bits to store the number of steps. In total the CTW information (4 bytes plus 3 bits) and the structural infor- mation (1 byte plus 5 bits) fit in only 6 bytes. THE FORWARD DECOMPOSITION The forward decomposition (see e.g. [2]) determines how the non-binary source symbols are transformed in series of bits. The binary decomposition is a binary tree with one leaf for every possible source symbol. A symbol is encoded byencoding the path from the root node to the leaf corresponding to that symbol. In each node a binary decision has to be made. Each node has its own context tree, counting for every context the number of times each of its two children was chosen. The CTW algorithm uses this context tree to encode the decision. Figure 1 shows an example of a forward decomposition for a 5-ary source. So far we often use the "ASCII-decomposition". This is a binary tree in which all 256 leaves have depth 8 and the path from the root node to a leaf corresponds to the binary ASCII representation of that symbol. Then a source symbolis encoded byencoding each of the 8 bits of its representation. But any binary tree with sufficient leaves can serve as a binary decomposition. If a symbol 28 {c} or {e} Figure 1: An example of a forwarddecomposition for a 5-ary source. occurs often in a certain file, that symbol can be placed at a lower depth in the forward decomposition. As a result fewer nodes have to be visited to encode this symbol, and consequently fewer context trees have to be updated. Since these context trees will be created dynamically, this reduces not only the number of computations, but also the number of created records. Finally, by choosing a good ordering of the source symbols in the leaves of the forward decomposition, the model used by the CTW algorithm to encode a decision could be simplified, which can improve the performance. The most straightforward solution to construct an efficient forward decornpo- sition is to use the Huffman tree. The Huffman code minimizes the average code word length of a fixed-to-variable length source code, thus if the corresponding Huffman tree is used as a forward decomposition it will minimize the number of visited nodes and consequently the number of updated context trees. Un- fortunately, if the Huffman tree constructed from the frequencies of the source symbols is used as forward decomposition, the performance of the CTW algorithm degrades. Furthermore, the Huffman tree has to be encoded, which increases the code word length further. But one does not have to use the Huffman tree con- structed from the symbol frequencies to minimize the number of visited nodes. Any tree in which the leaves are at the same depth as in the Huffman tree will minimize number of visited nodes. Thus, instead we will use the Huffman code to 29 compute the Huffman depths of the symbols only, and then construct a forward decomposition with these depths. This has two advantages. First, we have more freedom in combining the symbols in such a way that the performance improves. Secondly, the forward decomposition can be encoded byencoding the Huffman depth of each symbol. If the depth of the tree is limited to 31 levels, then only 5 bits per source symbol are necessary, or 160 bytes in total. We implemented various constructions of the forward decomposition, given the Huffman depths of each symbol. One very complex construction also used the file itself. It actually resulted in the best performance, and it resulted in the greatest reduction in the number of created records, but it took sometimes hours to complete its construction process. Of the other, more time efficient, construe- tions, we now use the construction dubbed "the Huffman-III decomposition", since it results in the best compression performance and at the same time in the greatest reduction of the memory complexity. The Huffman-III construction is very similar to the Huffman construction. It starts with the source symbols with the highest Huffman depth. At any time, when there are two or more symbols left it performs the following operation. From the symbols or super-symbols at the highest depth (there are at least two of these), combine the two symbols with the highest ASCII-value. This creates a new super-symbol at a depth one below the current depth and the "ASCII-value" of this new super-symbol is the lowest ASCII-value of all symbols collected in this super-symbol. By construct- ing the forward decomposition in this way we try to keep symbols with a similar ASCII-value close to each other in the forward decomposition. In the ASCII-code the lower case letters, the capital letters, and the numbers, are all collected in groups. By trying to keep them together in the forward decomposition we try to get more meaningful groups in the forward decomposition, which may lead to simpler models, and thus to a better performance. Experiments show that this indeed gives a much better performance, and a much lower memory complexity, than scattering the symbols more randomly through the forward decomposition. RESULTS The Calgary Corpus is a well-known set of test files. We used this corpus to compare the performance of the Huffman-III decomposition with the more standard ASCII-decomposition. The compression program uses a fixed-point log- implementation and the order of computations as described above. It uses a hash table of 32 MB, which can contain about 5.6 million nodes and leaves. The 30 Table 1: A comparison between the two decompositions file ASCII-dec. Huffman-III decomposition size records time size records time [bytes] [#] [sec] [bytes] [#] [%] [sec] [%] bib 24949 643699 12.6 24876 426172 -33.8 9.2 -27.0 book1 207414 5482429 103.8 206194 3354824 -38.8 55.0 -47.0 book2 141784 3566446 69.5 141215 2226230 -37.6 44.0 -36.7 geo 58424 1162423 9.4 56953 795228 -31.6 7.4 -21.3 news 108886 2652234 42.2 107615 1737750 -34.5 24.4 -42.2 obj1 9994 160801 3.7 9837 133538 -17.0 3.1 -16.2 obj2 73648 1394904 21.9 72205 1122018 -19.6 17.2 -21.5 paper1 15030 423125 6.8 14945 265565 -37.2 4.9 -27.9 paper2 22674 676885 11.2 22505 397401 -41.3 6.4 -42.9 pie 53095 778220 43.8 48047 436184 -44.0 11.1 -74.7 progc 11451 300528 5.5 11412 197054 -34.4 4.3 -21.8 progl 14304 344427 8.5 14207 210174 -39.9 5.6 -34.1 progp 10201 235356 6.4 10085 154538 -34.3 4.5 -29.7 trans 16343 340903 10.1 16279 239746 -29.7 7.3 -27.7 context depth is 8 symbols. In the table we compare the performance of the two decompositions. For each file and each decomposition, the resulting length of the compressed file, the total number of used records, and the total used time are given. The time has been measured on a HP-735 workstation over 5 runs to obtain a more accurate result. The speed of this workstation is comparable to a PC with a 200 MHz. Pentium-processor. The compressed file length for the Huffman-III decomposition includes the 160 bytes necessary to encode the decomposition. The time given for the Huffman-III experiments includes the time needed to compute the Huffman depths and to construct the forward decomposition. It is clear that the Huffman-III decomposition is much better than the ASCII- decomposition. On almost all files (except the binary files), it reduces the number of created records by 30 to 40 %. The total compression time is also reduced by 20 to 40 % on most files. On the smaller files, the speed did not improve much because it has to initiate all 32 MB of memory, and all kinds of tables, which costs an amount of time independent from the size of the file. On the longer files the gain is typically 30 % or more. Two exceptions are the picture file and book1. In the picture file the symbol 0 occurs very often and is placed at depth 1. This results in a tremendous increase in speed. The file bookl uses 5.48 million symbols with the ASCII-decomposition. Then the hash-table is filled for 98 %, 31 and this could significantly decrease the search speed. With the Huffman-Il l decomposition it only uses 3.35 million records and the hash table is filled for only 60 %, which will not have a measurable effect on the search-speed. Finally, besides all the reductions in the complexity, the Huffman-Il I decomposition also has a slightly better performance on every file. It compresses the entire corpus to 756375 bytes, which is about 1.5 % better than the CTW with the ASCII- decomposition which needs 768197 bytes and 1 % better than the state-selection algorithm [1] (a good PPM-algorithm), which needs about 764000 bytes (an exact number is not given). CONCLUDING REMARKS This paper discussed various techniques that can be used to design a fast and efficient data compression program based on the CTW algorithm. With the order of computations described here, and the hash-table implementation, it works well with 32 MB on all files of the Calgary corpus. Its speed is typically between 7 and 9 kB per second on our HP-735 workstation. Furthermore, we developed a construction of a forward decomposition, the Huffman-III decomposition, that not only improves the results by 1.5 %, but also reduces the memory complexity by 30 to 40 % and increases the speed by 20 to 40 %. With these modifications we have shown that the CTW algorithm is indeed a useful technique for modern data compression programs. REFERENCES [1] Suzanne Bunton. A percolating state selector for suffix-tree context models. In Proceedings of the DCC, pages 32-41, Snowbird, Utah, March 25-27 1997. [2] Paul A.J. Vol£. Context-tree weighting for text-sources. In IEEE Int. Symp. on Inform. Theory, page 64, Ulm, Germany, June 29 - July 4 1997. [3] Frans M.J. Willems, Yuri M. Shtarkov, and Tjalling J. Tjalkens. The context- tree weighting inethod: Basic properties. IEEE Trans. Inform. Theory, 41(3):653-664,1995. [4] Frans M.J. Willems and Tjalling J. Tjalkens. Complexity reduction of the context-tree weighting algorithm: A study for KPN research. Technical re- port, EIDMA, Eindhoven, 1997. [5] Frans M.J. Willems and Tjalling J. Tjalkens. Complexity reduction of the context-tree weighting method. In Symp. on Inform. Theory in the Benelux, volume 18, pages 123-130, Veldhoven, The Netherlands, May 15-16 1997. 32 STOCHASTIC LANGUAGE MODELLING USING CONTEXT TREE WEIGHTING P. Vanroose Katholieke Universiteit Leuven, div. E.S.A.T.-PSI K.Mercierlaan 94, B-3001 Heverlee, Belgium Peter.VanrooseOesat.kuleuven.ac.be The Context- Tree Weighting (CTW) algorithm is used to construct a tri- gram language model for continuous speech recognition. This results in a language model with a lower perplexity as compared to the traditional ap- proach. INTRODUCTION Stochastic speech recognition and data compression have traditionally been well separated research areas, although both use very similar underlying concepts viz. sequential data streams, symbol probabilities, entropy, . .. The similarities become even more apparent if we more specifically focus on language modelling and unioersol source coding. In both areas one tries to capture the stochastic characteristics or behaviour of a data source, in order to use this knowledge for further stochastic processing, i.c. speech recognition and data compression, respectively. STOCHASTIC LANGUAGE MODELLING A continuous speech recognition system aims at finding the text (i.e., se- quence of words) W := WIW2W3··· for which the conditional probability P(WIA) is maximal, where A is the acoustic signal. This problem is split in two parts, using Bayes' rule: Maximising P(WIA) means maximising P(W) . P(AIW), as P(A) is fixed, so it suffices to determine independently the probability P(AIW) of an acoustic signal given the word se- quence spoken (acoustic modelling), and the probability P(W) of a certain word sequence (language modelling). See [7] for a good overview. The probability P(W) = P(WIW2W3···) can in turn be decomposed into the sequentially obtainable product P(wd . P( w21wd .. P( w31wl W2) . .. A natural 33 assumption here is that text has finite memory, i.e., that P(WnIWIW2··· wn-d = P(WnIWn-D··· wn-d for some small integer D. Hence a speech recognition system relies on a language modelling module which it can ask for the probability of (in principle) any word sequence, or alter- natively of any word, given its left context (or history). Stated in source coding terms, a reliable language model for continuous speech recognition should accu- rately estimate the conditional probability of a word in spoken text, given the foregoing D words. Currently, the standard approach to this problem consists of the following steps: (1) using a very large text database, estimate all trigram probabilities P(w3IwIW2) (i.e., assuming D = 2) for all word triples occurring in the database; (2) prune the resulting probability tree, to make the results less dependent on infrequent word triple probabilities. In this contribution the Context-Tree Weighting (CTW) algorithm will be applied instead to construct a reliable language model. CTW is a universal source coding (compression) algorithm, and hence is able to estimate source statistics from a given data stream. It has proved to be superior to most other universal source coding techniques, especially for relatively short data streams. UNIVERSAL SOURCE CODING Universal source coding aims at compressing the output of a source with unknown symbol generating statistics. Part of the method consists of (implicitly) determining the actual source statistics, cf. [1]. In language modelling, the problem is exactly to determine the source statis- tics. This suggests that in principle the methods used in one domain can be used in the other domain. The context tree weighting (CTW) algorithm was introduced in [5, 6]. It IS a sequential universal data compression procedure asymptotically achieving the entropy of any (finite-memory tree) source, and (most importantly) also per- forming very well for realistic (finite) source sequence lengths, and for any source sequence, i.e., not only on the average. On the other hand, the complexity of the CTW algorithm is relatively low as compared to other methods, and it allows to sequentially encode and decode, i.e., in a single pass through the data sequence. The main idea of CTW is to 'weigh' (average) all applicable models in a certain 'context' (history), not to choose one (best) model. This averaging gives good results even for small data sequences. The source models to be averaged are 34 so-called bounded memory tree sources which can be seen as sources that generate an output sequence which can be partitioned into memoryless subsequences of variable (but bounded) length. This is a generalisation of the concept of FSMX sources, in turn a generalisation of finite-order Markov sources. Applied to language modelling, where 'source symbols' are words, one typi- cally assumes sentences to be independently generated, as one is mainly interested in n-gram probabilities insidesentences. So tree sources seem appropriate here. THE KT ESTIMATE FOR MEMORYLESS SOURCES In [3Juniversal source coding was analysed, and it was shown that estimating the source statistics by weighting all memoryless sources with the Dirichlet den- sity with parameter (~, ~, ... , ~) is optimal for block-to-variable universal source coding, and it guarantees uniform convergence of the parameter redundancy. This so-called Krichevsky-Trofimov (KT) estimator fKT(U) for the probability of a memoryless source to generate the sequence u is thus defined as where r is the Gamma function, n is the set of all probability vectors (Bl"'" Be;,) over the alphabet {1, 2, ... ,a} and aj is the number of occurrences of the symbol j in the sequence u, i.e., u is of type (aI, ... ,ae;,). Define, for positive integers n, G(n, x) := r(x + n)/r(x) = x· (x + 1)··· (x + n -1). Note that G(n, x) has n factors, and that G(n + 1,x) = (n + x)· G(n, x). The KT estimator can be expressed in recursively computable form as (see also [4, 5J): Otherwise stated, the estimated conditional probability of a memoryless source with unknown parameters generating the symbol x E {1, ... , a} after having gen- erated all's, ... , ae;, symbols a, is (1) 35 which means that it suffices to keep track of the numbers aj + !(and their sum) in order to easily calculate estimated next symbol conditional probabilities. CONTEXT-TREE WEIGHTING This memoryless KT estimate is not directly useful for sources with memory. But it can still be used when the source is a bounded memory tree source, with upper bound D on the memory. This is where the concept of context weighting comes In. If we knew the 'model class' of the tree source for which we want to estimate the parameters, and we have seen the sequence UI, ... , Un as source output, we know for each symbol Ui its context s (i.e., state of the source at that point, which is (part of) Ui-D, ... , ui-d and we can keep track of the number a}s) of symbols Ui = j in context s. If we are in context s at a certain moment, the KT estimator for the next source symbol is obtained from (1) with the numbers aj substituted bya(·)J . But since we do not know the model class of the source, and hence we do not know the context s we are in, instead of estimating s CTW suggests to weigh all possible models in obtaining the estimated conditional next symbol probability. This is done by first assigning counts a~s), ... ,a~s) and weighted probabilities Q s to each node s of the full o-ary tree of depth D, where each node s is represented by the unique o-ary string leading from this node to the root (which itself is represented by the empty string): ._ p.e ( al(5) , ... , acx(5)) if s is a leaf Q 5 .- { 0-1 P. ( (5) a e al , ... (s))!_ , a", +a n° Q. j=1 JS 0 th erwlse . where js is the state obtained from s by prepending symbol j to the string s, i.e., the product in the second term is over all child nodes of s. Clearly, als) = I:j=1 a}js) if s is not a leaf. The CTW estimated next symbol conditional probability is then given by the quotient of the value Q. in the root of the tree with its previous value, before having seen the last symbol. Note that the context tree of depth D as described above is easily updated at each new input symbol, initially starting with a tree where all counts are zero and all probabilities 1. Actually, tree nodes need only be created when one of their counts becomes nonzero. 36 BUILDING A TRIGRAM LANGUAGE MODEL A trigram language model specifies condi tional probabili ties P( Wn IWn-2 Wn-I), hence D = 2. After having built the context tree of depth 2 and calculated Q., the estimated Pest(wlw"w') is the quotient of Q~ and Q., where Q~ is calculated just like Qe but after having incremented a~), aLw') and aLw"w') byone. For node s = w"w' this implies Q. = Pe(s) is multiplied by a factor I" := (aLW"w') + ~)/(I:ja;w"w') + ~). In node w', Pe is multiplied with f' := (aLw') + !)/(I:j a;w') + ~), hence Q'w , = Qw' .1"+ a a- 1Pe(w') . U' - 1"). Finally, with i := (a~) + ~)/(I:ja;e) + ~), we can also express Q~ in terms of pre-calculated values, and Pest( W Iw" w') = I" + a -lU _ I")Pe(€) a Q ea· + a -lU' ~ I")Pe(w') Q w' . (1- -1. a a Pe(€)). Q. Note that, for a given language model, only i, i' and i" have to be recal- culated, and that only the a + 1 quotients Pe(w')/Qw 1 and Pe(€)/Qe are needed, not the values of P; or Q s themselves. The first order approximation of Pest( wlw"w') is 1", which is the KT es- timate for a memoryless source. When w is a previously unseen word, i" = 21/('"L.j aj(w"w') + 2ex) were h (w"w'). IS t h e num b er 0 f occurrences 0 f t h e context w 11 w , aj in the training text. Thus, also other occurrences of context w"w' influence the value of the conditional probability. In classical language modelling this is ob- tained in an ad-hoc way by so-called backing-off, while here it follows in a natural way, without having to specify any tuning parameters. EXPERIMENTAL RESULTS Preliminary tests on a large text database show satisfactory results. Perplex- ity values decrease by about 5% as compared to classical methods to generate a trigram language model. The method is also easily extensible to more general schemes than trigrams, either by simply pruning the context tree where data becomes sparse, or even by using more general definitions of context, like using information about the grammatical function of a word, or breaking the context at sentence boundaries ... 37 Due to the typically large value of a, in the order of 'magnitude of 105, it is generally not possible to build the full context tree of depth 2. Instead, nodes with a very low visit count have to be re-used. This is acceptable, as infrequent words -which thus disappear- are not relevant for the language model. Typically, 60% of the words in a large text database only appear once! REFERENCES [1J C.E. Shannon, "Prediction and entropy of printed English", Bell System Tech- nical Journal 30, pp. 50-64, 1951. [2J E.N. Gilbert, "Coding based on inaccurate source probabilities", IEEE Trans- actions on Information Theory IT-17(3), pp. 304-314, 1971. [3] R.E. Krichevsky, V.K. Trofimov, "The performance of universal encoding", IEEE Transactions on Information Theory IT-27(2), pp. 199-207, 1981. [4J T.J. Tjalkens, Y.M. Shtarkov, F.M.J. Willems, "Context tree weighting: multi-alphabet sources", Proceedings of the Fourteenth Symposium on Infor- mation Theory in the Benelux, Veldhoven, pp. 128-135, 1993. [5J F.M.J, Willems, Y.M. Shtarkov, T.J. Tjalkens, "The context-tree weighting method: basic properties", IEEE Transactions on lnformation Theory IT- 41(3), pp. 653-664, 1995. [6J F.M.J. Willems, Y.M. Shtarkov, T.J. Tjalkens, "Context weighting for general finite-context sources", IEEE Transactions on Information Theory IT-42(5), pp. 1514-1520, 1996. [7J M. Federico, R. De Mori, "Language modelling", chapter 7 from Spoken dia- logues with computers, Renato De Mori, ed., in series "Signal Processing and its Applications", pp. 199-230; Academic Press, 1998. 38 A FAST FULL SEARCH EQUIVALENT FOR MEAN-SHAPE-GAIN VECTOR QUANTIZERS J. Cardinal Brussels Free University, Computer Science Department Campus Plaine, Bid. du Triomphe, CP212, B1050 Brussels, Belgium jcardin~ulb.ac.be Vector quantizalion is an efficient lossy digital signal compression method. It encodes a k-dimensional vector by a reference in a dictionary - or code- book - of representative vectors called codewords. Mean-shape-gain vec- tor quantizers (MSGVQ) encode separately the mean and the length - or gain - of the vector, using two scalar quantizers. The mean-removed, nor- malized vector is called the shape, and is encoded by an index in a shape codebook. Finding the best shape codeword requires a maximum correlation search which we show to be equivalent' to a nearest-neighbor search on a unit hypersphere. We address this problem, and try to find fast full-search equivalents. An efficient elimination rule based on a a spherical triangu- lar inequality is derived, and combined with the classical partial distance search. Reference vectors for the application of the inequality are the first principal components of the codewords distribution. We also present some experimental results, and show that our technique is faster than some other existing elimination rules. INTRODUCTION A standard vector quantizer (VQ) may be defined as a mapping M : ]Rk ~ C, where C is a finite set of vectors in ]Rk called the codebook. Each representative vector in C is called a codeword. Vector quantization is a good way of vector data compression used for example in digital image coding, where the vectors to be encoded are the pixel values extracted from image blocks. The codebook is constructed from a set a representative vectors called the training set using clustering algorithms like the generalized LLOyd algorithm (GLA, [5]). The quan- tization phase consists in, given an input vector Q, finding the vector Q E C min- imizing the distorsion d(Q, Q), usually defined as the eucJidean distance. This nearest-neighbor search is the bottleneck of most VQ. 39 We now define the mean-shape-gain vector quaniizer (MSGVQ, [3], p.451), which is a natural extension ofthe shape-gain vector qiuuiiizer (SGVQ, [3], p.441). Let Q E ~k. We define the mean m = Ilk. 2::7=1 Qi, the gain!J =11 Q - rn.l 11, where I = (1, ... ,1) and the shape s = (Q - m.I)lg. The shape vector is both zero-sum and unitary. Mean-shape-gain vector quantization consists in encoding separately those three parameters using three codebooks. The reconstructed vector has the form : Q=g.s+in.l, where g, in and s are taken from three different codebooks, respectively Cg, Cm (scalar codebooks) and Cs (vector codebook). The goal of the encoder is to minimize the dis tors ion d(Q, Q) =11 Q - Q 11. We can show: Thus the minimization may be carried out in three steps: • find in as close as possible to m, • find s so that Q.s is maximal, • find g as close as possible to Q.s. We see that the quantization of g is dependent of the choice of è, which is not the case for m. The algorithm finding the best shape codeword s by computing every dot product Q.s is called the maximum correlaiion search (see [3], p.442). In this paper, we address the problem of finding a faster way to find the best shape codeword. In SGVQ, the mean-remove step is skipped, and the shapes are only the normalized input vectors. We will concentrate on MSGVQ, but most of the following is also applicable to SGVQ. REDUCING THE MAXIMUM CORRELATION SEARCH TO A NEAREST- NEIGHBOR PROBLEM The search for the best shape codeword consists in maximizing Q.s for SECs' The length of the shape vectors is always equal to 1, so this maximization is equivalent to the minimization of the angle between Q and S. We will use the notation L.x'!) E [0,7r] to denote the angle between two vectors x and y. 40 If we denote Q = (Ql, ... , Qk) and s = (Si, ... , sk), we can show: k Q.s = L Qi.si = ~(II Q 11 + 11 S 11 -d(Q, S)2) , 2 2 i=l where d is the euclidean (L2) distance. Since 11 Q 11 is constant during the search, and 11 s 11= 1 Vs E Cs, we see that maximizing Q.s is equivalent to minimizing d(Q, s), i.e. finding the nearest neighbor of Q in Cs. We can also remark that Q.s = (g.s+m.l).s = g.s.s, so finding the best s is also equivalent to finding the nearest neighbor of s in Cs. From this, we can use the previously known VQ nearest-neighbor search methods, which we review in the next section. KNOWN SEARCH TECHNIQUES FOR STANDARD VQ Many search methods rely on the triangular inequality to eliminate candidates during the search. In [8], a method is proposed involving the precomputation of each inter-codeword distance. This method has a quadratic space complexity, and works as follows: suppose we have found a candidate B and are about to test if C is closer to Q than B. We can immediately eliminate C if d(B, C) > 2.d(Q, B). Since we know d(Q, B) and we have precomputed d(B, C), this test involves only negligible time overhead, largely compensated by the acceleration obtained. This method is often referred to as the spherical constraint, since it reduces the search space to a sphere centered on the best neighbor found so far. In [4], a much more space-economical method is proposed. It uses a precomputed table of the distances of each codeword from the origin, taken as a reference point for the application of the triangular inequality : if we denote B the nearest point found so far, any codeword C for which either d(O, C) > d(O, Q) + d(Q, B) or d( 0, C) < d( 0, Q) - d( Q, B) is discarded. Again the test does not consume much CPU time and allows quick elimination of candidates. This method is called the annular constraint, because it constrains the search in a volume defined by the difference of two hyperspheres centered on O. In [6J and [7], the mean and the variance of the codewords are used to eliminate candidates. This method, called equal-average nearest neiqhbor search (ENNS), is not useful here, since those features have a constant value in MSGVQ. A very popular search method is the partial distorsion elimination (PDE, [1]). It simply cuts off the calculation of the distance to a new candidate as soon 41 as the partial sum calculated so far is greater than the squared distance to the current best neighbor. Principal Component Analysis (peA) is also used in some techniques, for dimensionality reduction purpose. See e.g. [2] for an example. AN ANGULAR CONSTRAINT FOR SPHERICAL NEAREST NEIGHBOR SEARCH Our new search algorithm is based on the minimization of the angle between Q (or s) and the shape codewords SECs. It uses the following lemma: Lemma 1 (Angular constraint) Let R, Q, B, CE IRk. We have (1) Proof: Let us consider the subspace spanned by Q,R and C. This subspace is at most three-dimensional, thus the following assertions hold : From these, we can deduce: and the end of the proof is straightforward. _ The search algorithm may use the lemma in the following way: 1. choose a reference direction R, and for each codeword oS in Cs precompute the angular distance L.R', 2. for each query Q, compute the angle L.RQ and use Equ. 1 to save codewords comparisons during the search: if we denote B the best codeword found so far, we can eliminate every codeword C satisfying L.QB < IL.RC - L.RQI· This constraint is a spherical generalization of the annular constraint method. We will call it the angular constraint. We can show that the search region defined by the angular constraint has the same form than in the ENNS method (see [7]) : the search is constrained in a volume bounded by two parallel hyperplanes. An 2-dimensional illustration is given in Fig. 1. 42 Rl -------------O------t RI search region Figure 1: Search region defined by an angular constraint using the reference vector n, We propose to use two combined angular constraints, with two reference vectors RI and R2- In our implementation, we use the first two principal corn- ponents (PC) of the shapes codebook Cs as reference directions, The first PC is the direction which maximizes the the variance of the shapes projections. These projections are also the cosines of the angles between the shapes and the PC, thus maximizing the projections variance is equivalent to maximizing the angles vari- ance (the cosine function is monotone on [0,11"]).We expect the minimum number of shapes tested to correspond to the maximum angles variance. These vectors are orthogonal to each other, thus they minimize the search regions overlap area. Note that the computation of the principal components is done offiine. A further improvement on the technique is obtained when the codewords are sorted in increasing order of their projections (or angles) on the first reference vector RI. In POg2 ICs Il comparisons, using a binary search, it is possible to find the codeword C for which ILR1c - LRld is minimal. This codeword may be used as a first estimation of the nearest neighbor. Then the codewords are compared using the ordering along the RI axis, as described in Algorithm 1. The two while loops compare the codewords C for which LR1C > LR1Q and LR1C < LR1Q, respectively, and stop as soon as the difference ILR1c - LR1QI becomes too large. For each codeword tested in the loop (some may be completely ignored), the condition related to R2 is also verified, and only the candidates satisfying both tests are directly compared. COMBINATION WITH PDE The angular constraint may be combined with the PDE method, because we have shown that a distance criterion is still applicable in the framework of SGVQ 43 Algorithm 1 Algorithm using two angular constraints Q is the query vector we define Cs = {SI, ... , sn} li=I, ...,n is a list of shape codewords indices, sorted in increasing order of their projections on RI al f- L.RlQ a2 f- L.R2Q i' f- argmini=l, .. ,n IL.R,';I; - L.RlQI abest f- +00 j f- i' Cf- Sij while j :S nand abest > L.RlC - al do if abest > IL.R2C - a21 then anew f- L.Qc if abest > anew then abest f- anew Bf-C end if end if jf-j+l Cf- Slj end while j f- i' Cf- Slj Here the previous while statement is repeated, with the condition j > 0 and abest > al - L.R,C, and with decreasing j return B 44 method comparisons time (s.) full search 1024 33.50 spherical constraint 396.73 11.83 angular constraints 292.78 8.50 Table 1: Average performances of three search methods, with a codebook of size 1024, and blocks of size 4x4 and MSGVQ. The correspondance between the euclidean distances used in PDE and the angles used in our angular constraint is given by : cos LQs = (11 Q 112 +1 - d(Q, 13)2)/2. We could imagine to combine with [8] as well. EXPERIMENTAL RESULTS The tests were made in the framework of image compression using l'vISGVQ. We compared the performances of Algorithm 1 combined with PDE, with the method of Orchard, described in [8], combined with PDE as well. The results for the simple full search method have also been reported. These algorithms were tested using a shape codebook containing 1024 16- dimensional codewords, trained using the GLA. Performances are measured on 6 greyscale images (Barbara, Boat, GoldhilI, Peppers, Mandrill and Lena) of size 512x512. For each algorithm, we measured the average number of codewords compared per query (i.e. for which a distance calculation was necessary), and the average time taken by the search on a simple Pentium-based PC. Results are shown in Table 1. The acceleration ratio for the spherical constraint is 2.83, and 3.94 for the angular constraint. Not only our method is faster than the spherical constraint, but it has a linear space complexity, while the spherical constraint needs a quadratic size table. The ratio between the number of compared vectors is close to the one of the execution times, so the number of tested codewords is a good approximation of the actual performances of the methods. These elimina- bons methods do not work as well as for standard VQ, where acceleration factors greater than 10 are common. This may be explained by the fact that the principal components contain less information when applied on shape vectors than it does for non-transformed image blocks. ACKNOWLEDGEMENTS This work is supported by a PhD. scholarship from the National Scientific Research Fund (FNRS). 45 REFERENCES [1] C. D. Bei and R. M, Gray, "An improvement of the minimum distorsion encoding algorithm for vector quantization", IEEE Trans. Comm., COM- 33:1132-1133, October 1985. [2] C.-C., Chang, D.-C. Lin, T.-S. Chen, "An improved \IQ codebock search algorithm using principal component analysis", Jourtuil of Visual Communi- cations and Image Representation, VoL8, No. 1, pp. 27-37, March 1997. [3] A. Gersho, R. M. Gray, "Vector quantization and signal compression" , Kluwer Academic Publishers, Boston, 1992. [4] C. M, Huang, Q, Bi, G. S. Stiles, and R. W, Harris. "Fast full search equivalent encoding algorithms for image compression using vector quantization". IEEE Trans, Image Proc., 1(3):413-416, July 1992. [5] Y. Linde, A. Buzo and R. M. Gray, "An algorithm for vector quantizer desing", IEEE Trans. Comm., COM-28:84-95, January 1980, [6] C. H. Lee, L. H. Chen, "Fast closest codeword search algorithm for vector quantization", in : lEE Proc. Vis, Image Signal Process., VoL 141, No, 3, June 1994. [7] C. H, Lee, L. H. Chen, "High-speed closest codeword search algorithms for vector quantization", Signal Processing 43:323-331, 1995. [8] M. T. Orchard, "A fast nearest-neighbor search algorithm", in ICA88P 91.' 1991 International Conference on Acoustics, Speech and Signal Processing. Toronto, Otit., Canada. 14-17 April 1991., volume 4, p. 2297-3000, New- York, NY, USA, 1991. IEEE. 46 EFFICIENT CODING OF NON-STATIC TEXTURE IN 3D SCENES Stef Desmet, Bert DeKnuydt, Luc Van Goal and Luc Van Eycken Katholieke Universiteit Leuven, ESAT-PSI K.Mercierlaan 94, B-3001 Heverlee, Belgium {Stef.Desmet,Bert.DeKnuydt }@esat.kuleuven.ac.be http:j jwww.esat.kuleuven.ac. be/psi/visics As cheap and powerful 3D render engines become commonplace, demand for nearly realistic 3D scenes is increasing. Besides more detailed geometric and texture information, this presupposes the ability to map dynamic tex- tures. This is obviously needed to model movies, computer and TV screens, but also for example the landscape as seen from inside a moving vehicle, or shadow and lighting effects that are not modeled separately. Downloading the complete scene to the user, before letting him interact with the scene, becomes very unpractical and inefficient with huge scenes. If the texture is not a canned sequence, but a stream, it is altogether impossible. Often a back channel is available, which allows on demand downloading so the user can start interacting with the scene immediately. This can save considerable amounts of bandwidth. Specifically for dynamic texture, if we know the viewpoint of the user (or several users), we can code the texture taking into account the viewing condi- tions, i. e. coding and transmitting each part of the texture with the required resolution only. Applications that would benefit from view-dependent coding of dynamic tex- tures, include (but are not limited to) multiplayer 3D games, walkthroughs of dynamic constructions or scenes and 3D simulations of dynamic systems. In this paper, a scheme based on an adapted OLA (Optimal Level Alloca- tion) video codec is shown. Important data rate reduciions can be achieved with it. Keywords: Texture coding, dynamic texture. INTRODUCTION The coding process of texture to be mapped on 3D-scenes can benefit from knowledge of rendering parameters, such as spatial configuration, lighting, haze, 47 motion blur and resolution of the output device. If a back channel is present, the most obvious parameter to take account with is the viewpoint: clearly, if a huge texture map will be rendered on an object far away, or at a very sharp angle, there is no need to transmit it to full detail: many texture pixels will be rendered to one image pixel. See [5] and [4] for the static case. Especially for dynamic texture, huge bitrate reductions can be obtained by coding the texture locally to only the resolution and quality needed. As is shown in figure 1, exploiting this information means that for each part of the texture, we have to calculate the distance, slant and tilt angle with which it will be mapped. The calculation is based in the 3D scene information available at the transmitter and the viewpoint returned to the transmitter via the back channel. If there are multiple viewers, one could either send each one a differ- ent texture stream optimal for his own viewpoint, or one could generate a single texture stream that satisfies all viewers, at the expense of a higher bitrate. This, together with any other relevant information, allows us to calculate the lowest horizontal and vertical resolution needed in the texture map, such that the ren- dered scene will be of high enough quality. Finally, we can code the texture with a video coding engine that is able to code each part of the map just good enough for the required resolution. • OLA CODING ENGINE In general, any video coder could be used for the coding of dynamic texture. However, DCT based coders, like MPEG1, MPEG2 and even MPEG4, do not have enough flexibility to easily change the resolution in specific image areas and directions. More specifically, one can only drop higher order DCT coefficients to reduce the resolutions, which is a rather crude mechanism, often resulting in severe ringing. Ideally, we would like a coder, which allows to specify an arbitrary quality criterion for each image area. In this case, the quality criterion would include a directional variable resolution filter. The OLA coder is capable of dealing with any quality criterion. The standard OLA video coder starts by analyzing the input images and assigning attributes of visual importance (like "texture" or "visually important edges") to each area. In this application, 16 x 16 hlocks were used, but the algo- rithm is not limited to this. The selected attributes correspond to a classification, which in its turn selects an appropriate visually relevant quality criterion. 48 Viewing Point Texture Map =H= {d,s,t} Figure 1: Scene overview 49 Then, for each image block, the best prediction is chosen out of two motion compensated predictions from the prior images and an intra prediction. The motion vector selection algorithm has half pixel resolution and can handle illu- mination changes. The prediction selection and the motion vectors are predicted and the error is sent to an adaptive arithmetic coder (AAC). See [2]. The appropriate quality criterion is now evaluated and the result compared with the required quality. If quality is not sufficient, the average value of the prediction error is quantized and transmitted. The criterion is now re-evaluated and an OLA coding step is applied. This is done iteratively until the criterion is fulfilled (or the maximum number of iterations, normally 5, is reached). The number of iterations is predicted and AAC coded. The OLA coding step itself consists of the optimal selection of two levels, which are quantized and transmitted. Each pixel in the prediction error is now updated with one of these two levels, or with zero. The selection map is adaptively scanned, predicted and AAC coded. Optionally, a motion vector deblocking and an image deblocking scheme are applied, inside the coding loop. See [1]. Although the encoding scheme is rather complex, mainly because of the anal- ysis steps, the decoding complexity is very low, which would make it suitable for downloading. EXTENDED QUALITY CRITERION Because of the information returned via the back channel, we know the view- point of the observer. We can easily calculate the distance, slant and tilt angle with respect to the image plane, of each part of the texture to be mapped. We express them in a visibility number, 0 meaning not visible (object at infinite dis- tance, object occluded, or mapping plane perpendicular to the image plane) and 1 meaning fully visible (mapping plane coincides with the image plane). Then, we can than determine a mapping filter that corresponds to the projec- tion ofthe texture back to the image plain. The filter is a directional subsampling filter. As we are only interested in the quality after mapping, we can include it in the quality criterion for the OLA coding step. Because of linearity of the system, we can apply the filter to obtain the coding errors after mapping from those in the texture domain. The errors after mapping are added up to determine the final quality of that image part. 50 In the codec, the filter is implemented as a variable size, separable Gaussian filter. Theoretically, the size of this filter can become infinite. In practice we have to limit the size to about the coding block size. Mirroring is applied at the block borders to reduce bias. From the filtered errors, the PSNR could be calculated, but a slightly more complex measure is taken. The errors are sent though a lookup table consisting of three parts. First there is a dead zone around zero, to reduce the impact of (camera) noise, followed by a quadratic part, in accordance with the PSNR criterion, and finally a linear part, to limit the effect of large single pixel errors. The accumulated sum of these values returns a quality measure. Configuration In the setup of the coder, a number of possibilities remain open. For instance, what to do with texture mapped on a object that becomes occluded. We decided to continue sending only motion vectors, in order to minimize the data we have to send, when the object would reappear. SIMULATION Room Walkthrough We constructed a virtual room, where a movie is playing in a flat television screen on the back wall. Meanwhile, a person enters the room from a door at the backside, walks around the table and finally takes a seat in the couch, close to the screen. The action takes 60 seconds. If we code the movie as plain video material, we need on average 3.17 Mbit/sec for MPEG2 like quality. If we code it as dynamic texture, only 0.79 Mbit/sec is needed. Rendered, both approaches result in the same quality. In figure 2, you see a frame from the rendered scene, in figure 3 the texture for the virtual television screen, once coded as video (top), once as dynamic texture (bottom). Finally, in figure 4 you see the momentary bitrates for the respective ways of coding. 51 Figure 2: Rondered SC('ItP Figure 3: :)(1'('('[1 cocled as video (top) and as dvuamic texture (botr om ) 52 ····r 1 O~~~~~~~~~~ o 500 1000 1500 200D 2500 JOOD Image number 28-Jon-I999 10,--------,---------,--------,---------,--------,--------, Tow) L~!111~j)~!rl,.\ Cbrominanee I Cbrominanee 2 1 500 1000 1500 2000 Image number 28- Jon-I999 Figure 4: Bitrates for coding as video (top) and as dynamic texture (bottom) 53 CONCLUSION In complex 3D scenes, the exploitation of scene information, and especially the viewing point, can greatly reduce the bitrate needed to transmit dynamic (and static) textures. This implies a coder able to deal with other quality criteria than plain PSNR. Existing DCT based (video) coders are not well suited for this application, mainly because the coding does not take place in space domain. More flexible, or ideally downloadable, (de)coding schemes are urgently needed. REFERENCES [1] Bert DeKnuydt, Luc Van Eycken, and André Oosterlinck. A simple deblock- ingscherne suitable for use inside the codec loop. In IEEE Proceedings, Mele- con '94, Antalya, Turkey, volume 1, pages 9-12, April 1994. [2] Stef Desmet, Bert DeKnuydt, Nan Li, Luc Van Eycken, and André Ooster- linck. A simple algorithm to extract realistic motion fields out of video se- quences. In Proceedings, EOS-SPIE International Symposium on Fiber Optic Networks and Video Communications, Berlin, Germany, volume 1977, pages 248-254, April 1993. [3] Christos Faloutsos and Shari Roseman. Fractals for secondary key retrieval. CS-TR-2242, May 1989. [4] Stefan Horbelt. Fred Jourdan, and Touradj Ebrahimi. View dependent tex- ture coding for transmission of virtual environment. In Proceedings, Confer- ence on Image Processing and its Applications, Dublin, Ireland, volume 1, pages 433-437, June 1997. [5] Fred Jordan and Touradj Ebrahimi. View-dependent texture for transmission of virtual environment. MPEG4-meeting, doc. ISO/IECJTC/SC29/WGll/MI501, Maceió, Brasil, November 1996. 54 High-Quality Embedded Compression for Digital TV Mihaela v.d. Schaar-Mitrea 1 and Peter H.N. de With 2 1 Philips Research Labs., 345 Scarborough Rd. Briarcliff Manor, USA. 2University Mannheim, Fac. Computer Engineering, B 6-26, D-68131 Mannheim, Germany. Abstract - We present a novel near-lossless technique to reduce the memory costs of an MPEG-2 decoder with a factor of almost 6, by recompressing the 1- and P- reference pictures prior to memory storage for motion compensation. For this pur- pose} a special feedforward compression system is embedded, which enables a near- lossless quality by reusing the MPEG quantization parameters. 1 Introduction In the coming years, digital television broadcasting will gradually replace analog television. It is expected that the increasing number of broadcasting services and the high video and audio quality offered will lead to a growing demand for DTV receivers. However, the consumer acceptance of this new technology will rely con- siderably on low implementation costs of the DTV receivers. This paper presents a new, near-lossless technique to reduce the memory costs of a key component in all DTV receivers, i.e. the MPEG-2 decoder [1], by recompressing the 1- and P-reference pictures prior to memory storage for motion compensation. The implementation of such an embedded compression technique is complicated, since it is inserted in the recursive motion-compensated MPEG coding process. In [2][3][4], it was already shown that the embedded compression of the MPEG-decoder reference pictures is possible. This paper presents a new scheme, which partially reuses the MP EG de- coding system itself, to obtain a near-Iossless performance. Besides cost reduction, the embedded compression within DTV receivers is an attractive aid to reduce the communication bandwidth with the shared (background) memory. This communi- cation channel is often congested; because many digital signal processing functions and a control processor demand access to the memory simultaneously. The paper is divided as follows. Section 2 addresses the most relevant constraints for embedding a compression system with near-lossless quality in the motion-compensated prediction loop of the MPEG decoder. Section 3 is devoted to the embedded memory-compression system being used and discusses the conditions for near-lossless quality operation. Section 4 presents the simulation results of a state-of-the-art MPEG-2 decoder with embedded compression and gives the conclusions. 55 2 System requirements In a preliminary investigation [2], it was found that embedded compression of refer- ence data in MPEG is possible with a very simple transform coding system, yielding a compression factor of 4. However, the proposed algorithm preserves the final pic- ture quality only at low and moderate transmission bit-rates. In this paper, we propose a new system which realizes a near-lossless compression of the reference frames with a factor of 6, independent on the transmission bit-rate or picture for- mat. This is a relevant feature, since a DTY receiver should be able to operate flawlessly for various bit rates and image formats. In this paper, we assume that the display resolution is larger or equal to the input image resolution. This is the most challenging system, since any interference between MPEG-2 decoding and embedded (memory) compression becomes clearly visible and it is not masked by a lower reso- lution display, as assumed in alternative systems [3][4]. In the sequel, it is assumed that the input and output images have standard-definition resolution (i.e. 720 pix- els x 576 (/ 480) lines at 25 (/ 30) frames/a). However, the algorithm presented is suited for all 18 different ATSC formats, including the 1920 x 1080 format at 30 frames/so For a successful application of embedded memory compression in MPEG (from now on referred to as "embedded compression"), a number of system require- ments have to be satisfied, some of them being rather unique for this type of system. • Fixed compression factor for each individual picture. • Suitability for various bit rates and image formats, and for HDTY-resolution display. • Near-lossless image compression, such that no artifacts from the embedded compression become visible. • Robustness for repetitive coding/decoding in the recursive MPEG coding loop (i.e. no prediction drift). • Easy pixel data access, to enable real-time operation of the motion-compensated decoding. Especially the last three system requirements reveal that special algorithms are re- quired for embedded compression. 3 Emqedded compression algorithm 3.1 Feedforward coding scheme To fulfill the previously mentioned system requirements (e.g. data access, fixed compression up to 6, etc.), while preserving a high image quality independent of the MPEG-2 transmission bit-rate, a novel feedforward-buffered coding scheme, as shown in Fig. 1, has been adopted. The main steps of the scheme are as follows. Multiplication-free DCT. The DCT and mCT employed in the embedded com- pression scheme are based on a new efficient computation scheme [2], which substi- tutes all the multiplications with add and shift operations. This was achieved by individual coefficient normalization and using special integer representations. The proposed multiplication-free DCT-IDCT was found superior with respect to cost and computational transparency, when compared with other fast DCT algorithms. 56 r::========::;:---==--==--=:-:=-1 I- DCT-type - "I Step size mquant I I I r----, I Embedded Encoder - - - _j Fig.!. MPEG-2 decoder with embedded compression using feedforward transform coding. The embedded codec also employs blocks of 8. x 8 pixels to match it with MPEG-2, thereby avoiding any reformatting of the data by the embedded coder. Robust Quantization. For the frequency-dependent quantization of the trans- form coefficients, two options exist: either adopt a dedicated low-complexity quan- tizer based on simple shift operations (i.e. quantization with powers of 2) or employ the MPEG-2 quantizer. Since this choice is key to our embedded compression algo- rithm, we will discuss this later in more detail (see Section 3.2). However, in either case, the quantization algorithms should be modified as described in [2] to prevent that the decoder would drift away from the motion-compensation reconstruction loop. Entropy Coding. A low-cost Huffman encoder has been designed, featuring adap- tive zonal selection of non-zero coefficients: the position of the relevant coefficients is specified by the largest column and row values for which non-zero coefficients still occur. Despite its slightly lower cornpression capability, this entropy coder is considerably less complex than the MPEG-2 significanee map compression, because it requires less processing steps and memory. Feedforward bit-rate control. A feedforward system was used to ensure a fixed compression factor per picture (i.e. frame or field). The reference pictures were divided in groups of one or several MPEG-2 macroblocks, called segments, which are coded together as an entity. The video data within the segments are analyzed prior to compression, in order to select the quantization strategy that gives the best image quality and still yields the desired compression factor. Experiments have been conducted for fixed and variable compression factors per segment. In the latter case, the bits left unused in a certain segment can be employed for an improved quanti- zation of the subsequent highly detailed segments. 57 3.2 Near-lossless embedded compression dependent on the transmission bit-rates The conventional video coding algorithms (i.e. MPEG-2, H.263, etc.) and exten- sions such as MPEG-4, can be divided in two classes employing different quantization techniques, depending on their image quality and the corresponding transmission bit-rate. Low to moderate transmission bit-rates. The first class includes video cod- ing schemes giving low and moderate decoded image quality (SNR < 33 dB), like MPEG-2 codecs at low bit-rates (e.g. < 6 Mbit/s for SD-resolution images), H.263, MPEG-4, etc. To obtain these target bit-rates, a relatively coarse quantization is applied for most macroblocks and only a small number of non-zero AC coefficients are transmitted. As a consequence, the employment of a relatively coarse quantizer in the embedded coder does not lead to a visible interference with the surrounding video coding system. For this class, the 2n quantizer mentioned in the previous subsection forms an appropriate choice, which allows for a very efficient hardware implementation and prevents the unnecessary VLC coding of large AC amplitudes. Since the image quality obtained by the embedded coder considerably outperforms that of the surrounding system, the two coding mechanisms do not need to be "syn- chronized" (i.e. can work independently of each other). It is interesting to mention that this low-complexity embedded coder is extremely suitable for reducing the cost of the conventional video encoders, since the transmission bit-rate is a-priori known and can be controlled by the encoder; itself. For low and moderate bit-rates, a more accurate quantizer would result in an unnecessary complexity increase. High transmission bit-rates. The second class includes the DTV receivers that should be able to decode all possible bit-rates and image qualities. For relatively large bit-rates (e.g. > 9 Mbit/s for SD resolution images), the decoded image qual- ity is very high (SNR > 36 dB) and the transform coefficients are quantized only marginally. Therefore, the embedded compression quantizer should avoid the zero- ing of AC coefficients, by employing a finer weighting function for the embedded compression quantizer. To minimize the potential interference between the embed- ded compression and the applied coding standard, the best alternative is to "track" the applied MPEG dequantization step (i.e. mquant) and reuse the MPEG quanti- zation process. To realize a near-Iossless compression, the MPEG-2 coding parame- ters are also employed by the embedded compression. The quantization parameter mquant used by the MPEG coder for the I-pictures can be reused by the embedded coder. Whenever an image has been coded on a frame basis, in order to obtain the same quantization process as in MPEG-2, the same DCT-structure of the lu- minance blocks (e.g. frame- or field-based) should also be employed. Consequently, the MPEG-2 IDCT and the embedded-compression DCT can be discarded from the computational flow of the I-picture decoding, thereby reducing the overall compu- tational complexity, In most cases, the compression factor achieved by MPEG-2 for each individual segment is already larger than 6 and the embedded compression of the I-image is therefore lossless. When the desired amount of bits per segment is exceeded, the embedded feedforward codec increases the quantization strategy per 58 segment to ensure that the desired compression factor is achieved. The embedded compression of the P-pictures is different, since the decoded MPEG- 2 blocks represent only temporal prediction errors, while the entire reconstructed picture should be stored within the memory for further decoding. After a group of MPEG-2 macroblocks has been decoded (i.e. prediction-error decompression and motion compensation), the data is again (embedded) compressed prior to its storage within the reference frame memory. The feedforward codec presented in Section 3.1 analyzes the data within a segment by employing different quantization strategies, varying from coarse to fine. For the MPEG-2 quantizer inside the embed- ded coder, these different quantization strategies are represented by various values of the mquant parameter. For each quantization strategy, the total bit-cost after the entropy coding of the significant AC coefficients is compared with the desired compression factor. If the desired compression factor is not reached, the quantiza- ti on step is increased and the process is repeated. For the feedforward coding of the P-pictures, two initialization strategies can be adopted: • initialize the feedforward embedded coder with the coding parameters employed by MPEG-2 for the compression of the previous I-picture; • initialize the feedforward embedded coder with the finest quantization strategy and use no coding parameters of previous images. N N ... Block used for M D embedded compression is D- 16 Macrobleek Fig. 2. Macroblock extraction from a compressed frame. 3.3 Memory-bandwidth reduction computation In MPEG-2, the motion-compensation requires that macroblock data should be re- trieved from memory on "arbitrary" positions, which mostly do not coincide with the block grid employed for embedded compression. Therefore, additional (em- bedded) decoding of border pixels is required, which consumes additional memory bandwidth, as illustrated in Fig. 2. Since the image data is stored in the memory in compressed form, an image header is separately stored, containing both the start addresses of the coded segments and the (offset) positions of each compressed block within the segment, called PB (Pointer Bits). For analysis, it is proposed to eval- uate a memory-bandwidth reduction (MER) factor, assuming that the embedded compression system with compression CF employs N x M blocks, so that M BR _ 16 . 16 . 1 (1) - ll6+;-l j ll6+:-1 j ~: + If . 59 For the system discussed with N = M = 8, CF=6 and PB=9, the MER equals 2.5. The MER should be considered carefully because for a CF=2, the memory band- width would have increased, due to the embedded compression. Similar calculations can be derived for various block sizes, compression factors and address information systems. This analysis becomes extremely important when an embedded compres- sion system needs to be dimensioned such that it achieves the best trade-off between image quality (i.e. large block sizes) and memory bandwidth reduction (i.e. small block sizes). Fig. 3. Relative comparison between the embedded compression (Ee) image quality and the image quality of the MPEG-2 codecs at various bit-rates. 4 Results and conclusions Experiments have been carried out employing this novel embedded compression technique inside MPEG-2 decoders. The results obtained show that the described feedforward embedded coder with the MPEG-2 quantizer achieves a memory re- duetion of 6 with almost no loss in image quality, independent of the transmission bit-rate (see Fig. 3). Simulations with the embedded compression have been per- formed for a range of image sequences at various bit rates (4-15 Mbi t /s). Mostly, the quality decrease due to embedded compression is very small, e.g. 0.2 dB and 1 dB for the worst case, whereas the memory cost of the DTV receiver is consid- erably reduced. A major advantage of the proposed algorithm is its robustness for repetitive coding/ decoding in the recursive MPEG decoding loop, so that negligible prediction drift occurs. Another important feature of the technique proposed is that it is equally well applicable to other image resolutions, because it can "follow" the MPEG decoder, as it is partially based on the same techniques and coding param- eters. The hardware complexity of the proposed system can be downscaled, if required. The complexity of the embedded coder is dominated by the feedforward buffer and the MPEG-2 quantizer. Fortunately, both blocks can be reduced in complexity, e.g. by using only one MPEG macroblock as a buffer for the feedforward coding scheme and/or employing the 2n quantizer which can be implemented with bit-shifts only. A trade-off between cost and performance is therefore possible and is illustrated by Fig. 4a and b. 60 Finally, it was found that the novel algorithm can be also successfully applied for reducing the memory requirements of other digital signal processing functions (e.g. sample-rate conversion, de-interlacing, etc.) or video encoding systems (e.g. MPEG- 2 encoders, MPEG-4 and H.263 codecs). The proposed embedded coder outperforms the algorithms currently known in the literature for reducing the memory size of DTV receivers, because it can operate with near-lossless quality for a large range of bit-rates and image resolutions. Therefore, the proposed algorithm can be success- fully employed for reducing the memory of a scalable (programmable) DSP system, of which the operating range and input image size is not known in advance. Fig. 4. Image quality of the MPEG-2 decoded SD-resolution MOB! sequence (very critical) at 4 Mbit/s (a) and 15 Mbit /s (b) without and with embedded compression (Ee) with fixed compression factor 6. References [1] Coding of Moving Pictures and Associated Audio, International Standard, ISO/IEC 13818, November 1994. [2] M. v.d. Schaar-Mitrea and P.H.N. de With, "Novel embedded compression algo- rithm for memory reduction in MPEG codecs" , VCIP '99, San Jose CA, SPIE Proc. Vol. 3653 part 2, pp. 864-873, Jan. 1999. [3] A. Vetro et al., "A minimum drift 3-Layer scalable DTV decoder", ICCE '98 Digest Techn. Papers, Los Angeles CA, pp. 54-55, June 1998. [4] J.G.N. Henderson, "All-Format Decoders and Set-Top Boxes", Proc. IC lP '98, Vol. 1, Chicago IL, p. 4, Oct. 1998. [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, pp. 545-555, August 1998. 61 TIMING ATTACK: WHAT CAN BE ACHIEVED BY A POWERFUL ADVERSARY? Gaël Hachez, Franccis Koeune, Jean-Jacques Quisquater VCL Crypto Group, Place du Levant 3, B-1348 Louvain-Ia-Neuve, Belgium. {hachez, fkoeu ne,jjq }@dice.ucl.ac.be URL: http://www.dice.ucl.ac.be/crypto INTRODUCTION Implementations of cryptographic algorithms often perform computations in non-constant time, due to performance optimizations. If such operations involve secret parameters, these timing variations can leak some information and, pro- vided enough knowledge of the implementation is at hand, a careful statistical analysis could even lead to the total recovery of these secret parameters. This idea, due to Kocher [Koc96], was developed in [DKL +98], were a timing attack against an actual smart card implementation of the RSA 1 was conducted. The paper's conclusion was that, however impressive, the obtained results could be improved even further in several aspects, especially regarding the error- correction policy. The paper first presents the basic principle of the timing attack, then briefly discusses several error-correction policies and describes the results we obtain im- plementing them on a parallel architecture of 4 processors PA8000 @ 180Mhz with 4 Gbytes RAM. TIMING ATTACK We begin by describing the main features of the timing attack. A more complete description can be found in [DKL +98]. We will attack an RSA implementation, performed in an earlier version of the cryptographic library we developed for the CASCADE [Cas] smart card. 1In fact, a pre-version of the cryptographic library the VCL Crypto Group developed for CASCADE[Cas]: in view of the devastating results of the timing attack, the final version was modified to make it immune against it. 63 The scenario of the attack is the following: Eve disposes of a sample of messages M and, for each of them, the time needed to compute the signature of the message with the key k. Her goal is to recover k. To perform the timing attack, Eve needs a bit information about the im- plementation. We suppose she knows that the computation of mk mod n is per- formed using the well-known left to right square and multiply (fig. I). She also knows that both the multiplication and the square are done using the Montgomery algorithm. x=m FOR i = n - 2 DOWNTO 0 x = x2 IF (kj == 1) THEN x=x·m ENDFOR RETURN x Figure 1: Square and multiply We will not describe the Montgomery algorithm in detail here. The only point of interest is that the time for a Montgomery multiplication is constant, independently of the factors, except that, if the intermediary result of the mul- tiplication is greater than the modulus, then an additional subtraction (called a reduction) has to be performed at the end of the multiplication. This means, and that is the basis of our attack, that for some factors the multiplication time will be longer than for others. A first target: attacking the multiply The most obvious way to take advantage of this knowledge is to aim our attack at the multiply step of the square and multiply. We start by attacking k2, the second bit2 (MSB first) of the secret key. Per- forming the Montgomery algorithm step-by-step, we see that, if that bit is 1, then the value m . m2 will have to be computed during the square and multiply. Now, for some messages m (those for which the intermediary result of the multiplication will be greater than the modulus), an additional reduction will have to be performed during this multiplication, while, for other messages, that 20f course we can suppose that the first bit of the key is always 1. 64 reduction step will not be necessary. So, we are able to divide our set of samples in two subsets: one for which the computation of m . m2 will induce a reduction and another for which it will not. If the value of k2 is really 1, then we can expect the computation times for the messages from the first set to be slightly higher than the éorresponding times for the second set. On the other hand, if the actual value of k2 is 0, then the operation tri- m2 will not be performed. In this case, our "separation criterion" will be meaningless: there is indeed no reason for which a m inducing a reduction for the operation m . m2, would also induce a reduction for m2 . m2, or for any other operation. Therefore, the separation in two subsets should look random, and we should not observe any significant difference in the computation times. Once this value is known, we can simulate the computation up to the multi- plication due to bit k3, attack it in the same way as described above, and so on for the next bits. The previous approach allowed us to recover 128-bit keys by observing sam- ples of 50000 timings. However, this approach was unsatisfying on several re- spects (see [DKL +98]) and another one, described below, turned out to be much more efficient. Second target: attacking the square There is a more subtle way to take advantage of our knowledge ofthe Montgomery algorithm: instead of the multiplication phase, we could turn ourselves to the square phase. The idea is quite similar to that of section : suppose we know the first i-I bits of the key and attack the ith. We begin by executing the first i -1 steps of the square and multiply algorithm, stopping just before the possible - but unknown - multiplication by m due to bit k, ; we denote by mtemp the temporary value we obtain. First, we suppose k, is set. If this is the case, the two next" operations to be performed are 1. multiply mtemp by m, 2. square the result, and both of these operations will be done using the Montgomery algorithm. We simply execute the multiplication and then, for the square, determine whether 65 an additional reduction will be necessary or not. Doing this for every message, we divide our samples set in two subsets M1 (additional reduction) and M2 (no reduction). Next, we suppose k, = O. In this case, no multiplication will take place, and the next operation will simply be m~emp" Once again, we divide the samples set in two subsets M3 and M4, depending on whether this square requires a reduction or not. Clearly, only one of these separations makes sense, depending on the actual value of ki. All we have to do now is to compare the separations: if the timing difference between M1 and M2 is more important than that between M3 and M4, then conclude ki = 1, otherwise, conclude ki = O. This approach has several advantages on the previous one, but its most in- teresting feature for the current purpose is its error-detection property. This will be developed in next section. Using this attack, we were able to recover 128-bit keys with 20000 timings. Some keys were disclosed with only 12000 timings. ERROR-DETECTION One remarkable property of our attack is that it has an error-detection prop- erty. This is easy to understand on an intuitive point of view: remember that the attack basically consists in simulating the computations until some point, then building two decision criteria, with only one of them making sense, depending on the searched value, and finally deciding the bit value by observing which criterion actually makes sense. Also note that each step of the attack relies on the previous ones (we need the previous bits values to simulate the computation). Now, suppose we made an erroneous decision for the value of bit ki. In the following step, we will not correctly simulate the computations, so that the value mtemp we will obtain will not be the one involved in step i + 1. Our attempts to decide whether the Montgomery multiplications will involve an additional reduc- tion or not will thus not make sense, and the criteria we will build will both be meaningless. This remains true for the following bits. In practice, this translates to abnormally close values for the two separations: while, as long as the choices were right, the two separations were generally" easy 3There are however some tedious cases, were the two criteria are uneasy to differentiate although no error has been made. That is why it is better to wait until several contiguous low values are observed before to conclude to an error. 66 to distinguish, one of them being clearly more significant than the other, they appear much more similar (and both bad) after an erroneous choice has been made. This fact is well illustrated in figure 2, showing the attack of a 512-bit key on the basis of 350000 observations. The decision criterion is simply the difference between the mean times for the two subsets, and the graph shows the absolute value of diff 1 (the difference between M1 and M2) minus diff 2 (difference between M3 and M4). Clearly, an error has occurred near bit 149. Figure 2: Detection of an error for a 512-bit key Two things are worth noting about this figure: first, it can be seen that, even when the guesses are correct, some values of the criterion turn out to be very small. This suggests that, to detect an error, it would be better to consider the criterion on few consecutive bits insteadof single ones. Secondly, it must be noted that this graph corresponds to a rather large sample; as the sample size decreases, errors will of course become much more difficult to detect. Thanks to this error-detection property, it should be possible to build attack variants that would be robust against errors, as long as their proportion remains sufficiently low. This can be extremely important, as the sample size appears to decrease very fast when the error proportion grows (see figure below). A good correction policy should thus allow to reduce drastically the sample size. We will come back on this later. Success rate 64 bits 128 bits 256 bits .w » 75% 300 800 2500 90% 1000 2700 10000 î· ! I ;' 95% 1750 5000 20000 99% 3750 9500 42000 67 PARALLEL IMPLEMENTATION Once the samples have been collected, most of the computation time is spent in simulating the algorithm's behavior for each message and computing statistics. These computations can easily be parallelized. We built a parallel implementation, in which the total sample is cut into parts and shared among several processors. Each processor handles its own subset (checking Montgomery multiplications, computing partial means, ... ) and they only interact to share their statistics and make a common decision about the bit value. The level of parallelism is thus very high, and the speed is multiplied by the number of processors at disposal. Our implementation on an HPIS-Class of 4 processors PA8000 @ 180Mhz, with 4 Gbytes SDRAM, allowed to reduce the time to break a 512-bit key to about 40 minutes. 128-bit keys were recovered in a few seconds. Unfortunately, the real bottleneck for the attacker is not so much his com- putation power than the smart card's one. As a matter of fact, the only way to build the time sample is by forcing the smart card to sign every message. Such a processing of some hundred thousands different messages by the same smart card seems, at several respects, unrealistic. Therefore, of much more interest would be to be able to reduce the sample size we need for the attack. This is the purpose of next section. ERROR CORRECTION POLICY As we said before, it should be possible, by implementing an adequate error- correction policy, to reduce drastically the size ofthe needed sample. We therefore tried several ways to make the attack robust against an as big error proportion as possible. Errors are always detected based on some criterion value. After many trials, we decided to use a criterion based on the decision criterion for the next bit value. We trace our decision criterion back from the last bit. If we find a bit with a small criterion value preceded by a window of bits with high criterion values, we concluded that the last bit was not correct. If we apply this criterion to figure 2, we find that bit 149 was the first bad bit. Quite surprising, more sophisticated criteria based on statistical models, did not reveal more efficient. Basically, the error correction policy is the following: 1. start by performing the attack until the end, without trying any correction; 68 2. identify the last place PI were the criterion was high: we can reasonably suppose that the guess was correct until this point; 3. try a first correction, by changing the bit value at position PI + 1; continue the attack until its end and identify the last place P2 were the criterion was high; 4. if P2 is further than PI, then the correction we tried was probably right; we can now recursively repeat the process: execute step 3, using P2 instead of PI; 5. otherwise, our correction attempt was incorrect: restore previous bit value, and try to change the bit value at position P, + 2, then PI + 3, ... 6. if the correct key is not found this way, we conclude the first error occurred before PI; we thus find the last place, before PI, were the criterion was high, and restart the same process. Of course, every time a complete key is guessed, we check whether it is the right one (this is easily done in a public key cryptosystem) and stop as soon as the key is found. However, one problem remains: we have seen that some bits are more difficult than others, in the sense that the criterion is not very clear there, and that the guess decision is taken in the wrong direction. The above algorithm will try to detect these errors and correct them. But what will happen if two "difficult bits" are consecutive? If this is the case, then the correction attempt will be directly followed by an error; the criterion will thus remain low for subsequent bits and the algorithm will not detect it has done the good correction. One solution is to try to correct not only single bits, but small bit windows. In the above algorithm, instead of changing a single bit value, we will explore all possibilities for three or four consecutive bits. We build a list with all possibilities and order this list from the most to the least probable using our decision criterion. For each possibility, we then try to complete the attack and proceed recursively as before. Note that, for this to be fully efficient, we need to use at least two different window sizes for the evaluation criterion window and for the correcting window. (otherwise we simply report the problem a bit further). CONCLUSION The previous paper [DKL +98] showed that timing attacks are serious threats against cryptosystems implementation on devices where timing measurements 69 can be precisely done. This is especially the case for smart cards. The longest step (in time) is to get enough timing samples. The number of needed samples are quite large for usual key sizes. Further reduction of this number will increase the practicability of the attack. In this paper, we focused on improvements able to reduce the number of samples needed to successfully recover a secret key. We showed that the timing attack enjoy good error-correcting properties. With our error-correcting method, we are able to reduce the number of samples by a factor two. Results (number of samples) Key size without error correction with error correction 64 1500-6500 1500-4000 128 12000-20000 5000-8000 256 70 000-80 000 30 000-40 000 512 350 000-400 000 15000-200000 We are still working on devising better error-correcting schemes because we believe that more information can be extracted from these timings. REFERENCES [Cas] Cascade (Chip Architecture for Smart CArds and portable intelli- gent DEvices). Project funded by the European Community, see http:j jwww.dice.ucl.ac. bejcryptojcascade. [DKL+98] J.-F. Dhem, F. Koeune, P.-A. Leroux, P. Mestré, J.-J. Quisquater, and J.-L. Willems. A practical implementation of the timing attack. In Proc. CARDIS 1998, Smart Card Research and Advanced Applica- tions, 1998. lKoc96j P. Kocher. Timing attacks on implementations of Diffie-Hellman, RSA, DSS, and other systems. In N. Koblitz, editor, Advances in Cryptology - CRYPTO '96, Santa Barbara, California, volume 1109 of LNCS, pages 104-113. Springer, 1996. 70 THE DIGITAL TIMESTAMPING PROBLEM Bart Van Rompay', Bart Preneell , Joos Vandewalle Katholieke Universiteit Leuven, ESAT-SISTAjCOSIC K. Mereierlaan 94, B-3001 Heverlee, Belgium bart.vanrompay~esat.kuleuven.ac.be In this paper we examine the relation between time and cryptography. Time- stamping systems provide temporal authentication of electronic documents, they certify the date a document was created or last modified. Important applications are found in legal situations, electronic contracts. the proteetion of Intellectual Property Rights, and Internet security in general. We give an overview of the problem and discuss several state-of-the-art techniques. INTRODUCTION The interaction between time and cryptography is a relatively new subject. [HS91] is the reference work in this area. A study was made in the framework of the Belgian Timesec project (see [MQ97] and [PRQ+98]). Most cryptographic research has been focused on secure messaging systems. Symmetric and public key encryption are used for protecting confidentiality. Authenticity (data integrity and data origin authentication) can be obtained by applying keyed hash functions (for the symmetric key case) or digital signatures (in the public key scenario). However, the secure maintenance of documents with a long lifetime is more complicated. Key pairs used in public key systems have a limited lifetime and may be revoked if the private key has been compromized. In a non-repudiation service we must be able to determine, at a later time, if a document was signed (using the owner's private signature key) within the validity period of the certificate. In other applications the time itself can be important, for example the date of an inventor's patent claim to establish precedence over competing claims. Digital timestamping provides the solution to this problem, by certifying the date and time on which a particular document is submitted to the timestamping • Sponsored by the Timesec project of the Federal Office for Scientific, Technical and Cultural Affairs (OSTC), Belgium. t F.W.O. postdoctoral researcher, sponsored by the Fund for Scientific Research - Flanders (Bel- gium). 71 service by the owner. When dealing with electronic data it will be necessary to timestamp the data itself, without any regard to the physical medium on which it resides. The security depends on the following general properties: • It must be infeasible to timestamp a document with a date and time differ- ent from the present one . • It must be infeasible to change even a single bit of a timestamped document without the change being apparent. A SIMPLE CENTRALIZED SERVICE A basic solution for timestamping relies on the use of a trusted third party, the Time Stamp Authority (TSA). The TSA appends each request with the current date and time and digitally signs the result to produce a timestamp. The scheme can be enhanced by using a hash function to compress the document sent to the TSA. This allows to preserve the confidentiality of the original data, reduces the bandwidth and storage requirements, and improves the efficiency (digitally signing is a computationally expensive operation). If a document is to be securely and uniquely represented by its hash value, the hash function used must meet certain cryptographic requirements. This means that the choice of function has to be imposed by the TSA. More specifically the hash function needs to be one-way (impossible to invert the hash to find the original data) and collision-free (impossible to find two documents with equal hash values). These properti~s cannot be proven for practical functions and many constructions have been broken (for example MD4, which was suggested as a practical hash function in [HS91]). See [RPV98] for a discussion on practical hash functions. RIPEMD-160 and SHA-l, recently standardized by ISO/IEC, are good candidates. The Stamping Protocol used to generate a timestamp works as follows: 1. Client A sends his identity and the hash value of the document he wants to have timestamped: he sends IDA, h(X). 2. The TSA returns the timestamp certificate C = SK(I D A, h(X), n, t), where n is the certificate serial number, t the current date and time, and SK the digital signature by the TSA. 3. The client receives the certificate and checks that it is signed by the TSA, that it contains the hash of the document he asked a timestamp for and the correct time (within reasonable limits of precision). 72 Another user who questions the validity of the timestamp C for the document X will use the following Verification Protocol: 1. Check that the digital signature on the certificate corresponds to the TSA. 2. Check that the hash value h(X) corresponds to the document X. The fundamental problem with this scheme is that we need absolute trust in the TSA since nothing prevents it from producing fake timestamps. One possible alternative is to distribute the trust over several randomly chosen signers, making forgery difficult since all parties involved would have to be corrupt ([HS91]). Such a scheme doesn't even need the use of a centralized TSA. However the large degree of cooperation which is required from other parties seems to make it impractical in large environments. Hence we will further concentrate on schemes which enhance the centralized service by means of a mechanism that links together all the timestamps issued by the TSA, creating an unforgeable temporal chain. A NOTE ON SECURE TIME The timestamps issued by the TSA contain an absolute temporal measure, so there is a need for a common reference time, agreed upon by all users. Reliable time can be provided by atomic clocks and distributed by systems such as NTP, the Network Time Protocol, a time service offered on the Internet (see [NTP]), allowing the synchronization of internal clocks with an accuracy of about a few tens of milliseconds on a WAN. THE BASIC LINKING PROTOCOL In [HS91] a protocol is introduced that minimizes the trust requirement by making the TSA link all the issued timestamps together in a temporal chain. This is achieved by including in each timestamp information from the previous timestamp. To protect the temporalordering we need another one-way and collision-resistant hash function H. The timestamps are constructed as follows: 1. The client, who makes the nth request to the TSA, sends I Dn, h(Xn). 2. The TSA returns the certificate C = SK(IDn, h(Xn), n, t-; Ln), which con- tains linking information Ln = (I Dn-b h(Xn-d, tn-1, H(Ln_l))' 3. When the next request is received the TSA also sends I Dn+l to client I Dn to produce a link in the future direction of time. The complete timestamp consists of (C, I Dn+1). 73 4. Client I Dn verifies the signature, the hash of his document and the time. Someone who wishes to verify thetimestamp will: 1. Check the signature of the TSA and the hash of the document. 2. To make sure there was no collusion between client I Dn and the TSA he can contact clients IDn+! and 1Dn_!, ask for their certificates and check the linking between them. Using their timestamps he can go as far forwards or backwards along the chain as he wishes. The use of the hash function H in linking timestamps together gives us re- liable relative temporal information. One can check that a particular timestamp was created before or after another one. Users of the system could generate and timestamp random numbers at regular time intervals to obtain trusted linking items so they can locate other timestamps between them. Another possibility is periodic publication of timestamps in authentic media such as newspapers. If the TSA cannot find collisions for the hash function H it cannot forward- date or back-date timestamps along the chain. A possible attack would be by producing a fake chain of timestamps which is longer than a suspicious challenger will verify. In [Jus97] an attack is suggested that generates a fake sub-chain. To prevent these attacks timestamps have to be located relative to trusted items in the chain. The problem with this scheme is that we need the cooperation of the other users to produce their timestamps which allow to verify the chain. Alternatively the TSA could store all timestamps and keep them available for everyone but the storage requirement would be prohibitive. Extended linking The protocol can be modified by linking each timestamp with the k previous and next ones ([HS91]). The cooperation of uuly a subset of these users is required, but the storage space significantly increases. Renewing old timestamps In the event that a hash function used by a times- tamping service is broken, all of the timestamps issued prior to that time would be called into question. But if timestamps are renewed with a more secure hash function before the original one is broken, the time evidence contained in the original certificate will still be valid ([BHS92]). It is possible to use two hash functions in parallel so that the system remains secure if one of them is broken. 74 A NOTE ON INFRASTRUCTURES Time Stamp Authorities can be incorporated in a public key infrastructure. Certificate Authorities can offer timestamping as an additional feature or the TSA's can be seperate entities. A TSA which also authenticates the clients and verifies the contents of the submitted documents is called a Notary Authority. Entities can be structured in a hierarchical tree and cross-certification between seperate trees is possible. In the timestamping scheme described above TSA's which want to be able to verify each other's timestamps have to link their chains together periodically. ACCUMULATING TIMESTAMPS The previous method which links all timestamps in a linear way poses a very high demand on cooperation and may impose a long computation time before a trusted timestamp is encountered on the chain. The main idea in accumulated hashing is to divide the timestamping procedure into rounds. At the end of each round a timestamp is calculated which depends on all requests submitted during that round and on the timestamp of the previous round. The measure of time now is the length of a round, which will have to be chosen according to the usage of the system and the requirements of the application. In general the stamping procedure works as follows: 1. The client I Di sends the hàsh of his document to the TSA: Yi = h(Xi). 2. The TSA accumulates all requests during one round (Yi for 1 :::;i :::; m) and computes a timestamp based on all these values and on the timestamp of the previous round. 3. The TSA sends to each client the timestamp for the round and data nec- essary for reconstructing this timestamp. This is the timestamp for his document. These timestamps can be verified as follows: 1. Compute the hash of the document and check that it is part of the data that reconstructs the timestamp for the round. 2. Check the linking between the timestamp for this round and timestamps for preceeding or succeeding rounds (they can be kept available by the TSA) until a trusted value is encountered. This should be a value published in authentic widely available media such as newspapers. 75 Timestamps for a round can be constructed in an efficient way with one of the following methods: Building a binary authentication tree As explained in [BM9l] and [BHS92] all timestamping requests accumulated during a round can be organized into a binary tree structure. The leaves of this tree are the values Vi' They are concatenated by two and hashed to obtain a parent value: Z12 = H(Y1, Y2), etc. At the next level these values (internal nodes of the tree) are again concatenated by two and hashed, for example Z14 = H(Z12, Z34). This process continues until we obtain one value, the root of the tree, which is combined and hashed with the timestamp of the previous round to form the timestamp of the current round. When necessary, nodes with random or default values are inserted into the tree so that there is an even number of nodes at each level. The timestamp of a particular document (represented by a hash value Yj) from one of the clients consists of the information necessary to rebuild the branch of the tree to which Yj belongs. This produces the root value and the timestamp of the round. Such a branch contains O(log m) values (with m the number of requests during the round), the computation time is also O(logm). This is superior to a straightforward linear hashing of values Yi where we would require O(m) operations. The tree is unforgeable if the hash function H is collision- resistant. All requests submitted in the same round will have the same temporal mea- sure, but if the TSA builds the tree by applying the values Yi in a chronological way, the relative positions for the corresponding requests can be preserved. For this however we need unconditional trust in the TSA. An implementation of this method is described in [MAQ99]. Using a one-way accumulator In [BM94] a method is proposed where the size of timestamps ami computation time are constant with respect to the number of requests m. For this we need a primitive called one-way accumulator. It is a kind of hash function that accumulates an arbitrary number of values in such a way that the order in which these values are processed is irrelevant. The function must also be impossible to invert. This is achieved by the modular exponentiation operation. The timestamp for a round is constructed starting from a random or default value Zo as follows: Z = ZP::l mod N. Yi The timestamp for the document 76 m TI Yi i=l corresponding to the hash Yj· consists of the values Zj = z~",j mod Nand Yj. The timestamp for the round is reconstructed by the operation Z = ZJjmod N. (The timestamps are also linked with each other by combining and hashing with the timestamp of the previous round.) To produce a fake timestamp for a value y' one would have to find a value Z' so that Z'Y' = Zmod N. If N is chosen as the product of two distinct primes this is equivalent to solving the RSA problem (which is believed to be as difficult as integer factorization). The modulus has to be chosen large enough (for exam- ple 1024 bits), additionally it is suggested in [BM94] to construct it as a rigid integer in order to prevent the reduction of the size of the image after repeated applications of the function. In this scheme it is no longer possible to preserve the relative positions of the requests submitted in the same round (they are simultaneous). Another drawback is that modular exponentiations are slower than hash functions. Also note that the accumulator function has a trapdoor, namely the factor- ization of N. The trapdoor function has to be provided by a trusted third party (which can be off-line). In [Nyb96] another accumulator function is proposed which has no trapdoor. However the size of the resulting timestamps seems to be prohibitively large. An analysis of accumulators is made in [Mas98]. Binary linking schemes The most recent scheme for timestamping was pro- posed in [BLLV98]. It is a mixture of the linear linking scheme and the accumula- tion method using trees. Each timestamp is linked with the previous one and also with another suitably chosen timestamp. Rounds are constructed with a fixed number of requests m (rather than a fixed time slot). The main advantage of the scheme is that the relative position of two arbitrary requests can be determined (without trusting the TSA) even if they were issued in the same round. The verification time and size of the timestamps are O(logm). CONCLUSION The interaction between time and cryptography is a recent research subject. ·\fIle have stressed the importance of time in non-repudiation services and more specific applications. We then described basic mechanisms for providing temporal authentication of electronic documents and discussed the advantages and limita- tions of several state-of-the-art techniques. Since standardization in this area (by 77 organizations such as the IETF) is still in early stages further developments and improvements in these systems can be expected. REFERENCES [BHS92] D. Bayer, S. Haber, W.-S. Stornetta, "Improving the efficiency and relia- bility of digital time-stamping", Methods in Communication, Security, and Computer Science - Sequences '91, Springer-Verlag, 1992, pp. 329-334. [BM91] J. Benaloh, M. de Mare, "Efficient broadcast time-stamping", Clarkson University, Department of Mathematics and Computer Science, TR-91-1, August 1991. [BM94] J. Benaloh, M. de Mare, "One-way accumulators: a decentralized alterna- tive to digital signatures", Advances in Cryptology - Eurocrypt '93, LNCS 765, T. Helleseth, Ed., Springer-Verlag, 1994, pp. 274-285. [BLLV98] A. Buldas, P. Laud, H. Lipmaa, J. Villemson, "Time-stamping with bi- nary linking schemes", Advances in Cryptology - Crypto '98, LNCS 1462, H. Krawczyk, Ed., Springer-Verlag, 1998, pp. 486-50l. [HS91] S. Haber, W.-S. Stornetta, "How to time-stamp a digital document", Jour- nal of Cryptology, vol. 3, no. 2, 1991, pp. 99-112. [Jus97] M. Just, "Some timestamping protocol failures ", Carleton University, School of Computer Science, TR-97-16, August 1997. [MQ97] H. Massias, J.-J. Quisquater, "Time and cryptography", Technical report, Timesec project (Federal government project, Belgium), March 1997. Avail- able at http://www.diee.uel.ae . bel erypto/TIMESEC .html. [Mas98] H. Massias, "A survey of accumulators", Université Catholique de Louvain, Crypto group, Technical report, February 1998. [MAQ99] H. Massias, X. Serret Avila, J.-J. Quisquater, "Design of a secure times- tamping service with minimal trust requirement", Proceedings 20th Sym- posium on Informaiion Theory in the Benelux, this volume. [Nyh96] K. Nyberg, "Fast accumulated hashing", Fast Software Encryption '96, LNCS 1039, D. Gollmann, Ed., Springer-Verlag, 1996, pp. 83-88. [PRQ+98] B. Preneel, B. Van Rompay, J.-J. Quisquater , H. Massias, X. Serret Avila, "Design of a timestamping system", Technical report, Timesec project (Federal government project, Belgium), 1998. To be available at http://www.diee.uel.ae.be/erypto/TIMESEC.html. [RPV98] B. Van Rompay, B. Preneel, J. Vandewalle, "On the security of dedicated hash functions", Proceedings 19th Symposium on Injormation Theory in the Benelux, Veldhoven, NL, May 28-29, 1998, pp. 103-110. [NTP] The Network Time Protocol, http://www . eeeis. udel. edu/- ntp. 78 DESIGN OF A SECURE TIMESTAMPING SERVICE WITH MINIMAL TRUST REQUIREMENT H. Massias, X. Serret Avila, J .-J. Quisquater UCL Crypto group Place du Levant, 3 , B-1348 Louvain-Ia-Neuve, Belgium massias, serret, jjq~dice.ucl.ac.be This paper presents our design of a timestamping system for the Belgian project TIMESEC. We first introduce the timestamping method used and we justify our choice for it. Then we present the design of our implementation as well as some of the important issues we found and the solutions we gave to them. INTRODUCTION The creation date of digital documents and the times expressed in them are becoming increasingly important as digital documents are being introduced into the legal domain. We define "digital timestamp" as a digital certificate intended to assure the existence of a generic digital document at a certain time. In order to produce fully trusted timestamps, very specific designs have been introduced. We give an overview of the most relevant methods and we introduce the one we used for the implementation of the Belgian project TIMESEC (see [PRQ+98]), justifying our choice for it. Then we present the design of the times- tamping system we made for this project. We separate the different processes that are: document timestamping, timestamp verification, auditing, system start-up and system shutdown. INTRODUCTION OF THE TIMESTAMPING TECHNIQUES There are two families of timestamping techniques: those that work with a trusted third party and those that are based on the concept of distributed trust. Techniques based on a trusted third party rely on the impartiality of the entity that is in charge of issuing the timestamps. Techniques based on the distributed trust consist on making documents dated and signed by a large set of people in order to convince the verifiers that we could not have corrupted all of them. The trusted third party techniques can also be classified into two different kinds: those where the third party is completely trusted and those where it is partially 79 trusted. A detailed study of timestamping techniques can be found in [MQ97]. We believe that techniques based on distributed trust are not really workable in a professional environment, that is why we concentrate on the trusted third party approach. Nevertheless, we imposed to ourselves the requirement to lower the necessary trust on the third party to the maximum extend. The "easy" solution, which consists on concatenating the document with the current time and sign the result, has been discarded because it has two main drawbacks: 1. We must completely trust the third party, called Secure Timestamp Autho- rity (STA), which can issue undetectable back-dated timestamps. 2. The limited lifetime of cryptographic signatures, which can be shorter than the document time-to-life. The times tam ping method that we have chosen uses a binary tree structure and has been described in [HS91] and [HS97]. This method works by rounds. For each round a binary tree is constructed with the requests filled during it. The rounds have a fixed duration, which is the result of a trade-off between the timestamps accuracy and the number of requests submitted. In Figure 1 we can see a graphical representation of a round constructed using this method. ~ ~~ Figure 1: The binary tree structure Each of the timestamp requests consists on a hash value of a given document. The leafs of the tree are each of those hash values. The leaf values are then 80 concatenated by two and hashed again to obtain the parent value (Ex: H34 = H(Y3 I Y4) ). The process is repeated for each level until a single value is obtained. Finally, the top value of the round tree (HlS), called the "Round Root Value", is then concatenated with the value obtained for the preceding round (RHi-d and then hashed again to obtain the actual "Round Value" (RHi)' The timestamp of the document contains all the values necessary to rebuilt the corresponding branch of the tree. For example, the timestamp for Y4 contains {(Y3, L), (Hl2' L), (H5s, R), (RHi-l, L)}. The verification process consists of re- building the tree's branch and the linking chain of "Round Values" until a trusted (from the verifier point of view) "Round Value" is recomputed. This verification method is explained in detail in [HS91] and [MQ97]. Periodically, one of the "Round Values" is published on an unmodifiable, widely witnessed media (Ex: newspaper ...). These special "Round Values", which we will call "Big Round Values", are the base of the trust for all the timestamps issued. All verifiers must trust these "Big Round Values" as well as the time associated with them. This is a reasonable requirement because those values are widely witnessed. The absolute time trusted by all the potential verifiers is the time indicated by the unmodifiable media. We suppose that this time is the same than the time indicated by the STA for the "Big Round". Forcing the clients to check the timestamps as soon as they get them is another requirement. In that way theprocess is continuously audited and the STA will not have any margin to maneuver in an untrusted way. A very useful method for extending the lifetime of timestamps is described in [BHS92]. It basically consists on re-timestamping the hash of the document as well as the original timestamp before the hash function is broken. We build two trees in parallel for each round using two different hash functions (SHA-l and RIPEMD-160). In that way, the system remains secure in the case of an unexpected break of one of the hash functions used. DESCRIPTION AND ANALYSIS OF THE TIMESEC TIMESTAMPING IM- PLEMENTATION We will now introduce the basic design of the system we have developed, which is based on the technique introduced above. Initially, the user designates a document to be timestamped. Two hashes of it are created using the SHA-l and RIPEMD-160 algorithms. The request 81 containing the two hashes is then sent by the client to the STA. Upon request receipt, the STA creates the corresponding timestamp using the following process. Main description of the timestamping process The system design follows a highly decoupled multi-threaded approach. Each step is assigned to a specific component, which has its own different thread. In the Figure 2 we present a schematic outline of the process. The multi-thread approach is justified by the requirement to obtain a highly responsive and load independent implementation. By isolating the process charges into independent steps we try to decouple the load between them. Each step has also a working queue. Those queues are in charge of softening the speed differences between the different process steps. Figure 2: Interactioris between the components The "Network Listener" is in charge of continuously listen to the clients' timestamp requests. The "Request Timer" receives the constructed requests from the "Network Listener". Then, it times and forwards them to the actual "Round Queue Coordinator". Each round has its own "Round Queue Coordinator", which is in charge of compiling and processing into a tree all the requests belonging to the round. When the round tree has been computed it is forwarded to the "Timestamp Generator", which generates the corresponding timestamps. Once a timestamp is generated, the "Timestamp Generator" forwards it to the "Network Answer", which in turn forwards it to the client. The Network Listener The "Network Listener" responsibility is to listen the network continuously for timestamping requests. When it receives a data stream, the "Network Listener" checks it in order to determine if it is a valid request. In the case it is, it sends an affirmative contact response to the client, it creates a "Timestamp Request" object and adds it to the "Request Timer" queue. Then it goes back to listen 82 to the network. In the case the request message is not correct, it sends an error message to the client. We tried to give as few tasks as possible to the "Network Listener" to let it listen the network, which is its primary task. In order to improve the overall performance, and to avoid the fact that a slow client connection could affect the other ones, several copies of the "Network Listener" can be active at the same time. The Request Timer There is only an instance of "The Request Timer" in the system. The "Request Timer" is in charge of ordering the requests received frqm the several "Network Listeners" and timing them accordingly. All delays introduced by the system before that point (namely, those introduced by the "Network Listener") are in- distinguishable from network delays, and thus not taken into account. Once a request has been timed, the "Request Timer" tries to add it to the current round queue. As the rounds are closed asynchronously by the corresponding "Round Queue Coordinator" this operation is not always successful, in that case, the "Re- quest Timer" re-times the request and retries to queue it until it finds an open round. In that process the request sequence is preserved in order to provide a consistent behavior. Round Queue Coordinator creation: "Round Queue Coordinator" instances are created by the "Request Timer" upon processing a request corresponding to a non-existing round. The creation of the rounds that have no requests is delayed until a request is received. Once created, those empty rounds are immediately processed, introducing no significant delay into the process. Round number determination: Round 'numbers form a non-interrupted in- creasing integer sequence. Rounds are always in synchronization with the round duration intervals. In other words, if the round duration is one minute, all rounds will start in an absolute minute boundary, independently from when the system has been started. "Big Rounds" are determined by the "Request Timer" using a similar approach to the one followed to determine the round boundaries. We do not restrict the duration of the round to a fixed value for the lifetime of the STA. To achieve this, the information about round and "Big Round" duration is intro- duced into the system at the start-up phase. If we wish to modify it, we must 83 first shutdown the system, change the values and then restart the system, which is the only safe procedure we had foreseen. The Round Queue Coordinator The first thing a "Round Queue Coordinator" does is to determine the offset between the actual time and the round due time. Requests will be accepted only if the round is still valid (round is open). When requested by the "Request Timer", the "Round Queue Coordinator" adds the request to the queue and logs it. This logged request will be latter used for process auditing purposes. When the round time is over, it obtains the "Round Values" from the preced- ing round and it computes the round binary trees (one for each hash algorithm) to obtain the corresponding "Round Values". Then it gives the computed trees to the "Timestamp Generator" and finally adds to the log the "Round Values" and the "Round Root Values". Those logged values will be latter used for timestamp verification and process auditing purposes. If the actual round is a "Big Round" those values are forwarded to a fixed media as well. As you may have noticed in the section "Introduction of the timestamping techniques", the binary tree is defined for a number of leafs (requests) that is a power of 2. In general, this is not the case. We could create fake requests to finish the tree, but this will add a lot of requests (if we have 2n + 1 requests, then we will need to add 2n - 1 fake requests). A smarter solution is to add a random value only when we need it. Then, we add at most n values (one for each level of the tree). We call these nodes "Special Node", which will be logged as well. Instead of random values we could choose to use 0 or another fixed value, this would be as secure as our choice if the hash functions were "perfect". As hash functions are only "presumably perfect", we though that we could made our design more secure with really few additional computations. In our implementation, the STA queues the requests and computes the tree at the end of the round. At first sight, it could seem a more natural solution to build the tree as soon as the requests arrive. At the end of the round, the computation of the tree would then be ended by getting the last "Round Value" and computing the actual "Round Value". In fact, this solution is harder to implement, and has no effect on the security achieved as no one can check that the STA does not perform any reordering of the requests before it publishes the "Round Value". 84 The Timestamp Generator The "Timestamp Generator" processes the round trees by pairs (one for each hash algorithm) in order to generate the timestamps for each of the requests contained in the trees. In order to maximize the system responsiveness, once a timestamp has been generated it is immediately forwarded to the "Network Answer". Finally, when all the timestamps contained in a round tree have been processed the tree is destroyed. The Network Answer The "Network Answer" is in charge of forwarding the processed timestamps to the clients. It has been specified in such a way that it can run several threads, in t.hat way the rest of the timestamping process can be isolated from possible network delay problematic. The timestamp verification process First, the verifier designates a document and its corresponding' timestamp for verification. Then, the verifier's system (his personal computer or a remote com- puter independent from the STA) generates the two document hashes and checks if they match with those contained in the timestamp. Afterwards, the "Round Value" is reconstructed using the data provided in the timestamp. If the com- puted "Round Value" is consistent with the one contained in the timestamp then the next step in the verification process is to compare this "Round Value" to the "Round Value" obtained from the STA repository. Finally, the verifier provides his system with the two "Big Round Values" that he founds in the "unmodifiable me- dia"; the verifier's system gets all the necessary "Round Values" and "Root Round Values" from the STA and it checks the coherency of the two linking chains (one for each hash function). The audit process The auditor designates two "Big Rounds", which he fetches from a fixed media. The system behavior will be checked between these two "Big Round Values". For each round, the auditor's system gets all the hash values (leafs of the tree and "Special Nodes") and the "Round Value" from the STA. Then, it constructs the two trees and checks that the "Round Value" is consistent. These two steps are 85 repeated until all the considered rounds are checked or until an error has been found. In that way, all theoretically verifiable system behavior can be verified a posteriori. The system start-up process Here the most sensible issue is to be able to correctly start-up the system when an unexpected shutdown has occurred. If that is the case, the log will show an unfinished round; then the system marks all entries after the last complete round as invalid and publishes that round as a "Big Round". If the log was consistent, it accesses the last valid "Round Value" in the log and publishes it as a "Big Round". This process insures a fully verifiable behavior; we are able to detect non fully-processed requests. The system shutdown process The administrator signals the system to shutdown. No more timestamping re- quests are accepted. The system waits until the current round is finished and this "Round Value" is published as "Big Round". REFERENCES [BHS92] D. Bayer, S. Haber, and W.-S. Stornetta. Improving the efficiency and reliability of digital timestamping. In Springer Verlag, editor, Sequences'91: Methods in Communication, Security, and Computer Science, pages 329-334, 1992. [HS91] S. Haber and W.-S. Stornetta. How to timestamp a digital document. Journalof Cryptology, 3(2):99-112, 1991. [HS97] S. Haber and W.S. Stornetta. Secure names for bit-strings. In Pro- ceedings of the 4th ACM Conference on Computer and Communication Security, pages 28-35. ACM Press, April H)!)7. [MQ97] H. Massias and J.-J. Quisquater. Time and cryptography. Technical report, TIMESEC Project (Federal Governement Project, Belgium), 1997. Available at http://www.dice.ucl.ac . bel crypto/TlMESEC .html. [PRQ+98] B. Preneel, B. Van Rompay, J.-J. Quiquater, H. Massias, and X. Serret . Avila. Design of a timestamping system. Technical report, TIMESEC Project (Federal Governement Project, Belgium), 1998. To be avail- able at http://www.dice.licl.ac.be/crypto/TIMESEC . html. 86 CHARACTERIZATION OF THE SECRECY OF A COMMON K.EY CONSTRUCTED VIA DATA TRANSMISSION OVER THE TWO-WAY "AND" CHANNEL Vladimir B. Balakirsky Eindhoven University of Technology, Electrical Engineering Department (on leave from the Data Security Association "Confident", St.-Petersburg, Russia) P.O. Box 513. 5600 MB Eindhoven. the Netherlands v.b.balakirskyCele.tue.nl. htpp://wvv.mathematik.uni-bielefeld.de/-vbal/ We address cryptology aspects of data transmission over the two-way AND channel, also called the multiplying channel, and solve the combinatorial problem of computing the conditional entropy of a common key that can be constructed by communicating persons when the sequence at the output of the channel is known to an eavesdropper. STATEMENT OF THE PROBLEM AND FORMULATION OF THE RESULT Problem: Given n ~ 2, construct (a) a matrix of the probability distributions where X1, ... , X nand Y1, ... , Yn are random variables taking values in {O, I} and Zl,"" Zn are uniquely determined by the pairs (Xl, Y1), ... , (Xn, Yn) in such a way that Zt = X, /\ yt, t = 1, ... ,n; (b) two deterministic functions K, L: {O, l}n x {O,l}n --+ K, where K is some finite set. The following requirements must be satisfied, (RI) Pxn,yn(X,y) > ° ==} K(x,x/\y) = L(y,x/\y), for all x,y E {O, l}n; (R2) H(Klzn) -+ max, where H(Klzn) = - L L PK.zn(key, z) log PK.zn(key, z) keyEK:zE{O,l}n Pzn(Z) 87 Table 1: The values ,of the function Hn/n for n = 2m, where m = 1, ... ,14. n Hn/n n Hn/n 2 0.25 256 0.292274 4 0.261364 512 0.292583 8 0.273843 1024 0.292738 16 0.282995 2048 0.292816 32 0.287937 4096 0.292855 64 0.290415 8192 0.292874 128 0.291654 16384 0.292884 00 0.292893 and the probability distributions belong to the ensemble specified by the ma- trix P. Theorem: Let Hn denote the maximal conditional entropy H(Klzn) that can be achieved in the Problem. Then the function Hi, can be recurrently found by where Ho = HI = 0 and ç _ 1 - Hn-l + Hn-2 n - 2 - Hn-l + Hn-2 The function Hn is bounded from below as Hn > H(O = 9(1 _ ç)çn-l . aF(n)(D I) ç 'ç I - n ~ ., ., aD (1) D=D, where F(n)(D I) ç 'ç + % nl +n ellen ((n + n~~/2 - 1) + (1 D)(n-n,)/2 IF' 88 Xt E {0,1} Yt E {O, 1} Person X Person Y Zt = Xt 1\ Yt K(x, z) E IC K(x, z) = L(y, z) L(y, z) E IC Figure 1: Constructing a common key via data transmission over the AND chan- nel. and D _ 2(1 - ç) (1 _ ç)2 ç = J2 - 1, ç - ç , t, = ç (2) Furthermore, . Hn v'2 . In hm - = 1- - = 0.292893 ... , lim Çn = V 2 - 1 = 0.414214 ... n~oo n 2 n~oo Some values of the function Hn/n are given in Table 1. CONSTRUCTING A COMMON KEY VIA DATA TRANSMISSION OVER THE TWO-WAY "AND" CHANNEL The problem formulated above relates to data transmission over the two-way AND channel (see Figure 1) where the persons X and Y send bits Xt and Yt to each other and both of them receive Zt = Xt I\·Yt at time instants t = 1, ... , n. The bits Xt and Yt transmitted by the persons may depend on Xl, ... , Xt-l, Zl, ... , Zt-I and YI, ... ,Yt-I,ZI, ... ,Zt-t, respectively. Communication over such a channel when the persons want to exchange messages was introduced by Shannon [1] : in this case, Xt and Yt also depend on the messages of the persons X and Y. The problem of finding the region containing all pairs of the maximal possible numbers of messages and the corresponding transmission algorithms was considered in [2],[3],[4],[5], and other papers, but this problem is still unsolved. We address a different problem concerning the two-way channels that belongs to the direction known as constructing the common randomness (see [6],[7],[8], and other papers) when the goal of the persons is the creating a common random process for some further cryptology purposes. In our setup, the person X computes K(x, z) and the person Y computes L(y, z), where the functions K and L are fixed in advance.: 89 If these values coincide for all pairs (x, y) that can be exchanged over a channel, then they serve as pointers to a table of keys which was also fixed in advance. An eavesdropper has only z and does not know x, y. His ambiguity about the pointer is measured by the conditional entropy H(Klzn). For the notational convenience, we will associate the values of the functions K and L computed by the persons with the corresponding keys. The actions of the persons can be represented as some realization of the al- gorithm consisting of encoding (the protocol for data transmission) and decoding (computing K (x, z) and L(y, z)). We investigate the specific communication al- gorithm that will be referred to as the H -type algorithm since it is similar to the Hagelbarger's algorithm for the transmission of messages over the two-way AND channel ([1], p.375). DESCRIPTION OF THE H-TYPE ALGORITHM We assume that the persons independently assign one of two values to some auxiliary variable St at time instant t in such a way that these values coincide; thus, St can be interpreted as the current state of the communication system and we denote the possible states by a and (3. The line above in the description of the algorithm denotes the binary inversion, i.e., 0 = 1 and 1=0. Encoding: the persons X and Y set SI = a and follow the procedure below for t = 1, ... , n, where çn, ... ,6 E (0,1) are given. (a) If t < n and St = a, then the persons X and Y choose Xt and Yt as independent random variables taking values 0 and 1 with the probabilities Çn-t+l and 1- ';n-Hl, respectively; both persons set St-i-l = a if Zt = 1and SHl = (3 if Zt = O. If t = n and St = a, then the person X sets x, = 1 and the person Y sets Yt = 1. ((3) If St = (3, then the person X sets .1:t = Xt-l and the person Y sets Yt = '[ft-I; both persons set SHl = a. Decoding: the persons X and Y set t = 1 and follow the procedure below while t S; n. (1) If Zt = 1, then the person X sets iJt = 1 and the person Y sets it = 1; both persons increase t by 1. (00) If (Zt, ZH1) = (0,0), then the person X sets (iJL, iJtH) = (Xt,O) and the person Y sets (it,it+l) = ('[ft,O); both persons increase t by 2. 90 (Ol) If (Zt, Zt+l) = (0, I), then the person X sets (iJt, Yt+!) = (0,1) and the person Y sets (it, it+l) = (0,1); both persons increase t by 2. The keys are defined as The proof of the theorem includes the statement : the maximal conditional entropy of a common key Hn is attained using the H -type algorithm. The algo- rithm with 6 = ... = Çn = ç, where ç is fixed, will be referred to as the H(çl-type algorithm and we present its nonasymptotic analysis leading to (1). NONASYMPTOTIC ANALYSIS OF THE H(O-TYPE ALGORITHM We will associate data transmission over the two-way AND channel spec- ified by the HW-type algorithm with the parsing of binary sequences when the sequence is represented as a concatenation of codewords of the prefix code {OO, Ol, I}. The code tree is given in Figure 2. A particular binary sequence uniquely determines the path which follows the encoder by returning to the root as soon as he reaches some terminal node. Let us label the nodes of the tree by a and (3 in such a way that the root and all terminal nodes have the label a. We also introduce two formal variables, D and I, assign the generating function to every edge of the tree as it is shown in Figure 2, and define the generating function of each path of the encoder as the product of the generating functions of all edges of that path. For example, the codewords 00, Ol, 1 have the generating functions D, I, I, and the generating function of the sequence 001011011, which is parsed as (00, I, Ol, 1, Ol, I), is equal to DI3. For all j = 0, ... , n - I, let T~j)(D, 1) and Tyl(D, 1) denote the sums of generating functions of all binary sequences of length j when the encoder reaches the nodes labeled by a and (3 at the j-th time instant, respectively. Let us also denote Then, as it is easy to see, T(Ql(D,1) (1,0) T(jl(D,I) T (j-ll( D,I· ) [ 1 +I DO' 1] J - o_ 1,. 0" n - 1. (3) 91 Figure 2: Tree ofthe prefix code {00,0l,1} with the nodes labeled by a,fJ and the generating functions assigned to the edges. Lemma: Let (4) Then aT(nl(D I) I Hn = 2(1 - Ç)çn-l . ' (5) aD D~Dç r=« where Dt; and It; are defined in (2). Proof: Let z~(d, i) and Z3 (d, i) denote the set of binary sequences of length n which lead the encoder of the prefix code to the nodes labeled by a and fJ at time instant n and have the property that the parsing procedure, being applied to any. of these sequences, generates d codewords 00, i codewords 1, and nOl (z) codewords 01, where nOl (z) = { (n - i)/2 - d, if z E Z~(d, i) (6) (n-1-i)/2-d, ifzEZ3(d,i). On the other hand, as it follows from the description of the encoding of the tr»: type algorithm, any sequence belonging to the set Z~(d, i) U Zg(d, i) appears at the output of the AND channel if and only if there are d+ i + nO!(z) time instants when the persons decide that a is the current state of the communication system and they generate d pairs (Xt,Yt) E {(O,l),(l,O)}, i pairs (Xt,Yd = (1,1), and 92 nOl(Z) pairs (Xt,Yt) = (0,0) at these time instants. Therefore Pzn(Z) = (2ç(1 - Ç))d . ((1 - Ç)2r .(er01(Z) , for all Z E Z:(d, i) U Z~(d, i). (7) d Furthermore, since (1) any of these sequences leads to one of 2 keys constructed by the persons X and Y; (2) the probability distribution on the set of keys is uniform, H(KIZ) = d, for all zE Z:(d, i) U Z~(d, i). (8) Equations (6)-(8) and notations (2) imply (9) The cardinalities of the sets Z;:(d, i) and Zg(d, i) can be expressed using the coefficients of the generating functions T~n-l) (D,I) and TJn-l) (D,I) : if these functions are represented as finite sums d,i d,i then where the first equation follows from the fact that the last codeword after the parsing of any sequence Z E Z;:(d, i) is either 00 or Ol, and the second equation follows from the fact that the last bit of any sequence Z E Zg(d, i) is 0 and that the last codeword constructed by the parsing procedure ends at time instant n-l. By (9) and (10), u; = çn ~ ~ (t~n-l) (d, i) + t~n-l) (d - 1, i) + ~ . t~n-l) (d, i)) Dt[~ . d. (11) Since (4) defines the generating function T(n)(D, I) = 'I:. t(n)(d, i)Dd[i d,i where t(n)(d,i) = thn-l)(d,i)/ç+t~n-l)(d,i) +t~n-l)(d_1,i), equation (11) can 93 be presented as (5). Q.E.D. Using (3) and induction on j = 0, ... ,n - 1 we prove that fo ((n - In: n1 +n odd n1)/2) (1 + D)(n-l-nJ)/2Inl :; ((n + n~~/2- 1) (1 + D)(n-ntl/2-1rl n1 +n even where the second sum is understood as 0 when ti = I, and using (4), (5) obtain (1) . REFERENCES [1] C.E. Shannon, "Two-Way Communication Channels", in Claude Elwood Shannon.' Collected Papers. N.J.A. Sloane and A.D. Wyner, Eds. IEEE Press, pp. 351-384, 1993. The paper was published in the Proc. 4-th Berkley Symp. Math. Stat. and Prob., pp.611-644, 1961. [2] G. Dueck, "The Capacity Region of the Two-Way Channel Can Exceed the Inner Bound", Inform. Control, 40(3), pp.258-266, 1979. [3] J.P.M. Schalkwijk. "The Binary Multiplying Channel - A Coding Scheme That Operates Beyond the Shannon Inner Bound", IEEE Trans. Inform. The- ory, IT-28(1), pp.107-110, 1982. [4] J.P.M. Schalkwijk, "On an Extension of an Achievable Rate Region for the Binary Multiplying Channel", IEEE Trans. Inform. Theory, IT-29(3), pp.445- 448, 1983. [5] Z. Zhang, T. Berger, and J.P.M. Schalkwijk. "New Outer Bounds to Capac- ity Regions of Two-Way Channels", IEEE Trans. Inform. Theory, IT-32(3), pp.383-386, 1986. [6] R. Ahlswede and B. Verboven, "On Identification via Multiway Channels with Feedback", IEEE Trans. Inform. Theory, IT-37(5), pp.1519-1526, 1991. [7] U. Maurer, "Secret Key Agreement by Public Discussion from Common In- formation", IEEE Trans. Inform. Theory, IT-39(3), pp.733-742, 1993. [8] R. Ahlswede and 1. Csiszár, "Common Randomness in Information Theory and Cryptography - Part I : Secret Sharing", IEEE Trans. Inform. Theory, IT-39(5), pp.1l21-1131·, 1993. 94 An attack against the Alab badi- Wicker scheme Sheng-bo Xu J eroen Doumen Department of Mathematics and Computing Science Eindhoven University of Technology, P.O. Box 513 5600 MB Eindhoven, the Netherlands E-mail: [sbxuç doumen j fêwin.tue.nl Abstract In this paper we discuss the security ofthe Alabbadi-Wicker scheme. An example is presented to demonstrate a universal forgery attack against the Alabbadi- Wicker scheme. Keywords: Digital Signatures, Error-Correcting Codes. 1 Introd uction In 1994, Alabbadi and Wicker presented a digital signature scheme based on error- correcting codes [4]. Here we will refer to it as the Alabbadi-Wicker scheme. Alabbadi and Wicker analyzed the security of the Alabbadi-Wicker scheme and claimed that their scheme derives its security from the complexity of three problems: the decoding of general linear error-correcting block codes [Sj, the factoring of large matrices and the derivation of a matrix from its right inverse. In this paper, we will present a universal forgery attack against this scheme. The outline of this paper is as follows: we will start by giving a simple description of the Alabbadi-Wicker scheme. Next we will introduce our universal forgery attack for the Alabbadi-Wicker scheme. Finally, we will present some general comments about the security of digital signature schemes based on error-correcting codes. 2 The Alabbadi- Wicker scheme The signer chooses a binary Goppa code C which can be described by an irreducible polynomial G(z) of degree t. Next he selects a generation matrix G and parity check matrix H for this code. Furthermore he chooses two binary matrices Wand V satisfying W + V = G and such that the rank of Wis k. Thus there exists a matrix W-R, called 95 the right-inverse, such that WW-R = h. Lastly, the signer chooses a nonsingular binary n x n matrix P. The public key of the signer consists of G(z), W-R, H' = p-1 HT, W' = p-1W-R, W" = W-RGW-R, t and t' (with t' < t). His private key consists of V, W, G, W-RG, and P. In addition a nonlinear function f(x, y) : GF(2k) x GF(2n) --+ GF(2k) is chosen by the system operator. To sign a k-bit message the signer randomly chooses a n-bit vector e of weight t' and a k-bit vector r of arbitrary (but nonzero) weight. The signature pair (x, s) is computed as follows. x {TG + f(m, e)V}P (1) s {e + f(m, e)W + xW-RG}P (2) The signer transmits s, x, and m to the receiver. The receiver may get a noise corrupted tri pie s', x' and m'. The receiver can validate the signature by performing the following steps: • The syndrome of x' + s' is calculated. Note that because of the relation V + W = G, and this syndrome satisfies GHT = 0, (x' + sl)H' [{rG + f(m, e)G + e + :rW-RG}Pl'P-1 HT = e'HT. • The Berlekamp-Massey algorithm is applied to the above syndrome to calculate the error vector e', If w(e') i= t' the receiver requests a retransmission of x, sand m. Otherwise the receiver continues the validation process under the assumption that e' = e, x' = x and s' = s. • f(m, e) is recovered from x, e, and s by computing sW' + xW" + eW-R Sp-1W-R + .rW-RGW-R + eW-R f(m, e). • Finally f(m, e) is compared with f(m', e). If f(m, e) f(m', e) the signature pair is accepted. 3 A universal forgery attack against the Alabbadi- Wicker scheme In the following, we will demonstrate a universal forgery attack against the Alabbadi- Wicker scheme by means of a typical example. The met.hod itself will be presented in [9]. We will use the parameters of the Alabbadi-Wicker scheme [4]. G= ( 1 1 1 0 ~ ~ ~ ~),H=(~ ~ ~ ~ ~ ~),w=(~ ~ 1 1 o 1 1 o 1 0) 1 1 1 000 1 1 000 1 1 1 1 0 1 0 96 1 0 0 0 0 0 1 0 0 0 0 0 V~O 1 1 0 1 1 0 0 0 0 0 0 1 n,p~ 1 1 0 0 0 0 0 0 1 0 1 1 1 1 0 1 0 0 1 1 0 1 1 0 , p-I = 1 1 0 0 1 1 0 0 1 1 0 1 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 1 1 0 0 1 1 0 1 0 1 1 1 1 0 0 1 0 1 0 0 1 1 1 1 1 1 1 1 0 0 0 0 W-R= 0 1 0 ' H'- _ 1 1 1 , W'= 0 1 0 , W"= 0 0 1 1 0 0 1 1 0 1 1 1 1 0 0 1 0 1 0 0 1 1 0 1 0 0 1 Suppose we have succeeded in recovering the parity check matrix H. This is possible if WP. can obtain n signatures with independent error vectors (see [9] for how to achieve this). First we can calculate ft-I from the following equation [H'IW'] = ft-I[HTIW-R] (3) and get 1 0 0 0 0 0 0 1 0 0 1 1 0 1 1 1 0 0 ft-I= 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1 Note that ft-I is a full-rank matrix. We can invert ft-I to get 1 0 0 0 0 0 1 1 0 1 1 1 0 0 0 0 1 0 ft= 1 1 1 1 0 1 1 0 0 1 1 0 0 0 0 0 0 1 Note that in general ft =I- P, but the two matrices will play similar roles. Then we can calculate C, Wand Y from CHT=O (4) WW-R = i, (5) W"=YW-R (6) 97 and arrive at 0 0 0 0 0 1 c= U 0 0 0 1 1 0 1 0 0 1 1 1 JW~U 0 0 0 1 0 0 1 0 0 0 0 1 n,Y~ 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 1 The matrix v- follows from the equation C = W + v- COO 0 0 V= 0 1 0 0 0 00110 D Now wewill forge a signature using the above matrices ?, C, W, 11 and Y. Here we still use the same example in [4] where m = (001), e = (000001), and f(rn, e) = (011) and forge a signature for this message. We create a false signature by calculating the pair (x, s) from x = {J(rn, e)V + xY}? (7) 8 = {e + f(rn, e)W + xY}? (8) to arrive at the forged signature pair (x = 101111, s = 111100) of the message m, Note that we have to solve x from the first equation. If there are more solutions for x we simply choose one and proceed with calculating s. We now check whether the pair (x, s) passes the verification of the Alabbadi-Wicker scheme. We will suppose no errors occur in the channel. First we check if (x + s)H' = eHT: 0 1 1 1 1 0 1 1 (x + s)H' (010011) . (001) 1 1 1 1 1 0 0 0 1 and 0 1 1 1 0 1 1 1 0 (000001) . (001) . 1 0 0 0 1 0 0 0 1 It is obvious that the receiver can obtain e = (000001) from the signature pair (x, s). Thus the forged signature will pass the first three steps of the verification in the 98 Alabbadi-Wicker scheme. Now we show that the forged signature also passes the last step: sW' + xW" + eW-R = (111) + (001) + (101) = (011) = f(m, e). So the forged signature pair (x, s) for the message m will successfully pass all verification steps of the Alabbadi-Wicker scheme. 4 Conclusion In this paper we presented an attack against the Alabbadi-Wicker scheme which is based on error-correcting codes. The described universal forgery mainly originates from the use of analogous matrices such as P, C, Hr and Y which is different from the other attacks [1, 2, 3, 6, 7, 8]. Up to now all attempts to design a secure digital signature scheme based on error-correcting codes failed. Why are those schemes not secure? It is a long story. We shall give some reasons in [9]. References [1] M. Alabbadi and S.B. Wicker, Security of the Xinmei digital signature scheme, Electronic Letters 28(9), 1992, pp.890-891. [2] M. Alabbadi and S.B. Wicker, Cryptoanalysis of the Ham and Wang modification of the Xinmei digital signature scheme, Electronic Letters 28(18), 1992, pp.1756- 1758. [3] M. Alabbadi and S.B. Wicker, Susceptibility of digital signature scheme based on error-correcting codes to unioersol Jorgery, Proc. of 1994 IEEE International Symposium on Information Theory, Trondheim, Norway, 1994, pp.494. [4] M. Alabbadi and S.B. Wicker, A digital signature scheme based on linear error- correcting block codes, Advance in Cryptology, ASIACRYPT'94, pp.238-248. [5] E.R Berlekamp, RJ. McEliece, and H.C.A. van Tilborg. On the inherent m- tractability of certain coding problems, IEEE Transactions on Information Theory, Vo1.24, No.3, 1978, pp.384-386. [6] L. Harn and D.C. Wang, Cryptoanalysis and modification of digital signature scheme based on error-correcting codes, Electronic Letters 28(2), 1992, pp.157- 159. [7] J. van Tilburg, Cryptanalysis oJ the Xinmei digital signature scheme, Electronic Letters 28(20),1992, ppp.1935-1936. 99 [8] J. van Tilburg, Cryptanalysis of the Alabbadi- Wicker digital signature scheme, Proc. of Fourteenth Symposium on Information Theory in the Benelux, Veldhoven, Netherlands, May 1994, pp.114-119. [9] Sheng-bo Xu, Jeroen Doumen and Henk van Tilborg, On the securiiu of digital signatures based on error-correcting codes, to appear. 100 DIFFUSION ANALYSIS OF FElSTEL NETWORKS J. Nakahara Jr, J. Vandewalle, B. Preneel Katholieke Universiteit Leuven, div. E.S.A.T.-SISTA/COSIC K.Mercierlaan 94, B-3001 Heverlee, Belgium {jorge. nakahara ,joos. vandewalle, bart. preneel }@esat.kuleuven.ac.be Since 1977, when the DES algorithm was unveiled and research towards its cryptanalysis started, many different block cipher designs emerged, closely based on the Feistel structure of the DES, like LOKI, FEAL, KHUFU and KHAFRE. This article addresses some guidelines for the design of Feistel Networks aimed at fast diffusion of the plaintext bits throughout the cipher, by using an appropriate combination of the swapping of sub-blocks in a round and an F-function mix of sub-blocks. Key-words: Feistel Network, diffusion, swapping scheme, complete F-function INTRODUCTION A Feistel Network (FN) is a method for mixing the sub-blocks of an input block in a cipher through repeated application of keyed, non-linear F-functions in order to generate a permutation of the input block [4, 8, 9]. In a standard FN the plaintext block is divided evenly into two sub-blocks. The right sub- block is fed into a key-dependent F-function. The left sub-block is combined, via bitwise-exclusive-or (XOR), with the output of the F-function. Afterwards, the two sub-blocks are swapped (fig. lea)). A direct extension of the standard FN may split the input block into n > 2 sub-blocks [2]. It will be assumed that all sub-blocks have the same width so that each sub-block can be swapped with any other sub-block. A general swapping scheme (SS) is a permutation of the n 2: 2 sub-blocks in a round. The identity swapping scheme, denoted Id, is the identity permutation. The inverse swapping scheme X-lof an SS X is a permutation of the sub-blocks such that X.X-1 = X-1.X = Id, where. denotes composition. Swapping schemes, together with the F-functions, play an important role in the diffusion process in block ciphers [6]. The diffusion process of a function refers to the effect of spreading the influence of an input bit into many output bits. 101 p input block __ right left -- sub-block sub-block (a) (b) c Figure 1: (a) Standard Feistel Network of DES cipher [7], (b) example of a round A function (cipher) is called complete if each output bit depends on all of its input bits [3]. In the following analysis all F-functions will be assumed complete. An F-function Mix denote a set of operations which combines sub-blocks in a round with (one or more) F-functions. In a traditional FN the F-function is the most (computationally) expensive operation in a round and also plays a key role in the diffusion process due to its completeness property. Therefore, the effort to reach complete diffusion will be measured in terms of the amount of F-function calculations required. An F-function in a block cipher usually has input and output of the same width as one sub-block. More generally, an (i,o) F-function is a function which accepts an input i sub-blocks wide and generates an output 0 sub-blocks wide. The DES cipher uses a (1,1) F-function [7]. Many SSs devised for block ciphers are symmetric i.e. they are equal to their inverses. In contrast, asymmetric schemes use different permutations than their inverse. Symmetric SSs have the advantage that the resulting FN is self-inversible i.e. it can be used both for encryption and decryption (just the order of the sub-keys might be inverted), thus simplifying design and saving space and com- putational cost for both hardware and software implementations. Accordingly, 102 ABC D E nm ABC D E ABC D E Ca) (h) Cc) Figure 2: SSs: (a) symmetric, 3 clusters {A,E},{B,D},{C}, period 2; (b) asymmetrie, 1 cluster {A, B, C, D, E}, period 5; (c) symmetric, 5 clusters {A}, {B}, {Cl, {D}, {E}, period 1 the associated FN is also called symmetric. It will be assumed that the same SS is used throughout the entire cipher. Since SSs are permutations of sub-blocks and are applied repeatedly between rounds, it follows that after a certain number of rounds, all plaintext sub-blocks might return to their original relative position in a block. The minimum number of rounds needed for all input sub-blocks in an FN to return to their initial position is called the period of the SS. (fig. 2). SSs involving n sub-blocks which have period different from n contain clusters of sub-blocks. A cluster is a subset of sub-blocks in an SS in which all sub-blocks in the cluster exchange place only with sub-blocks in the cluster (fig. 2(a) and (c)). For a block cipher which splits the input block into n sub-blocks, there are n! permutations to choose from, i.e. n! possible SSs. These SSs can be primarily divided into one-cluster (fig. 2(b)) and many-clusters (fig.2(a) and (c)), depending on the number of clusters. One-cluster SSs with n sub- blocks have period n. Many-clusters SSs have period lcmicç, C2,'" ,Cj), where Cj is the period of the j-th cluster and lcm(.) is the least common multiple function. Each cluster acts like a separate, independent permutation in an FN. It is worth noting that if an SS is symmetric then it is also many-clusters. If an SS is one-cluster then it is asymmetrie. DIRECTED GRAPH REPRESENTATION A directed graph of an FN is a pictorial representation in which sub-blocks (labeled by round number) denote vertices, and F-functions (labeled by sub-keys) 103 A_O B_O (b) B_2 ~ A_{r-l} IF+-"I B_r Figure 3: (a) FN and (b) its directed graph representation denote edges (fig. 3). The graph is usually depicted top down. The initial (top) vertices comprise (some of) the input sub-blocks to the F-functions in the first round, and succeeding vertices are connected to the outputs of the F-functions in the following rounds. In order to focus attention on the diffusion process, not all the sub-blocks are necessarily depicted, but only the ones that participate directly in the input or output chain of F-functions. Only acyclic graphs are of interest. ENCRYPTION AND DECRYPTION FNS Depending on the FN, the diffusion process may not be equally efficient for the encryption and decryption operations. For example, in fig.4(a) the dependency of (A3, B3, C3) on (Aa, Ba, Co) can be summarized by the equations: • A3 = Aa EB Fkl (Ba EB Fk2 (Co)) EB Fk6 (B3) • B3 = Ba EB Fk2 (Co) EB Fk3 (Co EB Fk1 (Aa EB Fk (Ba EB Fk2 (Co)))) 1 • C3 = Co EB Fk4 (Aa EB Fk (Ba EB Fk2 (Co))) EB Fk5 (A3) 1 From these equations or the graph in fig.4(a), (at least) five F-function evalua- tions are needed to achieve complete diffusion, because A2 does not yet depend 104 C_o B_O C_O A_l C_2 B_' ~, A_4 L- __ ....L..__ __J ~ (a) (b) A__4 B_4 C_4 Figure 4: Diffusion performance in an FN: (a) encryption, and (b) decryption on all input sub-blocks, but in fig.4(b), it takes (at least) seven F-functions, al- though one FN is the inverse of the other. The reason for this discrepancy is the chained dependency of Fk2i-1 input on Fk2i output (1 :::;i :::; 3), in fig.4(a), that speeds up diffusion. This dependency can be noticed from the graph in fig.4(a) which is connected, i.e. there is only one graph component, while in fig.4(b) it is disconnected, resulting in a delayed diffusion. FORMAT OF F-FUNCTION MIX Traditional FNs use only one F-function per round. Assuming the cost of eval- uating one complete F-function is non-negligible, it is a key decision to determine how many F-functions to use in a mix (i.e. per round), for efficient diffusion. Cer- tain F-function mixes use more than one F-function instance, applied to different sub-blocks in order to execute them in parallel. These multiple-F-function mixes not only requires the necessary resources to take advantage of parallelism, but they must also achieve complete diffusion in less rounds than (simpler) F-function mixes in order to justify the larger computational cost per round. The idea of ap- plying multiple F-functions to independent sub-blocks in order to compute them in parallel also contradiets the idea of chaining F -function. As a simplifying as- 105 sumption, the present analysis will restrict the mix to contain one F-function only. CHAIN SEQUENCE An appropriate integration between the F-function mix and the SS does ef- fectively improve the diffusion process. Separately they can not reach complete diffusion properly. This effect is achieved by: • an optimal balance between the input and output widths for an F-function, to improve diffusion in an FN with n sub-blocks, is a U~l, l~J) F-function, i.e. half of the sub-blocks are input and the other half are affected by the F-function output. For odd n another optimal balance use a (l~J, I~l) F-function. If the available (i,o) F-function input is not large enough (i < I~1), then I~1 of the sub-blocks can be combined via XOR into i sub- blocks. Ifthe F-function output is not large enough (0 < l~J) it can still be combined with l~J of the sub-blocks as long as different operators are used (the use of different, non-mutually-inverse operators is necessary, otherwise the XOR combination of some intermediate sub-blocks, which contain the same F-function value could result in an invariant value which propagates through many rounds, and is independent of the F-function output) . • the sub-blocks which are combined with the F-function output in one round might be input to the F-function in the next (immediate) round. This rule, combined with the previous one, guarantees a (balanced) chain of dependence of half of all sub-blocks affecting exactly the other half, in each successive round. The SSs also have to fulfill some properties. One-cluster SSs are preferred. Many-clusters SSs, especially clusters with one sub-block only, might be avoided because, since the F-function mix is usually the same Ier all of the FN, the mix will not properly diffuse sub-block dependency with one-sub-block clusters. If these conditions are met, complete diffusion can be expected in 3 rounds for even nand 4 rounds for odd n. These results follow from: if an (i,o) F-function is used per round then it takes at least T rounds till all n sub-blocks are input to the F-function. Similarly, it takes at least ~ rounds till all sub-blocks are combined to the F-function outputs carrying the chained dependency of all n sub-blocks. The minimum of T + ~ = T + n":_i occurs when i = 0 = ~. If i < l~J or i > I~l then the diffusion process will be delayed, because, either too few sub-blocks 106 are been diffused through the F-function input, or too few sub-blocks are becoming complete by mixing with the F-function output. AES CANDIDATES It is to be observed that among the AES candidates [1] based on an FN with more than two sub-blocks, 'fWOFISH and RC6 [1] possess structures that allow the fastest diffusion if their F-functions were complete: TWOFISH after three F-function evaluations (rounds) and RC6 after four F-functions (two rounds). CAST-256 [1] would achieve complete diffusion after seven F-function instances or two rounds, if its h, 12, h, 14 functions were complete. MARS [1] would need five E-function evaluations (rounds) if its E-function was complete. CONCLUSIONS A summary of the design ideas that come up from the discussion on diffusion improvements for an FN are : • equivalent diffusion performance might be enforced for both an FN and its inverse so that they can be used interchangeably. • proper integration between the SS and the F-function mix is required. It is suggested enforcing a balanced chain sequences of F-functions, in which half of the sub-blocks are input to the F-function, and the other half of sub-blocks are combined to its output in each round. Sub-blocks which are mixed with the F-function output in one round might necessarily be input to the F-function in the next round. • one-cluster SSs are preferred. A void SSs with fixed sub-blocks for they require more F-function evaluations per round, or variable F-function mixes to achieve complete diffusion. One last notice. Although the given ideas predict that complete diffusion can be achieved in three or four rounds (with a complete F-function), there are many other criteria a cipher might satisfy in order to be considered minimaly secure, some of which oppose the use of so few rounds [5]. 107 ACKNOWLEDGEMENT Many thanks are warmly addressed to Vincent Rijmen for precious sugges- tions, many corrections and positive criticisms. REFERENCES [1] AES Advanced Encryption Standard http:j /csrc.nist.gov /encryptionjaesjaes-home.htm [2] A. Pfitzmann, R. Abmann - "Efficient Software Implementations of (Gener- alized) DES" - Proc. SECURICOM'90, Paris, 1990, p. 139-158 [3] A. J. Menezes, P. C. van Oorschot, S. A. Vanstone - "Handbook of Applied Cryptography" - CRC Press - 1997 [4] B. Schneier, J. Kelsey - "Unbalanced Feistel Networks and Block-Cipher De- signs" - Fast Software Encryption, 3rd International Workshop Proceedings - Feb. 1996 - p. 121-144 [5] C. S. Jutla - "Generalized Birthday Attacks on Unbalanced Feistel Networks" - LNCS - vol. 1462 - Crypto'98 - p. 186-199 [6] C. E. Shannon - "Communication Theory of Secrecy Systems" - Bell Systems Technical Journal, vol. 27 - 1948 - p. 379-423, 623-656 [7] FIPS PUB 46 - "Data Encryption Standard" - Federal Information Pro- cessing Standards Publication 46, US Department of CommercejNational Bureau of Standards, National Technical Information Service, 1977 (revised as FIPS 46-1 : 1988, FIPS 46-2 : 1993) [8] H. Feistel, W. A. Notz, J. L. Smith - "Some cryptographic techniques for machine-to-machine data communications" - Proceedings of the IEEE, 63 - 1975 - p. 1545-1554 [9] J. Kam, G. Davida - "Structured design of substitution- permutation encryp- tion networks" - IEEE Transactions on Computers, 28 - 1979 - p. 747-753 [10] L. Brown, J. Pieprzyk, J. Seberry - "LOK I - a cryptographic primitive for authentication and secrecy applications" - AUSCRYPT 90 - LNCS 453 - p. 229-236 [11] R. C. MerkIe - "Fast Software Encryption Functions" - CRYPTO 90 - LNCS 537 - p. 476-501 [12] S. Miyaguchi - "The FEAL Cipher Family" - CRYPTO 90 - LNCS 537 - p. 627-638 108 ANONYMITY CONTROLLED ELECTRONIC PAYMENT SYSTEMS Joris Claessens", Bart Preneel", Joos Vandewalle Katholieke Universiteit Leuven, ESAT-SISTAjCOSIC Kardinaal Mèreierlaan 94, B-3001 Heverlee, Belgium joris.claessensGesat.kuleuven.ac.be Today's most used elecironic payment systems offer no anonymity at all to their users. Electronic payment systems exist that provide unconditional anonymity. In this article elecironic payment systems are described in which anonymity can be controlled. The requirements of such systems are discussed} and two types of tmcing mechanisms are defined. An overview of the proposed anonymity controlled systems is given. We analyze to what extent these systems offer the defined tmcing mechanisms. The importance of anonymous communication is stressed. INTRODUCTION The importance of electronic payment systems is increasing rapidly as elec- tronie commerce is becoming part of our ordinary daily life. In order to make electronic payment systems acceptable to the general public, some degree of anonymity has to be offered. Just as with physical cash, the privacy of the users can be protected, so that the ability to link a buyer with a purchase is reduced. On the other hand, the anonymity of electronic money can be misused by criminals for money laundering, blackmailing and illegal purchases. In or- der to make anonymous electronic cash systems acceptable to governments and banks, mechanisms for revoking anonymity under certain conditions have been introduced. Such anonymity revocation must be possible only for a trusted third party, named trustee or judge. In this article we discuss a number of electronic payment systems, ranging from today's frequently used systems which offer no anonymity, to systems which offer unconditional anonymity. In between these two are the systems which offer • Funded by a research grant of the Flemish Institute for the Promotion of Industrial Scientific and Technological Research (IWT). t F.W.O. postdoctoral researcher, sponsored by the Fund for Scientific Research - Flanders 109 some kind of controlled anonymity. We will discuss the different tracing models which can be present in an anonymity controlled electronic payment system, as well as the currently proposed systems that provide anonymity control accord- ing to these tracing models. Finally, we will address the need of anonymous communication in all these systems. Moreover, methods to obtain anonymous communication can be integrated with electronic payment systems that are far less complex, while still providing anonymity control properties. NO PRIVACY VERSUS UNCONDITIONAL ANONYMITY Today's electronic commerce is almost totally based on electronic credit card transactions on the World Wide Web (WWW). The security of this system relies on the security provided by the protocols used to secure the WWW [9]. The standard SET [16] provides a lot of advanced security features, but is not yet commonly used on the Internet. These systems do not protect the user's privacy, as the bank knows every purchase the user makes, via the user's credit card number. However, anonymity is probably not wanted by banks, as the value of credit card payments can be rather high. The Belgian electronic wallet Proton [19] is an electronic payment system designed for small purchases. It is based on symmetric key cryptography and uses smart card technology. The system can already be used on the Internet, and is gaining international interest. The user's privacy is not protected. This should however be a necessary condition in order to fully emulate a wallet with physical coins. Ecash [22] is an electronic cash system developed by (the late) DigiCash. The system uses blind signatures [8]. A blind signature scheme allows the user to get a message signed by a signer, without disclosing the contents of the message to the signer. In the ecash system coins are basically random strings signed by the bank. As the bank signs a blinded version of the random string, the bank cannot link the identity of the user (known during withdrawal of the coin) to the finally obtained coin (and thus to the payment in which that coin will be involved). To prevent double-spending of coins, the bank just keeps a list with all spent coins, and verifies whether a coin is already on that list. Therefore payment and deposit is done at the sarne time, which classifies the payment system as an on-line system. More advanced electronic cash systems that offer unconditional anonymity, use restriciioe blind signatures (e.g., the CAFE payment system is based on [2]). 110 The bank still signs a blinded string, but the identity of the user is encoded in this string. The encoding is done in this way, that the identity of the user is revealed when the coin is double-spent. The payment can be performed off-line (i.e., deposit can be done afterwards). More information about off-line electronic cash systems can be found in [20]. CONTROLLED ANONYMITY Systems exist that provide unconditional anonymity and a mechanism to protect against double-spending. However, other crimes are possible [26], in which coins are not double-spent, such as money laundering and blackmailing. In order for an electronic payment system to be acceptable for both users, banks and government, some kind of anonymity control has to be provided. In these kind of systems, it is possible to trace the owner of a coin or to trace the coins originating from a specific withdrawal. This will only be possible in cooperation with a trusted third party (or more than one) which has additional information that can be used to link coins and users. The tru'sted third party (also called 'trustee') will only reveal information if e.g. the bank obtained an approval by a judge. According to [10], generally the following requirements are necessary for anonymity control of electronic money: l. Electronic money should be a.nonymous and unlinkable to legitimate users. 2. Anonymity should be revocable, but only by a. trustee or judge and when necessary. 3. The trustee should not have any power other than tracing. 4. The bank should not be able to impersonate users (even in collaboration with the trustee or the shop). 5. The anonymity is revocable only for the transaction for which a trustee's order is given. 6. A trustee must be involved only when revocation is required, remaining off-line otherwise. 7. Anonymity revocation should not motivate crimes more serious than those it protects against. Two types of anonymity control models are also discussed in [10],more specif- ically two types of tracing mechanisms: An owner tracing protocol exposes the identityof the owner of a specific coin. In this kind of protocol the bank gives to the trustee the information it received during the deposit protocol. The trustee ,,, then returns information which can be used to identify the owners. Owner tracing prevents money laundering and making illegal purchases, as it allows the authori- ties to identify the .involved users. This is also called 'after-the-purchase' tracing. A coin tracing protocol traces the coin that originated from a specific withdrawal. In this kind of protocol the bank gives to the trustee the information about a spe- cific withdrawal. The trustee returns information that will appear when the coin is spent. Coin tracing allows the a.uthorities to findthe destination of suspicious withdrawals. It can thus be used to identify the seller of illegal goods, a.nd pre- vents the blackmailing problem. This is a.lso called 'before-the-purchase' tracing. Note that an a.nonymity controlled system must include both means of tracing in order to satisfy selectivity (requirement 5). ANONYMITY .CONTROLLED PAYMENT SCHEMES This section describes the different types of schemes that implement anony- mity control. An efficient fair payment system. With a fair payment system, anonymous payments are still possible, but the anonymity can be removed with the help of a trusted party, which need not be involved in the transaction itself. The efficient fair payment system by Camenisch, Piveteau and Stadier [6] is an on- line system (payment and deposit at the same time) in which users have two types of accounts, personal and anonymous. An anonymous payment is a transaction from an anonymous account to a shop's account. The clue of the system consists of an efficient method for transferring money from a personal account to an anonymous account without revealing the correspondence between them (except to the judge). The system is realized using electronic coins that can be paid only into a single account (therefore double-spending of coins can be prevented by a single counter, instead of a large database with spent coins). Perfect unlinkability of personal and anonymous accounts is realized by using a blind signature scheme. To achieve fairness, the judge knows the correspondence between thetwo accounts, and coins withdrawn from a personal account can only be deposit into the corresponding anonymous account. Although the customer's. identity is not revealed, the bank can still link differ- ent transactions when the same anonymous account is used for different payments. However; the customer can use different accounts for transactions that should not 112 be linked. This system provides owner tracing as the judge can at any time find the origin of a transfer given the anonymous account number, and coin tracing as the judge can find the destination of a transfer, given the personal account number. Trustee-based tracing extensions. Brickell, Gemmell and Kravitz [3J add anonymity control as an extension to existing electronic cash systems - in par- ticular [2J and [12J - but still provably protect user anonymity. It is interesting that two trustees are involved in these schemes. Only if the two agree and work together, owner/coin tracing can be performed. These two proposa.ls require the trustees to be on-line during withdrawal, which is not as efficient as stated in requirement 6 above. Fair blind signatures. Stadler, Piveteau and Camenisch [5J proposed fail' blind siqnatures, a new type of blind signature schemes, with the additional prop- erty that, with the help of a trusted entity, it is possible to link a message- signature pair and the corresponding protocol view of the signer. Two different types can be defined. Type I fair blind signatures allow a judge to find the message-signature pair, given the signer's view of the protocol (which is in fact coin tracing). Type II fair blind signatures allow a judge to identify the sender, given a specific message-signature pair (i.e. owner tracing) In anonymity controlled payment systems based on this scheme, the trustees are again on-line. Note that [25J points out some weaknesses and vulnerabilities in one of the fair blind signature schemes proposed in [5J. Advanced schemes. In the literature, more advanced schemes have appeared. In [13J an on-line electronic cash was proposed using blind weak siqnaiurcs. A stronger tracing model, which survives the 'bank robbery' attack, was proposed in [15J. Owner and coin tracing with off-line trustees were proposed in [4Jand [l1J. A scheme with trustees distributed over the Internet can be found in [18J. ANONYMOUS COMMUNICATION Although this is not always specifically mentioned in the papers, anonymous communication between the different parties is necessary, in order to have real anonymous cash. A solution for anonymous communication, called 'mixes', was already introduced in [7J. Mixes are applied in [24Jfor anonymous communication on the WWW. A very simple solution, but with not so strong properties, is the 113 Anonymizer [IJ. Another interesting solution, with stronger properties, can be found in [21J. One can also specifically rely on anonymous communication during the de- sign of an anonymous cash protocol. In this way, much simpler systems can be obtained. For example, in [23J anonymity is provided by just using one-way functions. In the following sections, two anonymity controlled payment systems are described, which specifically rely on anonymous communication or techniques used for this purpose. Mix-based payments. In [14], Jakobsson and M'Raïhi present an electronic payment system in which anonymity and anonymity control are solely based on the use of a mix network. A payment order is of the form ° = mlals in which m is a hash of the contract, a account number merchant, and s serial number. The payer encrypts a set of orders Ol ... On to Ol ... On using the public key. The corresponding secret key is known only to the transaction center, and is kept in a distributed manner so that any quorum of mix servers can calculate it. The values of the transactions are described in d. The payer signs Ol ... On and d, resulting in (T. The transaction center verifies (T. It adds each valid Di to an internal list (one such list for each denomination) and debits the payer's account. It signs each Oi (different public keys for different denominations) and sends (Tl'" (Tn to the payer. The payer sends Oi, (Ti to the merchant, which verifies CJi. At given intervals, the transaction center decrypts all payment orders: the input is a list of encrypted messages, the output is a permuted list of the corresponding decrypted messages. The items of these lists indicate what accounts are to be credited, and by how much. The two tracing operations are based on the mix en/de-cryption scheme. A payment order of a specific payer can be traced (coin tracing) by simply decrypting the encrypted payment order 0 in question. The payer of a specific payment order can be traced (owner tra.cing) by reversing the encryption of ° to 0 step by step (how this must be done, depends on what type of mix network is used). NetCash. NetCash [17J is an on-line electronic cash system developed at the University of Southern California. There are three parties involved: 'Clients', 'Merchants' (including Banks) and 'Currency Servers' (CS). Currency Servers have to obtain a certificate for minting currency from the 'Federal Insurance Cor- poration' (FIC): {Cel·tiJ .id, CS_name, [{cs, issuedate, exp.date }JCp;c' An electronic coin is represented as: {CS_name, s.iuldr, exp..date, sel'iaLnum, coin_val}[{cl, Cerii] .id. 114 Both Clients and Merchants can perform an exchange protocol with a CS in order to verify coins, exchange coins for untraceability, purchase coins and cash in coins. A simple payer-payee exchange exists in which the Client receives a kind of ticket in exchange for coins, that can be used to get the service for which the Client bas paid. Double-spending is either detected at the time the recipient verifies or exchanges coins with a CS, or the coins can only be spent by the recipient during an initial time window, allowing the recipient to cash them in before they can be double-spent. The anonymity provided by NetCasb is weaker than the uncondi- tional anonymity. It is possible for a CS to record which coins have been issued. It is expected that CSs wil! not do so. Clients can choose their own CS, and will choose one that they feel they can trust. If CSs can be seen as trustees, recording all inforrnation, but revealing information only when asked for by a judge, then the NetCash system can be classified as an anonymity controlled electronic cash system. CONCLUSION Today's currently used electronic payment systems do not provide privacy to the users. However, payment schemes exist that provide unconditional a.nony- mity. These electronic payment systems are not used on a large sca.le, as they are not accepted by governments and banks. In this article, the current state of the art of anonymity control in electronic payment systems has been discussed. We have seen the requirements for a good anonymity controlled payment system, as well as the two tracing models that have to be implemented in order to fulfill one of these requirements. We have discussed different proposed anonymity controlled electronic payment systems. Finally, we have addressed the need for anonymous communication. More- over, anonymity control in electronic payment systems can be implemented rely- ing on the anonymous communication mechanisms. REFERENCES [1] Anonymizer, Inc. http://www.anonymizer.com. [2] S. A. Brands. Untraceable Off-line Cash in Wallets with Observers. In Crypt a '93, Springer- Verlag, LNCS 773, pp.302-3I8, 1994. [3] E. Brickell, P. Gemmell, D. Kravitz. Trustee-based Tracing Extensions to Anonymous Cash and the Making of Anonymous Change. In Proceedings of the 6th. A nnual Symposium on Discrete Algorith.ms (SODA '95), pp.457-466, 1995. 115 [4] J. Camenisch, U. Maurer, M. Stadier. Digital Payment Systems with Passive Anonymity- Revoking Trustees. In ESORICS'96, Springer-Verlag, LNCS 1146, 1996. [5] J. Camenisch, J .-M. Piveteau, M. Stadier. Fair Blind Signatures. In Eurocrupt '95, Springer-Verlag, LNCS 921, pp.209-219, 1995. [6] J. Camenisch, J.-M. Piveteau, M. Stadier. An Efficient Fair Payment System. In ACM- CCS'96, pp.88-94, 1996. [7] D. Chaum. Untraceable electronic mail, return addresses, and digital pseudonyms. Corn- nnuiicaiitnis of the ACM, v.24, n.2, pp.84-88, 1981. [8] D. Chaum. Blind signatures for untraceable payments. In Crypto'82, Plenum Press N.Y., pp.199-203, 1983. [9] J. Claessens, J. Uyttenhove. Beveiliging van het World Wide Web. Ms. Thesis (in Dutch), COSIC, K.U.Leuven, 1997. [10] G. Davida, Y. Frankel, Y. Tsiounis, M. Yung. Anonymity Control in E-Cash Systems. In Financial Cryptography '97, Springer-Verlag, LNCS 1318, pp.l-16, 1997. [11] Y. Frankel, Y. Tsiounis, M. Yung. Indirect Disclosure Proof: Achieving Efficient Fair Off-Line E-Cash. In Asiacrypt '96, Springer-Verlag, LNCS 1163, pp.286-300, 1996. [12] M. FrankIin, M. Yung. Towards Provably Secure Efficient Electronic Cash. Columbia Univ. Dept. of C.S. TR CUCS-018-92, 1992. [13] M. FrankIin, M. Yung. Blind weak signature and its applications: Putting non- cryptographic computation to work. In Eurocrypt '94, Springer-Verlag, LNCS, pp.71-83, 1994. [14] M. Jakobsson, D. M'Raïhi. Mix-based Electronic Payments. Fifth Annual Workshop on Selected Areas in Cryptography (SAC'98), Queen's University, Kingston, Ontario, Canada, August 1998. [l5] M. Jakobsson, M. Yung. Revokable and Versatile Electronic Money. In ACM-CCS'96, pp.76-87, 1996. [16] MasterCard Int., Visa Int. SET Secure Electronic Transaction. http://www.setco.org. [17] G. Medvinsky, B. C. Neuman. NetCash: A design for practical electronic currency on the Internet. In ACM-CCS'93, 1993. [18] D. M'Raïhi, D. Pointcheval. Distt:ibuted Trustees and Revocability: a Framework for Internet Payment. In Financial Cryptography '98, Springer-Verlag, LNCS 1465, 1998. [19) Proton World Int. http://www.protonworld.com. [20] C. Radu. Analysis and design of off-line electronic payment systems. PhD. Thesis, COSIC, K.U.Leuven, 1997. [21] M. I<. Reiter, A. D. Rubin. Crowds: Anonymity for Web Transactions. DIMACS Tech- nical Report 97-15, 1997. [22] B. Schoenmakers. Basic Security of the ecash ™ Payment System. In Computer Secu- rity and lndustrial Cryptography: State of the Art and Euolution, ESAT-COSIC course, Leuven, Belgium, 1997. Springer-Verlag, LNCS 1528, 1998. [23] D. R. Simon. Anonymous Communication and Anonymous Cash. In Crypto '96, Springer- Verlag, LNCS 1109, pp.61-73, 1996. [24) P. F. Syverson, D. M. Goldschlag, M. G. Reed. Anonymous Connections and Onion Routing. In 1997 IEEE Symposium on Security and Privacy, 1997. [25] J. Traoré. Making Unfair a "Fair" Blind Signature Scheme. In ICICS'97, pp.386-397, 1997. [26] S. von Solms, D. Naccache. On Blind Signatures and Perfect Crimes. Computers êf Security, 11:581-583,1992. 116 IMPROVED NOISE ROBUSTNESS FOR SPEECH RECOGNITION BY ADAPTIVE SVD-BASED FILTERING K. Hermus, P. Wambacq and D. Van Compernolle" Katholieke Universiteit Leuven, div. E.S.A.T.-PSI K.Mercierlaan 94. B-3001 Heverlee. Belgium Kris.Hermus~esat.kuleuven.ac.be The presence of all kinds of noise in the speech signal can lead to a significant degradation in recognition performance; this is well-known as the noise robust- ness problem for speech recognition applications. In this paper we propose a promising method to improve the robustness against the influence of additive noise at moderate SNR ratios. The proposed technique - based on Singular Value Decomposition (SVD) - origi- nates from classical signal enhancement, but it is adapted to the specific require- ments imposed by the speech recognition process. Noise reduction is obtained by suppressing low energetic, noise related singular components of the Hankel matrix which is constructed from the original signal. It is shown that the preservation of the formant structure of the speech sounds is of utmost importance. Recognition experiments on a database with large vocabulary, continuous speech (Resource Management) reveal a drastic reduction in error rate, thereby out- performing existing techniques for noise robustness such as Nonlinear Spectral Estimation and SNR-Normalisation. The SVD filtering can easily be included in the speech preprocessing scheme, and works in real time. INTRODUCTION Decades of research in speech recognition resulted in the development of recognisers able to transcribe fluently spoken language with a very high accuracy. Continuous speech with vocabularies of 64.000 words and more can be recognised with a WER (Word Error Rate) of less than 10%. Even better results (WER < 5%) are obtained with speaker dependent systems, where the acoustic models are (re)trained by the user. However, these excellent results could only be obtained in controlled environments • Currently with Lernout & Hauspie Speech Products 117 - matched training and testing environments - without any disturbing source. The interference of e.g. noise, which is very likely to happen in real conditions, greatly compromises the recognition rates and often makes the systems completely useless. Evidently, providing the recognisers with (noise) robust features was an indispensable step on the way to a successful commercialisation of speech recognition software. As this problem was only considered lately, no single, integrated solution was proposed. On the contrary, a countless collection of techniques [1) has been constructed, each with its own restrictions and applications. Many of the techniques belong to one of the following classes: Speech Enhancement These methods focus on improving the perceptual quality of the speech signal (increasing the SNR ratio). If possible, the noise itself is recorded or estimated, e.g. for Adaptive Filtering techniques. In case of Spectral Estimation [3} and its variants, the noise spectrum is estimated and then subtracted from the spectrum of the speech signal, thereby removing the noise. Robust Features Recognisers can be made robust up to a certain level by working with (noise) robust parameters. The noise is not necessarily removed, as it is incorporated in the scheme. SNR-Normalisation [3} sends the signal through a filter bank, and artificially adds noise in every frequency bank such that the SNR of all filtered components is normalised towards a preset value. This results in a better recognition of noisy speech. Model Adaptation If the influence of the noise on the acoustic models is known, one can adapt these models to the noise present in the input speech signal. Examples are Stochastic Matching and Parallel Model Combination [ij. Despite the intensive research and the large number of methods, fully robust recognis- ers still don't exist, certainly not for large vocabulary speech recognition. The large variability in noise conditions, and the need for simple implementations (single micro- phone recording, low computational cost, ... ) make the development of one integrated solution very demanding. Consequently, almost every scheme puts restrictions on the allowed noise conditions. In this paper, we present a new approach to robust speech recognition, based on SVD filtering. SVD has been applied in many signal processing fields: image coding (eigen- faces), signal enhancement (medical world), image filtering, ... Also for plain signal enhancement (improving the perceptual quality) SVD can be a solution where it comes to remove additive noise at reasonable SNR values. However, a straightforward application of classical SVD signal enhancement to speech recognition problems leads to dramatic results. Indeed, speech recognition imposes 118 very specific constraints (such as preservation of the formants+) on the distortion in- troduced by the noise filtering. Indeed, the acoustic models are not (re)adapted to the SVD-enhanced signals. We will show that, starting from the basic filtering scheme, a variety of solutions are at hand, leading to drastic recognition improvements for white and coloured additive noise. The outline of the paper is as follows. First a short description of the speech pre- processing step is given. Thereafter, the basic theory of SVD filtering is presented, together with two practical implementations for white noise. The adaptation of the algorithms to coloured noise removal is also addressed. Finally, recognition results are given, followed by some conclusions. SPEECH SIGNAL PROCESSING The goal of the preprocessing step in a recogniser is to capture all the relevant acoustic information from the speech signal in a small set of uncorrelated acoustic parameters. In order to capture the immediate acoustic information, the signal is divided in (over- lapping) frames: from each frame (typically 30 msec) a set of about 30 parameters is calculated. A normal preprocessing scheme transforms the signal into the frequency domain (mostly cepstral domain), includes time derivatives of the parameters, applies some kind of both additive and convolutive noise removal, and tries to decorrelate the parameter set. THEORY OF SVD FILTERING Introduction The noisy signal is treated as a vector in an T-dimensional space, with noise and speech components lying in orthogonal subspaces. From the noisy signal, a Hankel matrix is constructed, whose rank is reduced with SVD. The high energy components are supposed to contain only speech data, whereas the low energy components are supposed to contain only noise. Constructing a Hankel matrix The noisy signal y = y(O), y(1), ... consists of the desired signal x and the noise n; both components are considered being additive: y(k) = x(k) + n(k) (1) lEvery shape of our vocal tract (mouth, lips, ... ) has its own set ofresonant frequencies (formants), that produce a particular sound. Recognition of sounds is mainly based on the location of the different formants. 119 As in the normal preprocessing, we create overlapping frames ofT samples: y(O), y(I), ... ,y(T- 1). The number of samples T is to be optimised (see further). From all frames, we construct a Hankel matrix Y : y(O) y(l) y(M -1) y(l) y(2) y(M) Y= (2) y(K - 1) y(K) y(T - 1) with dimensions K x M, with K 2: M and M + K = T + 1. According to the assumption of additive noise, we can write Y as: Y=X+N (3) Altering the singular value spectrum As we already mentioned, the largest singular components of Y are supposed to con- tain more speech whereas the smallest singular components include almost only noise. Hence, noise can be suppressed by altering the singular value spectrum, giving higher weights to the speech components and suppressing the noise components. Several procedures to suppress the noise are possible, each with its own weighting scheme. Two of them are depicted here. Least Squares estimation Speech is often modelled as a sum of p complex expo- nentials. In that case, X is of rank p, en we can obtain a Least Squares/rank p estimate of Y by setting the M - p smallest eigenvalues to zero. Calculation of the SVD of Y yields (4) 2;1 contains the p largest singular values, 2;2 the M - p smallest ones. Due to the (broadband) noise, Y is mostly of full rank. The best rank-p approximation of Y equals: (5) 120 Minimum Variance estimation Another approach of SVD-filtering is the MV estimation, deduced for the white noise case, Le. (6) The mathematical formulation of this estimation, together with a geometrical interpre- tation, can be found in [2]. The weighting factor Wi for the i-th singular component with singular value ai equals 2 W·,- - 1 _ anoise (7) 2 ai where a~oise is estimated based on speechless frames. The MV estimation is given by (8) with W a diagonal matrix containing the weights. Restoring the Hankel structure Matrices YLS,p and YMV are not Hankel anymore such that an easy extraction of the enhanced signal x = X(O), x(I), ... , x(T - 1) is impossible. However, the Hankel structure can be restored by constructing a new matrix X where every element from an anti-diagonal of {YLS,p, YMv} is replaced by the average value along that anti-diagonal. Evaluation of both methods Equivalent FIR-filter representation The i-th singular component of the Hankel matrix Y can be extracted directly in the time domain by filtering y(k) by a FIR-filter deduced from the i-th right singular vector of Y. Hence, altering the singular spectrum of Y can be regarded as applying an M-th order filter bank on y(k), and giving each filtered component its proper weight. Least Squares By selecting some singular components, and suppressing the other components (binary approachjê, some frequency bands may be filtered out completely. This destroys the formant structure of the speech signal, resulting in a corrupt param- eter set and poor recognition performance. 2also called 'truncated SVD' 121 Minimum Variance For the MV estimation, every singular component remains present in the enhanced signal, such that no frequency dips can occur. This approach results in a much higher recognition improvement. COLOURED NOISE REMOVAL The noise reduction schemes described so far are only valid for speech corrupted by white noise with a flat spectrum. However, the algorithms can easily be adapted for the removal of coloured noise if an estimate of the noise is available. Noise Reference It is obvious that the more information we have about the noise, the better the noise removal can be performed. Since we only allow a simple one-microphone recording, knowledge about the noise should be extracted from the speech signal during noise- only periods. Therefore, we need an accurate speech/noise classifier, since misclassification will lead to erroneous filtering. We assume stationary noise such that the shape of the noise remains constant during the next speech frames, until a new estimate can be made. Once the noise spectrum is known, it can be included in the SVD method by applying a 'prewhitening' step. Prewhitening For the general coloured noise case, NT N =1= J. However, if N is available we can use the Cholesky factor from the QR-factorisation of N to prewhiten the noise. To that end, we multiply the Hankel matrix Y with R-1 obtained from N = QR: (9) such that the noise factor N R-1 of Y complies with (6). Indeed, (10) The formulas derived for the white noise case can now be applied to Y. Finally, a dewhitening step is performed by multiplying YMV or YLS,p with R. Implementation by QSVD Subsequent prewhitening and dewhitening can cause a loss of accuracy due to numerical instability. Working with the QSVD (Quotient SVD) of the pair (X, N) is an efficient way to avoid this problem [2J. 122 RECOGNITION EXPERIMENTS Experiments were performed with the ES AT-speech recogniser on the Resource Man- agement database. This database consists of continuous speech of office quality, with a vocabulary of 1000 words. Tests were performed on the feb89 test set using a Word Pair grammar and Context-Independent acoustic models. For a description of the ESAT-speech recogniser, the reader is referred to [4]. The SVD filtering comes before the normal preprocessing and has following specifica- tions. We used a frame length of 30 msec (= 480 samples at 8 kHz sampling rate); dimension M of the Hankel matrix Y was set to 8. To obtain noise corrupted data we created four databases from the clean RM-data (on which we get a reference WER of 4.88%) by adding additive white and coloured noise (low-pass filtered white noise, cut-off frequency = 4 kHz), at 10 and 15 dB SNR. Least Squares Estimation This approach normally leads to the destruction of the formant structure. Although the perceptual quality of the speech signal improves, the extracted parameter set is almost worthless for the acoustic pattern matching step. Experiments revealed the shortcomings of the Least Squares estimation. The relative reduction in WER never decreased by more than 15%. Therefore, we concentrated on the more powerful Minimum Variance estimation. Minimum Variance Estimation The WER's for the MV estimation noise removal are summarised in table l. These results are compared with those obtained by two other well-known techniques: Nonlinear Spectral Estimation (NSE) and SNR-Normalisation (SNR-N.). For SNR-N., we normalised towards the optimal values of 12 and 18 dB for the 10 and 15 dB SNR database respectively. From the table we learn that our new approach is far superior to existing techniques as Nonlinear Spectral Subtraction (NSE) and SNR-Normalisation. We get relative reductions of the WER of more than 65% for white noise and of more than 55% for coloured noise. CONCLUSION SVD filtering is a powerful tool for the enhancement of speech signals. When adapted to the requirements of speech recognition, it enables the development of noise robust systems for large vocabulary continuous speech recognition. Noise reduction is obtained by altering the singular value spectrum of the Hankel 123 11 SNR ratio I Ref. I NSE I SNR-N. I MV white noise 10 dB 157.17141.741 39.79 17 96 1 . 15 dB 25.77 2l.36 2l.71 8.79 coloured noise 10 dB 156.19134.21 1 39.24 1 23 55 . 15 dB 20.62 17.96 17.13 9.22 Table 1: Word Error Rates for Minimum Variance SVD-noise removal. Ref: Ref- erence (no noise reduction); NSE: Nonlinear Spectral Estimation; SNR-N.: SNR- Normalisation; MV: Minimum Variance. matrix. From the numerous possible implementations, we described the basic Least Squares solution, and the very powerful Minimum Variance estima.tion. Due to the prewhitening of the noise, the technique remains valid for the general coloured noise case. If the noise doesn't change between subsequent speechless frames, non-stationary noise can be removed with the aid of an accurate noise reference, esti- mated from speechless frames. Moreover, the computational load is rather low; the implementation of the MV ap- proach in C works in real time. ACKNOWLEDGEMENT The support is acknowledged from the GOA Programme (K.U. Leuven Research Fund). REFERENCES [1] Y. Gong, "Speech Recognition in Noisy Environments: a Survey", Speech Cornmu- nication, vol. 16, nr. 3, pp. 261-291, April, 1995. [2] S.H. Jensen, P.C. Hansen, S.D. Hansen and J.A. Serensen, "Reduction of Broad- Band Noise in Speech by Truncated QSVD", IEEE Transactions on Speech and Audio Processing, vol. 3, pp. 439-448, November, 1995. [3] T. Claes, F. Xie and D. Van Compernolle, "Spectral Estimation and Normalisa- tion for Robust Speech Recognition", Proc. International Conference on Spoken Language Processing, vol. IV, pp. 1997-2000, October, 1996. [4] J. Duchateau, K. Demuynck and D. Van Compernolle, "Fast and Accurate Acoustic Modelling with Semi-Continuous HMMs", Speech Communication, vol. 24, nr. 1, pp. 5-17, April, 1998. 124 ON THE OBJECTIVE SPEECH QUALITY OF THE TETRA SYSTEM C.H. Slump! T. de Bont", A.M. Mertens", K. Verwey'' 1 University of Twente 2National Police Agency Dept. Electrical Engineering IT - Organization PO Box 217, 7500 AE Enschede PO Box lOO, 3970 AC Driebergen The Netherlands The Netherlands C.H.Slump~el.utwente.nl We address the speech quality to be expected from the new TErrestrial Trunked RAdio (TETRA) digital mobile communication system for public order and safety. TETRA is the new digital transmission standard for private mobile radio from the European Telecommunication Standards Institute (ETSI). In TETRA an Algebraic Code-Excited Linear Prediction (A CELP) algorithm for speech compression and decompression is implemented. Of interest is the be- havior of this A CELP algorithm together with the forward error proteetion in case the Bit-Error Rate (BER) is noneera. INTRODUCTION The communication of professionals operating in the realm of public order and safety such as police, fire - brigade and ambulance services, is different from that which is possible with mobile telephones. There is group rather than one-on-one communication. Also, the user must be able to realise contact immediately, while in telephone communication the buildup of the connection takes a certain amount of time. A project has started to realise a countrywide network in The Netherlands, based upon the TETRA standard. TETRA stands for TErrestrial Trunked RA- dio [1]. At this time it is the only pan - European standard which is able to meet all requirements of mobile users such as police, fire - brigade and ambulance services. In order to gain experience with the technical aspects of the TETRA standard, the IT organisation of the National Police Agency carries out a technical pilot. The pilot consists of a radio network (a switch and three base stations) and mobiles. The network is currently operational in the area around Driebergen, see Figure l. The permanent transmitters/receivers are located in Linschoten, Maartensdijk and at the IT organisation site in Driebergen. The IT organisation is connected with Linschoten and Maartensdijk via rental lines of the telephone company. Cornmu- nication is possible in the area in between by means of mobile phones. TETRA is 125 Figure 1: Map of the area. a cellular system. The area where the cellular system operates (area coverage) is defined as an area where a Mobile Station (MS) is able to establish a connection with a Base Station (BS). The size of the cell is not defined in the TETRA standard. In [2, 3] we have studied the cell size for the network in the Netherlands, following a classical approach based upon fieldstrength and outage probability. As TETRA is mainly designed for group communication, capacity problems caused by the number of users is therefore not a major issue. Therefore, the size of the cells is limited by the quality and quantity of the received signal strength which is necessary to establish a connection. This strength is influenced by radio propagation losses, by fading, by signal interference of cells from other clusters and by noise. Those factors are heavily dependent on the area where the transmitter and receiver are situated. The radii of the different areas in The Netherlands are estimated in two steps. The first step is based upon a statistical approach from which the probability of outage is determined. The second step is to use the outage probability to calculate the actual field strength received. The radius is then determined for the different areas. The location and the number of base stations have been carefully chosen. The goal of our research is to objectively measure the decrease of speech quality as a function of BER. Based upon field strength measurements and pertinent BER values from the TETRA test system we assess the speech quality with a modified Perceptual Speech Quality Measure (PSQiVI) [4, 5]. J26 BER MEASUREMENTS In this section we describe only some of the BER masurements. If we look at the area where the (uplink) BER measurements are taken (Linschoten) we obtain the following cell sizes in Table 1, with different clutter factors {3, indicating the extent of the urbanisation. Only the area between the MS and BS is taken into Table 1: Approximation of cell-sizes for the Linschoten area. I Boundary 11 {3 = -3dB I {3 = -8dB I {3 = -11dB I coverage 75% 16098 m 12072 m 10157 m 90% 11098 m 8929 m 7513 m 95% 9761 m 7320 m 6159 m 99% 6379 m 4784 m 4025 m consideration, see Figure 2 for the route of the MS. In this case the TETRA MS consists of a lW transmitter mounted on a BMW motorcycle with a Katrein 3.5 dBi antenna. The BS situated in Linschoten, has a three sector 12.5 dBi antenna at a heigth of 40 m. A characterization of the speed of the MS along the route Figure 2: The route of the MS is presented in Figure 3. The received field strength at the BS is characterized in Figure 4. The resulting BER is shown in Figure 5. The next section describes in short the speech source encoder and decoder. 127 Speed versus time m I h Figure 3: Speed of the MS. RSSI versus time R S S I Figure 4: Received Signal Strength Indicator at the BS as function of time. SPEECH CODEC The TETRA speech codec belongs to class of vocoders and is based on the Code Excited Linear Prediction speech model. Due to limited space, we can only describe here some of the main issues. For details do consult [6]. A speech segment of N samples is generated by filtering a selected excitation sequence from a codebook with two time - varying filters and a scaling gain factor ge' A simplified high level block diagram of the speech synthesis is shown in Figure 6. The pitch filter (long - term prediction) models the time - varying periodicity in the speech signal and the short - term filter shapes the spectral envelope. The pitch filter is given by: 1 1 H(z) = B( Z ) = 1 - gpz- T' (1) where T is the pitch delay and gp is the pertinent gain. The pitch synthesis filter is implemented as an adaptive codebook. For delays less than the length of a subframe of N/4 samples, the past excitation is repeated. The short - term synthesis filter is given by: 1 1 H(z) = -(-) = p ., (2) A z 1 + Li=l a.z:» BER versus time B E R '-1 0,005 ol~.ruII"oIl.,nlll,~ .n.Jl. •• Figure 5: BER at the BS as a function of time. 128 D_i9_i_~_I_in_p_u_t Codebook Index: .----- __ ~f- ~~~I~~ ~ D_e_m__ u_lt_i_p_le_x~e_r ': gains r .P..ltçb_dollilL __ Gain prediction & ~ VQ Past excitation : gp: T Adaptive LP info codebook Output LP filter k Algebraic codebook Figure 6: Block diagram TETRA decoder. with ai, i = 1, ... , p, the well - known Linear Prediction (LP) parameters of order p. Also in TETRA p is chosen to be equal 'to 10. The TETRA encoder uses the well - known analysis - by - synthesis technique to determine the pitch and excitation codebook parameters. A simplified block diagram of the speech encoder is shown in Figure 7. In the analysis - by - synthesis technique, the synthetic speech is computed k ... _---- Algebraic codebook __ J."~ _ LP'cJDfo _ Figure 7: Block diagram TETRA encoder. for all candidate excitation sequences. The pertinent innovation sequence, that produces the speech closest to the original speech frame according to a perceptually weighted distortion measure, is selected. This perceptual weighting filter attenuates 129 the error at the formant regions of the speech spectrum and is given by: A(z) (3) W(z) = A(zjO.85)' with A(z) the LP inverse filter of Equation 2. In Algebraic CELP (ACELP) the innovation codebooks have an algebraic structure with advantages with respect to storage, search strategy and robustness. The TETRA codebook has fixed excitation vectors that are shaped by a dynamic shaping matrix which depends on A(z), and its role is to concentrate the energy of the excitation vectors in the important frequency bands. The shaping matrix is a TOEplitz lower triangular matrix constructed from the impulse response of the filter: F(z) = A(zjO.75). (4) A(zjO.85) In the codec the speech frames consist of 240 samples, with a sampling frequency of 8 kHz this is equal to are 30 ms. The LP parameters are computed and transmitted for each consecutive frame. The frame is divided in four subframes of 60 samples (7.5 ms) and the pitch and codebook parameters are obtained and transmitted per subframe. Table presents the bit allocation for the TETRA codec. Each frame is represented by 137 bits, resulting in a bit rate of 4567 bit j s. Parameter Illst subfr. I 2nd subfr. I 3rd subfr. 14th subfr. I Total II LP filter 26 Pitch delay 8 5 5 5 23 Algebraic code 16 16 16 16 64 Gains (VQ) 6 6 6 6 24 II Total per frame II 137 Table 2: Bit allocation. CHANNEL CODING FOR THE TETRA SPEECH CHANNEL The structure of the channel coding is presented in figure 8. Two speech frames correspond to one transmission time slot and are encoded together. The size of the input block is therefore equal to 274 bits. The 137 bits representing the speech parameters of one speech frame are ordered in three sensitivity classes. Each sensi- tivity class is protected in a different way. Cyclic Redundancy Check (CRC) parity bits are companded only to the most sensitive parameters, such as the codebook 130 Info nnallon bits I Tall bits Block Convolutional encoding coding Block coded bits convolutlonallyloncodod b its - Scrambling Interleaved bits Reorder & Interleaving Figure 8: Flow diagram channel coding. filter index and the gains. Per frame 30 bits are categorized in the most sensitive class. The eRe code is applied to these bits with the polynomial generator: (5) generating 7 parity bits. The modulo 2 'sum of the bits in the most sensitive class together with the 7 parity bits is added as an overall parity bit p = 8. With the addition of 4 tail bits, the size of the data block is now two times 51 bits at the lowest sensitivity level plus two times 56 bits at the intermediate level plus two times 30 bits at the highest level plus 8 parity bits, together with the 4 tail bits this adds up to 286 bits. The two most sensitive classes are convolutionally encoded. The 8 parity bits and the 4 tail bits are included in the highest sensitivity class. The bits of the least sensitive class remain unprotected, a convolutional 2/3 code is applied to the intermediate bits and the most sensitive bits are protected by a convolutional 8/18 code. This affects the frame size as follows: two times 51 unprotected bits plus two times 56 times 3/2 plus two times 42 times 18/8 equals 432 bits added to the block. The 432 bits are interleaved to increase the robustness of the code. The 432 bits can be represented in a matrix of 24 rows and 18 columns. The reordered bits are obtained by transposing the matrix. After this the scrambling for security takes place. In the decoding the inverse trajectory is followed. The eRe will be computed for the highest sensitivity bits and compared with the extra bits. In case differences occur, the Bad Frame Indicator (BFI) flag will be set and compensating measures are taken. OUTLOOK The aim of this research is to supplement the design and layout of the cellular TETRA network with information about the speech quality to be expected. The radii of the cells have high boundary coverage specifications because they will be used 131 for public order and safety. In case of a disaster there must be a guarantee of good communication among and within public service groups (police, fire-brigades and ambulances). The BER measurement shows the influence of the field strength. The speed of the MS appears not to have so much impact on the Bit Error Rate, this was to be expected for the pertinent environment with near line-of-sight communication. The PSQM measures shows a small decrease of quality in the area where the BER is maximaly 0.5 %. In this case only unprotected bits in the speech frame are affected. In the presentation we will show more details about the behavior of the voice coder in combination with the channel coding and present more measurements in urban areas at lower speed with typical public order ansd safety type of speech samples. REFERENCES [1] ETSl, TETRA Voice + Data - Designers' guide, ETR 0.1.0, European Telecommu- nication Standards Institute, F-06921 Sophia Antipolis - France, 1996. [2] J. van Bussel, J.J.R. Tijdhof, R. Schurer, C.R. Slump, TETRA project - Optimum Cell Size for Public Order and Safety, University of Twente, EL-BSC-020N97, 1997. [3] J. van Bussel, Schurer, R. Slump, C.R. and Rossou, E.K.L.(1997, September 30). Optimum Cell Size for Police Use. [Proceedings of the Second European Personal Mobile Communications Conference together with ITG-Fachtagung 'Mobile Kom- munikation'].pp. (157-163). Bonn, Germany. [4] 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. [5] C.R. Slump. and Christoffers, J.W.(1998, March 26). A Perceptual Speech Quality Measure in the Design of a 2.4 kb/s speech codec. [Proceedings of Signal Processing Symposium SPS 98].pp. (183-186). Leuven, Belgium. [6] ETSI, Radio Equipment and Systems, TETRA; Speech codec for full-rate traffic channel,ETS 300 395-2, European Telecommunications Standards Institute, F-06921 Sophia Antipolis - France, 1!)!)5. 132 PROPOSAL FOR AN ADAPTIVE MULTI-RATE CODER FOR GSM A. Gerrits, A. Koppelaar, R. Taori, R. Sluijter, C. Baggen, E. Hekstra-Nowacka Philips Research Eindhoven, Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands gerritsa0natlab.research.philips.com To upgrade the existing GSM system in a backward compatible manner, ETSI launched a call for proposals for adaptive multi-rate (AMR) systems. The AMR system allows for adaptive allocation of the speech and channel coding rates to cope with varying channel conditions. This upgraded system would provide two benefits: a higher speech quality for the subscribers and a higher capacity for the network operators. In this paper, the Philips proposal is presented. A brief description of the speech coder, the channel coder and the AMR controller is provided and the obtained results are discussed. INTRODUCTION GSM has become a widely used system for mobile communications. A limi- tation of the current system is the rapid degradation of the speech quality under poor, yet frequently occurring, channel conditions. This is shown in Figure la, where the performance curves of the Full-Rate coder (FR) [1] and the Enhanced Full-Rate coder (EFR) [2] are given. The horizontal axis shows the channel con- dition, denoted by Carrier-to-Interference level (CjI), whereas the vertical axis shows the subjective speech quality expressed on a Mean Opinion Score (MOS) scale (5: excellent, ..., 1: poor) [3]. The speech quality of both coders is accept- able for CjI ~ 10 dB, but degrades rapidly for poorer channel conditions. It is desirable to avoid this sudden break-down of the quality in favour of a graceful degradation of the speech quality in deteriorating channel conditions. The Adaptive Multi-Rate (AMR) system attempts to achieve this by allocat- ing the speech and channel coding rates as a function of the channel condition. In Figure 1b, the performance curves of several coders operating at different speechjchannel bit rate allocations are put together. In order to obtain the per- formance curve indicated by the dashed line in Figure lb, the best rate allocation has to be selected. A channel quality measure is needed to realize this. 133 MOS MOS EFR ............ FR '----+--+--t---+--+--+__ C /I '----+--+--t---+--+--+__ CII No errors 19 ee 16 se 13 ee 10 dB 7 ëa 4 dB No errors 19 dB 16 dB 13 di! 10 dB 7 ae 4 dB Figure la: FR/EFR performance Figure Ib: Performance curves (conceptual) curves. of several coders (solid lines). Desired performance curve (dashed line). An overview of the AMR system is given in Figure 2. The system consists of a base station and a mobile, which communicate with each other via traffic channels (up-link and down-link). Two types of traffic channels are defined in the current GSM network: the Full Rate Traffic Channel (TCH/FR) with a bit rate of 22.8 kbit Zs, and the Half Rate Traffic Channel (TCH/HR) with a bit rate of 11.4 kbit /s. Let us consider the down-link (the link from base station to mobile). In the mobile, a channel quality estimate for the down-link is derived from the channel decoder. This is sent via the up-link to the control system in the base station. The control system determines the rate allocation which suits the current channel condition on the down-link best. The up-link is controlled in a similar way. An essential requirement for the AMR system is a robust channel quality measure. This measure should be able to track rapid variations in channel qual- ity such that the rate allocation of the speech and channel coder can be changed adequately. It is also required that the speech coder should switch between dif- ferent bit rates without introducing artefacts (seamless switching). Furthermore, transparency of the AMR system to various background noise conditions is re- quired. In order to meet the quality requirements, most of the available bit rate of the traffic channel should be used for the speech and channel coder, and the amount of overhead bits (e.g. rate information, additional signalling bits) has to be reduced to a minimum. In the next sections, the speech coder, the channel coder and adaptation system will be discussed. 134 Base Station Down-link Mobile Up-link Figure 2: Schematic overview of AMR system. SPEECH CODER To meet the quality requirements over the entire CII range, a number of bit rates have to be considered for the speech coder (Figure 1b). In order to facilitate seamless switching between these bit rates, one type of speech coding scheme is used. The speech coder of the proposal belongs to the family of LPC-based analysis-by-synthesis coders [4J using regular pulse excitation (RPE) [5J. The speech coder operates on speech segments of 20 ms (frames). A typical example is shown in the top trace of Figure 3. The short-term correlation in the original speech is removed by applying 10th order Linear Prediction (LP). The resulting signal is depicted in the middle trace, where long-term correlation is still present in the form of pitch contributions, which is removed using an adaptive code book (ACBK) with sub-sample pitch resolution [2J. The bottom trace in the figure shows the signal after removing long-term and short-term correlations. This signal is modelled using a code book of RPE sequences. An RPE sequence consists of regularly spaced pulses in time according to a down-sampling scheme. The amplitudes of the pulses are restricted to ternary values (+1, 0, -1). The encoder determines the ACBK and RPE parameters in an analysis-by-synthesis manner. 135 In Table 1 the bit allocations and update rates of the parameters are given. It lists the 5 bit rates used in TCH/FR and TCH/HR. Switching between the traffic channels is provided by the GSM system, while switching between the bit rates in the same traffic channel is provided by the AMR control system. The variability in bit rate is for the major part achieved by varying the decimation factor of the RPE. Switching between bit rates is possible every 20 ms. Bit rate (kbit/s) 11.1 9.3 8.1 7.0 5.5 LPC (bits/20ms) 28 28 28 28 22 ACBKpitch 13 15 13 12 12 (bits/ IOms) :~ ACBKgain 4 4 4 3 2 (bits/5ms) RPE sequence 33 23 18 15 10 -, 3200 3250 3300 3350 ;'400 (bits/5ms) RPEgain 5 5 5 4 4 (bits/5ms) ACBK resolution 113 116 113 113 113 Decimation factor 2 3 4 5 8 ~~ 3200 3250 3300 3350 3400 --+ T (saJ1I.ples) Figure 3: Typical signals . Table 1: Hit allocation of the speech coder. .Another important requirement is the performance under background noise conditioris. Under clean speech conditions, the coding emphasis is placed on the perceptually relevant low frequencies of the speech so that they are represented most accurately. When significant background noise is present, this emphasis is relieved so as to make the coder more transparent. In the speech decoder, the speech quality of the synthesised speech is en- hanced by using a post-filter. When applied on speech with background noise, the post-lilter decreases the transparency. Therefore, when operating under speech with background noise, post-filtering is not applied. The presence of background noise is estimated from the synthesised speech, saving additional signalling. CHANNEL CODER Prior to transmission of the speech bits, the channel coder adds redundancy such that transmission errors can be corrected. Besides, two other types of infor- mation have to be communicated between mobile and base station, namely the 136 rate allocation and the channel quality estimate (see Figure 2). The rate alloca- tion is communicated via the so called RA (Rate Assignment) bits. These bits are protected with a separate code, which is spread over 2 frames to reduce the amount of overhead per frame. The receiver (mobile or base station) decodes this code first in order to extract the rate allocation. There are 2 RA-bits encoded in a code word, such that 4 rate allocations can be addressed in a particular traffic channel. The channel quality estimate is also transmitted in two frames (1 bit per frame) to minimise overhead. A small number of speech bits can be left unprotected. Most of the bits however, are protected by a channel code. An 8-bit Cyclic Redundancy Check (eRe) is added to a frame in order to detect the erroneous decoding of a frame. The eRe covers most of the speech bits and the channel quality estimate bit. The unprotected speech bits are not covered by the eRe. The eRe-covered speech bits, the channel quality estimate bit and the eRe bits themselves are encoded with a single channel code. In order to enable efficient (near-) Maximum Likelihood (ML) decoding, convolutional codes are used [8]. To avoid the overhead due to zero-tailing, we use tail-biting convolutional codes. As a compromise between decoding complexity and performance, a 32-state encoder is deployed. The codes are tailored to the appropriate coding rate by using puncture tables [7]. A Viterbi decoder is used for decoding the tail-biting convolutional codes. Due to the tail-biting construction, start and end states are the same and the decoder has no information about this state. So, an ML decoder has to try all possible states, resulting in decoding the received frame 32 times. Since valid code words can be represented as closed paths in the circularly folded code trellis, the received word can be circularly extended. The employed decoder does this extension for a small fraction of the received word. The circularly extended word is decoded once by a Viterbi decoder using dedicated choices of begin and end states, resulting in a significantly reduced decoding complexity compared to ML decoding. Although the decoding is suboptimal, experiments have shown that the loss in performance is negligible. ADAPTATION SYSTEM The 4 rate allocations for each traffic channel are listed in Table 2. The results of listening tests conducted with the specified rates are shown in Figure 4. If the adaptation system selects the coding rate with the highest speech quality 137 TCH/HR TCH/FR Speech (kbiu/s] R (ECC) Speech (kbit/s) R (ECC) 5.5 1/2 5.5 1/4 7.0 5/8 8.1 3/8 8.1 3/4 9.3 3/7 9.3 6/7 11.1 1/2 Table 2: Rate allocation. MOS MOS TCH/FR TCH/HR ..! . - _ - - ->:.....:;- .... C/I CII No errors 19 dB 16 dB 13 dB 10 dB 7 dB 4 dB No errors 19 dB 16 dB 13 dB 10 dB 7 dB 4 dB Figure 4: Listening tests results. for each channel condition, the quality of the AMR system in TCH/FR for poor channel conditions is better than EFR. In TCH/HR, the quality of the AMR system in case of optimal allocation of rates compared to the FR coder is better for good channel conditions and slightly worse for poor conditions. Measuring the channel quality was a difficult task. A good indicator for the channel quality is the bad frame rate. The detection of a bad frame can be done reliably using the CRC. However, estimating the bad frame rate in this way requires a considerable observation time, resulting in a slow response to rapidly changing channel conditions. It is desirable to have a channel quality indicator which is near-instantaneous for tracking these changes. The minimum metric difference (MMD) [6], used in the AMR system, is one such measure. The MMD is obtained from the Viterbi decoder, where the metric of the most likely code word is tracked. When the second most likely code word has a metric which is close to the metric of the most likely word, the decision is unreliable, while a large metric difference indicates a reliable decision. By definition the metric difference between the best and the second best code word is the MMD. The calculation of the MMD is efficiently combined with the 138 Add-Compare-Select operations of the Viterbi decoder. Prior to transmission, the MMD is low-pass filtered and quantised using 2 bits, where one bit is transmitted per frame as the channel quality estimate. Specific channel conditions and a given channel code result in typical values for MMDs. Figure 5 shows the MMD distribution for a C/I of 4, 7 and 10 dB in TCH/FR with a channel coding rate of 3/8. A clear distinction between the various channel conditions can be made. 60r-----T_----~----~----~----~------~----T_--__. 4 dB 7 dB 10 dB 50 800 Figure 5: Distribution of MMD values for various channel conditions. Listening tests with dynamically changing channel conditions support the MMD to be a reliable and an effective metric for measuring the channel qual- ity. These tests also showed that the AMR system has a better speech quality than the EFR coder in TCH/FR, thereby showing that the adaptation system is functioning desirably. The speech quality of the AMR system in TCH/HR, under channel conditions with C/I > 13 dB, has been judged superior in quality to the FR coder, which uses twice the gross bit rate. In cases where the C/I ratio becomes low, the quality of the FR coder is rated higher. CONCLUSIONS Using the AMR concept it is possible to offer graceful degradation. While the system is vulnerable in circumstances where the channel quality changes faster than the response time, it does give a clear overall improvement. Further, the proposed system outperforms the EFR coder in TCH/FR. However, the require- ments set in TCH/HR could not be met. For worse channel conditions (i.e. C/I < 139 10 dB) a proteetion with rate 1/2 was found to be insufficient. Listening tests and real-time simulations showed, however, that a graceful degradation is achieved up to 4 dB CII in TCH/FR in contrast to the 10 dB CII for the current EFR and FR coders. In TCH/HR, a higher speech quality compared to the FR coder is possible down to 13 dB CII. The real-time system will be demonstrated at the symposium. REFERENCES [1] P. Vary, R. Hoffman, K. Hellwig and R. Sluijter, A regular-pulse excited linear predictive code. Speech Comm., Vol. 7, no. 2, pp. 1054-1063, 1988. [2] K.Järvinen, et al., GSM Enhanced Full Rate Speech Codec, Proc. Int. Conf. on Acoustics, Speech a.nd Signal Proc., Munich, pp 771-774, 1997. [3] P. Kroon, Evaluation of Speech Coders, Cha.pter 13 in Speech Coding and Synthesis, W.B. Kleijn and K.K. Paliwal (editors), Amsterdam, Elsevier, pp. 467-494, 1995 [4] M.R. Schroeder and B.S. Atal, Code-excited linear prediction (CELP): high quality speech at very low bit rates. Proc. Int. Conf. on Acoustics, Speech and Signal Proc., Tampa, pp. 937-940, 1985. [5] P. Kroon, E.F. Deprettere and R.J. Sluijter, Regular-pulse excitation - A novel approach to effective and efficient multipulse coding of speech, IEEE Trans. on Acoustics, Speech, and Signal Proc., Vol. ASSP-34, no. 5, pp. 1054-1063, 1986. [6] A decoding and bad frame detection algorithm for TCH/HR. Annex C of ETSI document ETS 300 575:1994 (GSM 05.03). [7] I. E. Bocharova and B.D. Kudryashov, Rational Rate Punctured Convolu- tional Codes for Soft-Decision Viterbi Decoding. IEEE Trans. on Information Theory, Vol. 43, No. 4, pp. 1305-1313, 1997. [8] A. Dholakia, Introduction to Convolutional Codes with Applications. Boston, Kluwer Academic Publishers, 1994. 140 LINEAR FEATURE TRANSFORMATIONS BASED ON MeE AND MMI Kris Demuynck and Patriek Wambacq Katholieke Universiteit Leuven, ES AT -PSI Kard. Mereierlaan 94, B-3001 Heverlee, Belgium Kris.Demuynck~esat.kuleuven.ac.be This paper describes an alternative to the commonly used linear discrimi- nant analysis (LDA) for finding linear transformations that map large fea- ture vectors onto smaller ones while maintaining most of the discriminative power. The main problem with LDA is that it over-simplifies the situa- tion by condensing all class information into only two scatter matrices, thereby losing important information on the individual class distributions. We therefore propose a new set of methods, based on the mutual informa- tion or minimum classification error paradigm, which take all information on the individual class distributions into account while searching an optimal sub-space, thus avoiding the crude approximations done by LDA. Experi- ments show that the proposed schemes provide more discriminative feature sets, leading to better classification results. INTRODUCTION The performance of a pattern classifier strongly depends on the input fea- tures: to obtain a good performance the feature vector needs to be both highly discriminative and compact. Linear discriminant analysis is a frequently used data-driven method to find linear transformations that map large feature vectors onto smaller ones with minimal loss in class discrimination according to some criterion. Linear discriminant analysis (LDA) [1] thus searches for a linear trans- formation T : x -+ y, nq -+ nT which maps a q dimensional input vector x onto a lower dimensional vector y = Tx while retaining the maximum amount of class discrimination information. In order to do so LDA needs the individ- ual conditional class density functions f(xlci) and the a-priori class probabilities Wi ~ P(Ci) for all Ne classes. In that, LDA assumes that each class density func- tion f(xle;) can be adequately modelled with a single multi-dimensional gaussian N(X;·J1i, ~i). Next this information in condensed in two scatter matrices: (1) the within class scatter matrix ~w = L Wi~i and (2) the between class scatter 141 matrix ~b = 2: Wi(p,-i - p,)(P,i - p,)', with p, = 2: WiP,i, or alternatively the over- all scatter matrix ~t = ~b + ~w. LDA then maximises the ratio of the overall variance to the within class variance. It can be shown that a solution to the above equation can be found by solving the generalised eigenvalue problem ~b V = ~w V/:::,. with /:::,.a diagonal matrix containing the eigenvalues of ~;;;1~b. The r eigenveetors corresponding to the r largest eigenvalues then make up the rows of matrix T. The generalised eigenvalue decomposition can also be seen as a cascade of two eigenvalue decompositions, giving a more intuitive insight into what LDA does. A first transform Tl converts the feature vectors so that the average within class scatter matrix ~:,;) = Tl ~wT{ equals the identity matrix. A second transform T2 then looks for the principal axes of the transformed between class scatter matrix ~bT) = Tl ~bT{, thus maximising the average distance between the class means p,r) while assuming an identity scatter matrix for all classes. The problem with LDA is that it condenses all information into only two scatter matrices. The solution found by LDA is a good solution on average over all problems with the same two averaged scatter matrices, but the solution may not be particularly good for a specific case. See figure 1 for some examples where LDA fails to find a good solution. Heteroscedastic discriminant analysis (HDA) [2, 3] improves upon LDA by also incorporating the individual scatter matrices into the optimisation. The individual class means are however still ignored. HDA is based on the observa- tion that LDA can also be derived as a maximum likelihood (ML) method for normal populations with different means and common covariances [4]. In the ML approach we have to look for a transformation matrix T: x -+ y, Rq -+ Rq and model parameters p,;y) and ~(y) (or ~;y) in the case of HDA) that maximise the likelihood of the training data when evaluated in the original - non transformed - x domain. The model parameters that correspond to the last q - relements in the transformed domain are shared among all Ne classes, this way forcing as much class specific information as possible into the first r parameters. HDA outperforms LDA if the classes have different covariances (heterosced- asity). HDA for example finds the optimal solution for the situation depicted at the left side of figure 1 while LDA fails, If all classes have the same covari- ance, HDA finds the same solution as LDA. HDA thus still fails on the situation 142 depicted at the right side of figure 1. Reason for this failure is the maximum like- lihood criterion used in HDA: maximum likelihood does not directly target the most discriminative sub-space, good discrimination between classes is only a sec- ondary effect, as demonstrated by the fact that maximum likelihood optimisation still ignores vital clues like the individual class means. Figure 1: Even in simple cases LDA may fail to find a good solution. Each ellipse is the contour-line of a two dimensional gaussian. The dashed line shows the principal axis found by LDA and the projected class distributions. The dot- dashed curves show the solution found by the MMI-approximation. APPROXIMATION OF THE MMI AND MCE CRITERION Both LDA and HDA are sub-optimal because the criteria used - ratio of variances and maximum likelihood - are inadequate. In an effort to remedy this we have chosen to at least start with an adequate criterion while making concessions in the evaluation if necessary. The two criteria explored in this paper are mutual information and minimum classification error (MeE). As for the conditional class density functions f(xlci), we no longer assume a normal distribution but allow any mixture of gaussians. Suppose we have a set of Ng gaussians for the Ne classes, then the class density functions can be expressed as follows: Ng f(xlci) = L ÀijN(x; Mj, ~j) j=l and Ng f(x, e;) = L wijN(x; Mj, ~j), j=l 143 This formulation allows for one specific gaussian per class (cf. LDA) as well as for gaussian mixtures with or without shared gaussian. Mutual information: The class density functions in the original q dimensional space contain all available information on the classes. If we want to reduce the dimensionality of the feature vector with minimal loss of information on the actual class densities, then the transformed density functions should resemble the original density functions as good as possible. In other words, the distance between the original and the transformed density functions should be minimal. Using the Kullback Leibler distance measure [5], following results were obtained: I ) 1 Ne ( Ci X D(p(CIX)llp(CIY = TX)) = nq L P f(Ci, X) 10g2 (I -T ) dx i=l P Y- X, X r ~ r ~ = Jnq ~ f(Ci' X) 10g2(p(cilx)) dx - Jnq ~ f(Ci' X) 10g2(p(cily=Tx)) dx r L = JT. ~ f (c., x) 10g2 (p( c, Ix)) dx - JT.r L ~ f(Ci, y) 10g2(p( cily)) dy T nq i=l n i=l = H(CIY) - H(CIX) Finding a transformation T : Rq -+ RT that minimises the Kullback Leibler distance is thus equal to finding a transformation that minimises the conditional class entropy [5] H(CIY). As X uniquely determines y (y = Tx) we can also write: D(p(CjX)llp(CIY)) = H(CjY) - H(CIX, Y) = I(C; XjY) The transformation thus also has to minimise the conditional mutual informa- tion [5] I(C; XjY), i.e. the original feature vector x should provide minimal ad- ditional information on the classes on top of the reduced feature vector y. The conditional entropy H(CjY) can be expressed as a function of the class density functions as follows: If we assume that the gaussians are highly localised functions (cf. Dirac impulses), 144 then we can move the term N(y; J.Lj, I:j) into the logarithm and into the fraction: With O( i, j) an overlap measure between gaussians i and j: and The gaussians are of course only moderately well localised, so a rather crude approximation is done. This is especially true when a large gaussian is moved into the logarithm. To compensate a bit for this mismatch, we replaced the overlap measure with a normalised variant O'(i,j), showing better results for heteroscedastic problems: This normalised overlap measure was used in all further evaluations. Note that the overlap measure is invariant with respect to linear transformations, thereby making the whole criterion invariant to linear transformations. Minimum classification error: If a minimum number of classification errors is of prime interest, then MCE is the optimal criterion. As opposed to the mu- tual information criterion, MCE does not provide optimal density functions, so confidence measures (e.g. the rate of confusion with the second best class) or any other measure that depends on the actual values of the density functions are less reliable. Using the same approximations as with mutual information, following 145 expression is obtained: Err(CIY) = 1- hTr max{J(y, Ci)} dy = 1 - hTr f(y) max{ ff(Y(' YC)i)} dy I I ~ 1_ ~ W. {L:~!.l WikO(j, k) } ~ L Jmax N g . j=l I L:k=l WkO(J, k) In our implementation we made one more approximation: as we only use mixtures of gaussians with class specific gaussians (no sharing), we assumed that the best class i is the class corresponding to gaussian j. This way, the maximum operator could be removed, resulting in a smoother function which is easier optimise. Implementation: As we were unable to find a closed form solution for either the MCE or the mutual information criterion, we resorted to numerical opti- misation techniques. The multidimensional optimisation was converted into a sequence of uni-dimensional optimisations by splitting the transformation matrix T in a sequence of elementary Givens rotations: T = 8n··· 8281. Each rotation swaps information between one of the r first vector components and one of the q-r last vector components. All possible pairs of vector components are repeatedly handled, until global convergence. There is no need to check non orthonormal transformations or internal rotations between the first r vector components be- cause the overlap measure O( i, j) is invariant to linear transformations. A good starting point for the optimisation is the LDA transformation matrix. The most costly operations in the evaluation of both criteria are the matrix inversions and the determinants of the covariance matrices. Covariance matri- ces are symmetric and positive definite, and canbe handled twice as fast as full matrices by using a decomposition in the form L: = L x L', with L a lower tri- angular matrix. Despite our effort to speed up the calculations, the optimisation remains slow for large problems. This due to the quadratic dependency of the cornplexity with the number of gaussians Ng and the r(q - r) dependency with the dimensionality of the input and target feature vectors. EVALUATION ON A SPEECH RECOGNITION TASK Evaluations on small artificial problems like the ones shown in figure 1 clearly demonstrate the benefits of our new approach over LDA and HDA. We also eval- uated our approach on a complex classification problem, namely speech recogni- tion [6]. Current speech recognisers are firmly based on the principles of statistical pattern recognition [7]. The task of a speech recogniser in such a statistical 146 framework is to find the most likely sequence of words given the acoustic signal. The recogniser therefore relies on statistical models for the knowledge sources in- volved in speech recognition: acoustic models, language model and pronunciation models. We focused on the acoustic models. Words in a recogniser are modelled as a sequence of basic sounds (phones) which are in turn modelled as a sequence of states in a hidden Markov model (HMM). The task of the acoustic models is to determine the probability of all states for a given acoustic feature vector. We applied different feature reduction techniques to simplify the acoustic models. The feature vectors used in speech recognition consist of a set of cepstral co- efficients with their first and second order time derivatives calculated every 10ms. Adding the derivatives allows us to model non stationary events in the states. The inverse cosine transform (IDCT) that converts the spectral coefficients into cepstral coefficients is an ad-hoc method that is - based on some physical consid- erations - expected to concentrate all relevant information in the first coefficients. We replaced the IDCT with the transformation matrices obtained by LDA and by the proposed (minimum) mutual information (MMI) criterion. As input fea- tures we took all spectral coefficients augmented with their time derivatives. As classes we used the 139 HMM-states (46 phones with 3 states, and one silence state). Each class was modelled with one full covariance gaussian for calculat- ing the transformation matrix, and with a mixture of shared diagonal covari- ance gaussians in the final acoustic models. The MMI criterion was preferred to MCE because the goodness of a speech recognition system is judged based on the number of word errors. Thus errors in the classification of states are not really important, as long as the cumulated state probabilities over a word are accurate. nr. of word error rate/state perplexity/state error rate parameters mCT LDA MMI 9 12.52/5.02/59.43 12.23/5.18/57.61 9.92/4.50/56.52 16 8.33/3.11/52.96 7.58/3.15/51.67 6.94/2.86/51.30 25 6.29/2.38/49.74 6.21/2.40/48.93 5.66/2.26/49.10 39 5.88/1.95/48.26 6.09/1.95/47.49 6.00/1.88/47.94 Table 1: Results on the ARPA RM test-sets (feb89 + oct89 + feb91 + sep92) with the standard Word Pair Grammar (context-independent modelling). Table 1 shows the results obtained on the ARPA Resource Management speech recognition task. The first number is the percentage of misrecognized words, the second number is the state perplexity, and the last number is the state error rate. The perplexity equals 2-H(CIY) and can be interpreted as the number of equiprobable choices that would give rise to the same entropy. The 147 state perplexity and state error rate are calculated on the training data-base and are in fact the quantities that are to be minimised by the MMI and MCE cri- terion respectively. The substantial decrease in perplexity and word error rate demonstrates the effectiveness of the proposed method, and shows that the ap- proximation involved in the evaluation of the mutual information criterion does not really harm the optimisation. CONCLUSIONS In this paper we described an alternative to the commonly used linear dis- criminant analysis for finding linear transformations that map large feature vec- tors onto smaller ones while maintaining most of the discriminative power. We showed that LDA and HDA are inadequate in some situations, and showed that the main reason for this failure are the criteria on which LDA and HDA are based. We then introduced a new set of methods based on more powerful crite- ria like mutual information and minimum classification error, and showed that these criteria can be converted, with some approximations indeed, to cost func- tions that can be numerically optimised. Evaluations on small artificial problems clearly demonstrated the benefits of the new approach. The new approach also performed substantially better than LDA when applied to a speech recognition task. Drawbacks of the new method are the approximations involved in the eval- uation of the cost functions, and the complex numerical optimisation needed to solve the problem. REFERENCES [1] R.O. Duda and P.E. Hart. Pattern Classification and Scene Analysis, pages 114-121. John Wiley & Sons, 1973. [2] N. Kumar. Investigation of Silicon-Auditory Models and Generalization of LDA for Improved Speech Recognition. PhD thesis, John Hopkins Univ., 1997. [3] N. Kumar and A.G. Andreou. Heteroscedastic discriminant analysis and re- duced rank HMMs for improved speech recognition. Speech Communication, 26( 4) :283-297, December 1998. [4] N.A. Campbell. Canonical variate analysis - a general formulation. Australian Journalof Statistics, 26:86-96, 1984. [5] T. Cover and J. Thomas. Elements of Information Theory. John Wiley & Sons Inc., 1991. [6] S. Young. A review of large-vocabulary continuous-speech recognition. IEEE Signal Processing Magazine, pages 45-57, September 1996. [7] F. Jelinek. Statistical Methods for Speech Recognition. MIT Press, Cambridge, Massachusetts, 1997. 148 GENERALIZATION CAPACITY OF NEURAL NETWORKS FOR THE CLASSIFICATION OF OVARIUM TUMOURS E. Lerouge, S. Van Huffel Katholieke Universiteit Leuven, div. E.S.A.T.-SISTAjCOSIC K.Mercieriaan 94, B-3001 Heverlee, Belgium Ellen.lerouge~esat.kuleuven.ac.be A n experienced surgeant is able to make a prediction about the malignancy of an ovarium tumour by means of the presented medical information (such as medical images, morphology and demographic features). To support this classification process, we try to automate the prediction by means of a super- vised neural network. A neural network is able to deduce unknown relations from the data by means of its learning capacity and to generalise towards unseen cases (not presented in the training set). Therefore, it is suited for this biomedical classification task. To obtain a good generalization, large amounts of data have to be presented to the neural network. Unfortunately, we only have a small data set at our disposal, such that the risk of memo- rising the examples in the training set increases. This phenomenon is called overtraining. Since a wrong diagnosis has very strong consequences on the welfare of the patient, the generalization capacity of the network has to be examined thoroughly. We will study two techniques to avoid overtraining: early stopping and regularization. INTRODUCTION A reliable classifier for preoperative discrimination between benign and ma- lignant ovarium tumours would be of considerable help to clinicians. It would assist them to select patients for whom minimally invasive surgery or conserva- tive management suffices versus those for whom urgent referral to a gynecologic oncologist is needed. There have already been several attempts to automate the classification pro- cess, such as the risk of malignancy index and logistic regression [1]. In this paper, we will make use of a new type of classifier based on a supervised neural network. Neural networks have already been succesfully applied for diagnosis in the biomedical area. The reason for their success lies in the learning capacity to 149 extract unknown relationships from the data and the generalization possibility towards unseen cases. As opposed to logistic regression, a neural network is able to make a nonlinear classsification. The most important unresolved problem in practical applications 'of feed- forward neural networks is how to determine the appropriate complexity of the network, in order to avoid overtraining. In this paper, two techniques are pre- sented to overcome overtraining and their better performance is confirmed via simulation results. METHOD The neural network design and training The most commonly used neural network structures for classification tasks, such as the discrimination between benign and malignant tumours, are multilayer feedforward networks. As illustrated in figure 1, these networks have a layered archiieciure: the information enters the network in the input layer, is fed forward into the hidden neuron layers where it is processed to result in the output layer. Given a certain architecture, the interconnection weights and biases parametri- cally deterruine the functional dependence. of the output from the input. The functional dependency, we use in the simulations is given in figure 1. Input Layer Layer of hidden neurons CAI25 Output neuron Probability of ca neer a( z) = ]+~-z RI m = number of inputs Bilateral mass nh = number of hidden units Figure 1: A supervised multi-layer feedforward neural network with one hidden layer There is a discrepancy between the output of the classifier Yk and the desired output di: Adjusting the weights and biases via examples of correct classification, so as to minimise this discrepancy in an iterative process, is referred to as super- vised learning. To measure the discrepancy, the cost fucntion is often chosen to 150 be the squared difference between the desired output dk and the actual response Yk, averaged over all N samples, J(B) = -'R 'Lr:=l (dk - Yk(B))2. If enough examples are available and if appropriate learning methods (Sim- ulated annealing [2]) are used, the output of the overall neural network can be trained to approximate e.g. the a posteriori probability of malignancy given the clinical data of patients. Overtraining During learning, the outputs of a supervised neural net approximate the target values better and better given the inputs in the training set. This ability may be useful in itself, but more often the purpose of using a neural net is to generalize (e.g. the outputs of the net must approximate the target values as closely as possible given inpu ts that are not in the training set). Generalization is not always possible. There are several conditions that are typically necessary for good generalization. The inputs to the network have to contain sufficient information pertaining to the target. The network can not learn a nonexistent function between inputs and outputs. Moreover, the training cases have to be a sufficiently large and representative subset of the set of all cases that you want to generalize to. Cases outside the range of the training data or cases inside large 'holes' in the training data require extrapolation. It is important to have sufficient training data to avoid extrapolation, since it is often unreliable. Even if generalization is possible, neural networks do not automatically gen- eralize. A general rule of thumb is that a network, which is too complex for the available number of examples will easily become overtrained and therefore will have a poor generalization capacity. However, if the network is not complex enough, it will not have a good learning capacity and the test results will be equally suboptimal. There are basically two ways to avoid overfitting: reducing the number of dimensions of the parameter space (e.g. greedy constructive learn- ing, pruning or weight sharing) or reducing the effective size of each dimension (e.g. early stopping or regularisation such as weight decay). In this paper, we will use the second approach, namely early stopping and regularization. Stopped training [4] is the most common solution to the problem of over- fitting. The training of non-linear network models corresponds to an iterative reduction of the error function defined with respect to a set of training data. 151 During a typical training session, the error with respect to the training set de- creases as a function of the number of iterations. The error with respect to an independent test set often shows a decrease at first, followed by an increase as the network starts to over-fit. Early stopping aims to achieve a good generalization by terminating the training when the error on the test set starts to increase again. test-set training-set # iterations Figure 2: Overtraining in a neural network: the error in the training set decreases monotonically, while the error in the test set starts to increase after a number of iterations The technique of regularization [4] favors smoother network mappings by adding a penalty n to the error function E = E + l/n, with 1/ a parameter called a regularisation coefficient which controls the model complexity. One of the simplest forms of regularizer is called weight decay and consists of the sum of the squares of the adaptive parameters n = ~llwl12, where w denotes the vector of all weights and biases in the network. It has been found empirically that a regularizer of this form can lead to significant improvement in network generalization. This is illustrated for the particular case of a quadratic error function E = Eo + Hw - w*V H(w - w*) for which the relationship between the original and the regularized error functions is Àj * Wj = ---wo Àj + 1/ J' [4] with Àj the eigenvalues along the principal directions of the quadratic error surface, w' the minimum of the error function without regularization and W the minimum of the error function with regularization. Along those directions in which the corresponding eigenvalues are relatively large (Àj » 1/), the minimum 152 of the error function is shifted very little. Conversely, along directions for which the eigenvalues are relatively small (Àj « v), the corresponding components of the minimum weight vector are suppressed. Thus only those directions for which Àj » v contribute significantly to fitting the data, with the weight vector components in remaining directions being set to small values by the regularizer. The quantity _ '" Àj 'Y-L..À·+v' J defines the effective number of parameters in the model. Clearly as v is increased, the effective number of parameters is reduced. We can demonstrate a relationship between early stopping and regularization for the case of a quadratic error function. Suppose the initial weight vector w(O) is chosen to be at the origin, and is updated using simple gradient descent W(T) = W(T-l) - 'f/L':!.E, where T denotes the step number and 'f/ the learning rate. One can deduce the following relationship between the original and the regularized error functions: wJ ~ wj when x;» ('f/T)-l IwJI«Iwjl when x;«: ('f/T)-l This proves that regularization and early stopping lead to similar solutions and the quantity ('f/T)-l is analogous to the regularization parameter v. Evaluation The most commonly used method for estimating generalization error in neural networks is to reserve part of the data as a test set, which must not be used in any way during training. In the case of the classification of ovarium cancers however, the availability of labelled data is severely limited so that we can not afford to keep part of the data set for model comparison purposes. Cross validation allows us to use all of the data for training. In k-fold cross-validation, we divide the data into k subsets of equal size. We train the network k times, each time leaving out one of the subsets from training, using only the omitted subset to compute whatever error criterion interests you. Finally, the test errors are averaged over all k results. To make an objective validation of the performance of the different classifiers (with and without complexity control), we will use the Receiver Operating Char- acteristic as test criterion. The ROC-curve [5J plots the percentage of correctly 153 classified of malignant tumours (sensitivity), versus the percentage of false pos- itives (Ybenign > T)(specificity) for varying values of the threshold T. The area under the ROC-curve is a one-value measure of the accuracy of the classifier. The higher this area, the better the classifier. Moreover, this criterium is independent of the fraction of malignant samples in the population. Also for the clinician, it is an interesting criterium. A clinician is not interested in the averaged de- viation from desired numbers, but thinks in terms of percentages found, missed or misclassified. The threshold is not fixed, so he can chose a specific thresh- old corresponding with a certain sensitivity and specificity. To compare different classifiers, we need to compare the area under the ROC-curves in a statistical way [6], based on az-test. SIMULATIONS Inputs and architecture The data were derived from a study group of 173 patients of which 124 pa- tients had a benign tumour and 49 patients had a malignant tumour. Several indicators such as demographic, serum marker, color Doppler imaging and mor- phologic indicators were considered. It is beyond the scope of this paper to give a complete description of the meaning of the different indicators that are used. We refer the reader to [1] for a more detailed explanation. The continuous in- puts were standardised by subtracting their mean and dividing by their standard deviation. Binary valued inputs were left unchanged. The desired output was labeled 0 for benign samples, 1 for malignant cases. Since the training set is not large, there is a risk of overtraining. We have already mentioned two approaches to avoid overtraining: reducing the number of dimensions of the parameter space and reducing the effective size of each dimension. We will limit the number of hidden neurons to nh = 5. Then we will use early stopping and regularization to avoid overtraining even more. Training We first performed an input selection [8] to determine the most important features. We retain 5 features (log(CAI25), Papillations, Smooth wall, Resistance index, Bilateral mass and Ascites). The neural networks consist of 5 hidden neurons, 5 inputs and 1 output. The parameter vector () is randomly initialised (zero mean Gaussian distribution, 154 standard deviations a = 0.01). Training is done using Simulated annealing. The cost-function to be minimised is the mean squared classification error. In order to bias the accuracy towards malignancy, a design parameter À is introduced. By taking À = t in this expression, the role of malignant examples is more emphasised. Results In a first neural network (NNI), we do not care about overtraining and do not apply early stopping, nor regularization. In a second neural network (NN2), we try to overcome overtraining by applying early stopping and in a third neural network (NN3) we make use of an extra regularisation term. The performance of the second and third neural network are represented in table 1, respectively in function of the number of iterations and in function of the value of the regular- ization constant {}. # iterations ROCtraining ROCtest o ROCtraining soc.;; 50 96.20 95.40 0 98.17 95.25 100 97.45 96.13 0.2 97.29 98.02 200 97.40 97.93 0.4 97.15 97.10 500 98.00 95.10 0.8 96.60 92.99 Table 1: Results (left) early stopping and (right) regularization For the first neural network (NNI), the ROC-curve spans about 95.25% of the total square area of the plot, whereas with early stopping (NN2) and regular- ization (NN3) it spans respectively 97.93% and 98.02%. Table 2 states the results of the statistical analysis. There is a significant difference between training with and without complexity control. A significant difference between early stopping and regularization was not found. REFERENCES [1] D. Timmerman, "Ultrasonography in the assessment of ovarian and 155 class! versus class2 z-value p-value NNI versus NN2 3.6678 < 0.003 NNI versus NN3 4.0124 < 0.003 NN2 versus NN3 1.3372 = 0.1817 Table 2: The influence of early stopping and regularization tamoxifen-associated endometrial pathology", Katholieke Universiteit Leu- ven, Dienst Verloskunde en Gynaecologie,1997 [2J Mathworks Inc., "Optimisation tooibox User's Guide", Mathworks Inc., 1992 [3J Mathworks Inc.," Neural Network tooibox User's Manual", Mathworks Inc., 1992 [4J C. Bishop, "Artificial neural networks for pattern recognition", OUP, Oxford, 1996. [5J J. A. Hanley and B. J. McNeil, "The meaning and Use of the Area under a Receiver Operating Characteristic (ROC) Curve", Radiology, Vol. 143, no. 1, p. 29-36, 1982 [6J J. A. Hanley and B. J.McNeil, "A Method of Comparing the Areas under Receiver Operating Characteristic Curves Derived from the Same Cases", Radiology, vol. 148, no. 3, p. 839-843, 1983 [7J S. Haykin, "Neural networks", Macmillan College Publishing Company, New York, 1994. [8J H. Verreist, J. Vandewalle, B. De Moor, "Bayesian input selection for neu- ral network classifiers", Katholieke Universiteit Leuven, Departement Elek- trotechniek, 1998 156 GENERALIZED MOMENT INVARIANTS FOR VIEWPOINT AND ILLUMINATION INDEPENDENT COLOR PATTERN RECOGNITION F. Mindru, T. Moons, and L. Van Gooi- Katholieke Universiteit Leuven, E.S.A.T. / PSI K. Mereierlaan 94, B-3001 Heverlee, Belgium Florica.Mindru~esat.kuleuven.ac.be New invariant features are presented that can be used for the recognition of planar color patterns irrespective of the viewpoint or the illumination con- ditions, and without the need for error prone contour extraction. The new features are based on moments of powers of the iniensiiies in the individual color bands and combinations thereof The paper gives a classification of all functions of such moments which are invariant under both affine de- formations of the pattern (thus achieving viewpoint invariance) as well as affine changes of the intensity values of the color bands (hence, coping with changes in the irradiance pattern due to different lighting conditiotie and/or viewpoints). The discriminant power and classification performance of the new invariants for color pattern recognition is tested on a data set of images of real, outdoors advertising panels. INTRODUCTION This paper contributes to the viewpoint and illumination independent recog- nition of planar color patterns such as labels, postcards, pictograms, etc., which typically have a high pictorial content. Much research has been put into invari- ants for planar shapes under geometrical deformations (see [8, 9J for an overview). For the patterns considered here, the pictorial content usually is too complicated to robustly extract object contours from it. Color information has proven very useful in pattern recognition as well. Much attention has been paid to the il- lumination independent characterization of the color distribution of the pattern [2, 4, .5, 6, 13, 14J. Color histograms, however, do not exploit the spatial distri- bution of the colors within the pattern. Another strand of research has focussed • Wc would like to thank the financial support from the Belgian IUAP4/24 'IMechS' project and the EU Esprit project 20.515 IMPROOFS 157 on moment invariants for greyvalue intensity patterns under different types of geometric and / or photometric changes [3, 11, 12, 15J. A limitation of this ap- proach is that one may have to let grow the order of the moments beyond the point where they remain stable in order to create sufficient discriminant power for the invariants. In [17J it was proposed to use powers of the intensities in the individual color bands and combinations thereof in the expressions for the moments to overcome these problems. The resulting so-called generalized calor moments implicitly characterize the shape, the intensity and the color distribu- tion of the pattern in a uniform manner; and, a broad set of moment invariants can be extracted that never call upon high powers of intensities or spatial coordi- nates. Invariants of such moments for affine transformations of the pattern and linear photometric changes were derived and tested. Under real world conditions, however, photometric changes include significant non-linear effects, especially in the form of offsets in the color bands. This caused the need for normalisation against intensity offset before computing the value of the invariants in [17J. This paper extends the results of [17J by presenting a classification of color moment invariants under full affine transformations of the intensities in the color bands, thus making intensity normalisation superfluous. The discriminant power and classification performance of these new invariants for color pattern recognition is tested on a data set of images of real outdoors advertising panels taken from different viewing angles and under different weather conditions. GENERALIZED COLOR MOMENTS A color pattern can mathematically be represented as a vector-valued function I defined on a region n in the (image) plane and assigning to each image point (.T, y) E n the 3-vector [(x, y) = (R(x, y) , G(x, y) , B(x, y)) containing the RGB-values of the corresponding pixel. The generalized calor moments M::c are defined by 1I1;:C is said to be a (generalized color) moment of order p+q and degree a+b+c. Observe that generalized color moments Mggo of degree 0 in fact are the (p, q)- shape moments of the image region n; and, that the generalized color moments f I · 1 . • î. 0 o (.egree ,VIZ. 1" pq , 11' pq , lV, pq , are Just 100 '1 I0 '1,00 I . t h e (p, q )"-intensity moments 0 f re- spcctively the R-, G- and B-color band. On the other hand, the generalized color 158 moments A1ögc of order 0 are the non-central (a, b, c)-moments of the (multivari- ate) color distribution of the RGB-values of the pattern. Hence, these generalized color moments generalize shape moments of planar shapes, intensity moments of greylevel images, and non-central moments of the color distribution in the image. In this paper, only generalized color moments up to the first order and the second degree are considered. In the sequel they will be called "moments" for short. GEOMETRIC AND PHOTOMETRIC CHANGES The geometrical deformations of the pattern caused by changes in viewpoint are modelled by affine transformations: with lAl = alla22 - a12a21 i- O. This implies that the camera is assumed to be relatively far from the object. This assumption together with the fact that the object is planar can greatly simplify the analysis of the photometric changes. Typically, light sources are far from the objects as well. The geometry of light reflection is the same for all points in that case, i.e. they share the same angles of light incidence and camera viewing direction. The change in camera or light position will then result in an overall scaling of the intensity [10]. Furthermore, the combined effect of diffuse and specular reflection can be modeled by an offset in the intensities [16]. Thus, the photometric changes to be considered comprise scaling combined with an offset for each color band: i.e. K'(x, y) = SK K(x, y) + UK with K E {R, C, B} and 0 i- SK, UK E IR. The combined effect of the geometric and photometric transformations of the moments M::c is given by (M::C)' = Jin [all.T + al2Y + bi JP[ a21·T + a22Y + b2]q [SR R(x, y) + UR t [sc C(x, y) + [ss B(x, y) + u e r abs(IAI) dxdy , ue]b which, after expansion, yields a linear combination of moments of order :S p + q and degree :S a + b + c. The actions of the geometric and photometric changes on the moments come out. t.o commute. Hence, one might first normalize against one type of transforma- tion and then switch to the use of invariants for the other. In [17] a oompromise was made by normalizing against photometric offset and using invariance under 159 affine transformations and photometric scaling. The resulting invariants may look simpler than the ones given here, but the inherent complexity is at least comparable .. In this paper, full invariance under geometric as well as photometric transformations is envisaged. CLASSIFICATION OF THE COLOR INVARIANTS As only moments up to the 1st order and the 2nd degree are considered here, the resulting invariants are functions of the generalized color moments Mgie, !v/fie and Möte with (a, b, c) E { (0,0,0), (1,0,0) , (0,1,0) , (0,0,1) , (2,0,0) , (0,2,0), (0,0,2), (1,1,0) , (1,0,1), (0,1,1)}. The invariants can be classified according to 3 degrees of freedom: the order, the degree and the number of calor bands of the moments involved. To allow maximal flexibility for the user in the choice of the color bands and to ensure the highest possible robustness of the invariants in the classification, the following 2 criteria were used to construct a basis for the moment invariants: (1) Keep the number of color bands as low as possible; and (2) include as much as possible low-order invariants. This results in the following classification which is obtained by Lie group theoretical methods (see e.g. [7]). Theorem 1 (I-BAND INVARIANTS) All geometric/ photometric invariants in- volving generalized calor moments up to the 1st order and 2nd degree in only 1 calor band are functions of the following basis invariant: 2 {M{oM61·M30 - MfoM60M31 - M61 MfoM30 + M61 M60M?0 + M60MfoM31 - M60M61 M?o} SI" = -'---~'-::":""'--"-":__-.:"-.--"''---~_--''.'----=--''.''---:-''''::'':''---':'::''''_'''':''::;-----':'::''''_'''':''::---':'':''''__''''::'::_=-_::_:::'':''''_ - (M30)2 [M60M30 - (M60)2]3 where Afi~. ' stands J'îor either 1I1iOO ~. MOiD ~ or MOOi ~. Theorem 2 (2-BAND INVARIANTS) All geometric/ photometric invariants in- volving qeneralized calor moments up to the 1st order and 2nd degree in 2 of the .'J calor bands are functions of the following 8 basis inoariants: Ot.h order, 2nd degree: I st order, 2nd degree: St2' S?2. 160 2 Mf8 M8} (M88)2 - M?8 M8d M8P M88 - MJP MPd (M88)2 + MJP M8d MP8 M88 +Mg8MPdM8PM88 - Mg8f1.181MP8M88 + 2MdPMPdMd8M88 - 2MPd(Md8)2M8P +2i\-J8{(Md8)2MP8 - 2Mf8M8{ Md8M88 + 2Mf8Md8M8dM8P - 2MdPMd8M8dMP8 Dr2 = ~------------~~~~~~~~--~~~~~~~----~~~--~~--~~~ (M38)4 [M~8M88 - (Md3)2]' [1\18JM88 - (M8d)2] 2 MPJMdP(M88)2 - MPJMd81118PM88 - M8'fMf8(M88)2 + M8'fMd8MP8M88 +M8gMl 8M8PM88 - M8gMdPMP8M88 + 2Ml 8M8lM8dM88 - 2Atf8(M8d)2M8P 1 1 D~2 = ~ +2J1fdP(M8d)2 M?8 - 2M?d Md? 1I18d__ ~ __~~~~~~~~~~ 11188+ 2M?d Md8 M8d M8P - 2M81 Md8 M8d MP8 ~~~~~~~~~~~~~~~=-~~L- (M83)4 [MJ8M88 - (Md8f] [M8~M38 - (M8d)2]· 2 Mld MdP(M88)2 - Mld Md8 A18PM88 - Mdf M18(M88)2 + Mdf Md8 MP8 M88 +MddM18MgPJ,188 - MddMdPMP8M88 + M}8M81Md8M88 - M18MJgM8dM8P +MdPMd8M8dMP8 - MPdMdPMd8M88 + MPd(Md8)2M8P - M81(Md8)2MP8 Dt2 = ~--~~~--~~~~~~~~~~~~~~~~~~--~~~~--~--~~ (M38)4 [M~8M88 - (Md8)2] [M3~M88 - (M8d)2] MfdM81(M88)2 - MldM8dM8PMGG - MdlMPd(M88)2 + »u M8d MP8M88 2 +MdJMPdM8PM88 - Mdd M81 MP8M8g - M18M811l.f8dM88 + Ml8(M8d)2M8P -MdP(M8d)2MP8 Dî2 = ~ __~~~~ __ + MPd MdPM8-d M88 - MPdMd8M8dM8P + M8lMd8M8dMP8 ~~~~~~~~~~~~~~~~~~~~~~~~~L__ (M88)4 [MJ8M88 - (Md8)2] [M8JM88 - (M8d)2] where SI2 is the I-band invariant Spq defined in Theorem 1 and evaluated in the i-th (of the 2) color band(s). Note that the invariants D}2' Dr2 and Dt2 are build of moments involving 1 band only, whereas Dt2 and Df2 also include moments of the form M~~. Theorem 3 (3-BAND INVARIANTS) All geometric/ photometric invariants in- volving generalized color moments up to the 1st order and 2nd degree in all 3 color bands are functions of the [ollounnq 18 basis invariants: (RG) D(RB) D(GB) Ot h or d er, 2 n d negree I : D 02 , 02 , 02 ; eR) s(G) S(B) D1(RG) DI(RB) DI(GB) D2(RB) 1s t oreIer, 2 II d d egree: S 12, 12, 12, 12 , 12 , 12 , 12 , D3(RG) D3(GB) D4(RG) D4(RB) D4(GB) D5(RG) D5(GB) D5(RB) 12 , 12 , 12 , 12 , 12 , 12 , 12 , 12 , where sg'·) and D~~K[,) are the 2-band invariants defined in Theorem 2 evaluated in the color bands I< and L. In particular, every invariant involving all 3 color bands is a function of inuarianis involving only 2 of the 3 bands. RECOGNITION PERFORMANCE OF THE NEW INVARIANTS The usefulness and the discriminant power of these new invariants has been tested 011 it data set of images with real changes in viewpoint and illumination. Color 161 Figure 1: Examples of color images in the data set of advertising panels. 1 I 2 I 3 I 4 I 5 I 6 I 7 I 8 I 9 I 10 I 11 11 mean I .-! 67 0 40 11 7 86 70 88 62 22 0 41 B 87 100 90 100 60 0 90 0 50 89 86 68 C 73 50 80 72 80 93 70 50 75 44 100 72 D 87 67 80 61 93 93 80 25 62 67 86 72 E 80 83 100 72 73 86 67 56 62 62 75 74 F 93 92 100 89 87 79 80 88 62 67 57 81 G 100 92 100 89 93 71 80 75 87 89 86 88 H 100 100 90 100 100 100 100 75 100 100 86 96 Table 1: Recognition rates (in %) of different types of feature vectors. images of different outdoors advertising panels were taken with a betacam camera from various viewpoints at different times of the day and under different weather conditions, Physically different panels representing the same pattern were in- cluded as weiL Figure 1 shows some examples of such images. Recognition of a pattern is performed by means of a nearest neighbour classi- fier based on feature vectors consisting of a number of moment invariants, Since our image data set is medium size (apprmc 100 samplen), the rei.ognitlon perfor- mance of the system is estimated by means of a leave-one-out procedure. For the tests, 11 classes of different patterns were used, each containing 10 to 18 images. The panels were manually cut out from the images. Theoretically, 18 (basis) invariants are available for a complete distinction between the patterns (Theorem 3). But, due to the limited amount of samples and classes, statisti- cally significant conclusions can only be drawn for feature vectors composed of 5 invariants at most [IJ. Therefore, numerous feature vectors combining 3 to 5 invariants were selected and tested. The feature vectors are selected according to the types of the constituting invariants; and, the best performing combinations of invariants are selected by a Principal Component Analysis. As an example, Table 1 shows the recognition rates of 8 of these feature vectors which are representative for the feature vectors used in the test: 162 A - {S(R) S(C) S(B) } E - {S(R) D(BC) D1(RB)} - 12' 12 , 12 , - 12' 02 , 12 , B - - {D(RC) 02' D(RB) 02 , d02CB)} , F - - {S(R) 12' D(BC) 02 ' D1(RB) 12 , D4(RC)} 12 , C- {S(B) D(i3C) D1(BC)} G- {S(R) D(BG) D1(RB) D4(RC) D2(RG)} - 12' 02 , 12 ' - 12' 02 , 12 , 12 , 12 , D - - {S(C) 12' D(BC) 02 , D1(BC)} 12 , H - - {D(RC) 02' D(RB) 02 , d02BG) , D1(RC) 12 , D4(RG)} 12 . The columns in Table 1 (numbered from 1 to 11) give for each pattern the number (in %) of corresponding images in the data set that are correctly recognized by the given feature vector. The average performance of each vector over all the 11 different patterns is indicated in the last column. The outcome of the experiments is discussed in more detail in the subsequent section. Recognition performance on real data First, the recognition rates of the 2-band invariants in Theorem 2 were investi- gated by considering the feature vectors formed by applying every invariant to each (combination of the) color band(s) (cf. A and B in Table 1). The average recognition rate of the different triplets ranges from 41% to 68% correct matches. Taking combinations of 3 different invariants (cf. C, D, E in Table 1) improves the recognition performance. Their average recognition rates now vary between 55% and 76%. Feature vectors C and D are examples of combinations of 3 differ- ent invariants but applied to only 1 pair of color bands. Note that they perform better than the best triplet formed with the same type of invariant, viz. B. Fur- thermore, it is important to observe the differences in the recognition rates of C and D on individual patterns, although they only differ in one component and have the same average recognition rate. This proves that each invariant captures different characteristics of a color pattern. When taking combinations of 3 differ- ent invariants applied to different combinations of the color bands, the average recognition rates are still improving, as can be seen from E in Table 1. One reason for having a better performance when using all 3 bands is that these fea- ture vectors cope better with correlations between the bands. Therefore, the best way of capturing the information contained in all 3 bands in a uniform manner is t.o use "symmetric" groups of invariants, which are evaluated on the 3 bands and combining different types of invariants. Finally, increasing the length of the feature vectors significantly improves the recognition rate as well, as can be seen from E, F and G in Table 1. The best recognition performance for the given data set with a feature vector of length less than 6 is obtained by the invariant vector H in Table 1. Its average recognition rate is 96%. Hence. acceptable rccognition rates can he obtained with only 5 of the 18 basis invariants in Theorem 3. Using 163 all 18 invariants is expected to make these new invariants well suited for use with large data sets. REFERENCES [1] R. O. Duda, P. E. Hart, Pattern classification and scene analysis, John Wiley, 1973. [2] G. Finlayson, B. Schiele, J. Crowley, Comprehensive colour image normalisation, Proc. ECCV '98, LNCS 1406, Springer, 1998, pp 475-490. [3] .1. Flusser,T. Suk, Pattern recognition by affine moment invariants, Pattern Recog- nition, Vol. 26 (1993), pp. 167-174. [4] D. Forsyth, A novel algorithm for color constancy, lJCV 5 (1990), pp. 5-36. [5] B. Funt, G. Finlayson, Color constant color indexing, IEEE Trans. PAMI, Vol. 17 (1995), pp. 522-529. [6] T. Gevers, A. W. M. Smeulders, A comparative study of several color models for color image invariant retrieval, Proc. Intern. Workshop on Image Database and Multimedia Search, 1996, pp. 17 - 23. [7] T. Moons, E. Pauwels, L. Van GooI, A. Oosterlinck, Foundations of serru- differential invariants, lJCV, Vol. 14 (1995), pp. 25-47. [8] J. L. Mundy, A. Zisserman A (eds.), Geometric invarianr.e in computer vision, MIT Press, 1992. [9] J. L. Mundy, A. Zisserman, D. Forsyth (eds.). Applications of invariance in com- puter vision, LNCS 825, Springer, 1994. [10] M. Oren, S. Nayar, Seeing beyond Lambert's law, Proc. ECCV '94, LNCS 800, Springer, pp. 269-280. [11] R. Prokop, A. Reeves, A survey of moment-based techniques for unocc1uded object representation and recognition, CVGlP: Image Proc., Vol. 54 (1992), pp. 438-460. [12] T. Reiss, Recognizing planar objects using invariant image features, LNCS 676, Springer, 1993. [13] D. Slater, G. Hcaley, The illumination-invariant recognition of 3D objects using local color invariants, IEEE Trans. PA MI, Vol. 18 (1996), pp. 206 - 210. [14] M. Swain, D. Ballard, Color indexing, lJCV, 7 (1991), pp. 11-32. [15] L. Van Gooi, T. Moons, D. Ungureanu, Affine / photometric invariants for planar intensity patterns, Proc. ECCV '96, LNCS 1065, Springer, 1996, pp. 642 - 651. [16] L. Wolff, On the relative brightness of specular and diffuse reflection, Proc. CVPR '94, IEEE Comp. Soc. Press, 1994, pp. 369 - 376. [17] F. Mindru, T. Moons, L. Van Gooi, Recognizing color patterns irrespective of viewpoint and illurnination, accepted for publication in Proc. CVPR '99, to appear. 164 ON CERTAIN CHANNELS WITH A RANDOM PARAMETER Mark S. Pirisker", Vyacheslav V. Pr-elov" and Edward C. van der Meulen! A general class of stationary channels with a random parameter is consid- ered. It is assumed that the random parameter is a completely singular sta- tionary process U = {Un} independentofthe input signal X = {Xn}. Some rather general sufficient conditions are found under which the information rate l(X; Y) coincides with the conditional information rate l(X; YIU), where Y = {Yn} is the output signalof the channel considered. Some special cases of such channels are investigated in more detail. INTRODUCTION Consider a general model of a stationary channel with a random parameter described by means of a triple of discrete-time jointly stationary stochastic pro- cesses (X = {Xi}' U = {Ui}' Y = {Yj}). The processes X and Y are the input and output signalof the channel, respectively, and the process U = {Ui] is a random parameter independent of X. Unlike in previous papers where it was as- sumed that the random parameter is a random variable, we consider here the more general case where the random parameter is a siochastic process. Channels with an additive noise or with a multiplicative noise or with an additive-multiplicative noise, where Y = X + U, Y = UX, or Y = UX + Z (Z = {Zj} is a station- ary process independent of X and U), respectively, are some examples of such channels. We will assume that the random parameter U = {Uj} is a completely singular stationary process [1, Chap. 2, §5], i.e., a zero-entropy process. This means, from a descriptive point of view, that the process U is "slowly varying". Note'that this case is a natural generalization of the one considered earlier, where it was assumed that the random parameter is a random variable independent of the time instants, i.e., a random variable, which remains fixed during the transmission over the channel. In the case where U is a completely singular process, and under certain additional conditions connected with the requirement of finiteness of the This work was supported in part by INTAS under Grant 94-469. • Institute for Information Transmission Problems of the RAS, Moscow, Russia. t Department of Mathematics, Katholieke Universiteit Leuven, Leuven, Belgium. 165 corresponding mutual informations, we show that the information rate I(X; Y) coincides with the conditional information rate I(X; YIU). The exact result is formulated in Section 2. In certain special cases, this equality allows us to obtain explicit expressions for I(X; Y) and to investigate the asymptotic behavior of I(X; Y) for weak signals X. The corresponding results are described in Section 3, and in Section 4 the information rates in various models of stationary channels with an additive-multiplicative noise are compared. Preliminary results for the case Y = UX + Z were reported in [2]. The full paper [3], containing the proof of the results described below, has appeared in Problemy Peredachi Informatsii. STATEMENT OF THE RESULTS Let us first recall some definitions and notions which are necessary to formu- late the main results of the paper. A stochastic process U = {Uj} is called singular [1, Chap. 2, §5], if:F( -=, t) = :F( -=, s) for any sand t, where:F( -=, t) is the minimal O'-algebra that contains all the events {Uj1 EEI, ... , Ujn E En} for any positive integer n, any integers ]1, ... .i; E (-=, t), and any Borel sets EI, ... , En of real numbers. A stationary stochastic process U = {Uj} is called completely singular [1, Chap. 2, §5] if any stationary stochastic process U" = {U]} with a finite number of values obtained by means of quantization from the process U = {Uj} is singular. Some properties of completely singular processes are pointed out in [4]. Here we only note that the entropy (per unit time) of any singular process with a finite number of values is equal to zero. Therefore, the entropy of any stationary process with a finite number of values obtained by means of quantization from a completely singular process, is equal to zero. The information rate I(X; Y) and the conditional information rate I(X; YIU) in the channel (X, U, Y) described in the introduetion are defined as I(X; Y) = lim .!-..I(Xr; Yt) (1) n400 n and I(X; YIU) = n-e-co lim .!-..I(Xr; YtlUr), n (2) provided the limits exist, where 1(-;·) and IC; ,1,) are the mutual information and the conditional mutual inforrnation, respectively, Xr = (Xl,' .. ,Xn), ~n = (Yt, ... , Yn), and Ur = (UI, ... , Un)' 166 The following theorem contains the main statement on the information rate in stationary channels with a random parameter. Theorem 1. Let X = {Xj}, U = {Uj} and Y = {Yj} be arbitrary discrete- time jointly stationary stochastic processes such that X and U are independent. Then the following statements are valid: (1) If 7(X; Y) and 7(X; YIU) are defined, then the inequality 7(x; Y) ~ 7(X; YIU) (3) holds. (2) If U = {Uj} is a completely singular process and (4) then 7(X; Y) and 7(X; YIU) are defined, 7(U; Y) = 0, and in the case where 7(X; YIU) < 00 the equalities 7(X; Y) = 7(X; YIU) (5) and 7(U; YIX) = 7(U; Y) = 0 (6) hold. For channels with an additive-multiplicative noise the following statement can be derived from this theorem. Theorem 2. Let X = {Xj}, U = {Uj} and Z = {Zj} be independent, discrete-time, stationary stochastic processes such that U is a completely singular process and Y = U X + Z. Then the following statements are valid: (1) If I(UoXo; Yo) < 00 (7) and (8) then 7(X; Y) and 7(X; YIU) are defined, 7(U; Y) = 0, and in the case where 7(X; YIU) < 00 equalities (5) and (6) hold, i.e., the conclusion of the second statement of Theorem 1 is correct. 167 (2) If X = {Xj} and Z = {ZJ are stationary sequences of independent random variables and I(Uo,Xo;Yo) < 00 (9) then 7(X; V), 7(X; YIU), 7(U; Y), and 7(U; YIX) are defined and equalities (6) and 'tix, Y) = 7(X; YIU) = I(Xo; YolVo) (10) hold. It should be noted that equality (5) may be incorrect if condition (4) is not fulfilled. Indeed, assume Y = X + U, where the processes X = {Xj} and U = {U)} satisfy the conditions that X, == Xo, Uj == Uo for all integer j (such that both processes X and U are completely singular), Xo and Uo are independent and have Gaussian distributions. Then I(Y~oo; Yi) = I(Xo + Uo;Xo + Uo) = 00, i.e., condition (4) is violated. At the same time, we have 7(X; Y) = lim ~I(Xo;Xo+ n-e cc n Uo) = 0, and 7(X; YIU) lim ~I(Xo; Xo + UoIUo) = 00 which shows that in = n-+CX) n this case equality (5) is incorrect. Note also that conditions (4) and (7)-(9) are satisfied in most cases of practi- cal interest. For example, these conditions are fulfilled if all processes considered take a finite number of values or denumerable sets of values with finite entropies. ASYMPTOTICS Formulas (5) and (10) allow us to establish explicit expressions for 7(X; Y) in certain special cases. For example, set Y = U X + Z and assume that X, U, and Z are independent stationary processes such that X and Z are Gaussian with spectral densities fx(>') and fz(>.), respectively, and U, == Uo for any i, where Uo is a random variable with distribution function F(u). Then the conditions of Theorem 2 are satisfied. Therefore, taking into account the well-known expression for the information rate of Gaussian stationary processes [1, Chap. 3, §10] and formula (5) (see also [5]), we have 7(x; Y) = 7(x; YIU) = ~ J dF(u) J (1 + ufz(l~) o: 00 -00 -1/2 1/2 In 2) (ll) In particular, if X and Z are stationary Gaussian sequences of independent ran- dom variables with parameters (ax,O"~) and (az,0"1), respectively, then (ll) 168 turns into the following well-known formula: = 2"1;00 In ( 1 + u2o-2 ) [(X; Y) o-{ dF(u). (12) -00 Moreover, formulas (5) and (10) together with the results of papers [6, 7] (see also [8]) allow us to investigate the asymptotic behavior ofl(X; Y) in the case of weak input signals for certain models of channels with a random parameter and, in particular, for channels with an additive-multiplicative noise. To formulate the corresponding results, let us recall that a stationary stochas- tic process X = {Xj} is called weakly regular (i.e., a process with completely positive entropy) [1, Chap. 2, §5]lf any nontrivial (different from a constant) stationary stochastic process X" = {Xl} with a finite number of values obtained by means of quantization from the original process X = {Xj} is regular (see [9, Chap. 5, §8]). Some properties of such processes are also pointed out in [4]. Here we only note that the class of weakly regular processes is one of the most extensive classes of processes possessing some property of "regularity". In par- ticular, any regular process is weakly regular, and any nontrivial transformation (not only linear) of a weakly regular process leads again to a weakly regular one. Any Gaussian stationary process having a spectral density is weakly regular. Before the next theorem will be stated, we recall that the quantity J = J(Zo) = ;00 [P'(Z)F dz -00 p(z) is called the Fisher information of the random variable Zo provided Zo has a differentiable density function p(z). Theorem 3. Assume Y = éXU + Z, where X = {Xj}, U = {Uj} and Z = {Zj} are independent stationary processes such that U = {Uj} is a completely sinqular process taking values in a bounded set of the real axis and Z = {Zj} is a sequence of i. i. d. random variables having a finite second moment and a differentiable density function p( z) such that p( z) and pi (z) are bounded and the Fisher information J (Zo) is finite. Assume also that the formula (13) 169 holds where (j2 = var(Xa) < 00. Then for the information rate [(EX; Y) the following asymptotic representation is valid if (i) X = {Xj} is a sequence of i.i.d. random variables or (ii) X = {Xj} is a weakly regular stationary process and U, == Ua for all j = O,±I, .... Some conditions under which the asymptotic relation (13) is valid, can be found in [6, 7]. COMPARISON WITH OTHER MODELS It is interesting to compare the information rates [(X; V), [(X; V') and [( X; yll) in the following models of stationary channels: Y = éUX + Z, (15) Y' = éU'X +Z, (16) and Y" = emX + Z, (17) where the stationary processes X = {Xj}, U = {Uj}, U' = {Uj} and Z = {Zj} are mutually independent, U = {Uj} is a completely singular process, U' = {Uj} is a sequence of i.i.d. random variables whose probability distributions coincide with the probability distribution of Ua, and m2 = EUg. It seems natural to expect that under rather general conditions, [(X; Y) :::: [(X; V') for any e. We cannot claim that this inequality is always correct. Never- theless, as can be easily seen, it is valid if X = {Xj} and Z = {Zj} are stationary sequences of independent random variables. Using the results of [6], one can obtain the asymptotic representation for [(eX; V') as e -+ 0 in the case where X = {Xj} and Z = {Zj} are stationary sequences of independent random variables. Namely, assume that the conditional 170 density function J pu( u )pz(y' - ux) du 00 J( x, y') = PY'IX (y'lx) = -00 satisfies conditions l(a) - IV(~) of [6, Theorem 1]. Then, under the assumption that IXal ::; K < 00 where K is a constant, it follows from this theorem that Comparing (14) and (18), we observe that in the case considered leX; Y) > Içx, Y') for all sufficiently small e if (7& > o. Moreover, if EUa = 0, then leX; Y') = o(c2), e ---+ 0 and, at the same time, leX; Y) has order c2• Comparing models (15) and (17), we note that under rather general assump- tions on the processes X, U, and Z, the inequality leX; Y) ::; It X; Y") holds. For example, it is easy to see that this inequality is always correct if X and Z are stationary sequences of independent Gaussian random variables. At the same time, it is possible to construct an example where leX; Y) > It X; Y"). To do so, consider the case where X = {Xj} and Z = {Zj} are sequences of i.i.d. random variables such that P{Xa = -I} = P{Xa = I} = ~ and P{Za =k} = Pk > 0, k = 0,±1, ... , LPk = 1. k . 1 V3 1 Assume also that P{Ua = yI2} = P{Ua = yI2} = 2" and e = 1. Then we have that leX; Y") < H(Xa) = In2 = Ti X, Y). Assume now that the processes X, U, and Z satisfy the conditions of Theorem 3. Then l(EX; em.X + Z) + o(c2) 1 2"J(Za)m2(72c2 + o(c2), e ---+ 0, i.e., the information rates in the models (15) and (17) are asymptotically equiv- alent up to terms of order o(c2) if E -+ o. As a concluding remark, we mention that the results of this paper concerning 171 model (15) can be extended to the more general case where the output signal Y is equal to the sum Y = UX + cdl + {3X + Z and where the processes U, X, and Z are the same as in the model (15), and a and {3 are some constants. REFERENCES [1] M. S. Pinsker, Information and Information Stability of Random Variables and Processes, Holden-Day, San Francisco (1964). [2] M. S. Pinsker, V. V. Prelov, and E.C. van der Meulen, "Information trans- mission over channels with additive-multiplicative noise," Proc. 1998 IEEE ISIT, Cambridge, MA, USA, August 16-21, 1998, 239. [3] M. S. Pinsker, V. V. Prelov,and E. C. van der Meulen, "Stationary channels with a random parameter which is a completely singular process," Probl. Peredachi Inf., 35, No. 1, 3-12 (1999). [4] M. S. Pinsker and V. V. Prelov, "On error-free filtering of certain stationary processes," Usp. Mat. Nauk, 52, No. 2, 109-ll8 (1997). [5] I. A. Ovseevich, "Capacity and the information rate in channels with a random parameter," Probl. Peredachi Inf., 8, No. 4, 28-39 (1972). [6] I. A. Ibragimov and R. Z. Khasminsky, "Weak signal transmission in a mem- oryless channel," Probl. Peredachi Inf., 8, No. 4, 28-39 (1972). [7] M. S. Pinsker, V. V. Prelov, and E. C. van der Meulen, "Information rates in certain stationary non-Gaussian channels in weak-signal transmission," Probl. Peredachi Inf., 34, No. 1,3-17 (1998). [8] M. S. Pinsker, V. V. Prelov, and E.C. van der Meulen, "Inforrnation trans- mission over stationary channels with additive non-Gaussian noise by means of weak input signals", Proc. 19th Symposium on Information Theory in the Benelux, Veldhoven, The Netherlands, May 28-29, 1998, 143-147. [9] I. I. Gikhman and A. V. Skorokhod, An Introduetion to the Theory of Random Processes [in Russian], Nauka, Moscow (1965). 172 ON ERROR CORRECTION IN INFORMATION FEEDBACK SCHEMES M.S. Bargh and J.P.M. Schalkwijk Eindhoven University of Technology, Department of Electrical Engineering, Group on Information and Communication Theory, PO Box 513, 5600 MB Eindhoven, The Netherlands. mortaza~ei.ele.tue.nl, piet®ei.ele.tue.nl Most information feedback schemes yield highly reliable communication by efficiently repeating messages or message chips. In order to gain an insight into such information feedback schemes, this contribution provides a unified explanation and a deeper understanding about the repetition mechanisme- in these information feedback schemes for Discrete Memoryless Channels (DMC's) and Additive White Gaussian Noise (AWGN) channels. Our ob- jective is to give a general insight into these repetition mechanisms not to exactly evaluate them. INTRODUCTION Repetition of code words or channel input symbols can improve the error performance of one-way coding systems or, in other words, lower the coding corn- plexity for the same performance. For example, consider the situation where ev- ery code word of an (M, N) block code with maximum decoding error probability P:'max is repeated L times. Based on a majority decision rule at the receiver, a de- coding error might occur when half or more of the blocks are received erroneously. The decoding error can be upper-bounded by gdP:'max)t, where gL = ~'2L and L «N. This shows an increase in the reliability of the decoded messages as L increases. Meanwhile, the transmission rate falls accordingly since the mentioned repetition mechanism is not efficient. In information feedback commünication systems, the transmitter is able to observe every received symbol via a noiseless and delayless feedback channel and use this information in the coding process. In fact, most information feedback schemes yield highly reliable communication by efficiently repeating messages or message chips (i. e. message segments). In such information feedback schemes we can distinguish two efficient repetition mechanisms which prevent any rate 173 loss as mentioned for the case of one-way communication systems. These two mechanisms are referred to as "repeat to resolve uncertainty" and "repeat to correct erroneous receptions" in this contribution. Generally speaking, an encoder using the first mechanism knows what to repeat and that of the latter one knows when to repeat. Note that our objective is to obtain a general insight into the repetition mechanisms of such information feedback schemes not to exactly evaluate them. REPEAT TO RESOLVE UNCERTAINTY In the schemes using the first mechanism, the transmitter sends the entire message in the initial transmission. Then, from the second transmission onwards, the transmitter sends corrections needed to resolve the difference between the true message and the receiver's latest estimate of this message. Note that the trans- mitted difference is sufficient to completely specify the true message provided that the difference is received correctly. Based on data received previously, the receiver has a list (or a range) of candidates for the true message. Every transmit- ted correction can be interpreted as the index of the true message on receiver's list. As the transmission process continues, the size of the list decreases or, in other words, the correcting data is compressed relative to the previous trans- missions. In this way, the scheme saves on transmission energy or, alternatively, on the number of transmissions. In the following, we explain a few schemes for DMCs and AWGN channels that operate based on this principle. Savage's scheme Savage [7] presented a block coding strategy which explicitly uses the concept of the list coding. The strategy for transmitting each message is a two-step procedure. For each step a one-way block code is used. In the first step, a block code is used to transmit one of the M messages. The decoder receives a distorted version of the codeword and makes a list of L messages which are the most likely messages given the received code word, i.e. a list decoding of the first block code is performed. Then the feedback channel is used to inform the transmitter about the list and the order in which messages appear on the list. In the second step, i.e. the first repetition of the message, the transmitter chooses a code word from the second code to indicate which message on the list of the L messages is the true message. Notice the efficient repetition mechanism employed in the second 174 step where one out of L entries on the list is transmitted instead of retransmitting one out of M messages, L « M. Ooi 's scheme In [6], James Ooi used Ahlswede's idea employed in a constructive proof of the coding theorem for DMC's with feedback [1], and introduced the so called compressed-error-cancellation framework for transmitting information over DMC's with feedback. The very basic principle of Ooi's scheme was presented as an in- formation feedback scheme for Binary Symmetric Channels (BSC's) in a Bell Labs memorandum dated back in 1962 [14] by Weldon. Ooi's scheme is a low complexity capacity achieving feedback scheme for DMC's though it gives a good performance for discrete finite state channels, discrete memoryless multiple access channels and for channels that vary with time in an unknown way over a set of possible channels, see [5]. Assume a DMC with capacity achieving input distribution qx Message w E {O, 1}N is mapped into NI = H(X) independent and identically distributed (iid) channel input symbols according to distribution qx. The resulting block, i.e. the whole message, is transmitted through the channel. The channel distorts the message and the transmitter observes the received block via the feedback channel. For the first (efficient) repetition of the message, the transmitter compresses the distortion into NIH(X[Y) bits and then maps the result into N 2 = N1z(.;r) iid channel inputs and transmits the resulting message through the channel. In the ith iteration (or the (i -1)st effective repetition of the message), the distortion of the previous block is compressed to N{i-I)H(X[Y) bits, then the result is mapped into Ni = N(i-;;ri;IY) iid channel inputs to be transmitted through the channel. When the process continuous indefinitely, the number of transmitted symbols is N NIH(X[Y) N{i-I)H(X[Y) H(X) + H(X) + ... + H(X) + ... N (H(X[Y) (H(X[y))(i-I)) N H(X) 1 + H(X) + ... + H(X) + ... H(X) - H(X[Y) resulting in an average rate equal to the channel capacity. The length of the transmitted blocks decreases as the process proceeds, see the figure. In practice, the iteration stops after a fixed number of times. The last block or, in other words, the base block which contains a small number of symbols is reliably sent 175 over the channel using a strong termination (feedback) code. In addition to the information about the channel noise, every block contains so'me other information about the previous block, e.g. the length of the previous block. Before the termination block, a synchronization sequence is sent to mark the beginning of the termination code. This framework shows the problem of channel coding with feedback to be strongly related to the problem of source coding for which there are both rich theory and efficient lossless source coding algorithms. For decoding, the decoder of the scheme looks for the synchronization se- quence in order to find the termination code, decodes the last block and uses the decoded information to decode the block before the synchronization sequence. In this way, the decoded information of the ith iteration is used to resolve the uncertainty in the (i -1) th iteration. This process continues until the uncertainty . in the first block, corresponding to the original message, is resolved . 1 N1-- N H(X) 2 ~============================~-N----~N~l~H~(X~IY~) 2 = H(X) N. - N(i_J)H(XIY) ,- H(X) L-1 0 L IJ: NL ~. ~~~.~.. ,. Termination code Center-of-gravity methods In [8], Schalkwijk gave the center-of-gravity information feedback model as an unifying principle for many information feedback schemes designed for AWGN channels. In these channels, transmitted signals are constrained in average power and sometimes in peak power. Every message w E W corresponds to a D- dimensional vector xE as the input of a vector channel. The center-of-gravity method is a repetition type scheme, however, it does not simply repeat the input signal N times. Instead, before the nth transmission, n = 1, ... , N, a common signal li(n-l) E lRP is computed at the receiver from already received signals and sent back to the transmitter. On the nth transmission, or the (n - 1)st repetition of the message, li(n-l) is subtracted at the transmitter and added again at the 176 receiver. Therefore, the transmitted vector is The optimum sequence UQ,Ul,"" U(N-l) minimizes the average transmission power. From (n - 1) received signals Yl, Y2," ., Y(n-l), the receiver 'can com- pute the center of gravity U(n-l) that minimizes the moment of inertia of the signal set around the tip of the vector U(n-l)' In these methods, the center of gravity approaches the true message point in the D dimensional signal space and, therefore, the energy of transmissions decreases as the process proceeds. On the other hand, subtracting and then again adding common signal vectors U(n-l), does not affect the probability of error if we compare it to the scheme that repeats the original message N times. A suboptimum version of center-of-gravity uses the receiver's best guess in the place of the center of gravity. The best (n -1 )st guess is the message point w E W in the D dimensional signal space, which maximizes PXjy(n-l) (xwIY1," ., Y(n-l))' The best guess is inferior to the center-of-gravity, however, feeding back one out of IWI possible signals needs less powerful feedback channel than that needed in the center-of-gravity method. Many feedback schemes for AWGN channels can be explained by the center-of-gravity principle, see [8, 9] and references therein for an in depth study. REPEAT TO CORRECT ERRONEOUS RECEPTIONS The information feedback schemes using the second mechanism repeat mes- sages or message chips whenever necessary. If a message (chip) is received cor- rectly, the transmitter moves on to the next message (chip). Otherwise, the entire message (chip) is repeated. From this point of view, these schemes are similar to the automatic repeat request schemes. However, here the transmitter side which observes the received message (chip) via the feedback channel initiates the acknowledgement or rejection decision. Therefore, there is a need for a mecha- nism to convey the acknowledgement or rejection status to the receiver for every message (chip). In the schemes using this mechanism, the rejected message is totally neglected and it is not possible to compress the correcting repetitions or to optimize their transmission power (in fact, sometimes there is an expansion of transmissions in order to correct an erroneous reception). The optimum per- formance in these schemes is gained due to immediately repeating the erroneous 177 receptions. In the following we explain a few information feedback schemes that use this mechanism to correct transmission errors. Schalkwijk-Barron's scheme This is a sequential signalling over AWGN channels subject to a peak power con- straint [11]. The signalling has two modes: the message mode and the control mode. In the message mode, one of M messages is sent through the channel using a set of M orthogonal signals. Then the receiver sends back the decoded message or the transmitter deduces it by observing the received signal. In the control mode, the transmitter sends the acknowledgement or the rejection signal depending on whether the decoder is correct or not, respectively. The receiver decodes the control part and if the decoded result is an acknowledgement, the receiver accepts the decoded message as correct. If the control part is decoded as a rejection, the receiver discards the decoded message and waits for a retransmis- sion. For the control part, Schalkwijk and Barron used the sequential decision feedback scheme of Viterbi for AWGN channels [13]. Yamamoto-Itoh's scheme for AWGN channels [15]is a modification of Schalkwijk- Barron's scheme. In the control mode of Schalkwijk-Barron's scheme, Yamamoto and Itoh employed a new blockwise decision scheme instead of Viterbi's sequen- tial decision scheme. In this way, a totally fixed length transmission method is obtained with the same asymptotic error exponent as that of the original scheme. Yamamoto and Itoh also generalized Schalkwijk-Barron's scheme for use in DMC's. In a block of N transmissions, a block code of length "IN is used to send the message part, "I < 1. They used the rest of the block for the control part to convey the acknowledgement or the rejection signals to the receiver using two co d ewor d s Xl(l-'"{)N = ( x, x, ... ,x ) an d Xl(l-'"{)N = ('x, X I , ... ,x ') ,respec tirve Iy, where x and x' are two input symbols of the channel. Multiple Repetition Feedback Coding (MRFC) schemes To explain MRFC schemes [12, 10] in the framework of the repeat to correct error mechanism, we assume that every message consists of message chips to be transmitted to the receiver. Every message chip corresponds to a channel input symbol. Suppose that the transmitter sends symbol x over the DMC. Upon cor- rect reception of the symbol, the next symbol is transmitted. However, if x is erroneously received as y i= x, then x is retransmitted kxy times. In the decoder, 178 a received subsequence yxk•y, i.e. a y followed by kxy x's, indicates the transmis- sion error x ~ y. The error is subsequently corrected by replacing subsequence yxkxy with x to retrieve the corresponding message chip. In order to prevent removing message chips, the sequence of message chips must be constrained or precoded such that the corresponding channel inputs do not constitute the so called forbidden subsequences yxkxy, x =1= y. In MRFC schemes there is no ex- plicit acknowledgement signal but the rejection signal, which does not occur so often, is a few repetitions of the symbol in error. In fact, the acknowledgement signals are hidden in the sequence of the message chips, where a correctly re- ceived message chip, i.e. its corresponding channel input symbol, can not be the beginning of a forbidden subsequence. This is guaranteed by the precoding and repetition rules. Horstein's scheme [4] is a sequential scheme to transmit a message through a BSC with noiseless feedback. The transmission of message chips is very sim- ilar to that of MRFC schemes. lnteresting to know is that Schalkwijk derived MRFC schemes for BSCs by detailed study of Horstein's scheme. Zigangirov and Burnashev used Horstein's idea in [18, 16, 17] and in [2, 3], respectively, where they modified Horstein's schemes and improved some shortcomings of Horstein's presentation. REFERENCES [1] Rudolf Ahlswede. A constructive proof of the coding theorem for discrete memoryless channels with feedback. In proceeding of the sixth Prague con- ference on information theory, statistical decision functions and random pro- cesses, pages 39-59, 1971. [2] M.V. Burnashev. Data transmission over a discrete channel with feedback. random transmission time. Problemy Peredachi Informatsii, 12(4): 10-30, 1976. [3] M.V. Burnashev. Reliability function of a binary symmetrical channel with feedback. Problemy Peredachi Informatsii, 24(1):3-10, 1988. [4] Michael Horstein. Sequential transmission using noiseless feedback. IEEE Transactions on Information Theory, 9:136-143, July 1963. [5] James M. Ooi. A framework for low-complexity communication over channels with feedback. PhD thesis, Massachusetts Institute of Technology, 1997. 179 [6] James M. Ooi and Gregory W. Wornell. Fast iterative coding for feedback channels. In In the proceeding of IEEE International Symposium on Informa- tion Theory, Ulm, Germany, page 133, July 1997. [7] J.E. Savage. A bound on the reliability of block coding with feedback. The Bell System Technical Journal, 45:967-977, 1966. [8] J. Pieter M. Schalkwijk. Center-of-gravity informati'bn feedback. IEEE Trans- actions on Information Theory, 14(2):324-331, March 1968. [9] J. Pieter M. Schalkwijk. Recent developments in feedback communication. Proceedings of the IEEE, 57(7):1242-1249, July 1969. [10] J. Pieter M. Schalkwijk. A class of simple and optimal strategies for block coding on the binary symmetric channel with noiseless feedback. IEEE Trans- actions on Information Theory, 17(3) :283-287, May 1971. [11] J. Pieter M. Schalkwijk and Mark E. Barron. Sequential signaling un- der a peak power constraint. IEEE Transactions on Information Theory, 17(3):278-282, May 1971. [12] Thijs Veugen. Multiple repetition coding for channels with feedback. PhD thesis, Eindhoven University of Technology, 1997. [13] A.J. Viterbi. The effect of sequential decision feedback on communication over the gaussian chanriel. Information and control, 8:80-92, February 1965. [14] Edward J. Weldon, Jr. An upper bound on the probability of a word error for block codes used with the memoryless binary symmetric channel with noiseless information feedback. Memorandum No. 38763-15, Bell telephone laboratories, August 1962. [15] Hirosuke Yamamoto and Kohji Itoh. Asymptotic performance of a mod- ified schalkwijk-barren scheme for channels with noiseless feedback. IEEE Transactions on Information Theory, 25(6):729-733, November 1979. [16] K.Sh. Zigangirov. Information transmission over a binary symmetrical chan- nel with noiseless feedback (random transmission time). Problemy Peredachi Informatsii, 4(3):38-47, 1968. [17] K.Sh. Zigangirov. Upper bounds for the error probability for channels with feedback. Problemy Peredachi Informatsii, 6(2):87-92, 1970. [18] K.Sh. Zigangirov. Recurrent transmission through the binary symmet- ric channel with feedback. Problems of Control and Information Theory, 6(4):189-205, 1977. English translation at pages 12-25. 180 MORE ON THE DUALITY BETWEEN SOURCE AND CHANNEL CODING Valery N. Koshelev" and Edward C. van der Meulen" The duality between source and channel coding as pointed out by Shannon [2} is further explored. We consider both multi-level source coding subject to a sequence of fidelity constraints and multi-level channel coding subject to a sequence of input cost constraints. Efficient multi-level source coding and efficient multi-level channel coding can both be phrased in terms of the concept of divisibility. Whereas eerlier necessary and sufficient conditions were found for source divisibility, sofar only sufficient conditions have been established for channel divisibility. INTRODUCTION There exist well-known remarks by A.·N. Kolmogorov and V. M. Tikhomirov [1] and e.E. Shannon [2] on a certain duality between source and channel cod- ing. Mathernatically, these reflect the duality between two main inforrnation- theoretical quantities known as the rate-distortion function R (e ) ~ min I(X; Y) (1) Y:D(X;Y)$< and the capacity-cost function C (T) ~ max I(X; Y). (2) X:T(X)$r This work was supported in part by INTAS under Grant No. 94-469. • Scientific Council for Cybernetics of the RAS, Moscow, Russia. t Department of Mathematics, Katholieke Universiteit Leuven, Leuven, Belgium. 181 Here (X, Y) = {X x y; P 0 Q}, P = [P(x)J, Q = [q(ylx)]' is a pair of ran- dom variables defined over the alphabets X and y, and I is the average mutual information of the pair; in (1) D(X; Y) ~ I>(x)q(ylx)d(x; y) (3) xy is the average distortion at which the source output is reproduced by a reproducer output Y; in (2) rix, ~ Ep(x)t(x) (4) x is the average cost of the channel input X; the values (3) and (4) are calculated with respect to a distortion lXI x IYI-matrix d = [d(x; y)J (5) and a cost lXI-vector t = [t(x)J, (6) respect ively. For the discrete memoryless source (DMS) defined by the pair (P;d) (7) the function R( s ) shows the minimal amount of information sufficient to repro- duce the source output with an average distortion less than or equal to e. For the discrete memoryless channel (DMC) given by the pair (Q; t) (8) the function C(T) shows the maximal amount of information one can reliably transmit over the channel paying a cost of no more than T per channel input. SUCCESSIVE SOURCE CODING The coding theorems showing that values (1) and (2) can really be achieved were proved in 1959 by Shannon [2J. Since then the theorems have been applied in- tensively to various schemes in the field of source and channel coding.Particularly, in a series of works starting in 1978, a scheme of hierachical source coding was formulated and studied [3, 4, 5, 6, 7, 9, lOJ. It was shown that source coding 182 with a given distortion measure can be realized as a kind of scheme of successive refinement and that under definite conditions the rate-distortion function can be achieved simultaneouslyfor a sequence of distortions (9) The successive coding procedure is based on a hierarchical code which is an L- level tree whose nodes are source reproducer code words of a block length N. In this tree, each mother node generates daughter nodes with exponential rates of branching equal to RI, i E 1, L. Then the theorem of successive source coding shows the exchange between the L-vector of rates of branching and the L-vector of distortions. Let L = 2 and consider a stochastic scheme (X, Yi,Yi) E X x y (10) where X is a generic source letter and Yz is its copy of the i-th refinement, i E 1,2. Theorem 1 (Two-level successive source coding). Let a DMS be defined by the pair (7) where P = Px. Then the point (RI, R2' Cl, c2), C2:::; cl, is achievable in the scheme of successive coding iff there exists a triplet (10) such that I(X; Y2lYd < R2 D (X2; Y2) < C2· The proof of Theorem 1 follows a standard technique of random source coding [8J modified with respect to a multi-level mode [4J. Theorem 1 can easily be generalized to the case (11) The scheme of successive source coding achieves its maximal efficiency with (12) 183 Definition 1. A DMS (7) with rate-distortion function (1) is called divisible for a sequence of distortions (9) iff the point (Ll ) is achievable for RI, 1 E I, L , defined in (12). In other words, if the source is divisible, then the optimal scheme of suc- cessive source coding can be viewed as a step-by-step climbing up along the rate-distortion curve. Let Q. ~ arg min I (P; Q) Q:V(P;Q;d)::; e ..be the test-channel of the source (P; cl), i.e. the stochastic lXI x IYI-matrix that achieves R (E); here I and D are the same as I and Din (1) and (3), but in the notation of I and D their dependence on P, Q and cl is explicitly shown. Theorem 2 (Source divisibility criterion). The DMS (7) is divisible for a pair of distortions 0 $ E2 $ El iff the matrix equation (13) has a stochastic solution. Thus, for the class of discrete memoryless sources (7) the problem of source divisibility can be considered as completely solved, because it is reduced to de- termining whether the equation (13) has a stochastic solution or not. SUCCESSIVE CHANNEL CODING Now we turn to a similar problem for the class of memoryless input-constrained channels. Namely, for a DMC (8) with capacity-cost function (2) we wish to con- struct a scheme of successive channel coding which would look like a climbing up along the curve of C (T). It is well-known that the latter is an increasing, concave, and continuous function in its region of interest. Successive channel coding, as we have developed it, is also based on an L- level code tree with nodes as channel-input code words. Each mother node xi" generates a number of daughter nodes {Xf}. The process of mother-to-daughter transformation xi" ~ xf is paid at the cost r(Xi";Xf) = f r(xln;X2n) n=l defined by a specialletter-to-Ietter cost matrix (14) 184 of the size lXI x lXI. To make cost matrix (14) compatible with the original cost I::. vector (6) we let r (0; x) == t (x) "Ix E {O,1, ... , lXI} = X. Thus the dummy code word ON plays the role of a root node of the code tree. Let RI be the rates of the exponential branching of the tree, l E i, L. Then the scheme of hierarchical channel coding can be interpreted as a communication system assigned to serve a society of L users, where the [-th user wishes to communicate at the rate RI +... + RI. The specific rule of this society is that the basic rate RI +... + RI-I is paid for by the [ - 1 preceding users at the cost TI_I so that the [-th user is to pay only for the additional rate RI at the cost TI - TI-I' Again, let L = 2. In this case the scheme of the two-level successive channel coding can be described 'by the four-tuple of random variables P W (15) defined by the stochastic triplet (P, w,q). In (15), Xl denotes the mother letter distributed according to the stochastic lXI-vector P, X2 denotes the daughter input letter distributed conditionally on Xl according to a stochastic lXI x IXI-matrixW = [w (x2IxI)], and Yi, Y2 are the channel output letters. Yi and Y2 are conditionally independent with the same channel matrix Q. In particular, the triplet forms a Markov chain. Then T (X) ~ LP(x) t (x) == LP(x) r (0; x) x x denotes the average input cost paid by the first user and S(XI;X2) ~ LP(xI)w(x2Ixdr(xI;x2) (16) XIX2 is a super cost paid by the second user. With these notations we prove 185 Theorem 3 (Two-level successive channel coding). Let a DMC be given by the pair (Q; r). (17) For this channel, the point (18) is achievable with a scheme of two-level successive coding iff there exists a stochas- tic scheme (15) such that T(Xd < Tl (19) S(Xl;X2) ~ T2 - Tl (20) I(Xl;Yd ~ tt, (21) I (X2; Y2) ~ s, + R2 (22) I (X2; Y21Xd ~ R2. (23) Theorem 3 can easily be extended to the general case (24) Definition 2. Let the pair (17) define a DMC with a capacity-cost function (2). We say that the channel is divisible for a sequence of costs 0 ~ Tl ~ T2 ~ ... ~ TL iff in the scheme of the L-Ievel successive channel coding the point (24) is achievable with RI = G(TI) - G(TI_l) VI E 1, L. Let L:> PT = arg max I(P; Q) P:T(P;t):$T be the stochastic 1,1'1 -vector that achieves G(T); here I and T' are the same as I and T in (2) and (4), except that in I the dependence on Pand Q, and in T' the dependence on Pand t is exhibited. Denote also (16) as S (Xl; X2) == s (P; W; r). Then we prove Theorem ~ (Sufficient conditions of channel divisibility). The DMC (17) is divisible for a pair of costs 0 ~. Tl ~ T2 if there exists a stochastic 1,1'1 x 1,1'1- matrix W such that .PT,W = PT2 (25) (26) 186 (27) The proof of Theorem 4 follows from putting RI = C(rd and R2 = C(r2) - Ch) in the right-hand sides of (21)-(23). We conjecture that equation (27) is true for any stochastic lXI x lXI-matrix W. If so, then equations (25)-(26) form a system of conditions necessary and sufficient for channel divisibility. REFERENCES [1) A.N. Kolmogorov and V.M. Tikhomirov, "Epsilon-entropy and epsilon- capacity of sets in functional spaces" , Usp. Mat. Nauk, 14, No. 2, 3-86, 1959. See also Amer. Math. Soc. Trans., 33, 277-367. [2) C.E. Shannon, "Coding for a discrete source with a fidelity criterion" , IRE National Conv. Rec., pt. 4, 142-163, Mar. 1959. Reprinted in "Key Papers in the Development of Information Theory" (ed. D. Slepian), IEEE Press, 1974, 245-266. l3J V.N. Koshelev, "Multi-level source coding and data transrn:isslon theorem", in : Proc. 7th All- Union Conference on Coding Theory and Data Transmis- sion [in Russian), Vilnius, Part 1, 85-92, 1978. [4) V.N. Koshelev, "Hierarchical source coding", Probl. Peredachi Inf., 16, No. 3, 31-49, 1980. [5) V.N. Koshelev, "An evaluation of the average distortion for a discrete scheme of sequential approximations", Probl. Peredachi Inf., 17, No. 3, 20-33, 1981. [6) W.H.R. Equitz and T.M. Cover, "Successive refinement of information", IEEE Trans. Inform. Theory, 37, No. 2, 268-275, Mar. 1991. [7) V.N. Koshelev, "On the divisibility of discrete sources with an additive single-letter distortion measure", Probl. Peredachi Inf., 30, No. 1, 31-50, 1994. [8) J.K. Omura, "A coding theorem for discrete time sources", IEEE Trans. Inform. Theory, 19, No. 4, 490-497, July 1973. [9) V.N. Koshelev and E.C. van der Meulen, "Two-level coding for input- constrained channels", Proc. 1998 IEEE ISIT, Cambridge, MA, USA, Au- gust 16-21, 1998, 430. [10] J. Chow and T. Berger, "Failure of successive refinement for symmetric Gaus- sian mixtures", IEEE Trans. Inform. Theory, 43, No.1, 350-352, Jan. 1997. 187 AN EFFICIENT ALGORITHM FOR SELECTING OPTIMAL CONFIGURATIONS OF AR-COEFFICIENTS Rudy Moddemeijer University of Groningen, Department of Computing Science, P.O. Box 800, NL-9700 AV Groningen, The Netherlands, rudyillcs.rug.nl There exists an essential difference between the correct Auto Regressive (AR) model and the optimal AR-model. We try to find an optimal model balancing between flexibility, using many AR-parameters, and low variance, using only a few AR-parameters. We select an optimal AR-parameter con- figuration consisting of zero and non-zero parameters given a maximum AR-order. This optimal configuration will be selected using a Modified In- formation Criterion (MIC) which is closely related to Akaike 's criterion (AIC). This MIC allows an a priori selection of the probability of estimat- ing too many parameters. We present the method and a verification by simulations. The method is based on pivoting the Hessian matrix by GaujJ-Jordan pivots. As a result we can now select an optimal parameter configuration with an a priori prob- ability of selecting a configuration with a too large number of parameters given an a priori selected maximum AR-order. INTRODUCTION With respect to Auto-Regressive (AR) modeling we distinguish the correct model, which generated the signal, and the optimal model. It can be a better strategy to estimate the optimal model, which has a simpler structure and can more reliably be estimated. Due to the finite sample size not all aspects of the correct model can be estimated with a sufficient accuracy, so we balance between a minimum estimation error (variance) and a minimum modeling error (bias). Assume an unbiased statistic s, BIAS {§.} = 0, so the mean square error is MSE {û = VAR {s}. Can we construct a better statistic? In mean square sense it can be done by s' = Às. We search for the minimum mean square error as a function of À and find: 2 BIAS {s'} = (À - l)E {,?} where À = E {s} (1) MSE {l} = (À - 1)2E {s} + À2VAR {s} E {,û2 + VAR {s} This shows the principle of balancing bias and variance. The decrease of the mean square error by the reduction of the variance dominates the increase by the bias. This means thatwe can construct better statistics by accepting some bias. 189 Assume the correct AR-model has a small parameter. The value of this parameter can be negligible with respect to the variance; in this case its better to omit the parameter in the optimal model. This introduces some bias but also reduces the variance. We try to find a balance between flexibility, using many parameters, and low variance, using only a few parameters. We use the large parameter space of a Jlh order AR-model with J independently adjustable AR- parameters. Of every parameter we decide during the estimation process whether the parameter is essentialor not. We only estimate the essential parameters and keep the other parameters equal to zero. Neither the AR-order nor the number of negligible parameters are a priori known. Therefore we search for an efficient strategy to estimate the configuration of significant parameters. Our algorithm is based on an Auto Regressive and Moving Average (ARMA) parameter estimation algorithm [1] which was used to find alternative ARM A-parameter configurations providing a better fit to the time-series published in the book of Box & Jenkins [2]. This algorithm has been combined with the AR-order estimation algorithm based on the Modified Information Criterion (MIC) [3], which is capable of estimating an AR-order given an a priori selected probability of selecting a too high order. THEORY Assume the discrete time stochastic signal ;?2_, generated by AR-filtered, sta- tionary, normally distributed white noise with zero mean and fixed variance 0'2 and a sequence of N observations XI, X2, ... , XN· Estimate a model of ;?2_; i.e. estimate the configuration and the values of the non-zero coefficients of the AR- model. Assume the ,p.h order AR-model and its conditional probability density function: J Ix(xnlxn-I"'" Xn-J; a, 0') = f,,(én(a); 0') where én(a) = Xn - L ajxn_j (2) j=1 and where a = (al, ... , aJ). This AR-model has a parameter vector p = (al, a2, ... , a), 0') of J + 1 independently adjustable parameters. If we fixate some AR-parameters at zero, the number of independently adjustable parameters will be less. The models with different configurations of AR-coefficients are called the hypotheses. The dimension dim p :::;J + 1 for a given configuration is the number of independentlyadjustable parameters, i.e. the number of non-zero parameters. Given a sequence of observations we determine the parameter configuration by selecting the optimal hypothesis. Testing two composite hypotheses is elaborately discussedin our earlier pub- lication [3]. Given the Maximum of the Average Log Likelihood (MALL), the 190 Average Log Likelihood (ALL) function at the Maximum Likelihood (ML) pa- rameter estimate P, defined by N Ê Wp)} = ~ L log fAxnlp) (3) n cc I where Ê Wp)} denotes the average of the stochastic variable Hp) = log f (~Ip). The quantity N Ê Wp)} equals the well-known maximum of the log likelihood function in the method of ML. In earlier work [3J we have argued that the problem of AR-order estimation can be solved by subsequently testing pairs of hypotheses using the difference in ALL at the ML-estimates as a criterion: (4) We accept the alternative hypothesis with parameter vector PI if (4) is fulfilled. The constant 'TJhigh depends on (dim PI - dim Po) and the a priori selected False Alarm Probability (FAP) a; i.e. the probability on selecting a too high order. Within our concept we have the same null hypotheses but a set of alternative hypotheses instead of only one alternative hypothesis. We want to extend the successful concept of our earlier work to this situation. MODEL SELECTION BY GAUSS-JORDAN PIVOTS A GauB-Jordan pivot is an operation on a matrix V resulting in the pivoted matrix V. Performing a GauB-Jordan pivot with pivot element Vi{ Vmn = Vmn - Vmj Vin/Vij where m f= i and n f= j Vmi = Vmj/Vij where ti f= j (5) V;n = Vin/Vij where m f= i V;j = I/Vij exchanges the elements ai and bj in the matrix equation a = Vb. Performing GauB-Jordan pivot using all main diagonal elements as pivot element is equivalent to inversion of the matrix. Using a selected subset of main diagonal element leads to a partial inverse. Due to the Gaussian noise we determine the ALL-function given the param- eter vector p by: N Ê{I(p)} = ~ L (-~ln(27rCT2) _ ég;~)) (6) n=l Searching the maximum as a function of the parameter vector p leads to the ML estimate p. We can separate the estimation of CT and a. Consequently we find: N a= -v';; (O)va(O) where v(a) = -tv Lé;(a) (7) n=l 191 and where va(O) and vaa(O) are respectively the vector of first derivatives and the matrix of second derivatives (Hessian matrix) at a = 0, and 0'2 = v(á:) where v(á:) =v(O) - ~va(O)v;l(O)va(O) (8) We construct the matrix V with elements Vij (0 ::; i ::;J and 0 < j < J): (9) Performing J GauB-Jordan pivots on this matrix subsequently using VJj (1 ::; j ::; J) as pivot element leads to: Notice that Voo is the only element of the main diagonal that is not used as pivot element. Similarly we can determine partial invers es of the matrix representing a ML-estimate by using only a subset of the full parameter space. E.g. we find v(á:) where á: = (á'i, á"2, 0, ... ,0) by only using Vll and V22 as pivot element. If we have J AR-parameters, there exist 2J partial inverses representing ML- estimates with 0 to J AR-parameters. If J becomes large, the selection of the optimal partial inverse becomes rather computationally intensive. To reduce the computational effort, we only use the main diagonal element Vu which lead to a maximum reduction of Voo as pivot element. This reduction can be predicted by evaluation of Voo - Voo = Vak VkO/Vkk. During the partial inversion process we use the element Vkk which has a maximum VOkVkO/Vkk as the next pivot element. Now the decision remains whether the inclusion of the parameter ak to the set of non-zero parameters leads to a better model. Any Vkk (1 ::; k ::; J) which is used for the first time as pivot element during the partial inversion process leads to a decrease of Voo because Vak VkO/Vkk 2: o. Any additional parameter leads to a model with smaller 0'. Searching the optimal model, and the model with minimum 0', we use MIC to construct a threshold to determine whether an additional parameter leads to a better model. Substitution ofthe ML parameter estimates (7) and (8) into the ALL-function 6 leads to the Maximum Average Log Likelihood (MALL) of the hypothesis: (ll) We determine the increase of the MALL in case of the introduetion of one additional parameter. Assume we have an estimated parameter vector Po, given the parameter configuration of the null hypothesis, and similar estimated param- eter vectors Pk, given parameter configurations of the kth alternative hypotheses 192 I 0 1 2 3 4 5 6 7 8 I corr. N _ 100 4 0 1978052 1719 32 0 6 0 263 8450 1273 14 0 0 0 8 0 340 8645 1003 12 0 0 0 0 0 10 0 379 8758 852 11 0 0 0 0 0 N - 1000 4 0 0 o 2572 7428 0 6 0 0 o 3004 6777 217 2 0 8 0 0 o 3737 6138 122 3 0 0 0 10 0 0 o 4245 5660 92 3 0 0 0 N - 10000 4 0 0 0 o 10000 0 6 0 0 0 0 256 7532 2212 2212 8 0 0 0 0 431 8523 1014 30 2 725 10 0 0 0 0 572 8685 714 28 1 431 Table 1: The observed number of parameter configurations as a function of the number of AR-parameters (horizontal) and the size of the AR-parameter space J (vertical) given 10.000 sequences of N observations generated according to the AR-model Xn = ~Xn-l + *Xn-2 + kXn-3 + ftXn-4 + f2Xn-5 + fhXn-6 + én. The probability on a too high number of AR-parameters a is 5%. In the last column we present the number of times the model has correctly been identified. having one additional AR-parameter with respect to the null hypothesis. The difference is MALL depends on k and equals: Compare this equation with (4). If the additional parameter is superfluous (0'0 ~ O'k) this statistic is chi-squared distributed [3] with one degree of freedom. If the additional parameter is a significant contribution to the model (0'0 ~ O'k), the expectation of (12) differs significantly from zero and the statistic is normally distributed [3]. We are only interested in the first case because the second case is a typical indication that the algorithm should proceed in adding more parameters. Assume there are K different parameters which can possibly be added to the space of non-zero parameters. If K = 1 we have a situation which equals the situation with AR-order estimation where you possibly add one pre-selected parameter in every iteration step. The threshold 7]high for the FAP a in case of one additional parameter can be solved from the equation [3]: -100 a - 2N1]h;gh _ f x (x h- 1 - erf ( J N 7]high) so 7]high - 2 _ (erf-l (1 - a))2 -"-----T,.------'-"'-- (13) If K > 1 the threshold should be higher because there are two or more possibilities of adding one parameter to the space of non-zero parameters. Assume that the differences in MALL, Ê {6((Po, Pk)} for different k, in case of adding different superfluous parameters are statistically independent amongst 193 each other. At this moment there is no theoretical evidence for this assumption. Empirically we obtain good results, so this assumption seems to be reasonable. Given this assumption, the maximum of Ê {""((Po, Pk)} has the distribution: In Cr;) = K -'.( -'.(_.;;]2-..,..7:_1-;2 )~)~l~< e_r_f -_1 (14) expxl2~ Instead of (4) we use as a criterion: (15) where we search the maximum as a function of the K alternative hypotheses. Similar to (13) we determine the threshold as a function of the FAP by solving "7high from the equation: (erf-1 (~)2 1 '00 K a= In (x))_( = 1 - (erf( j N T]high) ) so T]high = ->---..l.....,..,..---L.L..._ 2NlIh;gh (16) If the statistical dependence of the Ê {""((Po, Pk)} plays a significant role, we should use a lower threshold T]high, because the effective number of parameters decreases. Keeping T]high unchanged will reduce the FAP. Assume we have J AR-parameters and an empty space of non-zero param- eters; i.e. all parameters are zero. In the yth iteration (1 ::::;j ::::; J) of the estimation process we can add one parameter to the space of non-zero param- eters by performing a Gauf3-Jordan pivot, so this space contains exactly j - 1 different AR-parameters. This means that we can choose between K = J - j + 1 different parameters (pivot-elements) to be added. We select the parameters with the largest VOkVkolVkk; this is the parameter which leads to a maximum increase of the MALL. We compare with (15) the K results of (12) with T]high of (16); if this difference in MALL is larger than T]high we add the parameter to the space of non-zero parameters, by pivoting the matrix V with pivot element Vkk, and continue the iteration. If the difference in MALL is smaller we stop the iteration and the optimal model is reached. RESULTS First we have tested the behavior of our method in case of no AR-model. In this case we are fitting AR-models to white noise; the results were satisfactory. In table 1 we test our method is case of an AR-model where the importance of the parameters ai decreases with i. We expect an underestimation of the number of parameters which decreases with increasing sample size N. For N = 10000 the five AR-parameter models seems to be optimal. As expected the number of estimated models with 6 parameters decreases with increasing J due to the increasing threshold. 194 0 1 2 3 4 5 6 7 8 corr. N -100 2 1 9286 713 713 4 1 9448 535 16 0 235 6 2 9494 493 11 0 0 0 144 8 5 9505 479 10 1 0 0 0 0 103 10 5 9470 513 11 1 0 0 0 0 94 N _ 1000 2 o 6570 3430 3430 4 o 7618 2311 69 2 1869 6 o 8056 1881 62 1 0 0 1444 8 o 8274 1657 66 3 0 0 0 0 1205 10 o 8308 1628 62 2 0 0 0 0 1131 N - 10000 2 0 9 9991 9991 4 0 50 9509 428 13 9473 6 0 80 9495 407 17 1 0 9449 8 0 103 9473 414 10 0 0 0 0 9421 la 0 122 9460 405 13 0 0 0 0 9407 Table 2: As table 1 using the AR-model Xn 0.55xn-l + 0.05Xn_2 + en and a= 5%. A model with a possibly irrelevant parameter a2 = 0.05 is presented in table 2. We expect that for small N the model with and without the parameter a2 are indistinguishable. This is confirmed by the clear preference for the one AR- parameter model for N ::; 1000. Using N = 10000 we are capable of correctly identifying the correct model. Our claim of a FAP less than 5% is confirmed by the simulation results although in a significant number of cases a too simple model has been found. To verify the results in a fourth order model with two zero parameters we studied the model Xn = 0.50 Xn-l - 0.25 Xn-4 +en (see table 3). This model shows the advantages of our method. Our claim of less than 5% wrong identifications with irrelevant additional parameters has never been violated. For N ~ 1000 all identified two AR-parameter models correspond with the correct model. Finally we have used the model of table 3 in table 3 to verify the behavior of our method for other values of a. In this table we also find an excellent agreement between the simulations and the theory. CONCLUSIONS The correct model is not always the optimal model. It is a better strategy to estimate the AR-parameter configuration instead of the AR-order, accepting that the AR-parameters are not all non-zero. From a statistical point of view, parameters with a value negligible with respect to the estimation error, can better be fixated at zero. This leads to accepting some bias in the optimal model in order to decrease the estimation error. The algorithm performs satisfactory; in most applications the claim of an a priori selected probability of estimating a model with too many parameters 195 I 0 I 2 3 4 5 61 corr. a 1% 0 1 2 3 4 5 4 0 o 9912· 88 0 9912 I corr. 6 0 o 9907 93 0 0 0 9907 N -100 4 26 2737 7006 219 12 6487 8 0 o 9907 93 0 0 0 9907 6 32 3261 6460 241 6 0 5682 10 0 o 9918 82 0 0 0 9918 a 2% 8 47 3645 6076 228 4 0 5293 10 45 3764 5969 218 4 0 5143 4 0 o 9812 187 1 9812 N _ 1000 6 0 o 9807 191 2 0 0 9807 4 0 o 9514 477 9 9514 8 0 o 9811 187 2 0 0 9811 6 0 o 9528 466 6 0 9528 10 0 o 9822 178 0 0 0 9822 a - 10% 8 0 o 9532 458 10 0 9532 4 0 o 9060 889 51 9060 10 0 o 9546 446 8 0 9546 6 0 o 9022 934 43 1 0 9022 N - 10000 4 0 o 9503 487 10 9503 8 0 o 9070 892 38 0 0 9070 6 0 o 9499 483 17 1 9499 10 0 o 9112 854 33 1 0 9112 a _ 20% 8 0 o 9529 456 13 2 9529 4 0 o 8118 1664 218 10 0 o 9505 480 15 0 9505 8118 6 0 o 8114 1669 199 17 1 8114 8 0 o 8155 1639 196 8 2 8155 10 0 o 8199 1613 175 13 0 8199 Table 3: As table 1 using the AR-model Xn = 0.50Xn-l - 0.25xn_4 + én and a = 5% (left). Instead of the sample size N we also modify a for a given sample size N = 1000 (right). is fulfilled. The only theoretical weakness is the assumption of the statistical independenee of the differences in MALL (12). Although this assumption seems to be confirmed by simulations, a better theoretical foundation is necessary. In some cases our method fails systematically; we believe that this failure is not caused by a wrong estimation method, but has a theoretical foundation. SOme models are given a certain number of observations N indistinguishable. The problem of indistinguishable models has been neglected in the literature. The computational effort will mainly be determined by the number of samples N, the number of evaluated parameters J and the actually estimated number of parameters M. If the number of samples is large, the most costly operation is the construction of V and the complexity behaves like O{N x J}. So, for large N the algorithm has a linear complexity. The pivoting process, which costs 0 {M x J2} units of time, dominates for small N. REFERENCES [1] R. Moddemeijer, "An ARMA model identification algorithm," in Seventh Symposium on Information Theoru in the Benelux, D.E. Boekee, Ed. May 22-23 1986, pp. 151-159, Werkgemeenschap Informatie- en Communicatietheorie. [2] G.E.P. Box and G.M. Jenkins, Time series analysis: forecasting and control, Holden-Day series in time series analysis. Holden-Day, San Francisco, 1970. [3] R. Moddemeijer, "Testing composite hypotheses applied to AR order estimation; the Akaike-criterion revised," Resubmitted to IEEE Transactions on Signal Processing, 1997. 196 OPTIMAL RESOURCE MANAGEMENT ALGORITHM FOR ADAPTIVE MODELLING J. Levendovszky", L. Kovács", I. Koller", E.C. van der Meulen ' 1 Department of Telecommunications, Technical University of Budapest, Budapest, Hungary 2 Department of Mathematics, Katholieke Universiteit Leuven, Leuven, Belgium Adaptive modelling play a central role in information theory and modern information technologies (e.g. adaptive predictive coding, adaptive channel equalization, ... etc.). In order to achieve high performance, the mod- elling capability of the adaptive system should be of the same degree as of the unknown system. Undermodelling results in loss of performance, whereas overmodelling uses the modelling resources inefficiently. This is typically the case in adaptive noise cancellation when multi-channel cancel- lation must be performed by a single DSP. Thus, the filterlength belonging to a single channel should not exceed the degree of the modelled propaga- tion medium, otherwise there is not enough capacity left for other channels. As a result, traditional modelling algorithms such as recursive LMS must be modified in order to be able to model the degree of the system properly. In this paper a new algorithm, called Adaptive Filter Degree Adaptation (AFDA), is developed for this purpose. AFDA not only adapts the weights of an FIR filter according to the well known LMS algorithm but also adap- tively determines the filter degree needed for modelling the system. In this way, optimal resource management is guaranteed by striking a good balance between modelling degree and performance. In practice, this makes possible to solve multi-channel modelling tasks by a single piece of hardware. Besides proposing AFDA as a new algorithm and revealing its performance, the other main results of the paper is to ascertain the residual error ana- lytically as a function of the modelling degree. Keywords: stochastic approximation, adaptive signal processing, linear architec- tures, hypermatrices THE MODEL The problem of adaptive modelling is described as follows: 197 • Given a random sequence Xk, which is the primary input sequence. We assume that Xk is short term weakly stacionary and ergodie on a smaller time scale (which does not exclude the possibility of Xk being highly non- stacionary on a larger time scale). • The unknown system to be modeled is considered to be linear, thus at the reference point the following sequence appears dk = L:f=o ajXk_j, where aj, j = 0, ... , M represent the coefficients of the unknown system. As a result, the exact values of aj, j = 0, ... , M and M are unknown to us. • The input sequence Xk is fed into an adaptive FIR architecture, which yields an estimated system output sequence Yk at the reference point, given as Yk = L:Y=oWjXk-j. • At the reference point an error signal is made by substracting the system output from the estimated output ek = Yk - dk. The task is to find the optimal weights and degree of the adaptive FIR filter, which minimizes the residual mean square error, which is 1 IV min Wop' .Lop, : - L N k= 1 e2(k). (1) In our novel algorithm we include L into the optimization process, making the degree of the filteralso adaptive. THE TRADITIONAL APPROACH TO ADAPTIVE IDENTIFICATION The traditional method to minimize the mean square error as a function of the filter length is usually performed by the LMS algorithm given in the form of L wICk + 1) = w/(k) + ó(dk - L Wj(k)Xk_j)Xk_1, (2) j=O where w/(k) denotes the weight belonging to the lth tap at time instant k and 15k is the so-called learning constant. In order to ascertain the residual error one can use the following approximation (see [1, 2]) 198 therefore limN-+oo E 11Wopt - w~~lI12= 0, where Wopt is given by the following equation RWopt = r. (3) Here matrix R is defined as R;j = E (Xk-iXk-j) and vector r is r ; = E (dkxk-i) respectively. Using this approximation the residual error can be calculated as the minimum of J(w) = .E(d%) - 2wTr + wTRw, which results in (4) The transient time of algorithm (2) can be upperbounded by the expression CT", M log <5 log (m'!o log( v(O) - VOPti)) (5) log !3max log !3max where !3max denotes the maximum eigenvalue of matrix R. With regard to algo- rithm (2), one can pose the following questions: l. What is the effect of undermodelling (L < M) on the system performance? (In other words, we would like to derive a formula which expresses the residual error as a function of modelling filter degree Jres(L).) 2. Without having exact knowledge about M, how to set (or adaptively mod- ify) the modelling degree L in order to get a close approximation of the unknown M? THE RESIDUAL ERROR AS A FUNCTION OF THE MODELLING DEGREE In this section, we derive a formula whichexpresses the residual error as a function of modelling filter degree Jres(L). This function is summarized in the following theorem. Theorem: The residual error as a function of the degree of the identification filter, Jre• (L) decreases as J(L) ~ 0 (const(M - Lhmina:rn), where {min is the minimal eigen- value of matrix Rm - RcTR-1Rc and a:ln is the minimal component of vector am. The notations used in the theorem is given as follows: 199 , 1. the M dimension coefficient vector a from expression E~o ajXk_j is parti- tioned into a = (aL,am) where aL = (ao, ... ,aL) and am = (aL+l, ... ,aM), respectively; 2. the corresponding correlation matrix R, which is of type M X M, is parti- tioned into where RL is of type LX L, RC is of type (M - L)X Land R m is of type (M - L)X(M - L). To prove the theorem one can rewrite eXI;>ression(4) -of the residual error into the following form (6) This form can easily be derived as follows: First let us determine the optimal weights based on equation (3). Here again and L L L ajE(xk-jXk_t) + E(VkXk-i) = L ajRij + bi, j=o ~o or in vectorial notation r = Ra + b. Note that the matrix RL is of type LxL. Thus, Wopt can be obtained as follows: (7) From this Wopt = a + RL-lb. Using this expression, the residual error given by (4) can be expressed as bTRL-1TRLRL-lb _ 2bTRL-lb + E(v~) = E(vD - bTRL-1b (8) 200 By using the definition of b M L ajRt j=L+1 and M M M M L L ajaiE(Xk-jXk-d = L L ajaiRiJ = amTRmam. j=L+1 i=L+1 j=L+1 i=L+1 hypermatrices (the interested readers can turn to [2]), one can arrive at J(L) ~ o (const(M - L)rmina;::7n)' As a result we can conclude that if the degree of undermodelling of the unknown system is M - L then the residual error decreases proportionally. residual squared error 9000 ~-----.----,-------,-----.-----,--------, degree of the propagation medium = 100 - 8000 7000 6000 5000 4000 3000 2000 1000 o L_ ~ ~ ~ _L ~~ ~ o 20 40 60 80 100 120 adaptive filter degree Figure 1 The residual error as a function of the modelling degree FILTER DEGREE ADAPTATION . As was stressed before, the success of adaptive identification hinges upon the difference between the model degree M and the modelling degree L. In the case of undermodelling, when M > L, the residual error can remain high after the 201 convergence (see Theorem 1). In the case of overmodelling, when M < L the resource management is not optimal. Traditional methods, such as proposed by Akaike [6] and Rissanen [5] used infor- mation theoretic measures to obtain this degree. Based on the minimization of the Kullback Leibler mean information, the following estimation was obtained: L = -R(O) + O.5mlog N (9) where R(O) = maxL:~llogg(Xi I w) Equation (8) is obtained form minimizing ;_: g(y log g(x)dx - ;_: g(x log g(x I w)dx. This estimation though, proves to be rough in practice. Therefore, one may wish to find out the exact modelling degree in the course of the weight adaptation. This can be don'e by using the Adaptive Filter Degree Algorithm (AFDA), de- scribed as follows: Given: An initial filter degree L, the initial filter coefficients wo(O), Wl(O), ... , WL(O), the learning coefficient J, a stabilization factor a, an averaging window K, and a pre-set value of the residual error E, 1. Start to perform the recursion until the weights are stabilized which is measured by the following criterion L ~]wj(k + 1) - Wj(k))2 ::; a j=O 2. When the weights are stabilized measure the mam square error by the t: ** rorrnu I a K1 "K if L....k=lek2 an d L:t"=l e%::; e then stop the algorithm or if L:t"=l e%> e then increment the filter degree by setting L := L + 1 and go Back to Step 1! Since the degree of the filter (the number of coefficients) is gradually increased until it reaches the degree of the model, AFDA is expected to yield very small 202 residual error. Simulations prove that this algorithm is capable to find the un- known model degree, therefore optimal resource management is guaranteed. APPLICATION TO ADAPTIVE NOISE CANNCELLING AND NUMERICAL RESULTS A straightforward application of AFDA is in the field of active noise cancellation. In this case the unknown system to be modelled is a propagation medium (e.g. air) between the primary noise source and the cancellation point. The modelling filter is an adaptive FIR architecture implemented on a DSP. To find the exact number of filter coefficients of the FIR filter (modelling degree) is essential in order to leave enough room for other applications running on the DSP (e.g., multichannel noise cancellation). Therefore, optimal resource management is crucial when implementing a multichannel active noise cancellation system. Figure 1 shows the residual error as a function of the FIR degree while obtained recursively by AFDA. It can be seen in Figure 3 that the unknown degree of the propagation medium is found by AFDA. squared et i ur [uD] o ~---,-----.-----.-----.-----.----.-----,----, learning curve of LMS, M=100, L=25 - -5 -10 -15 -20 -25 L_ __ ~ ~ L_ __ ~ ~ L_ __ -L __ ~ o 500 1000 1500 2000 2500 3000 3500 4000 discrete time Figure 2 Learning curve of an undermodelled system 203 squared error [dB] o r-------,--------r-------,-------,--------, learning curve of AFDA, M=100 - -20 -40 -60 -80 -100 -120 -140 -160 L_ ~ -L ~ ~L_ __J o 5000 10000 15000 20000 25000 discrete time Figure 3 Learning curve by AFDA ACKNOWLEDGEMENT The research reported here was supported by the Hungarian National Science Foundation, project number T025964. REFERENCES [IJ Widrow, B., Steams, S.D.: Adaptive signal processing, Prentice Hall, 1985. [2J Roberts , A.R., Mullis, C.T.: Digital signal processing, Addison Wesley, 1990 [3J Kuo, S.M., Morgan D.R.: Active noise control systems, Algorithms and DSP implementations, John Wiley, 1996 [4J Kailath, T.: Lineal' systems, Prentice Hall, 1990 [5J Rissanen, J,: "Modelling by shortest data description", Automatica, vol. 14., pp.465-471 [6J Akaike, H,: "A new look at the statistical model identification" , IEEE Trans. Automatic Control, vol. AC-19, pp. 7l6-723. 204 MULTIRATE BLOCK CODES J.B.H. Peek Computing Science Department Nijmegen University INTRODUCTION Controlof the transmitted signal spectrum is essentialin digital transmission systems [1J. If the power spectral density (PSD )-function of the transmitted signal differs greatly from the frequency response of the channel, severe ISl and loss of signal power will result. In [2, 3] it is shown that the transmitted signal spectrum can be shaped by using a linear discrete-time multirate digital filter. "Multirate" refers to the property that the output sampling rate can be larger or smaller than the input sampling rate. With these filters spectral nulls at DC or (and) at the Nyquist frequency can be created. The multirate filter operation is described by a K x L matrix that transforms a block of L bipolar input samples into the block of K output samples with two or more uniformly spaced levels. Thus the transforma- tion is given by y = AJ2, where A is a K x i matrix and J2 and y are column vectors of length -L and K respectively. - Note that a baseband signal s( t) = L~I y( i) p( t - iT), where p( t) is a pulse and T the time interval between samples, may have shaping contributed by both the block code and the pulse p(t). Examples of matrices were given in [2, 3]. In order that such a matrix transformation is one-to-one, the matrix must be {-1,0,1 }-nonsingular [2J. All matrices described hereafter have this property. In [2] it was shown that if the bipolar input samples are equiprobable and statistically independent then the PSD-function of the output process y( m) is ~ Syy(eJ ) = K1 . II~II2 (1) where ~ is a complex vector defined by te z = ~ a e-jB(p-l) (2) - ~ -p* p=1 and where !lp* denotes the p-th row of A and where 0 wT IS the relative frequency. 205 MULTIRATE BLOCK CODES WITH SPECTRAL NULL AT DC OR AT THE NYQUIST FREQUENCY For a multirate (MR)-code described by a matrix A and with a spectral null at DC, ~ = Q for () = O. In that case K Q= L ff. p•. (3) p=1 In other words, the sum of the elements of each column of A is zero. An example of a matrix with a spectral null at DC is -I -I -I c= -I K , f{ ? 6 -I 1 -I -I L=f{-1 in which for reasons of clarity the zero entries are not indicated. The sample output rate is R = i~1times the sample input rate. If;!i_ E {-I, I}L then E {-2, 0, 2}K. That is the output codewords have M = 3 levels. The property 'M.. that all columns of C give a zero sum is not lost by permutation of the rows. A permutation can, however, result in a different shape of the PSD-function Syy(ejB). This gives an extra degree of freedom when selecting a code for a specific application. A DC-free MR-code has the additional property that the block digital sum, i.e. the sum of all samples in an output block, is zero. This can be seen from SI .£ YI + Y2 + + YK = g_L . ;!i_ + ...+ g_"k. . ;!i_ ;!i_T . (g_h + + ff.K.) = ;!i_T . Q = °. (4) This property will be used below in decoding (error correction). Coding special- ists may note that the DSV (digital sum variation) [1] for this C-code is 4 and the minimum Hamming and Euclidean distance are dn = 2 and de = 2 V2 re- spectively. To demodulate (input data recovery) an MR-code with a spectral null at DC, note that because of (3) the last row of C can be deleted, and similarly, because of (4),· the last component of the vector'M..can be deleted. To use these proper ties in demodulation, define the reduced vector 206 and let C\ be the square i K - 1) by (/{ - 1) matrix that is obtained by deleting the last row of C. Clearly, Cl is invertible, and so the vector *- can be recovered by -l 1[1= C-l C1 1 C1 *- = *- . (5) This inverse matrix operation can be implemented with an MR-filter. By chang- ing the signs of the entries of the odd numbered rows of C, another matrix is obtained such that K L (-1)Pçp• = .0. , (6) p=1 which implies, from (2), that instead of a DC null, a Nyquist null will result (z = .0. for () = ±1T). If an MR-code, with matrix A, has a Nyquist null it follows that i.e. the output block sum with alternating signs, is zero. SPECTRAL NULLS AT BOTH DC AND THE NYQUIST FREQUENCY An MR-code that has a spectral null at DC and at the Nyquist frequency is given by -1 -1 1 -1 1 -1 -1 B= K , where K ~ 8 and even. -1 -1 L=f{-2 The output rate of the MR-filter for this code B is R = KK_2 with M = 3. According to (4) and (7), 51 = 0 'and 52 = 0 for this code. These two constraints can also be expressed in a different way. If So denotes the sum of all odd numbered samples in an output block y and Se denotes the sum of the even numbered samples in a block then(4) and (7) can be rewritten as 51 So + Se = 0 52 -So + Se = 0 or So Se = 0 . (8) 207 These constraints can be used in decoding (error correction) this B-code. Demod- ulation (input data recovery) is similar to that for the C-code. Instead of one row of the matrix and one component of U, now two rows of B and two components of lL can be deleted. Let U2 ~ (Yb"" YK -2f and let BI be the square (1-( - 2) by (K - 2) matrix that is obtained by deleting the last two rows of B. Clearly, BI is invertible, and so the vector Ji_ can be recovered by B-1 1 lL2= B-1 1 B lJi_=Ji_· (9) HIGHER-ORDER SPECTRAL NULLS Sometimes a faster reduction of the transmitted signal power near DC or near the Nyquist frequency is required. This can be achieved with MR-codes with higher order spectral nulls. Karabed and Siegel [4] described partial response codes with higher order spectral nulls. Before describing MR-codes with a higher order spectral null at either DC or the Nyquist frequency it is necessary to extend the theory of MR-codes. According to (2) the i-th component of ~ is K '"'" . - iO(p-l) L...J apt e , l:Si:SL. (10) p=1 With z-transform notation (z = eiO), (10) can be denoted as Hi(z) and expressed as H i ( Z ) -~ ati + a2iZ -I + ... + aKiZ -(K-I) , (11) Therefore (1) can be rewritten as Syy(z) 1 = K . E L Hi(z) Hi(Z-I), or (12) S'yy(eiO) = ;{ . ~ Hi(eiO) Hi(e-iO) . (13) This PSD-function has an order-N spectral null at e = eo if [4] n d 'yye -de S' (iO) I --, 0 n = 0,1, ... , 2N - 1 . (14) n 0=00 For example if Vi, (15) then successive differentiations of (13) show that Syy( eiO) will have an order-2 spectral nullfor e = eo. The Fourier transferm of a block of K output samples is Y(eiO) = Yl + Y2 e-iO + ... + YK e-i(K-I)O . (16) 208 Equation (16) can also be written as If there is an order-2 spectral null at 8 = 80 then.t using (15), Y' (ejBO) = :r_ T . Q = 0 , For example an order-2 spectral null at DC implies that jO S ~ Y'(e ) = Y2 + 2Y3 + ...+ (K - 1) YK = 0 , (17) This constraint on the output samples in every block will be used later when decoding of an MR-code with an order-2 spectral null at DC or the Nyquist frequency is described. We now describe an MR-code which has an order-2 spectral null at DC and an order-l Nyquist null. It is given by the 8 x 4 matrix, generating a code with rate R = 2 and M = 3 levels, 1 -1 -1 -I -I D= -I -1 (18) -I -1 The four polynomials associated with the four columns are Hl(Z-I) 1 - Z2 - Z4 + Z6 = (1 - Z)2(1 + z)2(1 + Z2) H2(Z-I) Z Ht{z-l) = z(l- z?(1 + z)2(1 + Z2) H3(Z-I) 1 - z .; Z6 + Z7 = (1 - z)(1 - z3)(1 + Z3) H4(z-l) z2 _ z3 - z4 + z5 = z2(1 - Z )2(1 + z) , Since these polynomials have a double zero at DC (z = 1) and a single zero at the Nyquist frequency (z = -1) in common, it follows that i=I,2,3,4. (19) Therefore Syy(z)has an order-2 spectral null at DC and an order -1 Nyquist null. From (8) and (17) it follows that for this D-code the following three constraints are valid So = 0, Se = 0 and S ~ Y2 + 2Y3 + 3Y4 + 4ys + 5Y6+ 6Y7 + 7ys = 0 , (20) 209 It can be shown that the minimum Hamming and minimum Euclidean distance of this D-code are dH = 4 and de = 4 respectively. After decoding, the last three rows of D and the last 3 components of ¥.. can be deleted when demodulation is required. If '!b ~ (Yl,Y2,Y3,Y4,Y5f and if Dl is a left inverse (4 by .5) of the reduced (5-row) matrix D' then As a second example, a matrix that gives an order-2 Nyquist and an order -1 DC null is obtained by substituting for z the value -z in the four polynomials mentioned before with the corresponding matrix -1 -1 Dil = -1 -1 -I -1 -1 -1 HIGHER NUMBER OF LEVELS TO CONSERVE BANDWIDTH The matrices E, C, D and Dil, which generate ternary (M = 3) codewords can be used to construct extended matrices that will give code words with M = 7,15,31, ... , 2N - 1 levels. Consider for example the matrix A = (1 -1 _~) l' 4 3' M =3, -1 -1 which gives an order-I DC null. We define the notation (A2A) as the matrix A concatenated with a matrix in which all entries of A are multiplied by a factor two [2]. Thus 2 -2 2 ) (A2A) ~ ( _: _: :: _, 2 . -2 -2 This matrix corresponds to a code with M = 7 levels, with R2 = ~ which is half the rate of RI = ~. In this way bandwidth was reduced by a factor of 2 in exchange for more levels. It can be shown that matrices (A2A), (A2A4A), etc. are {-I,D, 1}-non-singular and yield the same PSD-function as A, provided A is a matrix of the type E, C, D or Dil. Hence multilevel MR-codes with the same spectral shaping properties as those of the E, C, D or Dil codes can be constructed with various bandwidth-number of levels tradeoffs. The samples of the JL vector (block) generated by a E, C, D, or Dil code or one of their extensions, are transmitted over a channel as a pulse train in which each sample value y(i) 210 multiplies a pulse pet - iT). If pet) has the Fourier transform P(.f) then the PSD-function of the transmitted output process [5] is (recalling that B = 271' fT) (21) DECODING (ERROR CORRECTION) AND DEMODULATION (INPUT DATA RECOVERY) Modeling the transmission channel as an AWGN (additive white Gaussian noise) channel and assuming that the autocorrelation function of the pulse pet) satisfies Nyquist's first criterion one obtains, after a filter matched to the pulse p( t), a recei ved vector (22) where Y is the transmitted codeword of length K and 11 is a noise vector of length K with statistically independent noise components each with a variance a2. As described earlier H_ consists of components with M = 3,7,15 or in general 2N - 1 levels. The components of t' are rounded to the nearest of the IvI levels, yielding Ll. r_ = (z;" )round-off . (23) We now describe a decoding algorithm for code C (dH = 2, de = 2j2): if So + Se = 0 then r.. correct else if So + Se = ±2 then change that sample that has the largest rounding error leilmax (ei = r; - ri) in such a way that the sum So + Se becomes zero (this is Wagner decoding [6,7]) 1501 ;::: 2 and I~'el ;::: 2 detect error. A decoding algorithm for the code B (dH = 2, de = 2 j2) looks similar. This decoding of the code B or C is not correct if dH(y, r) ;::: 2 or if dH(y, z) = 1 and the determined error position (as based on le;!max) is in fact correct, or if dH(y_,r_) = 1 and leilmax > 2. If PI (error) denotes the probability of a decoding error then it can be shown that for small values of a where de = 2 J2 and Cl" a constant. This result implies that for high SNR's the MLS (maximum likelihood sequence) detection bound is reached. A decoding algorithm for the D-code (dH = 4, de = 4) is as follows: Let 211 Se ~ 1'2 + 1'4 + 1'6 + 1'8 S ~ 1'2 + 21'3 + 31'4 + 41's + 51'6 + 61'7 + 71'8 8 T ~ Sa + Se + S = I:i r, i=l So = Se = 5' = 0 z correct (first step: single error detection and correction) else if So = ±2 and Se = 0 and T =f- 0 then error size is So and error position is T / So, correct this sample by =f2 else if So = 0 and Se = ±2 and T =f- 0 then error size is Se and error position is T/S" correct this sample by =f2 (second step: double error detection and correction) So = ±4 and Se = 0 and T =f- 0, or Se = ±4 and So = 0 and T =f- 0, or So = ±2 and Se = ±2 and T =f- 0, change that sample, either in an even or odd positron, that has the largest rounding error such that the absolute value of So (So =f- 0) or Se (Se =f- 0) is reduced by 2 (what is left is a single error which can be corrected using single error correction) Se = So = 0 and T =f- 0 determine that sample with the largest rounding error le;!max if leilmax > 0 then correct that sample by adding 2 if leilmax < 0 then correct that sample by adding -2 (what is left is a single error which can be corrected using single error correction) ISel > 4 or ISol > 4 detect enror. Suppose dH(y,:c) = 2 and that the error positions are i and j in case a double error is detected. Then decoding is not correct if leilmax does not occur at positions i or j or if le;lmax > 2. If P2(error) denotes the probability of a decoding error then it can be shown that for small values of a P2(error) ~ C2Q(%:-) where de = 4 and C2a constant. Thus for high SNR's the MLS detection bound is reached. Demodulation of the MR-codes B, C and D has already been described. The first step in the demodulation of their extensions is similar to that for the B, C and 212 D codes. For example, the first step in the demodulation of the code (B2B4B) with R = 3(rf-2) and M = 15 is as follows. Assume that r. is correct so that r. = '!f_ and r. = '!f_ = (B2B4B):£ . (24) Let g; = (~) where ;£1,;£2 and ~ are column vectors of length (K -2). Equation (24) can then be rewritten as The first demodulation step gives (9) Bil '!f_2 = R;l B1(;£1 + 2;£2 + 4~) = ;£1 + 2;£2 + 4~ . This is an 8-ary PAM-vector of length (K - 2). The second and last step in de- modulation of this PAM-vector to the original vector ;£ is a standard procedure. Acknowledgement. I want to thank Dr. L.M.G.M. Tolhuizen for the many fruitful discussions and for his valuable observations and comments and Dr. S.B. Weinstein and Dr. J.W.M. Bergmans for reading the manuscript. and their helpful comments. REFERENCES [1] E.A. Lee, D.G. Messerschmitt, "Digital Communication", Kluwer Academic Publishers, Second Edition 1994, Chapter 12 (Spectrum Control). [2] J.B.H. Peek, L.F.P.M. Lakeman, "Generating Block Line Codes with Spec- trum Nulls Using Multirate Digital Filters", Proc. IEEE ICC 1991, Denver, June, 1991, pp. 1098-1102. [3] R.D. Gitlin, J .F. Hayes and S.B. Weinstein, "Data Communications Princi- pies", Plenum, 1992, Section 4.7, "Block codes: a multirate digital filtering approach", pp. 277-278. [4] R. Karabed, P. Siegel, "Matched Spectral-Null Codes for Partial-Response Channels", IEEE Trans. on Information Theory", Vol. 37, No. 3, May 1991, pp. 818-855. [5] R.D. Gitlin, J.F. Hayes and S.B. Weinstein, "Data Communications Princi- pies", Plenum, 1992, Appendix 4A (Power density function of a correlated line signal). [6] R.A. Silverman and M. Baiser, "Coding for Constant Data Rate Systems", IRE Trans. Information Theory, Vol. 4, September 1954, pp. 50-63. [7] S.G. Wilson, "Digital Modulation and Coding", Prentice Hall, 1996, p. 518. 213 THE BINARY MULTIPLYING CHANNEL WITHOUT FEEDBACK: NEW RATE PAIRS IN THE ZERO-ERROR CAPACITY REGION Ludo Tolhuizen Philips Research Laboratories, WY 61 Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands tol huizn@natlab.research.philips.com Two terminals, Tl and T2, wish to communicate over the binary multiplying channel (BMC). To this end, they choose sets X and Y, respectively, of (input) vectors in {O,l}n If xEX and yEY are fed to the channel, it gives as output the vector x-y , defined by (x· y)i = XiYi for all i E {I, 2, ... , n}. Each terminal should be able to determine unambiguously the vector transmit- ted by the other one, using its own transmitted vector and the observed channel output. We call a pair (X, Y) satisfying this requirement uniquely decodable, or DD for short. Moreover, we call a DD pair (X, Y) symmetric if X = Y. Note that unlike [1], we do not allow feedback, that is, encoding of a message does not depend on the output bits observed so far. Example Take X = Y = {(I, 1,0), (1,0,1), (0, 1, In. Suppose that Tl trans- mits (1,1,0). If T2 transmits (1,1,0),(1,0,1) or (0,1,1), the channel outputs are (1,1,0),(1,0,0) and (0,1,0), respectively. As these channel outputs are distinct, Tl can determine which vector was transmitted by T2. The same holds for the other possible input vectors of Tl. By symmetry, T2 can act like Tl, and we conclude that (X, X) is a (symmetric) DD pair. Note that (1,0,0) occurs as output vector twice, namely if Tl transmits (1,1,0) and T2 transmits (1,0,1), or vice versa. The knowledge of its own transmitted vector allows each terminal to choose the correct alternative. The natural question is how many words the codes of a DD pair can have. In order to compare DD pairs of unequal length, we consider the rates of the codes of such pairs, i.e., if (X, Y) is a DD pair of length n, we consider the rate pair (R(X), R(Y)) = (~log lXI, ~ log IYI) As usual, all logarithms have base 2. 215 We will call a rate pair (x, y) achievable if for each e > 0, there exists a VD pair (X, Y) such that R(X) > x - e and R(Y) > y - e, The set of achievable rate pairs will be called the zero-error capacity region of the BMC without feedback and it will be denoted by Z. In [2], we provide a construction of VD pairs from cosets of binary linear codes with many information sets and obtain the following theorem. As usual, h denotes the binary entropy function: h(p) = -plogp - (1 - p) log(1 - p), 0 < p < 1. Theorem 1 {(h(R2) + RI - 1, h(RIl + R2 - 1) I ~ ::::;RI, R2 < I} C Z. Moreover, for ~ ::::;R < 1, the rate pair (h(R) + R - 1, h(R) + R - 1) can be achieved with symmetric UD pairs. Specializing Theorem 1 to the case RI = R2 = 2/3, we find Corollary 1 The rate pair (log(3/2), log(3/2)) ~ (0.58500,0.58500) can be achieved with symmetric UD pairs. The rate pair of Corollary 1 yields the largest known sum of the rates of pairs in Z. The largest known sum rate so far was obtained by Shearer [3] who constructed an VD pair of length 72 with rate pair (0.54797,0.54797). It follows from [4, Thm. 3] that the rate pair of Corollary 1 is the largest possible that can be achieved with symmetric VD pairs. Stated differently, asymptotically our construction yields cancellative families of sets [4] [5, Sec. VII] of largest possible rate. The results are represented graphically in Figure 1. The new rate pairs from Theorem 1 lie on and below the curve N, labelled by "new rate pairs". The line segment "upper bound" represents the upper bound of [6], which states that for any rate pair (x, y) in Z, x + Y ::::;1.2181. I As ({1},{0,1}) is a VD pair, (O,I)EZ; similarly, (I,O)EZ. With a time sharing argument [1, Sec. 8J, it can be shown that Z is convex. Consequently, all rate pairs on and below the tangents to N through (1,0) and (0,1) are in Z. The relevant segments of these tangents are drawn as well. 1 As remarked by Erik Meeuwissen in [7, Stellling 2], combination of this upper bound with Shannon's lower bound [1, Sec. 13] shows that the zero-error capacity region of the BMC without feedback is strictly smaller than its c-error capacity region. 216 NEW RATE PAIRS - UPPER BOUND .• - .. SHEARER'S RESULT 0 0.8 0.6 0.4 Figure 1: Graphical representation of the results. All points below the solid curve or its two tangents are in Z. REFERENCES [IJ C.E. Shannon, "Two-way communication channels", Proc. 4th Berkeley Symp. Math. Stat. and Prob., 1961, pp. 611-644. Reprinted in Key Papers in the Development of Information Theory, D. Slepian(ed), IEEE Press, 1974, pp. 339-372. [2J L.M.G.M. Tolhuizen, "New rate pairs in the zero-error capacity region of the binary multiplying channel without feedback", April 1999, submitted to IEEE Trans. Inform. Th. [3J J.B. Shearer, "On Cancellative Families of Sets", Electr. J. Combinatorics, Vol. 1, No. 4, 1996. [4J P. Frankl and Z. Fiiredi, "Union-free Hypergraphs and Probability Theory" , Europ, J. Combinatorics, Vol. 5, 1984, pp. 127-131. [5J J. Körner and A. Orlitsky, "Zero-Error Information Theory", IEEE Trans. Inform. Th., IT-44, 6, Oct. 1998, pp. 2207-2229. [6J R. Holzman and J. Körner, "Cancellative Pairs of Families of Sets", Europ, 1. Combinatorics, Vol. 16, 1995, pp. 263-266. [7J H.B. Meeuwissen, Information Theoretical Aspects of Two-way Communica- tion, Ph.D. thesis, Eindhoven Univ. Techn., May 1998. 217 Error Correction Capabilities of Concatenated Coding Schemes with Single-Trial Bounded Distance Decoding and Optimized Erasing Jos H. Weber' Khaled A.S. Abdel-Chaffar! Delft University of Technology, Fac. ITS University of California, Dept. ECE POB 5031, 2600 CA Delft, The Netherlands Davis, CA 95616, USA J .H.Weber@ITS.TUDelft.NL ghaffar@ece.ucdavis.edu 20TH SYMPOSIUM ON INFORMATION THEORY IN THE BENELUX, HAASRODE, BELGIUM, MAY 27-28, 1999 For concatenated coding schemes with single-trial bounded distance decoding and optimized erasing, the maximum number of channel erT07'Sfor which correction is guar- anteed is determined. I Introduction We consider concatenated coding schemes using a Q-ary outer code of length Nand Hamming distance D, and a q-ary inner code of length n, size Q, and Hamming distance d. Data is first encoded by the outer encoder to form a sequence of N Q-ary symbols. Using a one-to-one map from the alphabet of the outer code onto the inner code, the ith Q-ary symbol is mapped to a codeword c, in the inner code. This results in a sequence Cl, ... , CN of N n q-ary symbols, which we call the overall codeword. The Nn q-ary symbols are then transmitted over a q-ary channel and may suf- fer from channel errors. The output of the channel is partitioned into N sequences rl" .. , rN, each having n q-ary symbols. Let ei, where i = 1, ... , N, be the number of q-ary symbols that are erroneously received in the ith sequence rio Each sequence r, is decoded according to the inner code using bounded distance decoding. The inner decoder either succeeds in decoding r, into a codeword c: in the inner code that differs from the received sequence in hi :S l(d - 1)/2 J q-ary symbols, or it may fail in decoding the sequence, in which case we set hi = l(d + 1)/2 J. Let I', of size 1', be the set of all indices i for which hi = l(d + 1)/2 J, i.e. for which the inner decoder fails to decode r., and I", of size I", be the set of all indices i for which ci =J Ci, i,e., for which the inner decoder erroneously decodes rio Clearly, the receiver knows the vector h = (hl, ... ,hN) and consequently the set I' = {i : hi = l( d + 1)/2 j}, but it does not know the set I" except that it is a subset of {I, ... , N} \I'. Based on this knowledge, the recei vel' chooses a set E ç {I, ... , N} containing I'. This set determines the input to the outer decoder which is a sequence of length N whose elements are either Q-ary symbols or erasures. If i (j_ E, the ith element of this sequence is a Q-ary symbol obtained by applying the inverse of the map used by the encoder to C;. If i E L, the ith element in the input sequence to the outer decoder is an erasure. The outer decoder operates on the sequence of N Q-ary symbols/erasures using bounded 'The major part of th is work was done while this author was a visiting researcher at the University of California in Davis, USA, tThis author was supported by NSF Grant CCR-96-12354, 219 distance decoding. We say that decoding is successful if the outer decoder succeed's in producing the Q-ary sequence of length N which is the output of the outer encoder. This is not the case if and only if l.cl + 2II"\.c1 2 D. (1) Several erasing strategies have been proposed in literature (see, e.g., [2], [3]), varying from a simple rule as merely erasing a fixed number of the most unreliable symbols to more complex rules in which for each possible inner decoding result the erasure pattern is optimized according to some criterion. Another distinction which can be made is whether outer decoding is done only once (single-tria0 or multiple times (multi-trial), where in the latter case the best among the various outer decoding results associated with different erasure patterns is chosen as the final decoding result, as in Forney's Generalized Minimum Distance (GMD) decoding algorithm [IJ. In this paper, we focus on schemes with optimized erasing and single-trial decoding. Optimized erasing with a restricted number of trials has been considered by Kovalev [2J in the context of GMD decoding with reliability coefficients from the continuous interval [O,IJ. The pattern of symbols to be erased was optimized with respect to minimizing the loss of realizable distance compared with the Forney algorithm. Here, the set of reliability coefficients is finite, and the pattern of symbols to be erased is chosen such that the number of q-ary errors in the concatenated codeword which is guaranteed to be corrected is maximum. Let e( d, D) denote the minimum value of these maximized numbers, where the minimum is taken over all possible inner decoding results. Hence, e( d, D) is the number of channel errors which is guaranteed to be corrected by the concatenated coding scheme. Section II provides an explicitexpressions for 1::( d, D). 11 Results Define E( d, D, h,.c) to be the minimum number of channel errors el + ... + eN that cause unsuccessful decoding for a given vector h and a given set .c. Next, define E(d,D) = minmaxE(d,D,h,.c), h C (2) where the minimum is over all vectors h = (hl>" ., hN) with 0 ::::hl, ... , hN < L(d + 1)/2J. Note that e(d,D) = E(d,D) -1. Clearly, in search for the minimum in (2), we can assume tha.t hl 2 ... ? hN, which we will do in the rest of this paper. With this assumption, I' = {i : 1 ::::i ::::f'}. Further, it is convenient to define for 0 ::::I ::::N, [(D+/)/21 N E(d,D,h;I)= L (d-2hi)+Lhi. (3) The next theorem, which isproved in the Appendix, provides a useful expression for E(d, D). ' Theorem 1 For d, D 2 1J (D+/+I)/2 D E(d,D) = min rnax E(d,D,h;l) = min max L (d - 2h;) + Lhi, h D:Sl:$D-l h O$l::;D-l I=D-l(2) I=D-l(2) 220 Table I: Value of E(d, D). d,D E(d, D) d~2VD~2 , Dd/21 d=3!\D?3 D + lD/3J - lD/6J + 1 d=5!\D?3 3D + 1 - 2lD/2J d ? 4 !\ d ie- 5 !\ D == 3(4) ,3( D + 1)d/81 d?4!\die-5!\D=4 ,3d/21 + ,(d - 1)/41 a > 4!\ d ie- 5!\ D == 0(4)!\ D ? 5 ,3dD/81 + ,d/41 d == 0(2) !\ d ? 4 !\ D == 1(8) !\ D ? 5 (3D + 5)d/8 - ld/3 J d == 1(2) !\ d? 7 !\ D == 1(8) !\ D ? 5 (3D + 5)d/8 - ,d/31 + 1 d ? 4 !\ d ie- 5 !\ D == 5(8) !\ D ? 5 ,(3D + 5)d/81 - ld/3 J á >: 4!\ d ie- 5,9!\ D == 2(4) !\ D ? 5 ,(3D + 2)d/81 d = 9!\ D == 2(4)!\ D > 5 19(3D + 2)/8J + 1 where the minimization is over all h = (hl, ... , hN) such that d/2 ? hl ? ... ? h o ? hD+I = ... = hN = O. Based upon this result, we can now deri.ve an explicit expression for E(d, D), and thus for e(d, D). 'I'hcoi ~Ul 2 For ä, 1) ? t, the value of E( d, D) = e( d, D) + 1 is as given in Table J. Proof. First, we will give the proof for the case d, D == 0(4). Let where xY denotes the vector (x,x, ... ,x) oflength y. From (3), we have *. _ { 3dD/8 + d/4 if 1 ~ i ~ D/2 + 1, i odd, E(d, D,h , i) - 3dD/8 + d/4 _ (2i- D - 2)d/4 if D/2 + 2 ~ i ~ D -1, i odd . . In particular, it follows from Theorem 1 that E(d, D) ~ 3dD/8 + d/4. (4) To show equality, let h be as given in Theorem 1 and suppose that E(d, D, h; i) ~ 3dD/8 + d/4 - 1 (5) for alii with 0 ~ i ~ D - 1 and i odd. Hence, it follows from (3) that 3dD/4 + d/2 - 2 ? E(d, D, h; 1) + E(d, D, h; D/2 + 1) ? 2hl + 3dD/4 which implies that hl ~ d/4 - 1. Since hl ? ... ? b o ? 0, we have from (3) D/HI D D/HI E(d, D, h; 1) hl - L hi + L hi + dD/2 ? (hl - h2) - L hi + dD/2 i=2 i=D/2+2 i=3 > -(D/2 - 1)(d/4 -1) + dD/2 ? 3dD/8 + d/4 221 Table 11: Vector h* such that E(d,D,h*;i) ::; E(d,D) for all i. N.B. A vec- tor (x,x, ... ,x) of length y is denoted as xY; further, a = 2ld/3J - ld/2J, b = 2ld/3J - rd/2l, and °is an all-zero vector such that the length of h" equals N. d,D h* d::;2VD~2 (ld/2JD,0) d=3/\D"23 (1 LD/2J+LD/3J - LD/6J+!,0) 4S;d::;5/\D"23 (lLD/2J+l,0) d"2 6/\ D:= 1(4) /\ D"2 3 (l d/:3 J(D+l)/2, ar(D-l)/81, bL(D-I)/8J, 0) cl"2 6/\ d s: 0(4) /\ D ¥'- 1(4) /\ D "2 3 ((d/4)LD/2J+l,0) «> 6/\ d s: 1(4) /\ D ¥'- 1(4) /\ D "2 3/\ D =f.4 (l d] 4l LD/2J+l,2L(D+5)/8J,1[(D+l)/8J, 0) d > 6/\ d e: 1(4) /\ D = 4 (((cl -1)/4?,0) a > 6/\ d:= 2(4) /\ D ¥'- 1(4) /\ D "2 3 (f d] 4l LD/2J+l, 1L(D+l)/4J,0) cl "26/\ d z: 3(4) /\ D ¥'- 1(4) /\ D > 3 (f cl/4l LD/2J+l,1L(D+2)/8J,0) Table Ill: Set S containing for any h as given in Theorem 1 an l" such that E(cl, D, h; i*) "2 E(cl, D). N.B. r = I{i : hi = 1}1 and 5 = I{i : hi = 2}1· d,D S d = 1,2 {T} d=3 {O, 1,1' - 2,1' -1,1',1' + I} d=5 {O,l,s - 1,5,5 + I} d =f. 1,2,3,5/\ D:= 0(4) {1,D/2+1} d=f.1,2,3,5/\D:= 1(4) {O, 2, (D - 1)/2, (D + 3)/2} d =f.1,2,3,5,9/\ D:= 2(4) {I, D/2} d=9/\D:=2(4) {1,3,D/2,D/2 +2} d =f. 1,2,3,5/\ D:= 3(4) {O, (D + 1)/2} contradicting (5). Hence, equality holds in (4), and so the theorem has been proved for the case d, D := 0(4). Other cases can be proved similarly using the following guidelines. In Table 11, we give for any d,D "2 1 a vector h" for which E(d,D,h*;i) is at most equal to the indicated value of E(d, D) for alli. In Table Ill, we give for any d, D "2 1 a set S which contains for any h as given in Theorem 1 an element L* such that E(d,D,h;i*) is at least equal to the indicated value of E( d, D). Combining the two results completes the ~~ 0 We can conclude that in this paper the number of errors, which is guaranteed to be corrected by a concatenated coding scheme with an outer code of distance D and an inner code of distance d, using single-trial bounded distance decoding and optimized erasing, has been fully determined. Note that for all d, D "2 1 this number is roughly a fraction between 3/8 and.1/2 of the designed distance dD of the concatenated code, while a fixed erasing strategy as the single-trial version of the Zyablov method [3] typically realizes lower fractions, e.g., roughly 1/3 for D "2 2 and d large. 222 Appendix In this appendix a proof of Theorem 1 is given. Lemma 1 For all d, D ?: 1, h, and c, N E(d, D,h,£) = L (d - 2hi) + Lhi, iEÎ" i=l iohere Î" is the set composed of the smallest max{O, r(D - 1£1)/2l} indices i that do not belong to L, Proof. First, we make the following observations regarding the minimization of el + ... + eN for given sets I' and I". • If i E I', then ei ?: hi = l(d + 1)/2 J, where equality may hold. • If i E I", i.e., c, =j:. c;, then since the Hamming distance between c, and c; is at least d, and the Hamming distances between r, and ei and between r, and c; are ei and hi :::;l(d - 1)/2J, respectively, ei?: d - hi, where equality may hold. • If i rf. I' U I", then c, = c; and ei = hi :::;l(d -1)/2J. Hence, for given h, I", and £ satisfying (1), the minimum number of errors el + ... + eN that cause unsuccessful decoding is given by N L (d - hi) + L hi = L (cl - 2hi) + L hi. (6) iET" iEI" i=l Since cl- Zh, ?: 1 for i E I", the minimum of (6) over all choices of I" is achieved when I" is as small as possible subject to (1). In particular, I" should be disjoint from £ and I" = max{O, r(D - 1£1)/2l}. Since hl ?: ... ?: hN, it follows that the minimum of (6) over all choices of I" is achieved when I" is equal to Î". 0 Having found an expression for E(cl, D, h , £), we proceed to maximize this expres- sion over all choices of E, Lemma 2 For all d; D ?: 1 and h, a) max E(d, D, h,£) = E(d, D, h; I) fOT I':::; I q.cI=1 < N, N b) max E(d, D, h; l) = "" hi if I' > D, I' E(d, D, h; l2) = L (d - 2h;) + L hi ( 10) [':s;I";N - i==l and (D+I! +1)/2 D max E(d, D, f; l) E(d,D,f;ll)= L (d-2Ii)+Lli O L (d-2hi)- L (d-2hi) 2 O. [':s;I";N O:s;l";N - i=12+1 i=max{IJ,l'}+1 Thus, we conclude that in minimizing maXl' hD+1 = ... = hN = 0, we have E(d,D,h;I);::: E(d,D,g;I), where g = (gl, ,gN) is as defined in (8) . Finally, in case d is even and D = 1, it follows from (2) and Lemma 2 that N N E(d,l) min max E(d, 1, h; I) = min{ min h 1'l . h:l'=O . - - - t=1 1=2 min{d/2, d/2 + I} = d/2 = min d - hl, d/2?hl?_O which completes the proof. o From the above, we can conclude Theorem 1. References [1] G.D. Forney, Jr., Concaienated Codes. Cambridge, MA: M.I.T. Press, 1966. [2] SJ. Kovalev , "Two classes of minimum generalized distance decoding algorithms," Problemy Peredachi Inform., vol. 22, no. 3, pp. 35-42, 1986. [3] V.V. Zyablov, "Optimization of concatenated decoding algorithms," Problemy Peredachi Inform., vol. 9, no. 1, pp. 26-32, 1973. 226 CODING FOR RANDOM ACCESS COMMUNICATIONS Presented at 1999 WIC meeting at the University of Leuven, Belgium A.J. Han Vinck University of Essen, Essen, Germany Vinck@exp-matb.uni-essen.de SUMMARY We discuss the transmission of information over a multi-user channel where the set of active users is small compared to the total amount of potential users. The channel inputs are integers and the channel output at each time instant is a symbol which identifies which subset of integers occurred as inputs to the channel, but not how many of each integer occurred. The so called T-user M- frequency noiseless multiple access channel without intensity information, as defined by Chang and Wolf [2] is an example of such a channel. As another practical example, in Pulse Positioning Modulation (PPM) format each integer is transmitted as a single pulse positioned in one of q disjoint subslots. The detector output after each slot is equal to the positions where a pulse is detected. Hence, for a q-ary input we have 2q-l possible outputs. This channel model is equivalent to the T-User M-Frequency Multi Access Channel. It is the purpose of this paper to describe a signaling method that allows m users to use the q-ary input channel simultaneously. We first extend and modify the class of binary Superimposed Codes (SIC) introduced by Kautz- Singleton [1]. A binary Superimposed code SIC(q, N, 2, m) consists of N binary code words of length q, with the property that from the Boolean sum of any m-subset we are able to uniquely determine the individual code words from the m-subset see also [3]. We extend the definition of binary SICs to the situation where code words have q-ary symbols and the channel output is a symbol which identifies which subset of integers occurred as input to the channel (no intensity information). Secondly we give a transmission method for random access using the "opticaIOR" channel with "random" signature sequences. Asymptotically, this method achieves the maximum obtainable throughput with vanishing error probability. We give new lower bounds for the capacity for T ~oc and discuss results ofnumerical calculations ofthe capacities for various values of T. REFERENCES [1] W.H. Kautz and R.c. Singleton, "Nonrandorn Binary Superimposed Codes," IEEE Trans. on Inform. Theory, IT-I0, October 1964, pp. 363-377. [2] Shin-Chun Chang and J.K. Wolf, "On the T-User M-Frequency Noiseless Multiple Access Channel with and without Intensity Information," IEEE Trans. on Inform. Theory, Vol. IT-27, January 1981, pp. 41-48. [3] A.G. Dyachkov and V.V. Rykov, "A Survey of Superimposed Code Theory," Problems of Control and Information Theory, Vol. 12, No. 4, pp. 1-13, English Translation. 227 List of Participants V. Balakirsky J. Claessens T.U. Eindhoven K.U.Leuven Dept. EE Elektrotechniek, COSIC Tuinkersweg 12 Kardinaal Mercierlaan 94 5632 KS Eindhoven - Nederland 3001 Heverlee - België Tel. 31/40/247.56.81 Tel. 32/16/32.18.53 Email v.b.balakirsky@ele.tue.nl Fax. 32/16/32.19.69 Email joris.claessens@esat.kuleuven.ac.be A. Barbé K.U.Leuven P.H.N. de With Elektrotechniek, SISTA University Mannheim Kardinaal Mercierlaan 94 B6.26 3001 Heverlee - België 68131 Mannheim - Germany Tel. 32/16/32.10.53 Tel. 49/621/292.1650 Fax. 32/16/32.19.70 Email dewith@ti.uni-mannheim.de Email andre.barbe@esat.kuleuven.ac.be B. DeKnuydt M.S. Bargh K.U.Leuven T.U. Eindhoven Elektrotechniek, PSI EH 11.16 Kard. Mercierlaan 94 Posbus 513 3001 Heverlee - België 5600 MB Eindhoven - Nederland Tel. 32/16/32.18.80 Tel. 31/40/247.36.52 Fax. 32/16/32.17.23 Email mortaza@ei.ele.tue.nl Email deknuydt@esat.kuleuven.ac.be J. Biemond K. Demuynck Delft University of Technology K.U.Leuven ICT-group Elektrotechniek, PSI PO Box 5031 Kard. Mercierlaan 94 2600 GA Delft - Nederland 3001 Heverlee - België Tel. 31/152/78.46.95 Tel. 32/16/32.18.60 Email j.biemond@et.tudelft.nl Fax. 32/16/32.17.23 Email kris.demuynck@esat.kuleuven.ac.be I. Bruyland RUG-TELIN J. Doumen Gentsesteenweg 108 T.U. Eindhoven 9300 Aalst - België HG 9.87 Tel. 32/9/264.34.10 Postbus 90159 Email ignace.bruyland@rug.ac.be 5600 MB Eindhoven - Nederland Tel. 31/40/247.50.16 Email doumen@win.tue.nl J. Cardinal ULB Campus Plaine, Bid. Du Triomphe, CP 212 A. Gerrits 1050 Brussel - België Philips Research Tel. 32/2/650.56.01 Prof. Holstlaan 4 Email jcardin@ulb.ac.be 5656 AA Eindhoven - Nederland Tel. 31/40/274.41.74 Email gerritsa@natlab.research.philips.com , z. Goey E. Lerouge Eindhoven University of Technology K.U.Leuven Batterijstraat 23b Elektrotechniek, SISTA 6211 SE Maastricht - Nederland Kardinaal Mercierlaan 94 Email zoe@win.tue.nl 3001 Heverlee - België Tel. 32/16/32.18.84 Fax. 32/16/32.19.70 G.H.L.M. Heideman Email ellen.lerouge@esat.kuleuven.ac.be Universiteit Twente TIOS Postbus 217 J. Levendovszky 7500 AE Enschede - Nederland Technical University of Budapest Email heideman@cs.utwente.nl Stoczek u.2 1111 Budapest - Hunagary Tel. 36/1/463.35.47 C.J.A. Jansen Email levendov@hit.bme.hu Philips Crypto B.V. De Witbogt 2, P.O. Box 218 5600 MD Eindhoven - Nederland H. Massias Tel. 31/40/2722.600 UCL Email c.jansen@crypto.philips.com Crypto Group - DICE Place du Levant 3 1348 Louvain-Ia-Neuve - België D. Kleima Email massias@dice.ucl.ac.be T.U. Twente Fac. EL Postbus 217 S. Mietens 7500 AE Enschede - Nederland University Mannheim Email dkieima@el.utwente.nl B6.26 68131 Mannheim - Germany Tel. 49/621/292.5643 F. Koeune Email mietens@ti.uni-mannheim.de UCL Crypto Group - DICE Place du Levant 3 F. Mindru 1348 Louvain-Ia-Neuve - België K.U.Leuven Email fkoeune@dice.ucl.ac.be Elektrotechniek, PSI Kard. Mercierlaan 94 3001 Heverlee - België A. Koppelaar Tel. 32/16/32.17.18 Philips Research Email florica.mindru@esat.kuleuven.ac.be Prof. Holstlaan 4 5656 AA Eindhoven - Nederland Tel. 31/40/274.22.26 R. Moddemeijer Email koppelr@natlab.research.philips.com University of Groningen P.O. Box 800 9700 AV Groningen - Nederland L. Kovács Tel. 31/50/363.39.40 Technical University of Budapest Email rudy@cs.rug.nl Stoczek u.2 1111 Budapest - Hunagary Tel. 36/1/463.35.47 Email kovacsl@hit.bme.hu 2 T. Moons D. Therssen K.U.Leuven Philips ITCL C.E. Elektrotechiek, PSI Interleuvenlaan 74-76 Kard. Mercierlaan 94 3000 Leuven - België 3001 Heverlee - België Tel. 32/16/39.06.56 Tel. 32/16/32.17.02 Email dieter.therssen@leu.ce.philips.com Fax. 32/16/32.17.23 Email theo.moons@esat.kuleuven.ac.be L. Tolhuizen Philips Nat. Lab. J. Nakahara Prof. Holstlaan 4 K.U.Leuven 5656 AA Eindhoven - Nederland Elektrotechniek, COSIC Tel. 31/40/274.20.69 Kard. Mercierlaan 94 Email tolhuizen@natlab.research.philips.com 3001 Heverlee - België Tel. 32/16/32.10.73 Fax. 32/16/32.19.69 E.C. van der Meulen Email jorge.nakahara@esat.kuleuven.ac.be K.U.Leuven Toegepaste Wiskunde Celijnenlaaan 200B J.B.H. Peek 3001 Heverlee - België Univ. Nijmegen Tel. 32/16/32.70.47 Computing Science Dept. Fax. 32/16/32.70.15 Toernooiveld 1 Email ecvdm@gauss.wis.kuleuven.ac.be 6525 EO Nijmegen - Nederland Tel. 31/40/283.22.49 Email hpeek@cs.kun.nl M. van Dijk Philips Research Prof. Holstlaan 4 V.V. Prelov 5656 AA Eindhoven - Nederland Inst. for Inform. Trans. Probi. of the RAS Tel. 31/40/274.37.96 Moscow - Russia Email mvandijk@natlab.research.philips.com Email prelov@iitp.ru J.P.M. Schalkwijk C.L.M. van Pul T.U. Eindhoven Philips Crypto B.V. Dept. EE De Witbogt 2, P.O. Box 218 5600 MB Eindhoven - Nederland 5600 MD Eindhoven - Nederland Tel. 31/40/247.35.15 Tel. 31/40/2722.600 Email piet@ei.ele.tue.nl Email c.v.pul@crypto.philips.com C.H. Slump B. Van Rompay University of Twente K.U.Leuven Electrical Engineering Elektrotechniek, COSIC PO Box 217 Kardinaal Mercierlaan 94 7500 AE Enschede - Nederland 3001 Heverlee - België Email c.h.slump@el.utwente.nl Tel. 32/16/32.18.62 Fax. 32/16/32.19.69 Email bart.vanrompay@esat.kuleuven.ac.be 3 · - J. Vandewalle P. Wambacq K.U.Leuven K.U.Leuven Elektrotechniek, SISTA Elektrotechniek, PSI Kardinaal Mercierlaan 94 Kard. Mercierlaan 94 3001 Heverlee - België 3001 Heverlee - België Tel. 32/16/32.10.52 Tel. 32/16/32.10.57 Fax. 32/16/32.19.70 Email patrick.wambacq@esat.kuleuven.ac.be Email joos.vandewalle@esat.kuleuven.ac.be J.H. Weber S. Vangheluwe T.U. Delft K.U.Leuven Fac. ITS Dept. Wiskunde Postbus 5031 Celestijnenlaan 200B 2600 GA Delft - Nederland 3001 Heverlee - België Email j.h.weber@its.tudelft.nl Tel. 32/16/32.70.53 Fax. 32/16/32.79.98 Email saskia.vangheluwe@wis.kuleuven.ac.be F. Willems T.U. Eindhoven Dept. EE P. Vanroose Postbus 513 K.U.Leuven 5600 MB Eindhoven - Nederland Elektrotechniek, PSI Tel. 31/40/247.35.39 Kardinaal Mercierlaan 94 Email f.m.j.willems@ele.tue.nl 3001 Heverlee - België Tel. 32/16/32.17.07 Fax. 32/16/32.19.86 S. Xu Email peter.vanroose@esat.kuleuven.ac.be T.U. Eindhoven HG 9.56 Postbus 513 A.J.H. Vinck 5600 MB Eindhoven - Nederland University of Essen Tel. 31/40/247.43.46 Ellernstr. 29 Email sbxu@win.tue.nl 45326 Essen - Germany Email vinck@exp-math.uni-essen.de P. Volf T.U. Eindhoven EH 11.16 Postbus 513 5600 MB Eindhoven - Nederland Tel. 31/40/247.35.52 Email paul@ei.ele.tue.nl F. Von Haeseler K.U.Leuven Elektrotechniek, SISTA Kardinaal Mercierlaan 94 3001 Heverlee - België Tel. 32/16/32.18.17 Fax. 32/16/32.19.70 Email fvanhaes@esat.kuleuven.ac.be 4