PROCEEDINGS OF THE 23RD SYMPOSIUM ON INFORMATION THEORY IN THE BENELUX Louvain-la-Neuve, Belgium May 29-31, 2002 Benoît Macq and Jean-Jacques Quisquater, editors PROCEEDINGS OF THE 23RD SYMPOSIUM ON INFORMATION THEORY INTHE BENELUX Louvain-Ia-Neuve, Belgium May 29-31, 2002 Benoît Macq and Jean-Jacques Quisquater, editors PROCEEDINGS OF THE 23RD SYMPOSIUM ON INFORMATION THEORY IN THE BENELUX May 29-31, 2002 Louvain-Ia-Neuve, Belgium by B. Macq J.-J. Quisquater Published by: Werkgemeeschap voor Informatie- en Communicatietheorie, Enschede, The Nederlands, 2002 ill The 23RD Symposium on Information Theory in the Benelux was organized by: Prof. B. Macq and J.-J. Quisquater from the Université catholique de Louvain, Department of Electrical Engineering, on behalf of the Werkgemeenschap voor Informatie- en Communicatietheorie and the IEEE Benelux Chapter on Information Theory Financial support has been received from FNRS, Belgium ClP-gegevens Koninlijke Bibliotheek, Den Haag (NL) Proceedings Proceedings of the 23rd Symposium on Information Theory in the Benelux, En- schede: Werkgemeenschap Informatie- en Communicatietheorie Proceedings, May 29-31, 2002, Louvain-Ia-Neuve, Belgium, by B. Macq and J.-J. Quisquater. Met lit. opg. ISBN: ISBN 90-71048-16-0 SISO Trefw.: Information Theory IV Preface Since 1980 an Annual Symposium on Information Theory in the Benelux has been held. We are happy to provide this meeting in Louvain-Ia-Neuve to this important community in Information Theory. These proceedings contain the papers submitted to and presented at this sym- posium. The full text of an invited talk (P. Delsarte) and the abstracts of for other invited talks are provided at the end of the proceedings. Thanks to each contributor. We would like to express our sincere thanks to Mrs. Sylvie Baudine and Patricia Focant for her skilful assistance. BenoÎt Macq and Jean-Jacques Quisquater, Louvain-Ia-Neuve, May 2002 v CONTENTS Session: Web Multipath Diffuse Routing over Heterogeneous Mesh Networks of Web Devices and Sensors . . . . . . . . . . . . . . . • • . . . . . • . . . . . . . . .. 1-8 Gaetano Vitale, M.L.A. Stassen, S.B. Colak, V. Pronk Web-enabled Multimedia Categorization. • • • • • • • • • • • • • • • • • •• 9-16 Alfons Salden, Frank Aldersboff, Sorin Iacob, Raymond Otte Session: Information Theory Entropy-Constrained Index Assignments for Multiple Description , • •• 17-24 Jean Cardinal Two Aspects of Coding for Informed Decoders 25-28 Ludo Tolbuizen, Andries Hekstra, Ning Cai, Stan Baggen Faster Universal Modeling for Two Source Classes • • • • • • • • • • • •• 29-36 Ali Nowbakbt, Frans Willems Epsilon-entropy of a Special Class of Ellipsoids in a Hamming Space.. 37-44 Viacbeslav Prelov, Edward van der Meulen Session: Cryptography, Steganography and Watermarking I Codes for Writing on Dirty Paper • • • • • • • • • • • • • • • • • • • • • •• 45-52 Dirk van den Borne, Ton Kalker, Frans Willems A New Group Identification Scheme. • • • • • • • • • • • • • • • • • • • •• 53-60 Abdelaziz Gaddacb "Almost Montgomery" Base Multiplier in GF(2n) 61-68 Lejla Batina, Cees Jansen, Geeke Muurling, Sbeng-bo Xu A Fast Multiplier for Characteristic-2 Finite Fields. • • • • • • • • • • •• 69-74 M.J. Potgieter, B.J. van Dyk, Tjalling Tjalkens vü Session: Coding Theory and Applications ML-Performance of Low-Density Parity Check Codes. • • • • • • • • •• 75-77 Heidi Steendam, Marc Moenec1aey Performance Analysis of Limited-Trial Chase Decoders • • • • • • • • •• 79-86 Fred Kossen, Jos Weber Symmetric Codes over Rings • • • • • • • • • • • • • • • • • • • • • • • • •• 87-95 Fxit» VUIl Heeseler, Andrê Barbé Sum Capacity of the OCDMA jOCDMA Signature Sequence Set with Unequal Power Constraints • • • • • . • • • • . • • • • . • • • • • • • . • . • • • • •• 97-105 Frederik Vanbaverbeke, Marc Moeneclaey Error Control Coding for Wireless Personal Area Networks. • • • •• 107-114 Claude Desset Session: Compression, JPEG and MPEG Frame Reordered Multi-temporal Motion Estimation for Scalable MPEG ...........••......•.•............... Cl 115-121 Stepban Mietens, Peter de Witb, Cbristian Hentscbel Improvements of the Context Tree Maximizing (CRM) Data Compression Algorithm • • • • • • • • • • • • . • • • . . • • • • • • . • • • • . • • • • •• 123-130 A nririe« Hekstra Rate-Distortion Optimal Adaptive Quantization and Coefficient Thresholding for MPEG Coding. • • • • • • • • • • • • • • • • • • • • • • • • • • • • •• 131-138 Dirk Farin, Micbael Käsemann, Peter de Witb, Wolfgang Effelsberg Flexible Access to JPEG2000 Codestreams • • • • • • • • • • • • • • •• 139-146 Marcela Iregui, Jérome Meessen, Philippe Cbevalier, Benoît Macq Vlll Session: Signal Processing Fast Affine Projection Algorithm using the Successive Over-Relaxation Method. . . . . . . . . . . . . . • . . . . . . . . . . . . . . . . . • . . . .. 147-154 Felix Albu, Antbony Fagan Jacobi Algorithm for Joint Block Diagonalization in Blind Identification . . . . . • . . . . . . . . . . . • . . . . . . . . . . . . . . .. 155-162 Lieven De Latbauwer, C. Févotte, Bart De Moor, Joos Vandewalle On two new Classes of Alternatives to Canonical Correlation Analysis 163-170 Tijl De Bie, Bart De Moor Session: Cryptography, Steganography and Watermarking 11 Agaddis: Authentication and Geometrical Attacks Detection for Digital Image Signature. . • . . . . . . . . . • . . . • . . . . . . . . . . . . . . . . • . .. 171-178 Frédéric Lefebvre, Benoît Macq, Jeeu-Didier Legat Information Theory and Anonymity • • • • • • • • • • • • • • • • • • •• 179-186 Diaz Claudia, Joris Claessens, Stefaan Seys, Bart Preneel Square Attacks on Reduced-Round PES and IDEA Block Ciphers v , 187-195 Jorge Nakabara, Pa ulo Berreto, Bart Preneel, Joos Vandewalle, Hae Kim Applying General Access Structure for Proactive Secret Sharing Schemes • • • . . . • . • . • • . • • • • . • • • • • • • • • • • . . • • • • •• 197-206 Ventzislav Nikov, Svetla Nikova, Bart Preneel, Joos Vandewalle Session: A Taste of Information Theory and Posters Automatic Human Face Detection for Home Surveillance Application 207-214 Fei Zuo, Peter de Witb Multi-party Server-aided Key Distribution Protocols Based on Symmetric Techniques. • . • . . • . . . . . . . . . . . . . . . . . . . . . . . . . • . .. 215-223 Malek Bechlagbem ix Secret Exponent Information Leakage for Timing Analyses 225-232 Lejla Betinn, Gees Jansen A Short Note on Irreducible Trinomials in Binary Fields. • • • • • •• 233-234 Mathieu Giet, Jean-Jacques Quisquater, Francesco Sice An Algorithm for Joint Diagonalization by a Congruence Transformation • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •• 235-240 Lieven De Lathauwer, Bart De Moor, Joos Vandewalle An Algebraic Algorithm for Blind Identification with more Inputs than Outputs. . . . . . . . • . • . . . . . . . . . . . . . . • . . . • . . . . . .• 241-246 Lieven De Letbeuwer, Bart De Moor, Joos Vandewalle Brokerage of Next Generation Mobile Services. • • • • • • • • • • • •• 247-254 Morteze Beigli, Ronaid van Eijk, Mans Saiden Session: A Large Taste of Information Theory From Speech to 3D Face Animation • • • • • • • • • • • • • • • • • • •• 255-260 Peter Vanroose, Gregor Kalberer, Pa trick Wambacq, Luc Van Goal Rotationally Varian Complex Channels 261-268 Georg Tauboeck BER Analysis of a DPSK Phase Diversity Receiver for Coherence Multiplexing • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •• 269-276 Arjan Meijerink, Geert Heideman, Wim van Etten A New Blind Signal Processing Algorithm for Channel Equalization. 277-284 J. Levendovszky, Lorent Kovecs, Edward van der Meulen Optimal Stochastic Timers for Feedback Mechanisrns in Mnlt.icast Communications .••.•...... e • • • • • • • • • • • • • • • • • • • •• 285-292 J. Levendovszky, Tames David, Edward van der Meulen x Session: Codes and Cryptography Efficient Algebraic Interleavers for Turbocodes • • • • • • • • • • • • •• 293-297 Philippe Piret, P. Le Bars, C. Le Dantec On the Influence of the Filtering Function on the Performance of Fast Correlation Attacks on Filter Generators • • • • • • • • • • • • • • • • • • • • • • • •• 299-306 Anne Canteaut, Eric Filiol Upper Bounds on the Numbers of Resilient Functions and of Bent Functions. . . . . . • . . . . . . . . . . . . . . . . . . . . . . • • . • . . .. 307-314 Claude Carlet, Andrew Klapper Related-Key and Slide Attacks: Analysis, Connections, and Improvements. . . . • . . . . . . . . . . . . . . . . • . . . . . • • . . . .. 315-325 Mathieu Ciet, Gilles Piret, Jean-Jacques Quisquater Session: Invited Talks The Hamming Space Viewed as an Association Scheme. • • • • • • •• 329-380 Philippe Delsarte Recent Progress on Self-dual Codes and Orthogonal Arrays. • • • • • • •• 381 Neil Sloane Information Hiding Games • • • • • • • • • • • • • • • . • • • • • • • • . • . •• 382 Pierre Moulin List Decoding Algorithms: A Survey. • • • • • • • • • • • • • • • • • • • • •• 383 Madhu Sudan Combinatorics, Quantum Computing and Cellular Phones. • • • • • • • •• 384 Robert Calderbank xi Author Index Albu Felix 147 Levendovszky J. . 277, 285 Aldershoff Frank 9 Macq 13enoît 139, 171 13aggen Stan 25 Meessen Jérême 139 13argh Mortaza 247 Meijerink Arjan 269 13arreto Paulo 187 Mietens Stephan 115 13arbé André 87 Moeneclaey Marc 75, 97 13atina Lejla 61, 225 Moulin Pierre 382 13echlaghem Malek 215 Muurling Geeke 61 Cai Ning 25 Nakahara Jorge 187 Calderbank Robert 384 Nikov Ventzislav 197 Canteaut Arme 299 Nikova Svetla 197 Cardinal Jean 17 Nowbakht Ali 29 Carlet Claude 307 Otte Raymond 9 Chevalier Philippe 139 Piret Gilles 315 Ciet Mathieu 233, 315 Piret Philippe 293 Claessens Joris 179 Potgieter M.J. . 69 Colak S.B 1 Prelov Viacheslav 37 David Tamas 285 Preneel Bart 179, 187, 197 De 13ie Tijl 163 Pronk V 1 De Lathauwer Lieven . Quisquater Jean-Jacques 233, 315 .................... 155, 235, 241 Salden Alfons 9, 247 Delsarte Philippe 329 Seys Stefaan 179 De Moor Bart .155, 163, 235, 241 Sica Francesco 233 Desset Claude 107 Sloane Neil 381 de With Peter 115, 131, 207 Stassen M.L.A. . 1 Diaz Claudia 179 Steen dam Heidi 75 Effelsberg Wolfgang 131 Sudan Madhu 383 Fagan Anthony 147 Tauboeck Georg 261 Farin Dirk 131 Tjalkens Tjalling 69 Févotte C 155 Tolhuizen Ludo 25 Filiol Eric 306 van den Borne Dirk 45 Gaddach Abdelaziz 53 van der Meulen Edward . Heideman Geert 269 ..................... 37, 277, 285 Hekstra Andries 25, 123 Vandewalle Joos . Hentschel Christian 115 .......... 1.").'5,187,197,235,241 lacob Sorin 9 van Dyk B.J. . 69 Iregui Marcela 139 van Eijk Ronald 247 Jansen Cees 61, 225 van Etten Wim 269 Kalberer Gregor 255 Van GooI Luc 255 Kalker Ton 45 Vanhaverbeke Frederik 97 Käsemann Michael 131 Vanroose Peter 255 Kim Hae 187 Vitale Gaetano 1 Klapper Andrew 307 von Haeseler Fritz ,r » " R7 Kosseu Fred 79 Wambacq Patriek 255 Kovacs Lorant 277 Weber Jos 79 Le 13ars P. . 293 Willems Frans 29, 45 Le Dantee C. . 293 Xu Sheng-bo 61 Lefebvrc Frédéric 171 Zuo Fei 207 Legat .Iean-Didier 171 Xli Multipath Diffuse Routing over Heterogeneous Mesh Networks of Web Devices and Sensors G. Vitale1, M.L.A. Staasen", S.B.Colak1, and v. Pronk! 1 Philips Research Labs, 5656 AA Eindhoven, The Netherlands vitaleg~natlab.re5earch.philips.com 2 Technical University of Eindhoven, 5600 MB Eindhoven, The Netherlands Abstract. In this paper we present a new data flow algorithm based on physical diffusion for dense device networks needed for future ubiq- uitous communications. This diffuse data routing concept is based on multi-path signal propagation aided with adaptive beam-forming meth- ods. Adaptation for beam-forming at different network levels takes place according to physical layer labels given to the devices. This multi-path diffuse routing has thé potential to provide low power and resilient corn- munications in dense networks of low cost devices in changing and noisy environments. The main aspects of this diffuse routing concept are illus- trated with simulations on a small scale example network. 1 Introduction The PC era together with the Internet has ushered us into the information- technology age. As this is going on, we are already getting prepared for a post-PC era, enriched with numerous hand-held and intelligent web devices. This brings up issues such as smart environments and proactive computing, utilizing these web devices in a heterogeneous network setting. Such web devices would act as sensors/actuators and could be embedded everywhere in our environment. Communication between these web devices needs to be low power, low cost and resilient to changing and noisy environments. To achieve this, it is highly desirable to have a self-organized autonomous network with ad-hoc multi-hop connections and with multi-path data flowsfor resilience. An attractive possibility that can fulfill the requirements listed above can be based on diffusion concepts we experience in our physical environments daily. Ini- tial studies on such diffuse networking concepts have been published recently in [1].In that work, one assumes that gradients are set between a source/sink node pair in a sensor network. Then, a single best path between these nodes is chosen using these gradients [2]. However, the resiliency of a single path is·poor and has to be reinforced regularly by flooding techniques. Therefore, that method has later been extended to include secondary back-up paths which can be activated if the primary path fails [3]. However, this wastes energy due to computations required for the complicated decisions in choosing paths. Furthermore, these prior diffuse networking methods employ conventional medium access (MAC) protocols which are also computation and energy intensive. 1 G. Vitale et al. Our work in this report extends these prior diffuse networking studies de- scribed above. This is achieved by incorporating multi-path data flows aided by beam-forming concepts. The multi-path data flow incorporates redundancy and therefore increases resilience. The beam-forming provides efficient utilization of energy within the multi-path channel as has been shown by previous studies on space-time coding for wireless communication with antenna arrays [4][5].In order to increase the energy efficiencyfurther for low-power operation, we propose to bound these multi-path channels within a diffusive data flow region determined by the strength of the signals. These concepts are described below. 2 Diffuse Multi-Path Routing In this section we describe our concepts on diffuse multi-path routing for a heterogeneous network of web devices. Such a network is schematically shown in fig. lA. The network sketch in this figure shows a heterogeneous set of de- vices (black dots) and a variety of connections between them. These devices can be simple sensors and actuators or web devices with any other function. The network links between these devices are also heterogeneous and incorpo- rate technologies such as RF wireless, infrared, fiber-optie, coax, twisted-pair. We envisage that in the future we will have a vast number of these devices and links in an intelligent officeor home environment. In order to realize such intel- ligent environments we must make these devices and their communication links cheap and energy efficient, perhaps even passive. These considerations on cost and energy preclude direct connections from lP-based proxy servers to these vast numbers of devices [6]. Due to the reasons listed in the previous paragraph, and also in line with the reasoning described above, we propose to use diffusion concepts in transporting data between source/sink device pairs. This is shown schematically in fig. IB depicting a data flow through a multi-path channel between a source and a sink device in a bounded region. As already mentioned above, this region is determined adaptively according to the strength of the signals diffusing around in the network. Using physical diffusion concepts, this region can, for example, be defined by a pair of exponential functions, with each one ofthe form (e-Br Ir), where r is the distance from a respective device and B is an empirical parameter determined primarily by the distance-bandwidth product of the set of paths connecting to that device. According to this definition, the multi-path channel will be bounded as shown with the shaded region in the figure. All other devices, in between the source/sink pair within the diffuse routing path, art as intelligent transponders adapted to serve as data carriers as efficiently as possible. This efficiency is achieved by employing beam-forming concepts. As mentioned above, the nodes on the multi-path channel within the data diffusion region help bound this region by beam-forming concepts [4]. In order to achieve this, the internal structure of these nodes should be suitable to realize a space-time filter configuration as indicated in fig. 2. In this figure, the signal is obtained by proper summation of delayed and attenuated versions of the signal 2 Diffuse Routing over Heterogeneous Mesh Networks of Web Devices B Fig. I. A) The schematic appearance of a heterogeneous web-device network showing a set of devices (black dots) and a variety of connections between them, incorporating technologies such as RF wireless, infrared, fiber-optic, coax, and twisted-pair. B) The expected appearance of the most efficient routes that define the diffuse routing paths (shaded area) between two user devices. All other devices, in between them on the diffuse routing paths, act as intelligent transponders adapted to serve as data carriers as efficiently as possible arriving at the antenna array. As mentioned above already, the efficiency of multi- path channel utilization is expected to be high with proper space-time coding and subsequent beam-forming using this filter structure. It is highly desirable for the nodes to use only the physical properties of the incoming signals for beam- forming in order to route these signals. In this way, the routing is done at the physical layer rather than the network layer, like in the Internet Protocol (lP) [6], which would require intensive computation, and therefore excessive energy. 3 Network architecture and operation In previous section, the basic components for an effective operation of dense and heterogeneous web device networks are discussed. This section defines a simple network architecture to simulate and test these basic components; namely the utilization of beam-forming and multi-path data flow concepts towards achieving a diffuse routing algorithm. Such a simple network is shown in fig. 3. Although this network is rather small, it illustrates the basic calculations needed for the operation of diffuse routing. It should be emphasized here, however, that our algorithms have not been extended yet for autonomous operation of a large network. Such extensions require higher layer procedures and will be described in a following publication. The diffuse routing algorithm, studied in this report, performs multi-path propagation, by propagating the signal in a number of directions. This is useful in end-to-end transmission, because one path can be affected by noise more than the others. In this way, the quality of the received signal can be improved without increasing the transmission power. 3 G. Vitale et al. "1 - [A] Fig. 2. The space-time coding filter for a wireless antenna array set. This filter can be used to separate signals of users, Ui, which propagate through a multi-path channel, defined by [AJ. The antenna signals, x j, are processed by the filter, with tap separation of T and coefficients Wji, to get the received signal, y. The same filter configuration can also be used to beam-form towards a desired user In the example network of fig. 3, the devices can be classified into three types: simple terminal devices, nodes, and passive reflectors. The first classified as 'sim- ple' because their only functions are the transmission of data in the direction of one node and the reception of data from this node, without performing any op- erations, such as signal separation or equalization. The nodes are more complex, as they are able to do routing, by checking a 'label' attached to each incoming message. In addition, the nodes regenerate the signals, in order to compensate for the noise introduced by the channel. A substantial difference between the simple devices and the nodes is that the nodes get trained by the simple terminal de- vices and the other neighboring nodes, in order to separate the incoming signals. This is done by using beacon signals to obtain estimations of the characteristics of the channels. The passive reflectors simply reflect incoming signals, and the direction of the reflection is determined by their position. Thpl>e reflectors are not shown 10 the figure, but can be assumed present in some node-to-node or terminal-to-node link, and included in the channel representation. Here, a brief summary of the procedures needed for multi-path signal process- ing will be given following ref. [4]. We assume that the data signals originating from terminals (nodes) are given by u. After propagation through the multi-path channel and processing by a node's space-time filter, the output signals are y=WNêX- WNeA'rNu+n=u where ATN is the channel matrix from a terminal to a node; x is the signal 1 at the antenna array; n represents the noise; WNe = AT is the equalization matrix corresponding to the filter structure in fig. 2. Alternatively, if the signals are originating from a node, where we have the choice for pre-equalization, then the received signal at the destination is [5] 4 Diffuse Routing over Heterogeneous Mesh Networks of Web Devices T E rE=lErGF~ TI T4 A 0-- - ---os L s 1'7 1'8 Fig. 3. A simple Web Device topology to demonstrate the basics of diffuse routing operation. The internal structure of the node is shown on the right where WNp = A N~ is the pre-equalization matrix for the channel ANT, assuming that the transmitter and receiver arrays have equal number of elements. 4 Network Simulations The operation of the example network can be split in two parts: adaptation of the neighbors, and data routing. In the fust part, each terminal and each node send a particular sequence, called beacon signal, to all the neighbors in order to train the receivers. Because each node knows these beacon signals, they can estimate the channel impulse response. They separate incoming signals by using an equalization matrix W as discussed in the previous section. This filter is also used in the reverse sense as a pre-equalization filter, in such a way that the network's physical properties take care of the routing. Observe that this filter is present only in the nodes and not in the terminal, because they receive the signal already 'equalized' by the node sender. As there are many more terminal devices than nodes, it is convenient to make them simpler, and consequently cheaper. Nodes use two equalization matrices, in order to simplify upgrading of the network in the case of a new terminal or a new node. Let us now analyze all the steps in an end-to-end transmission in our simu- lated example network. Transnllssion and coding for sÏInulations: We assume that the data to be sent are QAM symbols. In order to alleviate problems due to multi-path channel, we use Orthogonal Frequency Division Multiplexing (OFDM) modula- tion scheme [7]. With OFDM the matrix operations get much simpler. In fact, with multi-tone modulation, such as OFDM, it is possible to eliminate the Inter Symbol Interference (ISI) by using a cyclic prefix. Moreover, a large number of frequencies is used in such a way that if some frequency is corrupted by noise, it is possible that the remaining set of frequencies is sufficient for the data flow.For that reason, each device has an OFDM transmitter, and also an OFDM receiver, with exception of the passive reflectors. No channel coding technique is used. 5 G. Vitale et al. OFDM frequencies (N) N-M 'DATA' frequencies Fig.4. OFDM frequencies subset showing frequency regions for data signals and user labels Propagation: The channel impulse responses are represented either by ran- domly chosen tap values or by Rayleigh fading statistics to incorporate multi- path effects. Furthermore, we also study the operation of our example network with or without noise with Gaussian statistics. Reception: The reception process discussed here involves only the node. After the OFDM receiver, the signal is a linear combination of data from different users. This signal passes through the pre-equalization filter to separate different user data. The separated data are then processed further for QAM detection with threshold device. Routing: The diffuse routing algorithm is done at the physicallayer. In order to do that, the incoming signal must have some particular property (label), in such a way that the node can determine immediately the destination, without decoding any field in data packets. As OFDM is used, we can use some of the frequencies to represent the label of the signal. We use as many frequencies as the number of the terminals in the example network. In this label the source information is also present. To understand this better, if there are M terminals and N frequencies, with N » M, we choose M frequencies, as shown in fig. 4. In this way, when a node receives a signal, after separation and equalization, it checks the information in the set of 'identification frequencies' and forwards the signals in the right directions by using the node-side pre-equalization matrix. Before sending the information to the terminal, the last node has to process all the signals coming from the different directions, This processing compensates fur the multi-path effects and also for error detection. After that, the last node sends the data to the right terminal by using the terminal-side filter. To the other terminals that are linked to this node, this signal will appear as noise. The results of simulations are given in fig. 5, where we also incorporated channel noise. Without channel noise, the received constellation is perfect, and to the other terminal the 'noise' is represented by one point in the origin of the axes. The effect of channel noise will be discussed in more detail below. 6 Diffuse Routing over Heterogeneous Mesh Networks of Web Devices ReceiVed CAM Constellation, user 5 Received CAM Constellation. user 6 1.5 0.5 o -0.5 -0.5 ':~~. j -1 - -1.5'--_,,-------,0:-----,----.1 Fig. 5. QAM constellation at the receivers 5 and 6, corresponding to a SNR of 30 dB and 128 frequencies, In this simulation a large number of OFDM symbols is sent from user 3 to user 5. From these figures it is clearly seen that the intended receiver (user 5) gets proper constellation, while its neighbor (user 6) sees only noise 4.1 Noise in the channels From fig. 5 it is clear that the constellation at the receivers is not well defined, but there are 'clouds' of points around the QAM values. Depending on the transmission power, these clouds can be big or small, with a consequently big or small degradation of the signal, and a big or small error probability. We define two types of the error probability: - Loss Probability: this is the probability of loss of one OFDM symbol due to label corruption. The node is not able to recover the destination, and then the symbol is eliminated. This probability depends on M and N. As the ratio M / N decreases, the Loss Probability decreases correspondingly. - Symbol Error Rate: this probability regards the contents of the 'data fre- quencies' N-M and is independent from those values. It depends on the Signal to Noise Ratio (SNR). In fig. 6 it can be seen that the probability of message loss is reduced using a multi-path propagation. In our simulations weconsidered only two possible paths from the first node to the last node, and we used 128 frequencies. The totalloss probability is always smaller as compared to a single path propagation, like path 1 or path 2, for any Signal to Noise Ratio value. With this technique it is possible to reduce the transmission power, in order to obtain the same loss probability of a single path propagation. It is also reasonable to imagine that this loss probability can be reduced further using more than two paths. 5 Conclusions New efficientdata communication methods are needed to realize the web devices network infrastructure necessary for intelligent proactive environments of the fu- ture. In this report we proposed and described such a data flowconcept based on 7 G. Vitale et al. oMu~ipath Loss Probability at the last node. 128 subcarriers ~" ,~~,~ .. ·1 :iS v. .8 1 ct°10- .. • UI .3 5 10 15 20 25 30 35 Signal to Noise Ratio (dB) Fig. 6. Data Loss probability at the last node after a multi-path propagation. 128 frequencies are used and a randomly chosen tap channel is considered. The benefits of multi-path propagation (total) is clear as compared to single path propagation. The high loss values in this plot are due to our choice of very noisy links assumed in paths multi-path diffuse routing algorithm aided with beam-forming. We have demon- strated the operation of this algorithm with a simple example network topology. The simulations with this example network show that the basic physical layer ingredients of this algorithm, such as multi-path data flow, beam-forming and physicallabel based routing, work successfully. We also discussed the effects of noise in the operation of this data flow method. We now are working to develop extensions to this diffuse algorithm at a higher networking level so that it can be applied autonomously by a large number of web devices in a dense network. References 1. D. Estrin, R. Govindan, J. Heidemann, and S. Kumar, "Next Century Challenges: Scalable Coordination in Sensor Network" , p. 263, Mobicom 1999, Seattle. 2. C. Intanagonwiwat, R. Govindam, and D. Estrin, "Directed Diffusion: A Scalable and Robust Communication Paradigm for Sensor Networks", pp. 56-57, Proc. of Mobicom '00, Boston, Massachusetts, August 2000. 3. D. Ganesan, R. Govindan, S. Shenker, and D. Estrin, "Highly resilient, energy efficient multipath routing in wireless sensor networks" , ACM Mobile Computing and Communications Review, vol. 1, no. 2, October 2002. 4. A.J. Paulraj, C.B. Papadias, "Space-time processing for wireless communications", IEEE Signal Proc. Mag., p. 49, November 1997. 5. H. Sampath, H. Bolcskei, and A.J. Paulray, "Pre-equalization for MIMO channels with delay spread", p. 1175, IEEE VTC 2000 6. A.S. Tanenbaum, Computer Networks, 3rd edition, Prentice-Hall, 1996. 7. G.G. Rayleigh, J.M. Cioffi, "Spatie-temporal coding for wireless communications", IEEE Trans. Comm., vol. 46, p. 357, 1998. 8 Web-enabled multimedia categorization Alfons Salden, Frank Aldershoff, Sorin Iacob and Raymond Ot te Telematica Instituut, Drienerlolaan 5, 7500 AN Enschede, The Netherlands E-mails:{salden.aldershoff.s.iacob.otte}@telin.nl Abstract. Most of the multimedia objects distributed over the World- Wide Web are unstructured or poorly meta-indexed to be of any use in retrieval tasks formulated by users in naturallanguage queries. In general these dynamic multimedia objects are manually annotated in terms of textual documents. The high costs involved in manually indexing multi- media objects, which grow in volume and are becoming ever more diverse in type, call for automatic sustainable categorization schemes accesible on the Web. We propose a solution to this problem of web-enabled mul- timedia categorization by combining the Acoi system [1] and advanced multimedia systems [2-4]. We demonstrate the integrated system pays off especially in semantic multimedia summarisation tasks. 1 Introduction Categorization of dynamic multimedia objects is one of the hardest problems in hypermedia engineering, because it concerns an integral semantic representa- tion, analysis, processing and understanding of various physical fields underlying those objects. Dynamic multimedia objects are becoming in addition ever more large in volume, type, and complexity. Since they are stored, distributed and active on the Web, they ask for a web-enabled system allowing for indexing, querying, retrieving, regenerating, summarising, fusing and associating dynamic multimedia objects. Therefore, we address in this paper the question how -to categorize dynamic multimedia objects on the Web. The Acoi system [1] provides a nice way to model, manage, query and retrieve multimedia objects on the Web through meta-indices stored in databases. Un- fortunately, the feature detectors and grammars used in this system do not solve a generic multimedia categorization problem. The feature detectors and gram- mars are rather restricted to manually annotated and still very coarse multimedia meta-indices. Combining, however, the Acoi system with advanced multimedia systems [2] can automate and make explicit the feature detectors and grammars. Feature detectors and grammars are in the Acoi system context free implying that they are still not precisely defined. The advanced multimedia systems on the contrary are context dependent and do set those detectors and grammars. They invariantly and robustly categorize multimedia objects irrespective a so- called gauge group possibly covering degradations of the objects due to noise or morphological transformations. Instead of being based on heuristics, as in 9 content-based multimedia systems, like Virage [5], advanced multimedia sys- tems are based on a generic physical, mathematical and logical framework. The physical framework is related to potentials and strengths of the physical fields. The mathematical framework is consequently related to connections and curva- tures of the mulimedia objects correpsonding to those physical fields. Finally, the logical framework that relies on computer algebra systems, like Mathemat- ica together with Jlink and webMathematica [6], stipulates the (fuzzy) logical semantic web services needed to categorize multimedia objects. Our paper is organised as follows. In section 2 we show that the Acoi sys- tem provides the bare database management services needed in web-enabled multimedia categorization. In section 3 we present the mathematical, physical and logical framework underlying advanced multimedia systems. In section 4 we elaborate on the web-enabled multimedia system integrating both systems. 2 The Acoi system The Acoi system [1] is based on a formal and grammatical framework for mul- timedia indexing schemata. The grammars describe the relationships between meta-data and detectors in terms of grammar rules. They are context-free gram- mars extended by feature detectors that can be executed on a multimedia object. This means that a feature grammar represents an indexing schema and that it can consequently be used to find indices, as well as the original multimedia objects. In the Acoi system a feature grammar and the feature detectors are combined in a Feature Detector Engine, FDE (a parser). The FDE stores the meta-data, produced by the feature detectors, in a parse tree that in turn is put in a meta-index. In case of changes in the original multimedia or the feature detectors the Feature Detector Scheduler, FDS, uses knowledge of dependencies between feature detectors to update the meta-index. Finally, the met a-index database can be searched by means of the Feature Query Engine, FQE. Because the Acoi system does not specify the needed context for feature grammars and detectors, another framework is required that can derive the necessary multime- dia semantics. Such a framework should provide hooks and contexts for logically, mathematically and physically sensible actions by the FDE, FDS and FQE with. respect to multimedia objects. 3 Advanced multimedia systems Advanced multimedia systems, as proposed by Salden, Aldershoff and Iacob [2- 4], overcome the problems of generic multimedia representation, analysis, pro- cessing and understanding. Instead of giving a full theoretical account of their solutions to these problems in the sequel we illustrate the main underlying con- cepts of our logical, mathematical and physical framework. 10 3.1 Mulüirnedia reprcnontat ion The representation of multimedia objects depends on the chosen (en)decoding schemata applied to the corresponding physical fields underlying e.g. audio, video and text. In this context it is important to know which abstraction schemata are used to resolve the physical fields, i.e. which (en)decoding schemata do exist to represent physical fields at a particular resolution. Furthermore, it is essential to know whether and how those representations change whenever other physi- cal fields are also taken into account. What will be the (en)decoding schemata if e.g. audio, video and text are coupled? Last but not least, what will be the (en)decoding schemata whenever the physical fields are subjected to gauge groups or even severe morphological transformations? Those gauge groups may coincide with deformational fields, whereas the morphological transformations may cover cutting, pasting, insertion and deletion of multimedia objects. If the gauge group is known, then a gauge invariant multimedia representation can be mathematically derived. However, such passive transformations are not common for multimedia objects that are subjected to small and even large scale per- turbations. Active transformations such as morphological transformations may have far reaching implications on a semantic as well as contextuallevel, but may be undone by means of similarity operations inducing inference mechanisms on the multimedia objects. Thus our multimedia categorization problem involves besides the problem of invariance under gauge groups also the problem of ro- bustness under similarity operations. 3.2 Mult.irnedia analysis The next phase in a multimedia categorization schema is multimedia analysis. This analysis boils down to identifying schemata that yield equivalences of the multimedia objects invariant under a gauge group (see also section 3.1). Among such concise sets of equivalences of multimedia objects are geometric, topological and functional invariants that are either of a local, global or joint character. Fur- thermore, those equivalences may be differential and integral features, or even inductive and deductive inference structures on top of multimedia objects. The natural statistics of those inference structures subsequently underly the syntax, semantics and contexts residing in the multimedia objects. However, the capabil- ity of detecting perceptually salient multimediastructures using only (semi- )local information is limited. If the multimedia object is subjected to a well-defined gauge group we call derive theoretically the multimedia content. However, if the multimedia objects are possibly degraded by noise or even larger scale mor- phological deformations, then the effectiveness of such (semi- )local mulimedia analysis schemata breaks down. 3.3 MultilDedia processing In order to ensure robustness and discriminative power of multimedia representa- tion and analysis schemata some form of multimedia relaxation process becomes 11 indispensable. Changing multimedia conditions the observed multimedia phys- ical fields will be subjected to modern geometric, topological and dynamical perturbations consisting of non-integrable and integrable deformations of the physical fields. These multimedia deformations and morphological transforma- tions lead to a change of the equivalences derived by means of multimedia repre- sentation and analysis schemata. Therewith our" golden rules" used to categorize multimedia are under attack. We would like to forget about gory jminor details and even about large scale background fields that obstruct our comprehension of the perceptually meaningful semantics and contexts of multimedia objects on the basis of those golden rules. Lyapunov stability under noise and structural stability under severe morphological transformations can be guaranteed by mul- timedia processing that is consistent with the underlying salient physical field dynamics. Note that, the latter salient field dynamics may comprise fields that are related to user behaviour and other dynamic network topology aspects. 3.4 Multimediaunderstanding Multimedia understanding in categorization schemata assumes knowledge of the multimedia consistent similarity operators and related recursion operators used in multimedia processing schemata and consequently in multimedia representa- tion and analysis. Both these types of operators generate hierarchical nestings of gauge invariant and robust equivalences that might themselves be perceptually cousistently grouped multimedia objects. These self-similar dynamic multimedia objects come about by segmentations and arrangements of dynamic scale-spaces of equivalences of the primal multimedia objects. Next an ensemble of induc- tive (multimedia statistics driven) or deductive (multimedia concepts driven) inference structures can be derived on top of those equivalences through combi- natorics and enumeration. Finally, these (fuzzy) inference structures give rise to multiple dynamic multimedia object interpretations. The output of these infer- ence structures in terms of gauge invariant and robust multimedia meta-indices, including issues like spatio-temporal and dynamic inclusion and ordering rela- tions for the self-similar multimedia objects, can then also be used to come up with multiple summarisation, synthesis and association schemata. As in section 4 we address the problem of web-enabled multiple summari- sations of multimedia presentations based on different query criteria we briefly dive into a-symmetric clustering of self-similar multimedia objects as proposed by Iacob [4]. A dynamic multimedia object summary in this clustering paradigm comes about by a recursive grouping and possibly hierarchical reordering of per- ceptually self-similar and predominant multimedia objects. Now we may base our similarity measure on histograms of gauge invariant and robust multimedia meta-indices. The hierarchical grouping of the most representative and predom- inant key multimedia objects using a-symmetric similarity subsequently comes about after the construction of a directed weighted graph. This graph consists of a set of vertices that is in a one-one relation with the original set of multimedia objects and a set of edges. Each edge is then also weighted by a similarity mea- sure for a key-object relative to another. An optimal collection of two-level trees 12 is obtained from the directed weighted graph of self-similar multimedia objects by searching for the minimal number of two-level trees with a maximal number of edges having the highest weights. 4 Web-enabled integrated system We present a system that incorporates the advanced multimedia systems and the Acoi system (see section 2 and 3). The architecture is very similar to that of the Acoi system (see Fig. I). However, our architecture tailors to the advanced multimedia systems. As depicted the Acoi system has three operational modes, namely multimedia indexing, querying and retrieval. The indexing mode starts after a multimedia object is added to the database. The retrieval phase starts after the user has initiated the query mode on the system. Fig. 1. Web-enabled integrated system: Multimedia content production and deploy- ment system (left) comprising that of Acoi system and advanced multimedia systems (right ). When a new object is added to the database, this event is relayed to the FDS. The currently operational indexing schema will be invoked and corresponding feature detectors will be called. The FDS determines the indexing schema to start the FDE. The outcome ofthe detectors may in turn influence (the choice of) the ensuing indexing schema. In our system the feature grammars and detectors are based on categorisation schemata of dynamic multimedia objects. One schema result will be a parse tree containing the results of the feature detectors, with the structure of the context dependent feature grammar. This parse tree can be put in XML-format and can, through XSL(T)s, be translated to other formats and even other categorization schemata. In the Acoi system the parse tree is translated to database commands, that will insert the index. When a user wants to retrieve information from the system, this query is relayed to the FQE. The FQE selects the appropriate indexing schema that will be used for the retrieval. This selection is based on many factors, such as query type, user preferences and system parameters. With the correct indexing schema selected, the query is relayed to the FDS. The FDS will retrieve all the necessary indices from 13 the multimedia DBMS, or will schedule detectors to generate new indices or to update existing ones. Ultimately the requested object(s) can be retrieved based on the selected indexing schema. In Fig. 1 we show in addition the distributed system architecture for mul- timedia content production and deployment as developed and operational at the indicated Dutch institutes and companies. This system architecture lately comprises that of the integrated system based on the Acoi system and that of advanced multimedia components built by the Telematica Institute. There are three actors present on the platform, namely users, content providers and content producers. The FDS and FDE using advanced multimedia components, as mentioned in section 3, are part of the distributed production street. Here MPEG-4/7 are used to comply to industry standards. The FQE is part of the distributed content production as well as deployment sites. The user may launch indexing schemata, not yet available at the content production sites, in order to update the meta-indices. After (re)structuring the multimedia DBMS the novel met a-indices can be used to do retrieval on the basis of the query posed by the user. In this system, an indexing schema is governed by one advanced multimedia system; this system provides a specific feature grammar and related detectors. However, within the current DBMS different indexing schemata, based on various advanced multimedia systems, can coexist. Therewith, our multi-tier architecture may enable multimedia web services that juxtapose very complex feature grammars and detectors. One of the biggest problems in multimedia information retrieval systems is the discrepancy between the features that are automaticallyextracted and the features for which the user would like to search. This is sometimes referred to as the semantic gap. For instance, a user does not want to search for a sphere with black and white patches, but for a soccer ball. There are two methods for designing indexing schemata, one starts with the information needs of the user, the top down approach. The other one starts with the features that can (easily) be extracted from the multimedia objects, the bottom up approach. Most current systems take the latter approach, forcing the user to accommodate to the system, instead of the other way round. The major reason for this approach is that starting with a limited set of features makes j[, possible to calculate indices off-line, before queries are formulated. On the other hand, the set of possible information requests is unlimited, meaning that (some part of) the. query matching has to be done on-line, at the time of the query processmg. In our architecture, a hybrid approach is taken. When an object is entered into the database, it is indexed according to several indexing schemata. The choice of schemata depends, among others, on the available feature rlf't.f'rt.ori, a very }Jladical constraint, and on the type and contents of the newly entered multimedia object. This is the bottom up approach. When a user submits an information request to the FQE, the FQE matches this request with an indexing schema. In this matching process, the FQE links t.he requested features with the available features in the system. The FQE can use an ontology or other context-dependent domain knowledge to provide a better matching. For a limited 14 domain, this extra knowledge can of course greatly increase the performance of the system. According to the selected indexing schema the FDS will retrieve the necessary precompiled indices from the database or create a new index on the fly. This is the top down, user-centric, part. For efficient, fast, retrieval it is of course essential that most ofthe required in- dices have been calculated in advance, off-line. However, the only way to present the user with the best matching search results, is to adapt the indexing schema to the specific information request. The separation of features that are used to search with and the features that are used to create indices is more than just a method to provide a user-friendlier interface. It creates an abstraction layer between the query interface and the indices of the database. This abstrac- tion makes it possible to add new features or create completely new indexing schemata without disrupting the retrieval interface. It also allows for several dif- ferent databases, with different indexing schemata, to be queried through one uniform interface. It also allows for the completely transparent refinement or addition of new feature detectors; the only noticeable effect will be improved retrieval results. T...._a~ b_~ &_ ....a,.:.f:=- ~ .J j---_ .. ._.. -:l :.J __ _ ............. ...._ e.-.. ~- .-._-- ":.-----.._..... Ai:.- :~_,~ ._-_._- ! ~ . " - "_ '/ .. a7 ._ .. _._ ,, I . .. 1l,1IM1Hl' d.!. ·j"'I."'I".ijlll. W~:llr~'N Fig.2. Web-enabled summarisations of a multimedia presentation: a short slide sum- mary (top; stressed user) versus a multimedia summary (bottom; relaxed user) . As an illustration of such an improvement, we applied a web-enabled sum- marisation schema to a multimedia presentation consisting of an audio-video to- gether with recorded slide presentation (see Fig. 2). Using the query formulation we derived by means of an advanced multimedia system two summarisations. In the summaries key multimedia objects preserving predominant audio-video and slide information are presented according to user availability. The multimedia 15 summary consists of key video frames, grey audio intervals and slides. Key slide and audio transcription information steers the key video frame selection. We used categorical statistical relevance weighting and reinforcement to select the key multimedia objects. Such types of summaries are very useful in educational settings [7,8]. 5 Conclusion We presented a web-enabled multimedia categorization system integrating both the Acoi system and advanced multimedia systems. It enables a gauge consistent and robust categorization of multimedia objects: sustainable retrieval, querying and indexing schemata have become web-enabled. Ambient aware multimedia web services taking into account e.g. network system characteristics and user behavior are coming into sight. Such services may launch in the future user- friendly query systems that start up related indexing and/or retrieval schemata. References 1. M. Windhouwer, A. Schmidt and M. Kersten, "Acoi: A system for indexing mul- timedia objects," In Proceedings of the first international workshop on informa- tion inteqration and web-based applications and services, Yogyakarta, Indonesia, November 1999. 2. A.H. Salden, "Multimedia system analysis and processing," In Proceedings of 2001 IEEE International Conference on Multimedia and Expo, ICME2001, August 22- 25, 2001, Waseda University, Tokyo, Japan. 3. F. AIdershoff and A. H. Salden, "Multiscale audio-video analysis and processing: segmentations and arrangernents," In Proc. SPIE, Internet Multimedia Manage- ment Systems 1I, Vol. 4519, pp. 20-31, 2001. 4. S. M. Iacob, R. L. Lagendijk, M. E. Iacob, "Video abstraction based on asymmetrie similarity values," In Proceedings SPIE Multimedia Storage and Archiving Systems IV, Vol. 3846, pp. 181-191, 1999. 5. A. Hamrapur, A. Gupta, B. Horowitz, C. F. Shu, C. Fuller, J. Bach, M. Gorkani and R. Jain, "VIRAGE Video Engine," In SPIE Proceedings on Storage and Retrieval for Image and Video Databases V, pp. 188-197, 1997. 6. Roman E. Maeder, The Mathematica Programmer 1I, Academic Press, 1996. http://www.wolfram.com/ 7. R. Brussee, A. Salden, H. van Vliet and P. Boekhoudt, "A web based architecture for e-learning," In SSGRR 2001: International Conference on Advances in lnfras- tructure for Electronse Business, Science, and Education on the Internet, L'Aquila, Italy, 2001. 8. M. Grootveld and H. van Vlif>t (Edc.}, "Engiueeriug Edücatronal Content," Gi- gaCE Deliverable 6.1, TI/RS/2001/071, Enschede, The Netherlands, 2001. 16 Entropy-Constrained Index Assignments for Multiple Description Coding Jean Cardinal Université Libre de Bruxelles CP 212 B-1050 Brussels, Belgium p: +32-2-650 56 08, f: +32-2-650 56 09 email: jcardin@ulb.ac.be Abstract. Multiple description coding has revealed itself highly useful for the transmission of digital signals over packet-switched networks or diversity systems. The index assignment problem is central in the theory and practice of multiple description quantizers. We propose a novellocal optimization algorithm that produces index assignments for such quan- tizers. It locally minimizes the distortion due to description losses with constraints on the entropy of each description. We present experimental comparisons with previously published index assignment algorithms in both scalar and vector cases. Our method is shown to perform signifi- cantly better. 1 Introduction Multiple description coders are designed to send pairs of redundant descriptions of a signalover two unreliable channels, so that the signal can be reproduced with a good quality even if only one of the two descriptions is available to the decoder. The multiple description coding paradigm was introduced in the early eighties in the information theory community (see for instance Ozarow [8] and El Gamal-Cover [5]). Recent applications of such coders include data transmission over packet-switched networks or diversity systems. This paper describes a new method for the design of multiple description codes based on unconstrained vector quantizers. We assume the existence of a single-description quantizer Ct mapping the input random variable X E IRk on the index of the closest reproduetion vector in a codebook {Yi}f:,1 C IRk. We define a transcoding step 8 in which the codevector index is translated into a pair of indices; or descriptions. These two descriptions are subsequently encoded by two entropy coders 1'1 and 1'2. Fig. 1 illustrates this process. The information rates at the output of the entropy coders are called side rates. One of the two descriptions can be lost during transmission. If the first (resp. second) description is lost, a reproduetion vector .K2 (resp. .Kd is constructed from the second (resp. first) description by a decoder (32 (resp. (32). (31 and (32 are called side decoders, and the distortions at the output of these decoders are called side distortions. If both descriptions are received, the central decoder (30 outputs a reconstruction vector .Ko based on both descriptions. The central 17 Fig. 1. Block diagram of the multiple description coding scheme distortion Do = E [11 X - .Ko 112 Ik] is equal to the distortion of the quantizer o. N is the total number of indices in the original quantizer. The injective mapping 6 : {I, 2, ... , N} -+ {I, 2, ... , N}2 can be represented as an assignment of the indices {I, 2, ... , N} to cells of a N x N matrix such that the value of the element in position (r, c) is equal to i if and only if 6(i) = (r, c). We wish to find such index assignments (IA) that locally minimize the average side distortion under constraints on the side rates. This approach constrasts with the previous entropy-constrained multiple description quantization schemes in which the IA was considered fixed and the side rates depended on the boundaries of the quantization cells [12]. We propose an IA design method based on a local search algorithm with a large-scale neighborhood. This algorithm uses entropy constraints and allowsto design multiple description coders with different side rates and side distortions without modifying the central codebook. It is a combinatorial algorithm with polynomial complexity in which no training set is needed. 2 Previous Work on Index Assignment The first description of index assignments for multiple description scalar quantiz- ers is found in the work of Vaishampayan [11].Two families of index assignment matrices are described, in which the maximal distortion between two indices sharing a description is minimized. The asymptotic soundness of this min-max criterion is proved. In [10], an iterative algorithm similar to the generalized Lloyd algorithm (GLA) is described and applied to the optimization of multi- ple description vector quantizers. In [12], a similar technique is presented for entropy-constrained multiple description scalar quantizers. In both cases, the index assignment problem is not treated explicitly. Other contributions from Vaishampayan, Sloane et al. [13][3] describe index assignment methods for lat- tice vector quantizers. A recent work from Oggier and Servetto [7] describes a semidefinite programming approach for codebook design with a fixed index as- signment. Berger-Wolf [1] analyzes index assignment for scalar quantizers under the min-max criterion. Optimal index assignments constructions are shown for various cases. Among other things, the families of diagonal assignments from Vaishampayan [11]are shown to be optimal. In these IA the indices are placed along the t main diagonals, and the maximal index difference is equal to the 18 lower bound t(t - 1)/2. In [6], index assignments and codebooks for multiple description quantizers are jointly optimized using deterministic annealing. 3 Definitions Let R1(8) (resp. R2(c5» be the rate on channell (resp. 2), D1(8) (resp. D2(c5» the distortion due to the loss of the second (resp. the first) description, R; the set {j I 81 (j) = i} of indices in row i and Ci the set {j I c52(j) = i} of indices in column i. We assume that the distortion is defined as the mean squared error (MSE). We use two simplifying assumptions: 1. the index output by a is a uniform random variable, 2. the central decoder satisfies the centroid condition, i.e., /3o(i,j) = E[X I 8(a(X» = (i,j)]. (1) These two conditions are satisfied by MSE-optlmalfixed-rate quantizers. IT as- sumption 2 is verified, then the total side distortion is the sum of the central distortion Do and the distortion due to the description loss Dj,j = 1,2. Hence minimizing the total side distortion is equivalent to minimizing Dj, which can be seen as a channel distortion as opposed to the source coder distortion". When a side decoder, say /31, receives an index 8t{ i), it outputs the best estimation of the initial codevector given the index. In the MSE sense, it amounts to com- puting the centroid LJ"ER 61 (.)"Yj/IRódi)l· The distortions D1(c5) and D2(c5) are therefore related to the variances of the sets of codeveetors having one common description. Note that this estimation mechanism suppresses the need for side codebooks as used in [12]. From the preceding discussion, the distortions are where var(S) = L 11 v. - I~I LYj 11 2 . (2) iES JES We also define the side rates R1(c5) and R2(c5) as follows: 1 N 1 - N R1(8)= kNLIRdlOgIRil' R2(c5)= kNLICilloglCil" • • These values for the rates are equal to the side entropies if and only if assumption 1 is verified. Otherwise, the probabilities IRil/N should be replaced by LjER, Pj, where Pj is the probability mass associated with index j in a. 1 In the literature, Dl and D2 are generally used to denote side distortions. Here it denotes the difference between side and central distortions. 19 4 Achievable Rate Pairs To know precisely which rate pairs are achievable under assumption 1, it is worth asking which pairs of probability mass functions (pmf) are achievable on each side. The pmfs are of the form Ud N}~l for side 1 and {gd N}~l for side 2, where !i and gi are nonnegative integers such that Ei !i = Ei gi = N. We will use the word partition to refer to this kind of vector and assume that they are ordered, i.e., /I ~ 12 ~ ... ~ iN and gl ~ g2 ~ ... ~ gN· To know whether a partition pair is achievable, we are only concerned with the existence of an arrangement of N ones in a N x N matrix such that the number of ones in row i is equal to ii and the number of ones in column i is equal to gi. A necessary condition, under assumption 1, for the existence of such an arrangement is the following: H(f) + H(g) ~ 10gN, (3) where H(f) = Ei(!i/N) 10g(N/!i) is the entropy of the partition i, and simi- larly for g. It is clear that the total rate must be at least equal to the original quantizer rate, otherwise it is not possible to recover the original index. This condition is however not sufficient. A necessary and sufficient condition was given by Ryser [9].It is shown that the existence of an arrangement is equivalent to the existence of a flowof strength N in a certain network with capacities defined by i and g. Given two partitions i and g, we say that i majorizes 9 when /I + 12+···+ h ~gl +g2+·· +ss, TI1 :::; j ::;N. We also define the conjugate r rei) of a partition i by = I{j I ij ~ i}l· We then have the following theorem. Theorem 1 Let i and 9 be two partitions. There exists an arrangement oj N ones in a N x N matrix yielding i and 9 as side distributions ii and only ii g* majorizes i. This theorem can be used to construct a simple algorithm for the enumeration of all the achievable rate pairs given N: for each partition i, enumerate the partitions g* majorizing i and output H(f), H(g**) = H(g). The last equality holds by definition of the conjugate operator. 5 Local Optimization Algorithm Index assignment design is NP-hard and we can use local search algorithm to quickly find good solutions. We present such an algorithm that uses a Lagrangian relaxation of the entropy constraints. The side entropies are changed by modi- fying the Lagrangian multiplier values. The same principle is used in entropy- constrained quantization [2][12],but in these cases the optimization is carried out using a variant of the generalized Lloyd algorithm in the input space. Here the optimization is combinatorial and does not require any training set. Theorem 2 If an IA Ó minimizes the following quantity 20 where the ÀD1' ÀD2' ÀRt and ÀR2 are nonnegative Lagrangian multipliers, then there exist three values D~, R~ and ~ such that Ó also minimizes DdÓ) under the constraints D2(Ó) ~ D~, RI(Ó) ~ R~ and R2(Ó) ~~. A general proof can be found in [4]. We minimize J locally using a search algorithm based on iterative permuta- tion of indices in the IA matrix. This algorithm selects one row of the IA matrix, and finds a permutation of the indices in this row that minimizes the objective function (see Fig. 2). Without loss of generality, we assume that the fust row is selected. The set of indices found in this row is Cl. In other words, we look for an assignment of the side descriptions {Ó2(i)}iECt to indices i E Cl that mini- mizes J. Our algorithm iteratively finds the best permutation of the indices in each row and proceeds similarly for each column. This process is iterated until convergence. Depending on the cost function, finding the best permutation may be a NP-hard problem too. In our case, however, each term of the cost function is a sum on the side indices, and the cost can be separated. Finding the best assignment for onerow or one column is therefore a bipartite matching problem that can be solved in polynomial time. The bipartite matching problem is a classical one for which numerous efficient algorithms exist. It is also straightforward to formulate the problem as a linear program. Let eij be the cost of assigning the index previously found in the ith row to the jth row and let Xij be an indicator variable such that Xij = 1 if this index should actually be assigned to row j. The following linearJ>rogram is a formulation ofthe bipartite matching problem: minimize L~l Lj=l CijXij, subject to Lf=l Xij = 1, L~l Xij = 1, and Xij E [0,1]. It is well known from combinatorial optimization theory that solutions of this type of problem are integer, that is, Xij E {O, I}. The cost of assigning the index in the ith row to the jth row can be written: 1 (') Cij = ÀDl kN var Rij + ÀRt kN11'1Rij N log IRij I' (5) where Rij is the new set of indices found in the jth row. Assuming that we look for a permutation of the indices in Cl, it can be written: (6) where ó-l(r,e) is either the singleton {l} such that Ó(l) = (r,e) or the empty set. The computation of the new distortion cost var (Rij ) can be carried out in constant time by saving the previous values var(Rj). Similarly, the rate costs can be computed in constant time. In other words, the computation of all assignment costs eij has complexity O(N2). By iteratively solving the matching problem for each row and each column, we obtain an efficient local search algorithm with an exponential neighborhood size. This is an important feature of the algorithm, since the size of the neigh- borhood in a local search procedure is generally strongly correlated with its efficiency. Convergence is guaranteed because J is lower bounded and cannot 21 increase between two iterations. To keep the balance between the row and col- umn optimization, i.e. to avoid privileging one side, we propose to alternately optimize for one row, then for one column. Fig. 2. Update of an IA using bipartite matching 6 Experiments 6.1 Scalar quantizers 0.7 0.8 fix8d-rate IA. k = 1 -~- fixed-rata IA. k = 1 s'i' 0.6 EC·IA. k= 1 ... .. ~ 0.6 0.7 EC-IA. k= 1 e. + 0.5 D.• e. + 0.5 0 0 e e D.• 0.3 ~ ~ 02 <; i <; 0.3 02 ~ 0.1 :sJ'" 0.1 0 4 4.5 5 5.5 6 6.5 7 7.5 8 7.5 rate Rl + R2 rale Rl + R2 (a) iid Gaussian source (b) iid Laplacian source Fig.3. Results for 4-bit scalar quantizers We first provide experimental results for an optimal scalar (k = 1) 4-bit quantizer for iid Gaussian sources with distortion Do ::: 0.0104 and balanced descriptions. We compared the results of our optimization algorithm with those obtained using optimal diagonal IA described in [11][1]with t = 1,2,3,4 diago- nals. These IA are designed to minimize the maximal index spread for fixed-rate descriptions. Our optimization procedure starts with a full-redundancy IA, i.e. a diagonal IA with t = 1, and optimizes the IA for increasing values of the Lagrangians .ÀR1 and .ÀR2. We fixed .ÀR1 = .ÀR2 and .ÀDl = .ÀD2 = 1. It is more natural in our case to show the curves of the side distortion for each rate with a 22 tixed central distoi tion rather than th= traditional central/side distortion curve for a fixed rate. These curves are given on Fig. 3(a). We observe that our algorithm produces IA with better performance, of the order of 0.85 dB at some points. This is partly due to the fact that we obtain rates that are not achievable with the other IA due to the fixed-rate constraint. The optimization times were very short, i.e. a few seconds, even though we did not use an optimized matching algorithm. We carried out a similar experiment with a scalar quantizer designed for a Laplacian source, a common model for subband coefficients in wavelet image coding. The central distortion is approximately Do ~ 0.0168. Results are shown on Fig. 3(b). We observe a clearer improvement than in the Gaussian case; more than 2dB in the region RI + R2 ~ 5.5 bps. This might indicate that the entropy constraint works better when the distribution is highly peaked. 6.2 Vector quantizer 0.3 '---~-~-~-~-----' 1 1.2 1.4 1.6 1.8 2 rale Rl + R2 Fig. 4. Results for a 1 hps vector quantizer with k = 4 optimized for a correlated Gaussian source In the vector case, we tested our optimization algorithm on a k = 4-dimensional codebaak optimized for a Gauss-Markov source with correlation coefficient0.9. The rate of this quantizer a is 1 bps, and the central distortion is Do ~ 0.3916. We design balanced descriptions only, i.e. with the same constraints on the La- grangian values as in the scalar case. We compared the entropy-constrained design with a similar fixed-rate algorithm in which the Lagrangian multipliers for the rates are zero and the rate is defined by the size of the IA matrix. The objective function in this algorithm is the surn of the side distortions only. We used matrix sizes equal to 4,5,... ,10 and 16. The results are shown on Fig. 4. In the vector case, the entropy-constrained algorithm clearly outperforms the fixed-rate version by a significant margin, up to 1 dB in the low rate region. In both cases the optimization was extremely fast. 23 7 Conclusion We presented a novel local optimization algorithm for the design of multiple description IA subject to constraints on the side entropies. It was shown to per- form weil on Gaussian sources in both scalar and vector cases. It has several advantages compared to previously published methods: it uses the MSE crite- rion instead of the maximum spread, works for any dimension k, can be used to design asymmetrie descriptions, and can also be used together with the gener- alized Lloyd algorithm to produce better quantizers. Future work on this topic should include results on m-description IA and the design of a fast incremental algorithm computing all points on the rate-distortion curve. References 1. T. Berger-Wolfand E. Reingold. Index assignment for multichannel communication under failure. IEEE 1hms. Inform. Theory, 2002. to appear. 2. P. A. Chou, T. Lookabaugh, and R. M. Gray. Entropy-constrained vector quanti- zation. IEEE TI-ans. Acoust., Speech, Signal Processing, 37(1):31, 1989. 3. S. N. Diggavi, N. J. A. Sloane, and V. A. Vaishampayan. Design of asymmetrie multiple description lattice vector quantizers. In Proc. IEEE Data Compression Conf., 2000. 4. H. Everett. Generalized lagrange multiplier method for solving problems of opti- mum allocation of resources. Operations Research, 11:399--417, 1963. 5. A. A. El Gamal and T. M. Cover. Achievable rates for multiple descriptions. IEEE Trans. Inform. Theory, 28(6):851-857, November 1982. 6. P. Koulgi, S. L. Regunathan, and K. Rose. Multiple description quantization by deterministic annealing. In Proc. Int. Symposium on Information Theory, June 2000. 7. F. E. Oggier and S. D. Servetto. Semidefinite programs for the design of codes for delay-constrained communication in networks. In Proc. IEEE Data Compression Conf., 2001. 8. L. Ozarow. On a source coding problem with two channels and three receivers. Bell Syst. Teeh. J., 59:1909-1921, December 1980. 9. H. J. Ryser. Combinatorial properties of matrices of zeros and ones. Canadian J. Math., 9:371-377, 1957. 10. V. A. Vaishampayan. Vector quantizer design for diversity systems. In Proc. 25th Annual Conference on Information Sciences and Systems, pages 564-569, John Hopkins University, March 1991. 11. V. A. Vaishampayan. Design of multiple description scalar quantizers. IEEE TI-ans. Inform. Theory, 39(3):821-834, May 1993. 12. V. A. Vaishampayan and J. Domaszewicz. Design of entropy-constrained multiple description scalar quantizers. lEER Tmsi« Inform. Thcory, 40(1).245-250, January lYY4. 13. V. A. Vaishampayan, N. J. A. Sloane, and S. D. Servetto. Multiple description vector quantization with lattice codebooks: Design and analysis. IEEE Trans. Inform. Theory, 47(5):1718-1734, 2001. 24 TWO ASPECTS OF CODING FOR INFORMED DECODERS Ludo Tolhuizen, Andries Hekstra, Ning Cai and Stan Baggen Philips Research laboratories Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands ludo.tolhuizen,andries.hekstra,stan.baggen@philips.com Department of Mathematics, University of Bielefeld P.O. Box 100131, D-33501, Bielefeld, Germany cai@mathematik.uni-bielefeld.de INTRODUCTION At last year's WIC symposium, we introduced coding for informed decoding [1]. This refers to coding for an error-prone channel, where a side-channel possi- bly informs the decoder about a part of the information that is encoded in the transmitted code word. The encoder does not know about which part of the in- formation, if any, the decoder will be informed. Several constructions were given of codes for which the error-correcting power is enhanced if some information symbols arè known to the decoder. In the present paper, we discuss two further aspects in the application of coding for informed decoders. I ADDRESS LABELLING SUITABLE FOR INFORMED DECODING Coding for informed decoders can be applied in address retrieval on optical disc [2]. In this application, we are interested in the information that is stored in the headers of the sectors in which the disc is (logically) partitioned. The decoder knows, from the system specifications and the sector in which the read/write head is intended to land, in which relatively small disc area the head will actually land. The common part of the addresses of the sectors residing in this area can Le used as known inforrnation in informed decoding. Clearly, we would prefer this common part to be as large as possible. A poor choice would be to use as address for sector s the binary representation of s. For example, the addresses of the two consecutive sectors 127 and 128 would then be 01111111 and 10000000 and hence differ in all positions. Motivated by this application, we will study the following problem: assuming that each sector address is a q-ary vector of length n, can we find address labelings 25 such that the addresses of any b consecutive sectors agree in many positions? A more formal problem description now follows. We fix a positive integer n and a set Q of size q. An address list of length M is a sequence a(O), a(l), ... , a(M - 1) of M distinct elements from Qn; of course, we require that M ~ qn. If S c Qn, the common coordinates of S, denoted by cc(S), is the set of positions in which the vectors of S agree, that is, cc(S) = {i E {l, ... ,n} 13xEQV'.ES[Si =x]}. For an address list A = a(O), a(l), ... , a(M -1) of length M and an integer b, we denote by g(b, A) the minimum number of positions in which any b consecutive vectors in A agree, that is g(b,A)=min{lcc({a(i),a(i+1), ... ,a(i+b-1)})11 O~i~M-b}. For each positive integer b ~ M, we define g(b, M) = max{g(b, A) I A is an address list of length M}. We are interested in finding g(b, M) and address lists that attain this maximum. A Gray code is an address list in which any two consecutive addresses differ in exactly one position. A Gray code is an obvious choice for an address list that is used in conjunction with informed decoding, as then at least for small b we stand a chance of having many common coordinates in any b consecutive addresses. A well-known way to recursively construct q-ary Gray codes is by "reflection" as described next. ~h= 0,1, ... , q - 1. Let n 2: 1 and let Gn = g(O), g(l), ... , g(qn -1) be a Gray code of length s". The Gray code gn+l is then defined as Og(O),Og(l), ... ,Og(qn - 1), 19(qn - l),lg(qn - 2), ... ,lg(0),2g(0), ... where xg(i) denotes the concatenation ofthe symbol x and the vector g(i). The following theorem from [3] shows that q-ary reflected Gray codes are perfectly suited to be applied in conjunction with informed decoding. 26 Theorem 1 For each M and each b, 2 :::;b :::;M, we have that if M> ql(bl (b M) = { n - l(b) - 1 , where l(b) = flogq(b - 1)1- g , n - l(b) if M:::; ql(bl The q-ary reflected Gray code attains this bound for all b simultaneously. II JOINT DECODING The headers of consecutive sectors of a disc often contain related information. For instance, the date of recording and copyright information from two consecu- tive sectors often are equal, while the difference of their addresses usually attains its value from a small set of possibilities. As another example, in packet trans- mission, the headers of consecutive packets often contain related information like consecutive sequence numbers. Informed decoding offers a way to benefit from the inherent correlation between consecutive headers as it allows retrieval of the difference of two consecutive headers in a reliable way (assuming linear encod- ing). Several such retrieved differences can then assist in retrieval in each of the individual headers, as is explained in the following example. Consider three codewords Cl, C2 and C3, corresponding to three consecutive sectors, and suppose we read out r, = Ci+ei for 1:::;i :::; 3. Assume that by means of informed decoding, we obtained the correct value of C2- Cl and C3- C2. Then we also know C3-Cl, and we can compute r; = r2+(cI-C2) and r; = r3+(cI-C3). Now note that rl = Cl +el and r~ = Cl +ei for i = 2 and i = 3. So after informed decoding, we have three vectors that are corrupted versions of Cl, that can jointly be decoded in order to retrieve Cl. This could be done by first obtaining the vector z from these three vectors by majority voting (erasing the positions in which the vectors attain 3 different values), followed by decoding z to the nearest word in C. Note that we are in fact decoding a corrupted word from the product code of C and the repetition code of length 3. Many error patterns of a weight that exceeds half the minimum distance of this product code are decoded correctly. REFERENCES [1] M. van Dijk, S. Baggen and L. Tolhuizen, "Coding for informed decoders", 22nd Symp. on Information and Communication Theory in the Benelux, Enschede, The Netherlands, May 15 & 16, 2001, pp. 123-128. 27 [2] M.W. Blum, L.M.G. Tolhuizen and C.P.M. Baggen, "Informed decoding in an address format", Technical Digest Int. Symp. on Optical Memory, Taipei, Taiwan, October 16-19 2001, pp. 276-277. [3] N. Cai, L. Tolhuizen and H. Hollmann, "Common coordinates in consecutive addresses" , preprint. 28 Faster U niversal Modeling for Two Source Classes AH Nowbakht* and Frans Willems Eindhoven University of Technology, Eindhoven, The Netherlands Abstract. The Universal Modeling algorithms proposed in [2] for two general classes of finite-context sources are reviewed. The above meth- ods were constructed by viewing a model structure as a partition of the context space and realizing that a partition can be reached through successive splits. Here we start by constructing recursive counting al- gorithms to count all models belonging to the two classes and use the algorithms to perform the Bayesian Mixture. The resulting methods lead to computationally more efficient Universal Modeling algorithms. 1 Introduetion We review the Universal Modeling algorithms proposed in [2] for two finite- context source classes: Class-I and Class-H. These algorithms were developed in the framework of a generalization of the Context-Tree Weighting (CTW) algo- rithm [1] and perform a recursive weighting of all models. A close look into the workings of the methods for Class-I and Class-Il reveals that some of the models are being counted in repeatedly. This results in excessive storage and a higher computational complexity than strictly needed. Using an approach based on counting algorithms inside the original methods we can remove these repetitions and therefore reduce the complexity without sacrificing the performance. 2 U niversal Source Coding Overview The purpose of Source Coding is to represent sequences in the most compact way. This representation is called a (source) code and each (binary) sequence xi = XI,"" XT of length T is represented by a (binary) codeword c(xf) of length L(x'[). According to the concept of entropy of Shannon the ideal code- word length is related to the probability of the sequence P(x'[) by the following expression Lid(xf) = -10g2 P(x'[) bits. The probability of a sequence depends on the characteristics of the information source which generated it. In the Uni- versal Source Coding setting the characteristics of the information source are unknown and therefore the probability P(x'[) has to be estimated from the sequence xi and any other available information. * Supported by Technologiestichting STW under project EEL4643. 29 Finite-Context Sources These sources are characterized by the fact that their current state (parameter) is determined by the current context information through some function (3(.). For each sequence symbol Xt there is a context symbol Ut available. Therefore we can express the instantaneous probability as P(Xt = 1) = 1 - P(Xt = 0) = O{3(u,J for t = 1, ... ,T where Ut EU = {I, ... , U} the context space and Ok E [0,1] is a parameter. The probability of the whole . T sequence would be P(X[ = xI') = TIt=l P(Xt = xd· Structure and Parameters The Source Model consists of two parts, namely the Model Structure (determined by the function (3(.» and the Source Parame- e ters specified by the Parameter Vector = {Ok, k = 1, ... , K} (K is the number of parameters here). The Structure specifieswhich groups of contexts correspond to the same state (parameter), these are called Context-Sets. The structure can be seen as a partition of the context space into disjoint subsets. The parameters define the probability distribution for every state. A Source Class is a collection of structures that satisfy some restrictions on the allowed context-sets i.e. only some groups of contexts can correspond to the same state. Universal Model - Bayesian Mixture A Universal Model is a probability distribution that fits any source model. A conceptually straightforward way to construct such a universal model is to perform the Bayesian Mixture. Pc(xf) = L PM(M)P(xf I M) (1) MEM In the above expression Pc(xI') is the universal probability assigned to string xi. It is constructed by weighting (averaging) p(xi I M), the probabilities assigned byeach structure M from source class M, with the a-priori probability of that structure PM(M). p(xi I M) = TI~l Pe(Si), where Pe(S) is an estimate for the probability of the subsequence corresponding to all symbols which where generated with context U E S ç U. Here model M partitions U into K cells Si. 3 Universal Modeling for Class-I Class-I is the most general source class one can think of since it makes no restrictions whatsoever on the composition of the context-sets. Context-Sets and Structures ITthe size of the context space is n there are (;) possible context-sets of size s. Hence, in total there are L:;=l C) = 2n - 1 different subsets. The number of different model structures is the number of distinct partitions of the context space into disjoint subsets. In general, N(n,p) the number of partitions of a context space of cardinality n into p subsets can be expressed as N(n,p) = M(~,p)p. where M(n,p) defines the number of partitions into p labeled subsets and is defined recursively M(n,p) = pn - Lf~; (~)M(n, i). The total number of structures in Class-I is thus L:~=lN(n, i). 30 3.1 The Arhitrary Splitting Method As should be obvious from the preceding section, it is infeasible to calculate the Bayesian Mixture (1) by summing all models one by one. Therefore Willems et al. proposed the Arbitrary Splitting (AS) method in [2]as an alternative. We describe briefly the AS method. For each of the possible context-sets D a record is hold which keeps two probabilities : the Estimated Probability Pe (D) and the Weighted Probability PwCD). Pe (V) is an estimate for the probability of the subsequence corresponding to all symbols which where generated with context u E V. The weighted probability Pw(V) is defined as the uniform weighting of the estimated probability and the weighted probabilities of all substructures which result by splitting V (into two subsets). The set fl(V) of all possible splits of context-set V is defined in the followingmanner The weighted probability is expressed as P. (V) = Pe(V) + L(Sl,S2)ElI('D) Pw(Sr)Pw(S2) (2) w 21'DI-l The Universal Model is defined as Pc(xf) = Pw(U) and includes all models in a recursive way. Computational Complexity For a certain subset V we need according to expression (2) 21'DI-l - 1 additions and 21'D1-1 multiplications. Note that we are just counting the operations needed to calculate Pw(V) when all involved terms are already available. Summing up over all subsets will give the total complexity. Remember that for a context space of cardinality n there are (;) subsets of size s. The total number of additions is therefore NAS( add ) _ n - ~ ~ (n) s (28-1 - 1) _ 3 - n - 2n+l 2 +1 8=1 and the total number of multiplications NAS mul ( n ) = ~Z:: (n)s 28-1 n = 3 2- 1 8=1 Model Multiplicity There are many ways to arrive at a partition by means of successive splitting. Consider a model with p parameters i.e. a partition of the context space into p cells. We can easily write down the followingrecursive formula for f.L(P) the number of different ways we can arrive at this particular model for p even 31 Fig. I. All Context-Sets for Class-I with U = {a, b, c}. Splits are shown for new method (only filled lines) and AS method (all lines). JL(P) = t (~) E..=! JL(i)JL(P - i) for p odd with JL(l) = 1. Example 1. In figure 1 the JL(3) = 3 successions of splits leading to structure SI = {a} ~ = {b} S3 = {cl can be appreciated. 3.2 El: A New Universal Modeling Method From the preceding section it should be clear that for the AS method it holds that the number of times a structure is included in the Universal Model explodes with its number of parameters. This observation motivates the search for methods which perform the Bayesian Mixture without repeating models in the sum and hence saving arithmetic operations. We start by introducing an algorithm to count all models in Class-I. Let a(n) he the number of models ill Cläss-I for a context space of size n. Let us begin counting all models by selecting an arbitrary context x E U, and consider all models where x forms a context-set on his own. Since there are n -1 contexts left, there will be a( n -1) such models. So far we have only considered the models with x forming a subset. Let us now add all models where x is joined by one of the other n - 1 contexts, say y. Now {x,y} form a context-set and there are thus n - 2 contexts left. Therefore there are (n - 1) . a(n - 2) such models. By continuing in this way we can write a recursive formula for a(n) namely a(n) = L n ~ 1 a(n -1 - i) n-l ( ) <=0 with a(O) = 1. 32 Obviously it must be true that a(n) = 2::;=1 N(n,p). The above algorithm can be used to perform the Bayesian Mixture. First of all we define a set of splits of a generic context-set D ç U. This set is formed by all splits used in the above algorithm when applied on D. Consider an arbitrary element x E D. We define (3) fleD) contains all possible splits, the same as II(D), the difference is that here we ask that the sets containing x are called SI or what is the same that all SI 's must have a common element. Note that fleD) includes the void split (D,0) which II(D) does not, and therefore the number of splits is Ifl(D)1 = 21'DI-l. The new method works in the following way. Again we have records holding the estimated probability Pe(D) for all possible context-sets in Class-I. But now instead of having a weighted probability attached to all (2n -1) context-sets we only need it for the context-sets which will be further split (the 2n-1 - 1 sets called S2 in (3)). Only for these context-sets we define PI(D) probabilities P (D) = 2::(Sl,S2)E{.?('D) Pe(SdPI(S2) I 21'DI-l where PI (0) = 1. This reduces the storage need for keeping the weighted prob- abilities to the half. We define the Universal Model as Pc(xf) = PI(U) and now each model is included only once in the sum since there is only one possibility to arrive at a partition through successive splits. Example 2. The new method results in removing the dashed splits in figure 1. Computational Complexity For a certain subset D we need according to the above expression 21'DI-l - 1 additions and 21'DI-l multiplications. Summing up over all subsets for which a weighted probability is necessary will give the total complexity. Note that for a context space of cardinality n there are only (n~l) context-sets of size s which have a PI (.) attached. The total number of additions is therefore and the total number of multiplications In summary, this new approach increases the speed with respect to the AS method by a constant factor and reduces the storage need for keeping the weighted probabilities to the half. 33 4 Universal Modeling for Class-II Class-11is defined by first considering a lexicographical ordering on the con- text space U. Since we have defined U == {I, ... , n} the lexicographical ordering is the usual ordering of the natural numbers. The only allowed partitions of the context space (because of the ordering it is now a line) are those which divide it into intervals, each forming a context-set. We introduce the following notation for specifying context-sets (i -+ j) == {u EU: i ::; u ::; j} where i,j E U and j ? i. Context-Sets and Structures Note that for a context space of size n there are n(n2+l) possible context-sets and that there are different structures (;=:) having p parameters. This means that in total there are L:;=1 (;=:) = 2n-1 possible structures in Class-H. 4.1 The Lexicographical Splitting Algorithm Although Class-If is a small class compared to Class-I it still includes an exponential number of structures making the brute-force approach to calculat- ing the Bayesian Mixture infeasible. Therefore Willems et. al [2] proposed the Lexicographical Splitting (LS) algorithm. We describe the LS method briefly. For a context space of size n there is for each of the n(n2+l) possible context- sets (i -+ j) a record which keeps two probabilities : the Estimated Probability Pe{(i -+ j» and the Weighted Probability Pw((i -+ j». Pe((i -+ j)) is of course the same as in the methods for Class-I. The weighted probability Pw{(i -+ j» is also defined in the same manner but its mathematical expression has to be adjusted to Class-H. P. ((. -+ .» = Pe((i -+ j» + L:t~! Pw((i -+ k» . Pw((k + 1 -+ j» for j > i w ~ J J. - ~·+1 (4) ITj = i we define Pw((i -+ i» = Pe((i -+ i». The Universal Model is Pc(xf) = Pw(U) = Pw((l -+ n». Computational Complexity We look now at the complexity of computing the weighted probability for a generic context-set of size d. Suppose that all weighted and estimated probabilities involved have been updated already, in that case we need d - 1 additions and d multiplications as can be seen from (4). Note that for a context space of size n there are n - d + 1 context-sets of size d. n + 1) L (11 N!:.t~(n) ;;;;; = S + 1) . (s 1) _ (n - l)n(n 6 8=1 NLS ( ) _ ~ mul n - ~ ( n- s+ 1) . s _- n(n + l)(n 6 + 2) 8=1 The complexity is thus 0(n3). 34 Fig.2. All Context-Sets for Class-II with U = {I, 2, 3}. Splits are shown for new method (only IDled lines) and LS method (all lines). Model Multiplicity This section is based on the observation that the LS algorithm arrives at some models through different splits. More precisely suppose a model having p parameters. The number of ways /L(P) we can arrive at a model with p parameters is given by the Catalan Numbers (2P - 2) p-l /LCp) = ~ J.L(i) . J.L(p - i) = ~ ~ p p-I .=1 with /LCI) = 1. Example 3. In figure 2 the J.L(3) = 2 successions of splits leading to structure SI = {I} ~ = {2} S3 = {3} can be appreciated. 4.2 E2: A New Universal Modeling Method for Class-H As for Class-I we start by finding an counting algorithm for Class-H. Let bCn) be the number of models in Class-If for a context space of size n. We can write an expression for all structures in function of the size of their first interval. ben) = L~~1 bCi) with bCO) = 1. Obviously bCn) = 2n-1. Therefore we define instead of the weighted probabilities, Fast Weighting probabilities PI(')' Note that now we do not need to store a PI in each of the n(ntl) records corresponding to all context-sets (i ----j) for i = 1, ... , nand j ~ i. To calculate PI((I ---- n)) we only need n Pi's, namely those corresponding to context-sets (i ----n) for i = 1, ... ,no ' P I CCz----n )) = L~-iPe((i ---- k))· PI«k + 1----n)) n-i +1 where PI«n+I ----n)) = 1 by convention. The Universal Model is simply defined as Pc(x'[) = PI(I ---- n). Example 4. The new method results in removing the dashed splits in figure 2. 35 Computational Complexity The only difference with respect to the analysis for the LS method is that now for a context space of size n there is only one context-set of size d which has a weighted probability attached. N~~(n) = t 8=1 (s - 1) = en ~ l)n nen + 1) NE2 ( ) _ ~ _ mul n - ~s - 2 8=1 Which are of order O(n2). In summary, this new method reduces the complexity from O(n3) to O(n2) and the storage need for keeping the weighted probabilities from n(n2+1) to n. 5 Conclusions We have introduced new methods to perform the Bayesian Mixture for Class- I and Class-H. The difference to the earlier proposed methods of [2] can be best appreciated in the Model Multiplicity. In our methods each model can be reached through a unique succession of splits and therefore is included only once in the Universal Model. As we have shown, in the earlier methods this was not the case. The new methods exhibit a lower computational complexity and storage need. In the case of Class-I the reduction is by a constant factor. For Class-If we go from O(n3) to O(n2) in complexity and from O(n2) to Oen) in the storage need for the weighted probabilities. Here n represents the size of the context space. 6 Acknowledgment The authors thank Henk van Tilborg and Stan Baggen for pointing them to the Catalan numbers. References 1. F.M.J. Willems,Y.M. Shtarkov and Tj.J. TjaIkens, "The Context-TreeWeighting Method : Basic Properties," IEEE Trans. Inform. Theory, vol. 41, no. 3, pp. 653-664, 1995. 2. F.M.J. Willems,Y.M. Shtarkov and Tj.J. Tjalkens, "Context Weightingfor Gen- eral Finite-Context Sources," IEEE TI-ans. Inform. Theory, vol. 42, no. 5, pp. 1514-1520, 1996. 36 EPSILON-ENTROPY OF A SPECIAL CLASS OF ELLIPSOIDS IN A HAMMING SPACE * Viacheslav V. Prelov! and Edward C. van der Meulen! t Institute for Information Transmission Problems of the Russian Academy of Sciences 19 Bol'shoi Karetnyi, 101447 Moscow, Russia. prelov(hi tp. ru t Department of Mathematica, Katholieke Universiteit Leuven Celestijnenlaan 200B, 3001 Heverlee, Belgium. edward.vandermeulen~wis.kuleuven.ac.be Abstract - The asymptotic behavior of the e-entropu of ellipsoids in an n- dimensional Hamming space whose coefficients take only two different values is in- vestigated as n ~ 00. Explicit expressions for the main terms of the asymptotic representation for the e-entropu of such ellipsoids are obtained under different rela- tions between E and parameters defining these ellipsoids. 1 Introduction The ellipsoid Ea(r) in the n-dimensional Hamming space {O, I ]" is defined as the set of binary n vectors x = (XI,···, Xn), Xi E {O, I}, of length n which satisfy the inequality L aixi :s: r, i=l i.e., (1.1) where a = (al, ... , an), ai E [0,00), i = 1,···, n, and r are a given real-valued vector and a positive real number, respectively. Given a positive integer E, the s-entropy H, = Hó(Ea(r)) of the ellipsoid Ea(r) is defined by the equality (1.2) where the minimum is taken over all subsets Mó of the Hamming space {O,I}" such that for any xE Ea(r) there exists ayE Mó such that d(x,y) :s: E. Here, IMól is the number of elements of the set Mó, d(x,y) is the Hamming distance between the vectors x and y, and "This work was carried out with the partial support of the Russian Foundation for Basic Research under Grant 00-01-00266, INTAS Project 00-738, and Project GOA/98/06 of Research Fund K.V.Leuven. 37 log'(-) denotes log2(') throughout the paper. Note that the z-entropy H,(Ea(r» can also be defined as the logarithm of the minimum number of balls of radius e which cover the ellipsoid Ea(r). Given the ellipsoid Ea(r), define 1in as (1.3) where h(P) = -plogp - (1 - p)log(l - p), 0 ~ P ~ 1/2, is the entropy function of the binary probability distribution {p, 1 - p}, and the maximum in (1.3) is taken over all vectors n P = (PI, ... ,Pn) such that 0 ~ Pb'" .v« ~ 1/2, and L aiPi ~ r. !t is easy to see that there i=1 exists the unique vector p" = (Pi, ... ,p~) which maximizes the right-hand side of (1.3). The vector p* has components pi = (1 + 2 ÀCli) -1, i = 1, ... , n, (1.4) where the parameter>. is defined as follows: n Lai > 2r (1.5) i=I and n .À = 0 if L ai ~ 2r. (1.6) i=1 It is known [IJ that the entropy H = H(Ea(r» of the ellipsoid Ea(r) (i.e., the logarithm of its cardinality) has the following asymptotic representation: H(Ea(r» ~ log IEa(r)1 = 1in(l + 0(1», n -+ 00, (1.7) if 1in lim --=00. (1.8) n-+oologn For a given ellipsoid Ea(r) and an integer e define the quantity Kn{t:) by the equality (1.9) where the maximum is taken over all vectors p = (PI, ... ,Pn) such that n L aiPi ~ r, 0 ~ Pi <: 1/2, i = 1, ' .. , n, (1.10) i=1 and the minimum is taken over all vectors E = (EI,.'" t:n) such that 7! L e; ~ e, 0 ~ t:i ~ Pi, i = 1, ... , n. (1.11) i=I In [2J, it was proved that the s-entropy of the ellipsoid Ea (r) satisfies the following asymp- totic inequalities: Kn(t:)(l +0(1)) < H",(EA(r)) < Kn(E;) + O(Jnlogn), n -+ 00, (l.l2) 38 where the left-hand side inequality in (1.12) holds if condition (1.8) and Kn(é) x Hn, n -+ 001 (1.13) are satisfied. In particular, it follows from (1.12) that He(Ea(r» = Kn(é)(1 + 0(1», n -+ 00, (1.14) if condition (1.13) is fulfilled and ~ -+ 00 as n -+ 00. nlogn In general no explicit expression exists for Kn(é) and several questions concerning the behavior of Kn(é) remain open. In [3], we have obtained an explicit expression for Kn(é) in the case where the coefficients ai of the ellipsoid He(Ea(r» take only two possible values. Moreover, for a certain subclass of such ellipsoids we improve inequalities (1.12) and the asymptotic formula (1.14) for the s-entropy He(Ea(r». Another problem connected with the quantity Kn(é) is the following. It is of interest to find some conditions under which the vector p* = (Pi, ... ,p~) defined in (1.4) - (1.6) (which optimizes the right-hand side of (1.3» is also optimal for Kn(£), i.e., under which it achieves the maxmin in the right-hand side of (1.9). It seems that the following hypothesis is natural: the vector p" is optimal for Kn(£) if lOin < min{pi, ... ,p~}. However, we show that, in general, this hypothesis is not correct (see Remark 2 below). In the next section, the main results of the paper are formulated. The proofs of these results can be found in [3]. 2 Statement of the results We will consider ellipsoids (1.1) whose coefficients ai, i = 1,···, n, take only two different values. In this case we can assume, without loss of generality, that a if i = 1,···, bnJ { 1 if (2.1) £1;= i = bnJ + 1,···,n, where a > 1 is a real number and 0 < "( < 1. Below we will assume throughout that "(n is an integer. This assumption does not influence our asymptotic results as n -+ 00. More precisely, for given parameters a and "(, we define the ellipsoid Ea,"((p) as follows: Ea,"((p) ~f {(Xl •... ,X n) I aXl + ... + aX"(n + X"(n+l + ... + Xn S pn} (2.2) where p > 0 is a real number. In general, the parameters a.r», and p may depend on n. We set def a=én I (2.3) and assume throughout that =r=r 1-"( (2.4) We will discuss this condition later. Here we remark only that the condition p < (1 - "()/2 n implies that L ai = n"(a + (1 - "()n > 2pn, so that we are in case (1.5). We define the i=l parameters p* and q" by the equalities p' = (1 + 2),a)-1 { q* = (1 + 2),)-1, (2.5) --~--------------------~ lThe relation b n means that there exist some constants an X n, -t 00, Cl and C2 such that the inequalities o < Cl $ :: $ C2 < 00 are valid for all sufficiently large n. 39 where>. is the unique solution of the equation (2.6) Set A' = A'(a) ~ -yh(p*) + (1 - -y)h(q*) - h(a), (2.7) G* = G*(a) ~ (1--y) [h (1 ~J C -h ~-y)]' (2.8) and define the function g(p, a) by the equality g(p,a) ~ (1- -y) [h el-_a~p) - h (~ ~;;)] (2.9) where pE [O,a) if a< P (2.10) - 1 + -y(a - 1) and P - a ] if a> P . (2.11) pE [0, -y(a _ 1) 1+-y(a-l) Note that G* = g(O, a). Finally, let G(a) ~ max g(p, a) if a < P (2.12) PE[O,C1] - 1 + -y(a - 1) and D(a) ~ max g(p, a) if a> P . (2.13) PE[O,(p-C1)/'r(a-l)] 1 + -y(a - 1) For ellipsoids Ea,,,/(p) considered now, the general expression for the quantity Kn(é) can be reduced to the form where the maxmin in (2.14) is taken over all real numbers p, q, al, and a2 such that OS; p S; q S; 1/2 artp + (1 - -y)q S; P OS; al S; P (2.15) { OS; oz S; q -yal + (1 - -y)a2 S; a. Note also that for ellipsoids Ea ...,(P) the quantity 1-1.,., dofined in (1.3) fur elllpsoiös b'a(rJ, ta.këS the form 1-ln = -ynh(p*) + (1 - -y)nh(q*) (2.16) where p* and q* are defined in (2.5) and (2.6). Theorem 1. Let a > 1, 0 < -y < 1, P > 0, and a > 0 be arbitrary constants satisfying condition (2.4). Then for the E-entropy of the ellipsoid Ea,,,/(p) the following inequalities hold: (2.17) and, therefore, in particular (2.18)' 40 where Kn(é) defined in (2.14) can be represented in the form nA·(a) if 0::; a::; a, K ( )= nmax{A*(a),C(a)} if a < a ::;p., (2.19) n e { ne(a) if p. < a ::;pl(l + -y(a - 1)), nD(a) if p/(l + -y(a - 1») < a < P, where a is a real number such that (1 - -y)p. ::; a < p •. (2.20) In the next theorem, we consider the case where the parameters P = Pn and a = an depend on n in such a way that Pn ~ 0 and an ~ 0 as n ~ 00. In this case, the quantities introduced earlier and, in particular, the parameters p. = p;', q = q;', and À· = À;', defined in (2.5) and (2.6), also depend on n. For this case, we improve the asymptotic relations (1.12) and (1.14). Furthermore, the consideration of that case allows us to show that the hypothesis about the optimality of the vector (p., q.) for Kç,(s) for all a < p"; in general, is not true. - def 1 Define Hê(Ea~(Pn)) " = -Hê(Ea~(Pn)). n ti Theorem 2. Let a > 1 and 0 < -y < 1 be some fixed constants, and P = Pn ~ 0 and a = an ~ 0 as n ~ 00. Assume also that 0::; an < Pn for all sufficiently large n. (1) If lim an n .....oo p~ = u, where Jl. is an arbitrary constant such that 0 ::; Jl. < -ln( -y )' then, 1--y as n ~ 00, we have logn _- = o(PnlogPn}, n (2.21) a _ logn Pn ~-;-' where (1 - -y)h (....!!!!:_) 1--y , (2.22) L(n)+ Jl.a al Pn (2.23) 1 (1- -y)aPn og 1- -y' arid (2.24) where (n) Pn ua a Pn p~ ( Jl. ) (2.25) L3 = (1- -y)h(l_ -y) + (l_-y)aPnlog 1- -y + (1- -y)aln2 Jl.ln 1- -y - Jl. and (2.26) (2) If lim an > -y an d·, In particu ;t li . 1ar, IJ m -an = 00, t hen p;'_ n-+ex> In (1 - -y) n .....oo p~ n~ 00, (2.27) 41 under the assumptum· (1 logn = 0 Pn log - - an log - that _- 1) . n pn an From the reasoning used in the proof of this theorem, it is not difficult to derive the following assertion on the quantity Kn(E:). Corollary. Under the conditions of Theorem 2, for Kn(E:) defined by (2.14) tht; following equality holds for all sufficiently large n: (2.28) Moreover, for any fixed 15, 0 < 15 < 1, there exists an integer no = no(t5) such that for all n 2: no(t5) we have an < 1 - 15 a~ - (2.29) an, > - 1- 15 , an where a'n- - (2.30) Remark 1. Let us first discuss condition (2.4) used in Theorem 1. First of all, it is obvious that Kn(E:) of expression (2.14) equals zero if 0' 2: 1/2. Therefore, it is natural to assume that a < 1/2. Further, if P > (1 + ')'(a - 1))/2, then Kn(E:) = n(l - h(O')), which expression corresponds to the s-entropy of the entire Hamming space {O.L]" (see, e.g., [4]). Indeed, puttingp = q = 1/2 (which is possible since in our case a')'p+(l-')')q = (1 +')'(a-1))/2 < p), we immediately obtain from (2.14) that Kn(E:) 2: n(l - h(a)). But, on the other hand, we always have Kn(E:) S n(l- h(O')), and hence Kn(E:) = n(l- h(a)). Therefore, it suffices to assume that p S (1 + ')'(a - 1))/2. But we have introduced the stronger condition p < (1 - ')')/2 to simplify matters, and moreover, the latter condition is automatically satisfied for the case when p ~ 0 and "( =constant. In addition, if p < (1-')')/2, then the condition a < p is necessary and sufficient for the strict inequality Kn (E:) > O. Indeed, it follows from (2.14) that Kn(E:) > 0 if and only if max[')'p + (1 - "()q] > a, p,q where the maximum is taken over all pand q satisfying conditions (2.15). But it is clear that this maximum is equal to p if p < (1 - ')')/2, and, therefore, Kn(E:) > 0 if and only if 0' < p. Remark 2. In the proof of Theorem 1, it is shown that the quantity (j can be defined as the maximum value of a that satisfies the inequality . 1-')' a S ')'P + 1 + R(P) simultaneously for all pE [0, a], (2.31) where R(P)~ (l-')'-p+a')'p)a (2.32) p - a"{p It is not difficult to see (and this is shown in the proof of Theorem 1) that (j always exists and satisfies (2.20). If a < p"; then, for 0' E [a,p'], we can only claim that Kn(E:) = 4~max{A'(a),C(0')} (cf. (2.19)). We conjecture that there exists a threshold parameter a", a S a" sp' (and, moreover, in general a" < pO), which depends on the parameters a", and p, such that (j S a < a", K ( ) = {nA"(a) if (2.33) n e nC(a) if a" < a S pO. In other words, if this conjecture is true, then the interval [0, a], for which the vector (P", q") is optimal for Kn(t:), can be extended to the interval [O,a"). But, at the same time, the vector (P", q") is not optimal on the whole interval [O,p"). It follows from the Corollary above that this conjecture (in a little more precise form) is valid at least for the ease where P is sufficiently small and n sufficiently large (see (2.29». Remark 3. If a > p" we cannot in general point out explicit expressions for the quantities C(a) and D(a) (see (2.19», and can only claim that both quantities are the maximum of the function g(p, a) on the corresponding intervals. But it is not difficult to show that C(a) > g(P*, a) and D(a) > g(P*, a), since one can verify that g~(P", a) < O. This means that the vector (P*, q") never optimizes Kn(t:) if a > p". A similar assertion is valid for the ellipsoid Ea(r), namely the vector (Pi,··· ,p~) is not optimal for Kn(t:) if a> min{pi, ... ,p~}. Remark 4. Theorem 2 shows that, for the case where Pn and an tend to zero in such a way that lim (an/P~) n-+oo = J-L, where 0 S J-L < ln(' 1-, )' the asymptotics of the quantity HE(Ea,'1(Pn» co~n) up to terms of order 0 (i.e., with an accuracy which we cannot improve even for a sphere and a ball) doesn't depend on the value of an if Pn -t 0 sufficiently fast (in such a way that p~ 10gPn = Co~n)). 0 The dependence ofthe asymptotics of HE(Ea,,,/(Pn» on the value of an (i.e., on J-L) begins to appear at the moment when p~ goes to zero not faster than logn. Moreover, if p~:::: logn, then we can obtain the asymptotics of HE(Ea~(Pn» up n n " lOgn) logn . to terms of order 0 ( -;:;- (see (2.21)). If p~ tends to zero more slowly than -;:;- [i.e., ~n - -;:;- = o(p~», then the difference between the upper and lower bounds for HE(Ea,'1(Pn» has order p~ (see (2.24) - (2.26». If an goes to zero sufficiently slow (in such a way that lim (an/P~) n-+oo 2: -1 (' nl-, », then the asymptotic representation (2.27) holds. In addition, one can obtain an asyrnptotic expansion of C" (an) up to terms of order 0 co~n) in a form similar to (2.24) if we know how fast Pn and an tend to zero. References [1] Pinsker, M.S., "Entropy of an ellipsoid in a Hamming space", Probl. Peredacbi Inf., 36, No. 4, 47-52 (2000). [2] Dumer, l.I., Pinsker, M.S., and Prelov, V.V., "s-entropy of an ellipsoid in a Hamming space", Probl. Peredacbi Inf., 38, No. 1, 3-18 (2002). [3] Prelov, V.V. and van der Meulen, E.C., "On the s-entropy of a certain class of ellipsoids in a Hamming space", Probl. Petedeebi Inf., to appear (2002). 43 Codes for Writing on Dirty Paper Dirk van den Borne", Ton Kalker+", and Frans Willems+ê 1 Eindhoven University of Technology, Eindhoven, The Netherlands 2 Philips Research Laboratories, Eindhoven, The Netherlands Abstract. We have investigated coding methods that aim at achieving the Costa capacity. First we have considered the uncoded case to deter- mine what can be gained from coding. After that we have designed codes with a trellis structure that are combined with a two-level quantizer at the transmitter side. Simulations are carried out to determine the coding gains of these methods. We have focussed on vector quantization instead of on scalar quantization to achieve a good performance. 1 System description w xI y[ ÛJ encoder decoder Fig. 1. Costa's Gaussian side-information model. Costa [3] determined the capacity of the additive white Gaussian noise chan- nel with side information at the transmitter (see figure 1). In this model the channel input vector xI' = (Xl. X2, ... , XT) consisting of T real-valued com- ponents is modified by two additive memoryless Gaussian noise sources. The first noise source produces the vector sr = (SI, S2, ... , ST) with components E N(O, Q). This noise vector is observed by the encoder before the transmission process starts. It is what we call side information for the encoder. The encoder produces the code vector xI' = e(w, sn. Here w E {I, 2,···, M} is the index of the message that must be conveyed. All messages are equally probable, i.e. Pr{W = w} = I/M for all w E {I, 2,··', M}. All code vectors xI' should satisfy a power constraint, i.e. Lt=I,T x~ ::; TP, where P denotes the signal power. The channel noise vector z'[ = (ZI, Z2,"', ZT) has components E N(O, N). The channel output vector y'[ = (Yl, Y2, ... ,YT) = xI' + sr + z'[ is processed by the decoder and leads to the message estimate ib = d(y[). The system has two parameters that determine its performance. For given transmitter power P and noise variances Q and N the rate ~ 1 R = T log2(M) (1) 45 should be as large as possible, while on the other hand the expected error- probability ~ Pe = Pr{W =1= W} - (2) should be as small as possible. The largest rate that is achievablewith arbitrarily small expected error-probability is called the capacity C. Costa showed that this capacity is determined only by the transmitter power P and the variance N of the channel noise, i.e, the noise that is unknown to the transmitter. It appearsê that C = ~ log2 (1 + ~) bits/transmission. (3) Since the transmitter knows a part of the noise, this signaling method is called "writing on dirty paper". Chen and Wornell [2] have been the fust to realize that Costa's result applies to digital watermarking and information embedding. In this paper we explore options for turn Costa's results into a practical water- marking system. 2 Baseline system, uncoded transmission t-Ll-l !:i!2 ! 1 qoO 1 s-+ Fig. 2. Two uniform scalar quantizers. Chen and Wornell [1]proposed a method that is based on quantization index modulation (QIM). They use two uniform quantizers, a quantizer qo(-) and a quantizer ql (. ). The distance between the reconstruction points for each of these quantizers is Ll, their offset is Ll/2 (see figure 2). We can now transmit a uniform binary digit b E {O,I} by applying either the O-quantizer or the l-quantizer to the noise sample s. The input x is used to make x + s equal to qb(S). In other words x = qb(S) - s for b = 0, 1. (4) For variance Q » Ll2 the power needed to modify S is the mean-square quan- tization error, i.e. P -1~/2 x2dm = Ll2. (5) -~/2 12 The receiver observes the noisy version y = x + S + z = qb (s) + z of the quantized s. It decides for iJ E {O,I} if y is closer to a reconstruction point Qf, ( s) for some 3 If the side-information is ignored the maximum rate is ~ log2(1 + P/(N + Q». 46 s than to any other reconstruction point Ql-b(S') for some s', If the magnitude of the noise sample z is larger than iJ.j4 an error may occur. Therefore P£ ~ 2Q (4~ ) = 2Q ( (g) , (6) where Q(t) ~ Jt vk exp( -lP j2)d{3. Note that this uncoded method yields OO R = 1 bitjtransmission. (7) If we are interested in achieving error probability P£ = 10-5 the argument of the Q-function should be 4.417. Therefore a signal-to-noise ratio PjN = 26.02 is required if we apply the baseline scheme. 3 Gap to capacity From the capacity expression (3) it can be concluded that a signal-to-noise ratio (PjN)min = 22R - 1. (8) suffices to obtain reliable communication. Therefore we define the gap to capacity as ~ PjN PjN (9) 9 = (PjN)min 22R -1· This implies that the baseline system described in the previous section operates at 9 = 26.02j3.0 = 9.38 dB from capacity. It is our objective to study techniques and codes that close this gap. 4 Spreading techniques In the previous section we have discussed a QIM-scheme that achieves rate R = 1 bitjtransmission. By spreading, which is similar to spread-transform dither mod- ulation (see e.g. [1]), we can construct from such a scheme a scheme with rate R' = Ijk that requires transmitter power P' = Pjk for k = 1,2,··· without changing the (bit) error probability. To do so we consider a block of k transmis- sions and define _~ 1 ~ _~ 1 ~ _~ 1 ~ s = Vk Z:: Sk, X = Vk Z:: Xk, and z = Vk ~ Zk· (10) k i=l.k k i=l.k k i=1.k Now the transmitter chooses x such that (11) This requires transmitter power P' = iJ.2j(12k) = Pjk by assuming that Xi = xjVk for i = 1, k. Note that the variance of the noise variable Z is equal to N. The receiver makes the decision b based on y = x + S + z. Note that the gap to capacity increases by spreading since Pjk is proportional to Ijk while 22R/k - 1 is convex-U in Ijk. The gap approaches 26.02j ln(4) = 12.73 dB for k ........ 00. 47 ·e e · "':'.~~~:" 10~21':-5 ---_"7.1o:----7------7--~:-----:'::lO:-----!,5 Fig.3. Capacity in bits/transmission as a function of PIN in dB (horizontally). The *-curve denotes the R' versus P' / N behavior for k = 1, 2, ... for the baseline system. 5 Compensation Compensation was proposed by Chen and Wornell [2) to adapt QIM to Costa coding. Here compensation is described differently in order to keep the error- behavior of the system with and without compensation roughly the same. Consider again the baseline system, with transmitter power P and channel noise variance N as a reference. Assume that P / N > 1. An alternative system is obtained by moving a noise sample s towards its reconstruction point %(s), however not entirely. What we do is fix an 0 < a :::;1 and take x + s = qb(S) + (1 - a)(s - %(s)). (12) Then the now required transmitter power Pc is (13) Since the signal in y = x + s + ne is %(s), the variance of total noise in y is Suppose that, in order to keep the performance of the alternative system identical to that of the baseline system, we make the total noise variance? equal to N then Ne = N - (1 - a)2 P. (15) The effective signal-to-noise ratio of the alternative system is a2p Pc/Ne = N _ (1 _ a)2p' (16) 4 We assume here that the compensation term is statistically independent ofthe signal. Observe however that the total noise is not Gaussian so it is not guaranteed that the performance remains constant. 48 It can be shown that this signal-to-noise ratio is maximized by taking P-N a* = -p--, (17) and moreover PclNc = PIN - 1. (18) It is important to note that (19) which is consistent with the observations of Costa [3]. If this compensation method is used for the baseline method and if we require an error probability of 10-5 the signal-to-noise ratio is decreased from 26.02 downto 25.02 which results in a gain of 0.17 dB. 6 Coding methods 6.1 Background Eggers [4] investigated coding techniques based on scalar quantizing. He needed, for a R = 1/3 turbo-code, a signal-to-noise ratio of less than 1.5 dB for bit-error rate 10-5. The minimal ratio is 22/3 -1 = -2.31 dB, hence his method is roughly 3.8 dB from capacity. It was pointed out by Erez et al. [5] that by using vector instead of scalar quantization a gain of 1.53 dB could be achieved. A similar gain was obtained by the shaping methods proposed by Forney [6]. We apply Forney's techniques here to "collect" shaping gain. Instead of turbo-codes we focus on trellis codes however. A similar approach was suggested recently in [7]. The codes that we study here are based on the well-known rate-1/2 convolu- tional code with generator polynomials (x6 + x4 + x3 + X + 1, x6 + x5 + x4 + x3 + 1). The number of states of this convolutional code is 64, its free (Hamming) distance dH,free = 10. This code, in feed-forward mode, is combined with the two-level quantizer that is described as part of the baseline system in section 2. First we will investigate a method based on scalar quantization. After that we will mod- ify the setup and show that applying vector quantization (slightly) outperforms scalar quantization. I 6.2 Coding with scalar quantization In the scalar case the message stream enters the convolutional encoder, and produces a code stream (see figure 4). For each binary message digit d two binary code digits b' and b" are generated. With these two code digits the two- level quantizer modifies the noise samples s' and s". We can use this method without (a = 1) and with compensation. The receiver is equipped with a Viterbi detector which is processing using the squared Euclidean distance metric. It will be clear that the required transmitter power of this method is equal to that of the baseline system, both in the uncompensated as as well as in the 49 d CCE Fig. 4. Encoder that performs for scalar quantization. compensated case. What is different however is the distance between the signal sequences xf + sf. The squared Euclidean distance between two such signal sequences is at least (20) This is an increase by a factor 10 over the baseline case, achieved at the cost a smaller rate however. In figure 6 we see that we achieve a bit-error probability of 10-5 at PIN ~ 7.0 dB in the uncompensated case and at PIN ~ 6.0 dB with compensation. Since the (PIN)min = 0 dB for R = 1/2, the gap is 6.0 resp. 7.0 dB. Spreading the baseline system is roughly 11.14 dB from the Costa capacity for R = 1/2, so we have gained 5.1 resp. 4.1 dB relative to spreading. 6.3 Coding with vector quantization d-seq. d,m-seq. ~ Vi""bi s-seq. Fig. 5. Encoder for the vector-quantization case. In the vector case not all the digits that enter the convolutional encoder are message digits. Part of the digits (see figure 5), the m (match-) digits, are used to obtain a signal sequence xf sf + close to the sequence sf (the side information sequence). In the figure, of every three digits that will enter the convolutional encoder, the last digit is a match digit. A Viterbi algorithm chooses, given the message (d-) digits, these match digits in such a way that the squared Euclidean distance between the signal sequence and the side information sequence is mini- mized. Since part of the convolutional code input digits are applied for matching, we have to face a rate-loss. We considered a match digit for everyone, two, and three message digits. The corresponding rates are R = 1/4,1/3, and 3/8. We 50 have determined the bit-error probability for these setups, both for the uncom- pensated and compensated case (see the three rightmost plots in figure 6). It can be seen from this figure that the signal-to-noise ratios that are needed to achieve bit-error probability 10-5 are approximately 3.0 dB, 4.0 dB and 4.2 dB. Fig.6. Bit-error probability as a function of PIN (horizontally) for a R = 1/2 scalar code (left) and three vector codes (from left to right R = 1/4,1/3,3/8). For each point 106 message digits were processed. All our simulations are carried out with a fixed .<:1. We consider a range of values of the channel noise variance N. First, in the uncompensated case the required transmitter power P is measured together with the bit-error rate. After that, to apply compensation, we take a* = (P-N)IP, and Ne = N -(I-a*)2 P, Then we measure Pc and the bit-error rate (which does not change very much). 6.4 Comparison To compare the results of the scalar and vector case we consider the normalized signal-to-noise ratio defined as PIN (P/N)norm = 22R -1· (21) For the scalar R = 1/2 setup and the vector technique with R = 3/8 we have plotted the bit-error rate in figure 7 as a function of the normalized signal-to- noise ratio. It can be concluded from this figure that vector quantization gives an improvement of roughly 0.2 dB. 7 Conclusion Although we have found a small improvement we are still 6 dB away from ca- pacity. This is 2.2 dB worse than the turbo codes used by Eggers [4]. 51 Fig. 7. Bit-error rate versus normalized signal-to-noise ratio in dB. The *-curve denotes the R = 1/2 scalar technique, the other curve the R = 3/8 vector method. Note that our vector code has to compensate the rate loss between R = 1/2 of the scalar code and R = 3/8 which is (21 - 1)/(23/4 - 1) = 1.66 dB. That we stili gain 0.2 dB shows the potential of vector quantization. In this paper we have always compared our results to capacity. If instead we would compare our simulation results to the spreading results for the baseline system our conclusion would be more positive. Then the rate loss counts for 4/3 = 1.25 dB only, and the gain resulting from vector quantization would be roughly 0.6 dB. References 1. B. Chen and G.W. Womell, "Preprocessed and Postprocessed Quantization In- dex Modulation Methods for Digital Watermarking," Proc. of SPIE: Security and Watermarking of Multimedia Contents 11, vol. 3971, pp. 48 - 59, San Jose, CA, January 2000. 2. B. Chen and G.W. Wornell, "Qnantizatlon Index Modulation: A Class of Prov- ably Good Methods for Digital Watermarking and Information Embedding," IEEE Trans. Inform. Theory, vol. IT-47, pp. 1426-1443, May 2001. 3. M.H.M. Costa, "Writing on Dirty Paper, IEEE Trans. Inform. Theory, vol. IT-29, pp. 439-441, May 1983. 4. J. Eggers and B. Girod, Informed Watermarking, preprint, 2002. 5. U. Erez, S. Shamai, and R. Zamir, "Capacity and Lattice Strategies for Cancelling Known Interference," ISITA, Nov. 2000. 6. G.D. Fomey Jr., "Trellis Shaping," IE!}!!; Trans. Injorm. Theory, vol. IT-38, pp. 281- 30u, Jan. H192. 7. W. Yu and J.M. Cioffi, "Trellis Precoding for the Broadcast Channel," Proc. IEEE GLOBECOM 2001, San Antonio, TX, Nov. 25-29, 2001. 52 A New Group Identification Scheme Abdelaziz Gaddach Universite Libre de Bruxelles agaddach~ulb.ac.be Abstract In this paper, we introduce a new group identification scheme allow- ing a group member to prove anonymously its membership in a large group of entities. This scheme presents the important advantages of needing only one initialization phase in order to create several groups and it is resistant against a masking attack. 1 Introduction An individual identification scheme is a method for an entity called prover to con- vince another entity called verifier of its identity without revealing its secret. An anonymous group identification scheme allows an entity to prove its membership in a group without revealing neither its secret nor its individual identity. The verifier is only convinced that a member belongs to a given group. However, a trusted third party (TTP) is able to retrieve, in case of problems, the individual identity of a group member, thanks to the information exchanged between the prover and the verifier during the group identification protocol. Group identification scheme is useful in several domains such as electronic com- merce and electronic votes. In order to make clear the practical importance of the group identification, we consider the following example. Suppose a building where each inhabitant owns a smart card to open the building's front door. It could be de- sirable that the identification protocol carried out between the smart card (prover ) and the door-lock (verifier) does not identify inhabitant who wishes to prove that he is allowed to enter the building, without revealing his individual identity. But, if a crime is committed inside the building, designated authority can determine who was present in the building at that time. A formal solution to the problem of anonymous group identification is given in [1] as an application of some results on enlarging the class of languages hav- ing perfect zero-knowledge proofs. The approach used there in order to construct identification schemes generalizes the approach in [5,9] to the case of group identi- fication. 53 Recently, De Santis [2)presented an efficientgroup identification scheme. In this scheme, the length of the public key depends on the size of the group. Consequently, the scheme cannot serve to create large groups. A new primitive called verifiably common secret encoding in anonymously au- thentificate membership in dynamic groups is presented in [4). Besides two keys used to cipher and two keys used to sign by the verifier, each group member must have two secret keys and two public keys. This scheme uses also several functions: symmetric cipher, asymmetrie cipher and signature. The traceability which is an important requirement of group identification is not supported by this system. Boneh and Franklin proposed [3) a new scheme of group identification that support the identity escrow and the key revocation. The length of public key is smaller than the public key in De Santis's scheme. A unique group public key corresponds to several secret keys. An initialization is needed for the of the system leads to the construction of each group. A coalition of two or more elements of a group can create a new key that cannot be traced. Boneh and Franklin propose a strategy which allows to increase the size of coalition needed to realize an attack. But the system is then less efficientthat the basic scheme because of computation overhead. In this paper, we present a new efficient group identification scheme.We start with the description of the discrete logarithm based problem we use in our seheme in order to have a structure of groups similar of the one Boneh and Franklin. However, our structure needs only a single initialization to create several groups. We will show that our seheme is suitable to create very large groups and is resistant against masking attack. The next section presents the model of group identification scheme. In the section 3, we propose the new problem, based in the discrete logarithm, used in the section 4, to construct the protocol which is the purpose of this paper. We study the security of this protocol and we conclude with the fifth section. 2 The model of group ident.iflcat ion scheme We now give a model of our group identification scheme as well as the related security requirements. classically, a group identification scheme consists of the two followingphases: • An initialization phase executed once, at the start-up of the system. A TTP and the users run an initialization's protocol such that at the end of it, each user will obtain his secret key and the public key of his V'()l1P • An identification phase runs every time a group member wish to identify himself to a verifying authority. Classically,a group member tries to convince the verifying authority of a statement which certifies his knowledge of the secret key received during the initialization phase. The group identification scheme must satisfy the followingproperties: 54 Correctness. The group identity produced by an honest group member must be accepted by the verifying authority with very high probability. Soundness. A person which is not a member of the group, cannot make the verifying authority accept his group identity with acceptable probability, unless he knows the corresponding secret key. Anonymity. If an individual prove his group identity, it reveals whether it is a member of a group or not, that is, it is not feasible to find out the group member who proved his group identity for an entity other that TTP. Unlinkability. It is not feasible to decide whether two different valid group iden- tification protocols were computed by the same group member. Traceability. From the information sent by a group member and those sent by ver- ifying authority during the protocol of group identification, the TTP can discover the individual identity of this group member. 3 The basic problem In this section, we propose a new problem based on the discrete logarithm and we describe its cryptographic use. 3.1 The CDL Problem (Composite Discret Logarithm) Instance: Let q be a large strong prime, A, B two elements of Z; and C a generator of Z;, Question: Are there x, y such that : A x BY =C mod q ? Finding a solution of the CDL problem consists of computing the values of x and y. We have: AX BY = C mod q and x 10gcCA) + Y logdB) = 1 mod q-l In order to compute a solution for the former equation, we need to compute the discrete logarithm of A and B in the basis C. Since this is an hard computation, we may say that the CDL problem is at least as difficult the discrete logarithm problem. 3.2 Our cryptographic use of the CDL problem. Let a, band c belong to Z; such that gcd(a, q-l) = gcd(b, q-l) = gcd(c, q-l) = 1 and let a be a generator of Z;. We compute A = aa mod q , B = ab mod q and C =aC mod q. Therefore, the equation: AX BY = C mod q is equivalent to resolve: ax + by = c mod q-l. For each c in Z; the last equation has q-I solutions. 55 In the next section, the set of those solutions will be considered as the secret keys of a group of users. The public key which corresponds of this group will be C. For each C in Z;,we can build a group of q-1 members. Therefore, the previous method allows us to create q-1 groups of q-1 members. 4 Our protocol In this section, we propose a new group identification scheme. The security of this scheme is based on the difficulty to solve the CDL problem. Initialization The TTP picks • a large strong prime q, • a and b in Z;, such that: gcd(a,q - 1) = gcd(b, q - 1) = 1 • a generator a of Z; and computes A = aa mod q, B = ab mod q. For each group G, (1 :S i :S 9 and 9 < q -I), the TTP picks a number Ci in Z; such that gcd( Ci, q - 1) = 1 and computes the public key C, of this group: C; = a C ; mod q. For each user Uj (1 :S j :S Ui and Ui < q - 1) who wants to be member of the group Gi, the TTP picks a randomnumber Xj in Z; and computes Yj = (Ci-axj)b-1 mod q-1 and sends secretly (Xj,Yj) to the user Uj. The pair (Xj,Yj) will be the secret key for Uj• The TTP makes public A, B, Ci, a, q and the public key C, and keeps a, b, Ci secret and all (Xj,Yj). Identification A user tt, picks a random pair (x', y') in Z; x Z;, computes C' = A BY' mod X ' q and sends C' to the verifying authority. The verifying authority picks a random number e ill {1, ..., t} Where t is a secrity parameter and sends e to the user Uj. The user Uj computes: Yl = x' + eXj mod q-1 and Y2 = y' + eYj mod q-1 and sends Yl, Y2 to the verifying authority. The verifying authority accepts the group identity of Uj if AYl BY2 = CiC' mod q Correctness C' being fixed, the prover is able to answer t+ 1 questions of the verifying authority, since: modq 'mod q =C'Ci modq 56 Therefore, an honest group member is accepted by the verifying authority with a probability equal to 1. Soundness Let P* be a person who is not member of the group G«. If C' is fixed and for two distinct questions eo and el of the verifying authority, sup- pose that P* know the answer (YlO, Y20) for the question eo and the answer (Yll, Y2d for the question el. We have: C' = AYIOBY20c;eO = AYl1BY2'Ci-e, mod q and AYlO BY20 A-Yl1 B-Y21 = C:o-e, mod q and A(YlO-Yll)(eo-e,)-l B(Y20-Y2,)(eo-e,)-1 = c, mod q. That is, P* knows the secret «ylO - Yll)(eo - el)-l, (Y20 - Y21)(eO - el)-l) (if (eo - ed-l exists) which is a solution of the CDL problem. Zero knowledge Our protocol is honest verifier zero-knowledge. To simulate, simply choose at ran- dom fh and fh in Z; and e in {I, ... , t} and C' = iYl BY2C-;' mod q. The reason such a protocol could be zero-knowledge against the honest verifier but not against dishonest verifiers is that nothing prevent them from choosing the challenge ma- liciously rather than uniformly. Because e is chosen randomly, it is clear that Wh, 112),e, C') has exactly the same distribution of probability than real conver- sations between the prover and honest verifier. Given any value e we produce a conversatio~ where e occurs as challenge by choosing Uh, fh) at random and com- puting the C'. In other word, the simulator does not have to insist on choosing e itself, it can take an ê-value as input. By using the techniques recently proposed by Goldreich et al. [11], we can transform our protocol into a system which is statistically zero-knowledge with re- spect to any verifier. The idea consists to replace the verifier's random choices with a random selection protocol which guarantees that the verifier's random are statistically close to uniform distribution regardless how the verifier behaves. Coalition attack We will show, under some conditions, that the previous protocol is resistant to a masking attack. That is, if a coalition attack is occured, the dishonest members can be traced. To do so, suppose that a number k of group members (1 ~ k ~ d) where d is the number of members of Gi, can join their secret keys and compute a new secret keys. We recall that resolving the equation AX BY = C mod q is equivalent to resolve the equation ax + by = c mod q-l where A = o:a mod q, B = o:b mod q, C = o:C mod q. If k = 2, the two users Uo and UI can join their secret keys (xo, Yo) and (Xl, Yd to compute a new secret keyas follow. We have axo+byo = c mod q-l and aXI +byl = c mod q-1. The users Uo and UI can easily compute (xo + XI, Yo + Yd which is the valid secret key if c = 2c mod q - 1. In a general way, kusers (2 ~ k ~ d) can use 57 their secret keys to construct the following equation : a E:=1 Xi + b E7=1 u. = kc mod q - 1. To prevent k users to construct a new secret key (coalition attack of k members) in this case, the TTP must choose c such that c i= kc mod q - 1. For that, the TTP must choose d such that d < q - 2, because if k = q - 2 then Qkc = Q(q-2)c = Q«q-l)+l)c = QC mod q. However, the users can use other strategies to compute secret keys. All the users who want to participate in the construction of this secret key should supply their secret keys. Let E and F two sets such that: E = {CB, ')') : ({3, ')') be a valid secret key for a member of the coalition} F = {(-ó, -À) : (6, À) be a valid secret key for a member of the coalition}. The number Z = El7EF 17 + ECPEE cp is a valid secret key if iEi > 1, IFI > 0 and iEi = lFi + 1. From the fact that Z = (X, Y) is a valid secret key, we pick a random pair (X', Y') and generate Yb Y2 and C' such that: C' = AX' BY' mod q, Y1 = X' + eX mod , q - 1 and Y2 = Y' + eY mod q -1. We have then: AYIBY2C -1 = C" mod q In order to recover the secret keys used to construct Z, the TTP perform the following algorithm: i = 1; found: boolean; while (i:5 d) do found:=false; If (ce AXie i= AYie and C" A-x,e i= A-y,e) then found :=true; if not(found) then if (ce Ax,e i= AYie and C" A-x,e = A-Yie) then output (i, 1); else if (ceAx,e =Ay,e and ceA-x,e i=A-y,e) then output (i,-I); i=i+l; end while For each 1 :5 i :::; d this program outputs: 1. nothing if the secret key of USP.T Tl, is not used in the coalition attack, 2. (i, 1), if the secret key of user Ui belongs to E. 3. (i, 1), if the secret key of user Ui belongs to F. Anonymity Generally, to revoke the anonymity of a group member, we try to know the secret key or at least the information about this key which will allow HR t.o discover hie individual identity. We can say that our scheme provide perfect anonym.ity for the following reasons: • Computing a secret key is equivalent to resolve the CDL problem and the respect of the zero-knowledge property (with respect of an honest verifier) prevents to retrieve useful information. 58 • The link between a secret key and a prover's individual identity is only known by the TTP. Consequently, even if we succeed in knowing a secret key, we are not able to know the individual identity of the owner of this key without the help of the TTP . Unlinkability Deciding if (C', Yl, Y2) and (C', ih, ih) were computed by the same group member is computationally hard. Suppose that the two triplets are computed by the user Ui, then we have C' = AX' BY' mod q, Yl = x' +elxi mod q-l, Y2 = y' +elYi mod q-l and C' = AX" BY" mod q, ih = x" + e2Xi mod q-l, ih = y" + e2Yi mod q-l Consequently, anyone who wants to know whether the two previous triplets are computed by the same user he must verify the following equalities. (Yl - x')e11 = Uh - x" )e2"l mod q-l and (Yl - y')e1l = (Y2 - y" )e2"l mod q-l. In order to make this verification he has to computes x', x", y' and y" from C', C' ,A and B as follow: x' = log , C' - y' log , B mod q-l x" = logA C' - y" logA B mod q-l y' = 10gB C' - y' 10gB A mod q-l y" = 10gB C' - x" 10gB A mod q-l These operations require to compute discrete logarithm, this ensure that it is com- putationally hard to decide whether two triplets which correspond to two executions of protocol of group identification are computed by the same user. Traceability To recover individual identity of a prover having already proved his group identity, the TTP needs to use e, ui, Y2 and C' as input for the following algorithm: i = 1, found = false; while (i S NumberUsers and notfound) do x' = eXj - Yl mod q-l; y' = eYj - Y2 mod q-l; found = (C' == AX' BY') mod q; end while The TTP have list of It legitimate group members secret keys. In this list, each secret key is connected to the individual identity of a group member. In order to recover the individual identity of a group member, the TTP goes through the list of secret keys and computes x' and y'. Afterward, she computes found = (C' == AX' BY'). If found is true, the individual identity found is the identity connected to the secret key used. Otherwise, the next secret key in the list will be used. 59 5 Conclusion We have proposed a new group identification scheme which has advantages in terms of security and efficiency. This scheme is based on a new problem witch use the hardness of discrete logarithm problem. We has adapted this problem to have a suitable structure witch allows us to create several groups with only a single ini- tialization. We showed all requirements of this scheme and we has proved that dishonest members will be traced. References 1. A. De Santis, G. Di Crescenzo, P. Persiano and M. Yung. "On Monotone For- mula Closure of SZK," Proceedings of 35th IEEE Symposium on Foundations of Computer Science (FOCS '94), Santa Fe, New Mexico, USA, November 20-22, 1994, pp. 454-465. 2. A. De Santis, G. Di Crescenzo, and P. Persiano. "Communication Efficient Anonymous Group Identification," ACM Conference on Computer and Com- munication Security 1998. pp 73-82. 3. D. Boneh and M. Franklin. "Anonymous Authentification With Subset Queries," In Proceedings of 6th ACM Conference and Communication Se- curity 1999. pp 113-119. 4. S. Schechter, T. Parnell and A. Hartemink. "Anonymous Authentification of Membership in Dynamic Groups," Financial Cryptography'99, Springer- Verlag, 1999, pp.184-194, Anguilla, British West Indies. 5. A. Fiat and A. Shamir. "How to prove yourself: pratical solutions to Iden- tification and signature Problems". Advances in Cryptology-CRYPTO'99, Lecture Notes in Computer Science, 1999. pp 413-430. 6. J. Camenisch and M. Markus. "A Group Signature Scheme with improved effeciency,". Advances in Cryptology- CRYPTO'86, Lecture Notes in Com- puter Science, 1986, pp 186-194. 7. C.P Schnorr. "Efficient signature generation by smart cards". Journalof Cryptology 1991,4(3). pp 161-174. 8. J. Camenisch and M. Michels. "A Group Signature Scheme with Improved Effeciency,"Advances in Cryptology- ASIACRYPT'98, Lecture Notes in Com- puter Science, 1998, pp 160-174. 9. U. Feige, A. Fiat and A. Shamir."Zero-Knowledge Proofs of identity, Journal of Cryptology, vol. 1, pp. 77-94, 1988 10. G. Ateniese, J. Camenisch, M. Joye and G. Tsudik. "A Practical and Provably Secure Coalition-Resistant Group Signature Scheme," Advances in Cryptology- EUROCRYPT'OO, Lecture Notes in Computer Science, 2000. 60 "Alnlost Montgomery" based multiplier in GF(2n) Lejla Batina+", Cees Jansen", Geeke MuurIing 1, Sheng-bo XuI lSafeNet BV Boxtelseweg 26a 5261 NE Vught, The Netherlands 2K.U. Leuven ESATjCOSIC Kasteelpark Arenberg 10 B-300l Leuven-Heverlee, Belgium {lbatina, cjansen, gmuurling, sxu}@safenet-inc.com Lejla.Batina@esat.kuleuven.ac.be Abstract. Finite field arithmetic over GF(2n) is particularly attractive for efficientimplementations of elliptic curve cryptosystems in hardware. In this paper a new scalable multiplier architecture is proposed, com- bining the classical bit-serial method and Montgomery's modular mul- tiplication algorithm. Using polynomial basis, this combined multiplier exhibits a double speed with an increase in hardware complexity of only 50% compared to the classical type of multiplier. Special attention is given to the scalability and flexibility of the design. Performance data is given for an FPGA prototype implementation. 1 Introduction The performance of an elliptic curve cryptosystem and of other public key cryp- tosystems in general, is mostly determined by the efficient implementation of finite field arithmetic. Special properties of binary finite fields GF(2n) such as carry-free arithmetic, linearity of squaring etc. make them very attractive for hardware implementations. In this work a new scalable multiplier architecture is proposed, which combines a classical bit-serial multiplier with a multiplier based on Montgomery's Modular Multiplication (MMM) algorithm ([11]). The multiplier uses the polynomial basis representation while maintaining flexibility of the solution. Namely, no special property of the chosen irreducible polynomial is required. This solution is a scalable design dealing with arbitrary bit-lengths from 160-500 in a highly efficient way. This range is very suitable for appli- cations of elliptic curve cryptography. The combined multiplication algorithm splits multiplication into two parallel processes, thus reducing the number of cycles required from n to approximately n/2, with complexity changing from 4n to 6n. The proposed architecture trades gate complexity with clock cycles in such a way that the multiplier performance can be scaled according to systems 61 requirements. The ability to increase operating bit-lengths and to change param- eters are important requirements in the demanding security market nowadays. So, flexibility and scalability are musts in hardware, which together with in- trinsic physical security make software solutions even more inferior. Considering different basis representations various algorithms and architectures for multi- plication in GF(2n) have been proposed. However, to our knowledge there is a shortage of reported hardware implementations. The first bit serial multiplier is discussed by Beth and Gollmann [3]. This multiplier is using convolution and reduction modulo an irreducible polynomial taking n clock cycles to compute a multiplication. One of the earliest implementations is [1], wherein the authors described an efficient implementation of ECC over GF(2155) in optimal normal basis (0NB). This finite field was chosen because of the existence of an ONB over GF(2). Even though the attractiveness of this basis cannot be denied (squaring being a cyclic shift) the major disadvantage is that these bases do not offer a scalable and flexible platform. Namely, scalability together with interoperability and security represent the most important requirements of nowadays applica- tions. The implementations in [6], [16]also use normal basis representation. The hardware implementation reported in [14]uses standard basis representation but this implementation is suitable for composite fields, which are not recommended ([7] and [15]) for security reasons. In [12],a complete processor architecture for elliptic curve cryptosystems over GF(2n) in polynomial bases is proposed. The proposed architecture is also scalable with separated squarer (bit-parallel) and multiplier (digit-serial). The remainder of this paper is organized as follows. Section 2 provides the most important mathematical background for ECC in GF(2n) and Section 3 deals with modular multiplication in GF(2n) . Section 4 describes the multiplier architecture and addresses scalability. In Section 5 some figures and implemen- tation results are given providing a practical part of this contribution. Section 6 concludes the paper. Elliptic Curve Cryptography (ECC) was discovered independently by Victor Miller and Neil Koblitz [8]in mid-eighties. The security of ECC is based on the absence of a sub-exponential algorithm for Elliptic Curve Discrete Logarithm Problem (ECDLP). That implies that ECC can use smaller parameters main- taining a higher security level than conventional cryptosystems. Other benefits include: higher speed, lower power consumption and smaller certificates, which are especially useful in constrained environments EeC has been accepted as an alternative mechanism for implementing public-key cryptography by most of the standards, such as IEEE PI363 ([18]), ANSI X9.62 ([20]) and WAP ([17]). Usual fields to implement ECC are GF(p) and GF(2n) where p and n should be at least 160 bits long. In order to introduce a public key cryptosystem based on the elliptic curves, the group structure is required. A set of points on an elliptic curve (with one special point added, the so called point at infinity) together with 62 a point addition as a binary operation has the structure of an abelian group. For more details see [4], [9] etc.. Then it is natural to define a point or scalar multiplication. This is simply multiplication of an arbitrary point on an ellip- tic curve with some integer and it is the most important operation for ECC. Before implementing an ECC system, several choices have to be made. These include: selection of elliptic curve domain parameters (underlying finite field, field representation, elliptic curve) and algorithms for field arithmetic, elliptic curve arithmetic and protocol arithmetic. Selection of suitable choices is espe- cially important for fields of characteristic 2, which feature much more options, namely: various bases, coordinates, types of multiplier etc.. We introduce now shortly some necessary mathematical background on ECC in GF(2n). Let E be an elliptic curve over GF(2n) given by the following equation: This equation is representing the curve E in affine coordinates. From the equa- tions for point addition ([4]) it is evident that inversion has to be performed every time for doubling and addition operations. Since inversion is particularly costly in hardware, an alternative representation is usually considered i.e. the case of projective coordinates. The advantage of this representation is that it de- fers inversion i.e. instead of doing that for every double/add, only one inversion has to be performed at the end of scalar multiplication. However, the number of multiplications is enlarged in projective coordinates which makes the choice of a multiplier even more crucial for an efficient implementation. Among many representations of GF(2n) mostly mentioned are polynomial basis, normal basis and dual basis. The contribution in this paper deals with polynomial bases. In this case the basis elements have the form 1,w,w2, ... ,wn-l where w is a root in GF(2n) of an irreducible polynomial I(x) of degree n over GF(2). In this basis the elements of GF(2n) are polynomials of degree at most n - lover GF(2), and arithmetic is carried out modulo an irreducible polynomial I(x) of degree n over GF(2). According to this representation an element of GF(2n) is a polynomial of length n and can be written as: i=O where ai E GF(2). In hardware, the field elements are represented as binary n-tuples i.e. a = (an-I, an-2, ... , al, ao) where ai E {O,I}. The computation of elliptic curve point doubling and addition involves field additions, squarings, multiplications and inversions. Here, we consider squaring as a special case of multiplication and in- version can be almost completely ignored because of projective coordinates. The addition of two field elements requires the modulo 2 addition of the coefficients of the elements. In hardware, a bit-parallel adder requires n XOR gates, so the sum can be computed in one clock cycle. Considering modular multiplication, it is based on the followingequation: 63 a(x) . b(x) = (an_lXn-1 + ... + alX + ao) . b(x) modf(x) = = (...(an-1b(x)x + an_2b(x»x + ... + a1b(x»x + aob(x)modf(x) which presents the Homer scheme for multiplication. It is the base of the Most Significant Bit-First (MSB) multiplier ([3]). We givethe precise algorithm in the following section. 3 Modular Multiplication in GF(2n) Let f(x) be an irreducible polynomial, so the product c(x) = a(x) ·b(x)modf(x) has to be computed. The following algorithm to which we refer as the classical algorithm, is one way to calculate c(x). Algorithm 1. Classical modular multiplication in GF(2n) INPUT: polynomials a(x), b(x) and f(x) OUTPUT: Res(x) = a(x) . b(x)modf(x) 1. Res(x) <- 0 2. For i from n - 1 downto 0 do: Res(x) <- Resn-l . f(x) + Res(x) . x + ai· b(x) 3. Return Res(x) Another possibility to calculate the product of two polynomials in GF(2n) is Montgomery's multiplication algorithm as proposed in [5]as an efficient software implementation. Before a sequence of operations can be started, all operands have to be converted to the form a(x)r(x)modf(x), the so-called M-residue of the operand. This is done by performing a Montgomery multiplication on the element and r(x)2. The result of Montgomery multiplication on M-residues will once again be an M-residue, since: MMM[(a(x)r(x», (b(x)r(x»] = a(x)r(x) . b(x)r(x) . r(x)-lmodf(x) = a(x)b(x)r(x)modf(x) The method for Montgomery Modular Multiplication can be written as the fol- lowing algorithm, where the selection rex) = xn turns out to be very useful in obtaining a fast implementation. 64 Algorithm 2. Montgomery Modular Multiplication in GF(2n) INPUT: polynomials a(x), b(x) and I(x) OUTPUT: Res(x) = a(x) . b(x) . x-n mod I(x) 1. Res(x) +--- 0 2. For i from 0 to n - 1 do: 2.1 Res(x) +--- Res(x) + ai· b(x) 2.2 Res(x) +--- Res(x) + Reso ·/(x) 2.3 Res(x) +--- Res(x) div x 3. Return Res(x) While the classical multiplier starts the shift-and-add process from the MSB of one of the operands, and shifts the cumulative result left, the Montgomery based multiplier starts at the LSB, and shifts the result right. Instead of calcu- lating the required result a(x) . b(x) mod I(x), this algorithm computes a result in the form a(x)b(x)r(x)-l mod I(x). This multiplication process includes an implicit modular reduction. It takes n clock cycles to perform a multiplication. These two algorithms can be easily combined in one algorithm. The main idea is to do both previously mentioned algorithms at the same time in parallel ([13]). Since the Classical algorithms starts from the MSB and Montgomery's algorithm from LSB they can both do half of the full length loop and meet in the middle to get the final result. Hence, the total number of cycles is reduced with a factor 2. 4 New Architecture and Scalability In this Section we will discuss the most time-consuming operation considering the total time for finite field arithmetic, namely multiplication. The new algorithm for modular multiplication to which we refer as "Almost Montgomery" based algorithm in GF(2n) is performing modular multiplication according to the followingscheme: Algorithm 3. Combined Modular Multiplication in GF(2n) INPUT: polynomials a(x), b(x) and I(x) OUTPUT: Res(x) = a(x) . b(x)· x-L~J mod I(x) 1. Res(x) = 0, Resc = 0, ResM = 0 2. For i from 0 to ~ do: 2.1 Resc(x) +--- ResCn_l . I(x) + Resc(x) . x + ai· b(x) 2.2 ResM(x) +--- ResM(x) + an-l-i . b(x) ResM(x) +--- ResM(x) + ResMo ·/(x) ResM(x) +--- ResM(x) div x . 3. Res(x) = Resc(x) + ResM(x) 4. Return Res(x) This version of the algorithm for n even is explaining the parallelism of the algorithm. It can be similarly described also for n odd. 65 From the previously described algorithm it is obvious that it reduces the time-complexity with a factor 2. At the same time area-complexity is enlarged with a factor which is at most 1.5. This estimation was done according to the implementation of the prototypes. As previously mentioned scalability is a very important requirement for im- plementations in hardware. We distinguish between two types of scalability: seal- ability in design phase and in implementation ([2]). The first type determines a design such that system parameters (such as the number of processing elements), can be changed without changing the foundation of the architecture. It consists of a variable number of (identical) building blocks that need no re-design to make a trade-off between area and performance. As an example different sizes and various numbers of unit blocks are chosen to specify an appropriate design (see Figure 1). An architecture is scalable in implementation if the fixed design handles all required bit-lengths with attractive performances. In Figure 2 it is shown that for all bit-lengths the performance curve behaves smoothly and does not grow "too fast". '"I : ~I 1, . ~j ! i !! .' • ~i'"ht .. I i onj !./ -I17~' Z Z .~"_,,w'l .~.- --- " Fig.2. ScalabiJity in implementation and perfor- Fig. 1. Scalability In design phase ((2]). mance for point multiplication in InS ([13}). 5 Timing Data for Point Multiplication With the multiplier described in the previous section, inversion can be performed by means of Fermat 's theorem. In this way, the inversion operation needs 2n - 5 multiplications. Therefore, the operations in GF(2n) can be implemented by use of one multiplier only, which is very attractive to low power and low complexity devices such as smart cards. Fur this work projective coordinates were chosen instead of affine coordinates. The point multiplication which was implemented is from work of J. López and R. Dahab ([10]). To verify the previously introduced idea the performance of the classical and combined multipliers are compared by building two ECP (Elliptic Curves Pro- cessors) prototypes and collecting timing data. The multipliers are designed in 66 such a way that they are flexible and scalable. Therefore both prototypes are suitable for implementation of elliptic curve cryptosystems with various parame- ters recommended by NIST ([19])and WAP. The prototypes were built on Xilinx Spartan-II XC2S200 FPGA using VHDL code. A standard computer parallel in- terface is built-in to download different elliptic curve domain parameters into the prototypes and upload the results. The experiment shows that both prototypes are able to implement elliptic curve cryptosystems with a wide range of field sizes, up to 500 bits. The time costs of point multiplication under different finite fields were measured at 55 MHz operating frequency. Table 1. Timings of scalar multiplication for different architectures ([13]). Implementation IIFinite fieldlPlatform IFrequencylPoint multo (ms) I [1] GF(21OO) VLSI 40.0 MHz 3.90 [16] GF(21OO) FPGA XC4020XL 15.0 MHz 18.40 [14] GF(2")~1 FPGA XC4062 16.0 MHz 4.50 [12] GF(210' ) FPGA XCV400E 76.7 MHz 0.21 Combined multiplier GF(21t>") FPGA XC2S200 55.0 MHz 3.8 Figure 2 gives the time costs of the point multiplication over different finite fields. It shows the advantage of the combined multiplier over the classical im- plementation. In Table 1 the comparison is given among the performances of the proposed architecture and previously known implementations. 6 Conclusions In this paper we considered the efficient implementation of modular multipli- cation in the finite field GF(2n) using a polynomial basis representation. The new idea to combine two existing algorithms, classical and Montgomery modu- lar multiplication, has been introduced. It turns out that this combined modular multiplication algorithm, when implemented in hardware or concurrent software, yields a substantial improvement in multiplication speed. The associated increase in implementation complexity amounts to not more than 50%. It has also been shown that the important requirements of scalability, both in design phase and implementation are satisfied by the described design. Finally, performance data has been given for a prototype FPGA implementation, demonstrating the suit- ability of the new architecture for modern cryptosystems. Acknowledgements: The authors would like to acknowledge the contribution of M. J. Potgieter for his original idea about combining two types of multipliers in one. We also thank dr. ir. Tj, Tjalkens from TUE for the opportunity to do this joint project. 67 References 1. G. Agnew, R. Mullin, and S. Vanstone. An implementation of elliptic curve cryptosystems over lF215S. IEEE Journalon Selected Areas in Communications, 11(5):804-813, June 1993. 2. L. Batina and G. Muurling. Montgomery in practice: How to do it more effi- ciently in hardware. Topics in Cryptology- CT-RSA 2002, B. Preneel (Ed.), LNCS 2271:40-52, 2002. Presentation available at Proceedings RSA'02 - CD ROM. 3. T. Beth and D. Gollmann. Algorithm engineering for public key algorithm. IEEE Journal on Selected Areas in Communications, 7(4):458-465, May 1989. 4. J. Blake, G. Seroussi, and N. P. Smart. Elliptic Curves in Cryptography. London Mathematical Society Lecture Note Series. Cambridge University Press, 1999. 5. Ç.K. Koç and T. Acar. Montgomery multiplication in GF(2k). Designs, Codes and Cryptography, 14:57-69, 1998. 6. L. Gao, S. Shrivasta, and G. E. Sobelman. Elliptic curve scalar multiplier design using FPGAs. Lecture Notes in Computer Science, Springer- Verlag, (1717):257- 268, 1999. Cryptographic Hardware and Embedded Systems-CHES 1999. 7. P. Gaudry, F. Hess, and N.P. Smart. Constructive and destructive facets of Weil descent on elliptic curves. Journalof Cryptology, 15:19-46, 2002. 8. N. Koblitz. Elliptic curve cryptosystems. Mathematics in Computation, 48:203- 209,1987. 9. N. Koblitz, A. Menezes, and S. Vanstone. The state of elliptic curve cryptography. Designs, Codes and Cryptography, 19:173-193, 2000. 10. J. López and R. Dahab. Fast multiplication on elliptic curves over GF(2=). Lecture Notes in Computer Science, Springer- Verlag, LNCS 1717:316-327, 1999. Crypte- graphic Hardware and Embedded Systems-CHES 1999. 11. P. Montgomery. Modular multiplication without trial division. Mathematics of Computation, Vol. 44:519-521, 1985. 12. G. Orlando and C. Paar. A high-performance reconfigurable elliptic curve processor for GF(2"'). Lecture Notes in Computer Science, Springer- Verlag, LNCS 1965:41- 56, 2000. Cryptographic Hardware and Embedded Systems-CHES 2000. 13. M. J. Potgieter. A hardware implementation of the group operations necessary for implementing an elliptic curve cryptosystem over a characteristic two finite field. Final report of project EPR400, Technical University Eindhoven, 2002. 14. M. Rosner. Elliptic curve cryptosystems on reconfigurable hardware. ECE dept., Worcester Polytechnic Institute, Worcester, USA, 1998. 15. N. P. Smart. How secure are elliptic curves over composite extension fields? Ad- vances in Cryptology, Eurocrypt 2001, LNCS 2045:30-39, 200l. 16. S. Sutikno, R. Effendi, and A. Surya. Design and implementation of arithmetic processor lF2155 for elliptic curve cryptosystems. IEEE Asia-pacicic Conference on Circuits and Systems, 1998. 17. Wireless Application Protocol. Wireless transport layer security specification. WAP-199- WTLS, 2000. Available at: www.wapforum.org. 18. IEEE P1363. Standard specifications for public key cryptography. 1999. 19. Digital Signature Standard (DSS). NIST Documents, 1999. Available at: http: csrc.nist.gov. 20. ANSI X9.62. The Elliptic Curve Digital Signature Algorithm (ECDSA). available at: www.ansi.org. 68 A Fast Multiplier over GF(2n) M.J. Potgieter", B.J. van Dyk1 and Tj.J. Tjalkensê 1 University of Pretoria, Pretoria, South Africa 2 Eindhoven University of Technology, Eindhoven, the Netherlands e-mail: t.j.tjalkens~tue.nl Abstract. In this paper we will present a hardware implementation of a GF(2n) polynomial basis multiplier that is twice as fast a the classical multiplier while requiring about 50 % more chip area. We implement a flexible scalar (or point) multiplier for elliptic curve cryptosystems using this multiplier and find that the flexible system performs almost twice as fast as compared with the classical multiplier. 1 Introduction An elliptic curve cryptosystem (ECC) can be used to exchange keys over an insecure channel. ECC belongs to the class of public key cryptosystems. The famous Diffie-Hellman system [1] relies on the prohibitive complexity of solving s from gS = k mod p, (1) where g, k, an p (a large prime) are known. The RSA system [2] is a widely used variant on this theme. In an ECC another complex operation is used, namely the point addi- tion, see [3,4] or the more recent [5]. Here solving m from mP, where P is a known point on a known elliptic curve in GF(2n) is the intractable operation. The operation mP is known as the elliptic curve scalar multi- plication. For the Diffie-Hellman and RSA systems that use a multiplicative group, a sub-exponential, w.r.t. logp, running time algorithm, the index- calculus method, exists, while all known algorithms for solving the EC scalar multiplication problem are still exponential in n. Thus, much smaller keys can be used in an ECC (about 160 bit keys) than in RSA systems (about 1000 bit keys). Even though the basic operation in an ECC, point addition, might be more complex than the multiplication in RSA, the dif- ference in field sizes needed, make the ECC system an attractive choice for low power flow complexity applications. While implementing a flexible, programmable, hardware EC scalar multiplier we found a novel field multiplier that is twice as fast as the standard multiplier, while requiring 50% more chip area. 69 2 Field multipliers Because we are interested in a flexible system a polynomial basis for GF(2n) seems more appropriate than a normal basis. Multiplication in a normal basis representation is only efficient if an optimal normal basis exists, and in the range of n that we were interested in, 160 ... 200, only a few optimal bases exists. So, the field elements are expressed as binary vectors (ao, al, .. ·, an-d of dimension n, relative to the base {I, a, a2, ... ,an-I}, where a is a root of the irreducible polynomial f(x) of degree n over IF2• The classical multiplier implements the multiplication operation to- gether with the modular reduction. The following pseudo-code describes this multiplier and figure 1 gives a hardware implementation hereof. It is clear that the running time, or number of clock cycles, is equal to n. Note that the multiplication by x in the code is a simple left shift of the register r. Inputs: a, b and the polynomial f(x). Output: r, where r == a- b mod f(x). r+-O for i from n downto 0 do msb +- Fn. I r +- (msb and f(x)) EB (r * x) r +- r EB (ai and b) endfor return r Listing 1: Pseudo code for the classical multiplier For odd characteristic fields, a more efficient multiplier exists, the Montgomery multiplier [6]. Applying this idea to GF(2n) we end up with a multiplier that is very similar to the classical multiplier, see Listing 2. The main difference is that. it operates on the least significant bits of a. 70 Fig. 1. The classical multiplier The running time is again equal to n clock cycles. Note also that the division by x in the code is a simple right shift of the register r. Inputs: a, b and the polynomial f (x). Output: r , where r == a· b- x-n mod f(x). r-O for i from 0 to n - 1 do r +- r EB (ai and b) r +- (ro and f(x)) EB r r-r/x endfor return r Listing 2: Pseudo code for the Montgomery multiplier Instead of computing r = a . mod f (x) the Montgomery multiplier b (MM) computes MM[a,b] g r == a·b·x-nmodf(x). Therefor we L1 represent every element a E GF(2n) by M(a) = a . xn mod f(x). So, 71 if we wish to compute a . b mod f(x) we compute M M[M(a), M(b)] == a-b-te" mod f(x). We observe that MM[M(a),M(b)] = M(ab). Convert- ing a value a to its Montgomery representation M(a) is easily obtained using the Montgomery multiplier as M(a) = M M[a, x2n]. The conversion from M(a) to a is similarly performed by a = M M[M(a), 1]. 3 A modified field multiplier If we briefly ignore the modular reduction we see that the classical multi- plier and the Montgomery multiplier actually compute the same product. Say a(x) = a4x4 + a3x3 + a2x2 + aIX + ao and b(x) = b4X4 + b3X3 + ~x2 + bI X + bo. Then the classical multiplier results in (a4x4 + ll,3X3 + a2x2 + alX + ao){b4x4 + b3x3 + ~x2 + blx + bo) = C8x8 + C7x7 + C6X6 + csxs + C4x4 + C3x3 + C2x2 + ClX + Co (2) It is easy to see that the result for the Montgomery multiplier is c(x) ·x-n because the intermediate results are shifted to the right. a4b4 a4b3 a4~ a4bl a4bO a3b4 a3b3 osbz osb: a3bO a2b4 a2b3 oaoz a2bI oabo alb4 alb3 asb: albl albo aOb4 aob3 aeb: aObl aobo c8 c7 C6 Cs c4 c3 C2 Cl Co Assume that n is even, then multiplying c(x) by xn/2 can be seen as a combination of left and right shifts on the partial results. However these results can be performed in parallel and the two partial end results 72 can then be added together. It is still possible to perform the modular reduction using the original algorithms from listing 1 and listing 2. Inputs: a, b and the polynomial f(x). Output: r, where r = a- b· x-n/2 mod f(x). re +- 0 rm+-O for i from 0 to n/2 - 1 do msb +- rCn-l re +- (msb and f(x)) E9 (re * x) re <- re EB (an-l-i and b) rm +- rm E9 (ai and b) rm +- (rmo and f(x)) E9 rm rm +- rni] x endfor return re E9 rm Listing 3: Pseudo code for the modified multiplier The main increase in chip area is caused by the extra (temporary) result register, rm and re in stead of r in the original multipliers. It is easy to extend this method to the case where n is odd. In that case the Montgomery part works on the (n - 1)/2 least significant coordinates of a and the representation is M(a) = a- x(n-l)/2 mod f(x). The number of clock cycles needed is (n + 1)/2. Odd, or preferably prime, values for n are often used in cryptographic systems. 4 Comparing the classical and modified multipliers The multipliers were implemented in a field programmable gate array FPGA. The following two tables give an indication of the speed-up and chip area cost of the modified multiplier relative to the classical multi- plier. We show the timing and chip area for the complete ECC scalar multiplier unit in table 1 and table 2 respectively. 5 Conclusion The results of the ECC scalar multiplier comparison indicate that the field multiplier is the predominant factor in the speed-up of the design. 73 Field size n tclassica.l tmodified 163 6.619 3.776 233 13.316 7.158 283 19.518 10.299 Table 1. Timing comparison in milliseconds % modified Field size n % slices (modified) % slices (classical) % classical 96 35 26 1.346 192 56 40 1.400 304 81 56 1.446 384 99 67 1.478 Table 2. Chip area in FPGA slices The increase in chip area is caused by the field multiplier only. This and a more detailed comparison of the designs show that the modified multiplier costs about 50 % more chip area. Because we designed a flexible and programmable ECC unit, many optimizations that are possible with fixed and clever choice of parameters were not possible in this implementation. This might influence the speed and chip area cost of a design enormously. Still the speed-up factor will be more or less the same because in many designs the field multiplier will determine the speed of the overall circuit. References 1. Diffie, W. and M.E. Hellman, "New direenons in cryptography," IEEE nuns. In- form. Theory, vol. 22, 1976, pp. 644--654. 2. Rivest, R.L., A. Shamir, and L. Adleman, "A method for obtaining digital signatures and public-key cryptosystems," Comm. ACM, vol. 21, 1978, pp. 120-126. 3. Koblitz, N., "Elliptic curve cryptosystems," Math. Comp., vo148, 1987, pp. 203-209. 4. Miller, V., "Use of elliptic curves in cryptography", In Advances in Cryptology, CRYPTO 85, Ed. H.C. Williams, Springer-Verlag, LNCS 218, 1986, pp. 417-426. 5. Blake, I.F., G. Seroussi, and N. Smart, Elliptic Curves in Cryptography, Cambridge University Press, Cambridge, 1999, pp. 1-76. 6. Montgomery, P.L., "Modular multiplication without trial division," Math. Comp., vol 44, 1985, pp. 519-521. 74 ML-Performance of Low-Density Parity-Check Codes vofkcÜ# ~ bIJ klhtfk7tP- t/#/IJ/! ?tlt{,~/l ~C7U41/ Heidi Steendam and Marc Moeneclaey DIGCOM research group, TELIN Dept., Ghent Unîversity Sint-Pietersnieuwstraat 41, 9000 GENT, BELGIUM E-mail: {hs.mm}@telin.rug.ac.be Abstract. In this paper, we derive the maximum likelihood (ML) per- formance for low-density parity check (LDPC) codes, considering BPSK and QPSK transmission over a Gaussian channel. We compare the the- oretical ML performance with the performance of the iterative decoding algorithm. It turns out that the performance of the iterative decoding algorithm is close to the ML performance when the girth of the code is sufficiently high. When the girth of the code is equal to or smaller than 6, the decoding algorithm performs sub-optimal: the bit error rate (BER) obtained with the iterative decoding algorithm is much higher than the optimal BER that can be obtained when using ML decoding. 1 Introduction Low-density parity check (LDPC) codes were introduced by Gallager [1] as a class of linear error-correcting block codes of which the check matrix is sparse. The original regular Gallager codes have a regularity constraint on the weight of the columns and the rows of the check matrix: the columns and the rows each contain a small fixed number of ones, j and k respectively. Gallager showed in [1] that random regular LDPC codes are asymptotically good and perform close to the Shannon capacity limit when the block length increases. However, LDPC codes were forgotten, as no practical decoding technique was available that was able to achieve the expected near-Shannon performance. Only recently, with the introduetion of turbo codes [2], LDPC codes were rediscovered [3]. Similarly as for turbo codes [2], a decoding algorithm that was based on the belief propagation method [4] was proposed [3]. In this decoding algorithm, the aim is to compute the marginal posterior probability that a received bit is erroneous, given the information of the check matrix and the syndrome. This computation of the marginal posterior probability is done in an iterative way. When decoding the LDPC codes with this relatively simple and practical iterative decoding algorithm, it is shown in [5]-[7] that their empirical performance can approach the Shannon limit. The search for a practical suboptimal decoding algorithm was necessary as the optimal (maximum likelihood, ML) decoder was too complex: the complex- ity of the ML decoder increases exponentially with the length of the information 75 word. However, as the ML performance limits the performance of any decoding algorithm, it can be useful to compare the performance of the practical iterative decoding algorithm with the optimal ML performance. From the gap between the two, we can learn how to improve the code by carefully selecting the code parameters, such that the suboptimal decoding algorithm performs nearly opti- mal. In this paper, we derive the maximum likelihood performance for LDPC codes, considering BPSK and QPSK transmission over a Gaussian channel, and compare the theoretical ML performance with the performance of the iterative decoding algorithm. 2 Low-Density Parity-Check Codes A linear (K,N) binary block code is characterized by two parameters: the number K of information bits in a codeword and the length N of the codeword. The linear transformation that converts the information word of length K into the codeword is characterized by the N-by-K generator matrix G of the code. Defining b = (bI ... btc) as the information word and c = (Cl ... CN) as the code word, the relationship between band c is given by c=bG (1) In this paper, we restrict our attention to systematic codes, i.e. the generator matrix is given by G = (PIIK), where IK is a K-by-K identity matrix and P is the N - K-by-N check matrix. Hence, in this case, the last K bits of the code word are the information words. The code word c is transmitted over the Gaussian channel. At the receiver, the received word can be written as r=c+e (2) where e is the error word. The error word contains ones on positions where a transmission error occurred. To know if the transmitted word was received correctly, the syndrome s = (SI ... SM) is computed, i.e. (3) where H is the M-by-N check matrix and GHT = o. If the received word is a codeword, the syndrome is all zero, i.e. Sm = 0, m = 1, ... , M. In a low-density parity-check code, the check matrix is sparse, i.e. it has a low density of ones. In this paper, we consider the regular LDPC codes introduced by Gallager [1]. In this type of codes, there is a regularity constraint on the weight of the columns and the rows of the check matrix: the columns and the rows each contain a small fixed number of ones, j and k respectively. An LDPC code can be represented by a bipartite graph. This bipartite graph consists of two types of nodes, i.e. the symbol nodes, which correspond to the bits of the received word, and the check nodes, which cortespond to the bits of the syndrome. A 76 connection (edge) between the symbol node rn and the check node Sm indicates that the (m, n)th element of the check matrix equals 1. Hence, because of the regularity constraint, each symbol node (check node) is connected to exactly j check nodes (k symbol nodes), as indicated in figure 1. A cycle in the graph is a sequence of connections that starts and ends in the same node. In figure 2, a cycle of length 6 is shown. The minimum cycle length of the code is called the girth. It will be shown in section 4 that the girth of the code has an influence on the optimality of the iterative decoding algorithm. Gallager presented a simple method to construct check matrices that satisfy the regularity constraints. In this method, the check matrix is characterized by three parameters, i.e. k which is the weight of the rows, j which is the weight of the columns, and p which is a prime number. The check matrix is constructed in the followingway: lp I lp 0: lp o:k-l j H= [ I:aL, a(k~;)(j~'J (4) where lp is the p-by-p identity matrix and 0: is a p-by-p matrix that represents a single left or right cyclic shift, i.e. 0:= [000011 10000 01000 0:= [0100 Ol 00100 00010 (5) 00100 00001 00010 10000 left cyclic shift right cyclic shift The matrix o:X is the xth power of the matrix 0:. The resulting check matrix is a pj- by-pk matrix. Hence, the length of the code word and the length of the syndrome are given by N=pk M=pj (6) It turns out that in the check matrix (4), j - 1 rows are linearly dependent on the other rows, such that the rank of the matrix equals N - K = pj - (j - 1). Hence, the length K of the information word equals K = pek - j) + j - 1 (7) 77 Performance Analysis of Limited-Trial Chase Decoders Fred Kossen and Jos H. Weber Delft University of Technology Faculty of Information Technology and Systems P.O. Box 5031, 2600 GA Delft The Netherlands J.H.Weber~its.tudelft.nl Abstract. Chase decoders permit flexible use of reliability information in algebraic decoding algorithms for error-correcting block codes of Ham- ming distance d. The least complex version of the original Chase algo- rithms ("Chase 3") uses roughly d/2 trials of a conventional binary de- coder, after which the best decoding result is selected as the final output. In this paper, the performance of Chase-like decoders with even less trials is studied, in particular for the additive white Gaussian noise (AWGN) channel and the Rayleigh fading channel. For both channels, the perfor- mance of these low-complexity decoders is promising. It is shown that decoders exist with lower complexity and better performance than the Chase 3 decoder. However, it also turns out that optimization of the set- ting of the trials depends on the nature of the channel, i.e., AWGN and Rayleigh fading channels may require different arrangements. 1 Introduetion In [3] Chase has proposed a class of algorithms for decoding binary block codes using channel measurement information. Over the years, many variations on and extensions or improvements to the still highly relevant Chase decoding princi- ple have been proposed, see e.g. [5] for an overview. It is also considered as a constituent component in modern techniques like iterative decoding of product codes ('block turbo codes'), see [7], [1]. In this paper, we propose low-complexity Chase-based decoding algorithms and compare their performance to the perfor- mance of the original Chase algorithms. We assume a similar setting as in [3]. A sequence of k information bits is en- coded into a codeword x = (Xl, X2, ••. , xn) according to a binary linear (n, k, d) code C of length n, dimension k, and Hamming distance d. The bits Xi are fed into the data modulator which determines the waveform to be transmitted. Next, this waveform may be distorted by the channel. The received waveform is fed into a demodulator, which delivers, for each i = 1, ... , n, a binary symbol Yi, which represents the detector's estimate of Xi, and a reliability value ai, which is a non-negative real number, and which represents the detector's confidence in its estimate. The higher ai, the more reliable is the symbol Yi. The input to 79 the decoder consists of the received binary vector y = (Yb Y2,' .. , Yn)and the associated reliability vector a = (al, a2, ... , an). We define the error vector by z = x + y. The analog weight of z is defined by n wo:(z) = L aiZi, (1) i=l where the summation is over the real numbers. It is the job of the decoder to come up with an estimate of the transmitted codeword, or equivalently, with an estimate of the error pattern. A complete channel measurement decoder is a decoder capable of finding the codeword that minimizes the analog weight of the error pattern. For certain channels and appropriate assignments of reliability values, this is equivalent to a maximum likelihood (ML) decoder [3]. A complete channel measurement decoder may be far too complex for prac- tical implementation. The idea behind the Chase decoding approach is to use a binary decoder in a multi-trial fashion, in combination with the reliability vector a, to obtain a relatively small set of possible error patterns, of which one of minimum analog weight is the final decoding result. The algorithms have been designed to work with a conventional (algebraic) binary decoder, which will determine the codeword which differs in the least number of places from the de- coder's input sequence provided that this number is not greater than l(d -1) /2 j . The set of error patterns is obtained by the followingprocedure. A binary test pattern t = (tl, t2, ... , tn) from a test set T of size 1 is added to the received vector y. The resulting vector y' = y + t is fed into the binary decoder, giving either an error pattern z' or a decoding failure. In case an error pattern has been found, the error pattern Zt = z' + t relative to y is calculated. After this has been done for all test patterns t from T, a Zt with minimum analog weight is determined and added to y to obtain the estimate for the transmitted codeword. In case all 1 trials result in decoding failures, the decoder output is the received vector y itself. In [3]Chase has proposed three algorithms, i.e., three test sets T. For Algo- rithm 1 the set T consists of all binary vectors of length n which contain exactly ld/2 j ones. For Algorithm 2 the set T consists of Rll binary vectors of length n which have the n - L d/2 J most reliable positions equal to zero. For Algorithm 3 the set T consists of all binary vectors of length n which contain ones in the i most unreliable positions and zeros elsewhere, where i = 0,2,4, ... d - 1 if d is odd and i = 0,1,3,5, ... , d - 1 if d is even. Hence, the sizes of the test sets are (Ld/2J)' 2Ldj2J, and ld/2 + Ij, for Algorithms 1, 2, and 3, respectively. Note that the number of trials for Algorithm 3 grows only linearly in d. Being the least complex, Algorithm 3 performs worse than Algorithms 1 and 2. Still, for binary antipodal signaling, e.g., binary phase shift keying (BPSK), over the ad- ditive white Gaussian noise (AWGN) or the coherent Rayleigh fading channel, all three algorithms give essentially the same performance as ML decoding at high signal-to-noise ratios (SNR) [3]. In this paper we analyze the performance of Chase-like algorithms when limiting the number of decoding trials even more than in the Algorithm 3 case, 80 i.c., in case 1 is small « d/2). Preliminary matters, mainly (adaptations of) results from [3], are treated in Section 2. Next, the main results are presented ill Section 3. Finally, the paper is concluded in Section 4. 2 Preliminaries We assume that, at the output of the channel, the received waveform is filtered, leading to decision statistics Vi (i = 1, 2, ... , n) which are of a form such that the decision rule is { Yi :: Yi - ° ~f Vi 2: 0, 1 if Vi < O. (2) The decision statistics are multiplied by positive weight factors Wi, and the reliability values are then given by (3) The exact form of these decision filters depends on the form of the transmitted signals and the type of channel. In determining bounds on the probability Pe(block) of a block error, i.e., an unsuccessful decoding result, for a binary linear code C of Hamming distance d and a Chase-like decoder with test set T, we mayassume, without loss of generality, that the transmitted codeword is the all-zero sequence. Thus, the received bit Yi is not equal to the transmitted bit Xi if the weighted decision statistic WiVi is negative. Let the effective distance r(T, d) be defined as the largest integer r for which the following property holds: if a block error occurs, then there exists a set S ç {I, 2, ... , n} of size r such that (4) Assuming all (r(;,d)) sets of r(T, d) weighted decision statistics have the same probability of having a negative sum, we obtain the upper bound (5) From the analysis in Appendix I in [3] we have the following general result. Lemma 1. If the tmnsmitted all-zero codeword is genemted in at least one of the decoding trials in a Chase-like decoder, but not selected as the final decoding result, then there exists a set S ç {I, 2, ... ,n} of size d such that LiEs WiVi < o. For binary antipodal signals over the AWGN channel with single-sided spec- tral density No, Yi is obtained bya decision filter, which is assumed to be matched 81 to a waveform of energy E representing the value of Xi. The output of this matched filter is (6) where ni is Gaussian distributed with mean 0 and variance No/2. Further, set the weights Wi = 1 for all i and let "( = E/No. For large "(, i.e., at high SNRs, the error probability for an ML decoder is essentially e--yd [3], while the upper bound (5) for the error probability of a Chase-like decoder with test set T is essentially e--yr(T,d). Hence, if the effective distance r(T, d) equals the Hamming distance d, as is the case for Chase Algorithms 1, 2, and ~ [3], the asymptotic behavior of the error probability of a Chase-like decoder is the same as that for an ML decoder on the AWGN channel. For the Rayleigh fading channel, the output of the matched filter is Vi = riVE + ni ~f z, =0, (7) { Vi = -riVE + ni if Xi = 1, where ri is Rayleigh distributed (i.e., the probability density function is 2re-r2, r > 0), and ni is Gaussian distributed with mean 0 and variance No/2. We assume the receiver to have channel state information, i.e., it knows ri, and set the weights Wi = ri for all i. For large "(,i.e., at high SNRs, the error probability for an ML decoder is essentially "(-d [3], while the upper bound (5) for the error probability of a Chase-like decoder with test set T is essentially "(-r(T,d). Hence, also for the Rayleigh fading channel, the asymptotic behavior of the error probability of a Chase-like decoder is the same as that for an ML decoder if r(T, d) equals d. 3 Limited-Trial Chase-Like Decoders For i = 0, 1, ... , n, let ti denote the test pattern of length n which contains ones in the i most unreliable positions and zeros elsewhere. Let Oi denote the sequence of i zeros, and let 1i denote the sequence of i ones. For convenience, we assume without loss ot generality throughout the rest of this paper that the ordering of the received symbols is such that Qi ~ Qi+! for i = 1, ... n - 1. Under this assumption, note that (8) for i = 0, 1, ... , n. Here we will evaluate r(T, d) for test sets T which are subsets of Uf=o{ti}. Note that the Chase 3 test set belongs to this class. If a block error occurs, the Chase-like decoder either does generate the true error pattern in at least one of the trials but does not select it as the final winner, or does not generate the true error pattern in any of the trials. In the former case Lemma 1 applies. We will now concentrate on the latter case. Assuming the all-zero vector is transmitted, let e be the most likely received binary sequence for which the true error pattern does not appear in any of the trials. If to ET, r e contains at least d/21 ones. 82 Table 1. ERROR PATTERNS e AND VALUES OF r(T, d) IN CASE OF CODES WITH n > d = 5 AND CHASE-LIKE DECODERS WITH TEST SET T. T e r(T,5) {to} On -6000111 3 {to,tt} On -6001110 4 {to, t2} On -6001101 4 {to,ts} On -6011001 5 {to, t4} On 6010011 4 {to, t5} On 6100011 4 {to, tI, t2} On -6001110 4 {to, h,tS} On -6011010 5 {to, h,t4} On 6010110 5 {to, h,t5} on -15100110 5 {to,t2,tS} On -15011001 5 {to, t2, t4} On -15010101 5 {to, t2, ts} On -15100101 5 {to, ts, t4} On 6011001 5 {to,tS,t5} On -15101001 5 {to,t4,t5} On -"100011 4 We mainly consider the case d = 5. In Table 1 we list e and r(T, d) for some subsets of u~=o{td. For example, for T = {to, t2}, the presence ofto in the test set gives that e contains at least three ones, while the presence of t2 in the test set gives that at least two of these ones should be outside the two least reliable positions. Since for each position a zero is more likely than a one and since a one is more likely to occur in a less reliable position than in a more reliable position, we thus find e = on-4no1. It also follows from this analysis that in case the true codeword is not generated in any of the trials, there always exists a set 5 ç {I, 2, ... , n} of size four such that LiES WiVi < O. In case the number of erroneous positions in the received sequence is four or more we can just take any size-four subset of these positions as 5, while if this number is three we take the three erroneous positions and one correct position from the two least reliable positions. Note that in this latter case the positive contribution to LiES WiVi from the correct position is compensated for by the negative contribution from the most reliable erroneous position. Further, it follows from e = on-4nOI that a set 5 of size five or more with LiES WiVi < 0 is not guaranteed in case the true error pattern is not generated in any of the trials: for example, if an-4 > L~=n-3 ai, then such set does not exist. Hence, from this reasoning and Lemma 1, we conclude that r( {to, t2}, 5) = 4. The other entries in Table 1 follow similarly. Some interesting observations can be made from Table 1. Note that the pat- tern e = on-SWI01 for the Chase 3 test set {to, t2, t4} is more likely than the pattern e = on-Snow for test set {to, tI, t3}, since the former e has its errors 83 BCH(15.7.51 Rayleigh . .... -ë- haId-decision -e- Cha8e3 .... Chase TO- T1- T3 ..... ChasaTO-T3-T5 SNR per bH: of information transmitted (dB] Fig. I. Simulated bit error probability results for the Chase-like decoders with test sets {to} (hard-decision decoder), {to, t2, t4} (Chase 3 decoder), {to, tI, t3}, and {to, t3, ts}, all in case of a binary (15,7,5) BCH code, BPSK signaling, and trans- mission over the Rayleigh fading channel. in less reliable positions. This means that the test set {to, tI, t3}, which is of the same size as the Chase 3 test set, may perform better. Even more strikingly, we notice that r({to,t3},5) = 5, which means that on AWGN or Rayleigh fading channels with antipodal signals, the test set {to, t3} asymptotically achieves ML performance in only two trials, where Chase Algorithm 3 needs three trials. It seems that in case d is odd, the Chase 3 choice of test patterns with an even number of inversions, inspired by the erasure patterns in generalized minimum distance (GMD) decoding [4], is not necessarily thp best thing to do. III [2], test sets T of SIze l are proposed for which r(T, d) = r21li Hence, for odd d, r~ll. an effective distance r(T, d) equal to the Hamming distance d can be achieved by a test set T of size r~l (i.e., about half the size of the Chase 3 test set!). Next, we extend our analysis to practical SNR values. In Figures 1, 2 and 3 we present simulation results for various Chase-like decoders in case of a binary (15,7,5) BCH code and BPSK signaling. In Figures 1 and 3 transmission is over the Rayleigh fading channel, while in Figure 2 transmission is over the AWGN channel. The figures show bit error probabilities as a function of Eb/NO, where Eb = nE/k is the energy per information bit. Figure 1 shows that the Chase 3 decoder is indeed not necessarily the best choice among all possible 3-trial decoders. Test sets {to, t3, t5} and {to, tI, t3} clearly outperform the Chase 3 test set {to, t2, t4}. The 1 dB gain of {to, t3, t5} over {to, t2, t4} at bit error probability 10-3 is achieved without any complexity 84 increase. Note from Figures 2 and 3 that even the 2-trial decoders with test sets {to, t3} and {to, t5} perform better than the 3-trial (and thus more complex) Chase 3 decoder! In order to explain this phenomenon, recall from Table I that for d = 5 the most likely error event which leads to non-consideration of the true codeword in the decoding process is on-51010l for the Chase 3 test set {to, t2, t4}, and on-5noOl for the test set {to, t3}' Note that the latter event is less likely than the former since the second I is in ~ more reliable position. Another important observation from Figures 2 and 3 is that the test set {to, t3} performs a little bit better than the test set {to, t5} on the AWGN channel, while it is quite the reverse on the Rayleigh fading channel. In order to explain this phenomenon, first note that for an error pattern like on-5uoOl the transmitted codeword is considered by the decoder with test {to, t5} and not considered by the decoder with test {to, t3}' However, for an error pattern like on-6100101, it is the other way around. Since the distribution of the errors over the ordered positions is different for the AWGN and Rayleigh fading cases, it may indeed weil be the case that a certain test set is better matched to one channel than to the other. 4 Conclusion In this paper, we have considered Chase-like decoders with a limited number of test patterns. The presented results show that we can design test sets leading to limited-trial decoders which are better than the original Chase 3 algorithm in complexity as well as in error performance. Furthermore, it has become clear that optimal test set design should take into account the nature of the channel. The results obtained so far are mainly based on example cases [6), a general theory is under development. References 1. C. Argon, S.W. McLaughlin, and T. Souvignier, "Iterative application of the Chase algorithm on Reed-Solomon product codes", Proceedings IEEE ICC 2001, pp. 320- 324, 2001. 2. G. Arico and J.H. Weber, "Limited-trial Chase decoding", submitted to IEEE Trans. on Inform. Theory, Jan. 2002. 3. D. Chase, "A class of algorithms for decoding block codes with channel measurement information" , IEEE Trans. Inform. Theory, vol. 18, pp. 170-182, Jan. 1972. 4. G.D. Forney, Jr., "Generalized minimum distance decoding", IEEE Trans. Inform. Theory, vol. 12, pp. 125-131, April 1966. 5. M.P.C. Fossorier and S. Lin, "A unified method for evaluating the error-correction radius of reliability-based soft-decision algorithms for linear block codes", IEEE Trans. Inform. Theory, vol. 44, pp. 691-700, March 1998. 6. F. Kossen, "Performance analysis of limited-trial Chase decoders on the Rayleigh fading channel", M.Sc. Thesis, Delft University of Technology, May 2002. 7. R.M. Pyndiah, ''Near-optimum decoding of product codes: block turbo codes", IEEE Trans. Comm., Volume 46, pp. 1003-1010, Aug. 1998. 85 BCH(15.7.5) AWGN ... Chase3 ...... Chase TO- T5 ...... Chase TO- T3 g w ~ III 10" 10~0~--~--~------~2-------L3------~4------~------~6 SNR per bit ol inlomla_ 1ransmilled [dB] Fig.2. Simulated bit error probability results for the Chase-like decoders with test sets {to, t2, t4} (Chase 3 decoder), {to, ts}, and {to, ts}, all in case of a binary (15,7,5) BCH code, BPSK signaling, and transmission over the AWGN channel. Ravleq1 BCH(15.7,5) 10~7~--~7.5~--~B----B~.5~--~9--~9~,5--~1~0--~10~,5~~1~1---1~1~.5--~12 SNn per tktöf "dulnIllW'I uan5lMIeCf lèIBl Fig. 3. Simulated bit error probability results for the Chase-like decoders with test sets {to, t2, t4} (Chase 3 decoder), {to, t3}, and {to, t5}, all in case of a binary (15,7,5) BCH code, BPSK signaling, and transmission over the Rayleigh fading channel. 86 Symmetric codes over rings André Barbé, Fritz von Haeseler Departement Elektrotechniek (ESAT-SISTAjCOSIC) Kasteelpark Arenberg 10 B 3001 Leuven {Andre.Barbe,fvanhaes}@esat.kuleuven.ac.be Abstract. Shannon suggested to investigate a binary multiplying chan- nel and asked for a maximal uniquely symmetric code. Motivated by his example, we define a Shannon set for an arbitrary ring. We investigate the Shannon sets for the rings lF~xn, n E N, and the rings ZTn= Zj(mZ) for mEN. 1 Introduction In 1961, Shannon [3] formulated the following problem. Two terminals, Tl and T2, wish to communicate over a binary multiplicative channel. To this end, they choose a set X ç {O, I} n, the set of input vectors. If ;!;., Y E X are input vectors, then the output vector is given by !f = (Zi)i=l, ... ,n = (XiYi) (the usual product of natural numbers). Each terminal should be able to determine uniquely the vector transmitted by the other terminal on the basis of its own vector and the output vector. Since both terminals are using the same set X the set is called a symmetric code. Shannon's question was to deterrnine the possible sets X and to find a set with highest possible cardinality. A subset X with this property is called uniquely decodable. This problem and its generalizations have been studied by several authors, see e.g., [1,4] for more references. We can reformulate Shannon's question in a ring theoretic setting. We con- sider {O, l }" as the ring R = Z;" i.e., the n-fold product ofthe ring Z2 = Zj(2Z). Then Shannon asked to find a subset X c t: such that for all given x, Y E X the knowledge of x and xy allows to find Y E X uniquely, or, vice versa, a knowledge of Y and xy allows to determine x E X uniquely. This subset X is then said to have the unique decomposition property. In this paper we shall study Shannon's question for arbitrary rings R. We introduce the notion of a Shannon set of a ring '1{. A Shannon set of a ring R is a subset with unique decomposition property and of maximal cardinality. After some preliminary definitions and some general observation we will study the rings lF'~xn and Zm in more detail. In particular, we shall prove that the ring lF'~xn has a unique maximal Shannon set, namely the set of invertible matrices. The situation is different for the ring ZTn. We shall prove that the units of Zm form the unique Shannon set if gcd(m, 6) = 1. The remaining cases are discussed in detail and the number of different Shannon sets is computed. 87 2 Shannon sets of a ring From now on R denotes a finite ring. For r E R and a subset A c R we write rA as abbreviation for the set {ra I a E A}. The cardinality of A is denoted as lAl· Definition 1. A subset X of R has the unique decoding property if IrXI = IXrl = lXI holds for all rEX. In case R is commutative a subset has the unique decoding property if lxXI = lXI for all x E X. Note that Definition 1 is equivalent to Shannon's problem. If terminal Tl knows x E X and xy, then it can determine y. The same holds for terminal T2 and its knowledge of y E X and xy. The set of all subsets of R having the unique decoding property is denoted X(R). If x E R, then {x} E X(R). Without proof we state some elementary properties. LeIIlIIla 1. - If X E X(R), then any subset of X has the unique decoding property. - IfXI, X2 E X(R), then x, nX2 E X(R). - IfRI and R2 are rings then X(R1) x X(R2) C X(R1 X R2). The relation C defines a partial order on X(R). It is therefore meaningful to speak of maximal elements of X(R). The number max{IXII X E X(R)} is called the Shannon number of the ring R and is denoted by X(R). The set X E X(R) is called Shannon set of the ring R if lXI = X(R). In particular, Shannon sets of R are maximal. On the other hand, of course, not every maximal element of X(R) is a Shannon set. The following lemma provides a lower bound for the Shannon number of a ring. LeIIlIIla 2. IfR* denotes the set of units of the ring R, then X(R) ~ IR*I. The proof is obvious. As the ring (Z2)n shows, this estimate can be very poor. In fact, we have only one unit and large sets with the unique decoding property, see e.g. [4]. If a finite commutative ring with zero and one has large Shannon sets, then it is already a field, as shown by Theorem 1. Let R be a finite commutative ring with 0 and 1. The ring R is a field if and only if x(R) = IRI- 1. Proof If n is a field then there is nothing to show. If X(R) = IRI - 1, then for any r 1= 0 the map t; : R \ {O} -+ R, x I-> rx, is injective. Now suppose that there exist r , sER \ {O} such that rs = O. We compute r(s+ 1) ~ rs+r == r·1 and conclude that due to the injectivity property of l; it follows either s + 1 = 0 or s + 1 = 1. If s + 1 = 0, then it follows that r = 0 and if s + 1 = 1, then it follows that s = 0; this is a contradiction to our assumption. Therefore any map t; restricted to R \ {O} is injective with image R \ {O}, thus R is a field. 88 • We conclude the section with some examples. 1. For m ~ 2 we define a ringstructure on {O, ... , m-I} by using the addition mod m and the multiplication is given by TS = 0 for all T, s. The thus defined ring has Shannon number 1. Any T =1= 0 defines a Shannon set {T}. 2. For m ~ 2 we define a ringstructure on {O, ... , m-I} by using the addition mod m and the multiplication is given by OT = TO = 0 for all T and Tl = IT = Tand TS = 0 for all other possibilities. The thus defined ring has Shannon number 2 and any two different elements T, s in {I, ... ,m - I} define a Shannon set {T, s}. 3. If n = Z~, then a Shannon set is given by {(O, 1, 1), (1,0,1), (1, 1, O)}. 3 The ring lFnxn q In this section, we study the ring of matrices over a finite field of characteristic p, where p is a prime number. We will show that for rings of this type there exists only one Shannon set. Theorem 2. Let n = lF;xn be the ring of n x ri-matrices with entries in the field Fq of characteristic p. The set Cl(n, IF) of invertible matrices is the only Shannon set of lF;xn. Proof The set Cl(n,lFq) of invertible n x n-matrices has the unique decoding property. The cardinality of Cl(n,IFq) is given by n;~~(qn - qj). Now suppose that XE x(w;xn) is such that lXI> ICl(n, IFq)l. Then X contains at least one matrix A such that A rt Cl (n, lFq). If we consider A as a linear map from the lF«: veetorspace IF; to itself, then A (IF;) is an at most (n - 1)-dimensional subspace of lF;. This gives that the cardinality of the set AlF;xn = {AB I B E IF;xn} is smaller than or equal to qn(n-l). On the other hand, A E X and therefore IAXI = lXI. This yields ICl(n,IFq)1 = n;~~(qn - qj) < lXI = IAXI :::;qn(n-l), which is a contradiction. • 4 The ring Z'Tn In this section we study the residue class rings ZTn = Z/(mZ), where m is a natural number. Theorem 3 shows that X(ZTn) = cP(m), where cP is Euler's totient function, see e.g. [2]. Moreover, we give a complete list of all possible Shannon sets of ZTn. Theorem 3. If n = ZTn' then the set of units Z;;' of ZTn is a Shannon set. We begin with an auxiliary Lemma and some notation 89 Lemrna 3. If 1 < P2 < P3 < ... < PL are natural numbers, then L < IT ~_PL, j=I PJ Pj where equality holds if and only if j = Pj for all j = 2, ... ,L. The function 1, such that d < "'(:)' then X n Z'TTl(d) = 0. Proof Let d be the largest proper divisor of m such that Z'TTl(d) n X i= 0 and let dl = 1 < d2 < ... < dK -1 < d« = d be all divisors of m less than or equal to d«. By 1., it follows that d« < "'(:)' If rn" = lcm (dl , ... ,dK) denotes the least common multiple of dJ, ... , d«, then we can write L m = m" ITpfim', i=l where PI < ... < PL are the prime divisors of m* and the prime divisors of m' are all greater than d« . 90 By 1. we have that Let y E X n Zm.(d). Since X is a Shannon set, it follows that which implies U z.; K rjJ(m) < U Zm.(gcd(dKdj, m)) (dK gcd (dj,:;:; ITpfim')) . j=1 J=1 .=1 This can be estimated by where ó runs over the divisors of ;; I1f=1pfi. Using Euler's totient function rjJ, we obtain the inequality Since the sum is over all divisors of ;Z; I1f=l pfi, we obtain the inequality * L rjJ(m) < rjJ(m'); ITpfi K i=1 and with rjJ(m) = ; (m* I1~=1pfim') = rjJ(m*) I1~=1pfirjJ(m') we obtain the final inequality m* rjJ(m*) < dK) or, d« < q,~.). Since Pt < ... < PL are the prime divisors of m* there exists a jo E {l, ... ) K} such that djo = PL :s dK and thus we have m" L Pj PL IT p' _ 1 :s d« < rjJ(m*) = J=1 J which is a contradiction to Lemma 3. Therefore we can conclude that no proper divisor d of m exists such that X n Zed) # 0. • 91 We are now prepared to finish the proof of Theorem 3. By 1., we have X ç Zm(dt} U ... U Zm(dM), where dM is the largest divisor less than m/(m). By 2., it follows that X ç Zm(I) which contradiets our assumption lXI> (m). This completes the proof of Theorem 3. Theorem 4. If gcd(m, 6) = 1, then Z;' is the unique Shannon set of the ring • z.; Proof If X is a Shannon set different from Z;', then there exists a largest non- trivial divisor d of m such that X n Zed) ie- 0. Due to our above observations from the previous proof, d has to satisfy d :::::",(r:.). Following the arguments given in 2. of the proof of Theorem 3, d also satisfies m* d<-- - (m*)' where m" is the lowest common multiple of all divisors of m which are less than or equal to d. If PI < ... < PL denote the prime divisors of m*, then we have that * L PL - < d < _!!!._ = - (m*) IT _!!j_ . P - 1· J=1 1 Since gcd(m, 6) = 1, we have 4 < PI < ... < PL and Lemma 3 implies L Pj IT ~(m*) - - - (m*)' where rn" = lcm (dl , ... , dK = d) and PI < ... < PL are the prime divisors of m", By Lemma 3, it follows that the prime divisors of m" may be either PI = 2 or PI = 2 < P2 = 3. This implies that XnZ"1(d) ie- 0 is only possible for d = 2,:l, for natural numbers m such that gcd(m,6) ie- 1 the existence of a unique Shannon set depends on divisibility properties of m w.r.t. 2 and 3. Theorem 5. Let m = 2 3f3m' Q such that a, (3 E Nand gcd(m', 6) = 1. 1. If a = 0 and (3 2: 1, then ZeI) is the only Shannon set of Z171. 92 2. If a 2: 3 and f3 2: 0, then Z(I) is the only Shannon set of ZTn. Proof 1. A Shannon set X different from ZTn(I) satisfies X n ZTn(3) # 0. For f3 = 1 and for d E X n ZTn(3) we have the inequality (m) = IdXl S; Id(Z17l(1) U ZTn(3))I = IZTn(3)1, which yields (3m') = 2(m') S; (m'); a con- tradiction. For f3 2: 2, the assumption d E X n ZT11(3) leads to the inequality (m) = IdXl S; Id(Zm(l) U Z17l(3))1 S; IZ711(3) U ZT11(9) I which gives (313) S; (313-1) + (313-2). This is a contradiction. 2. We start with f3 = 0, i.e., m = 20(m) = lXI = IdXl S; IZ17l(3) U Z711(6)I, which gives the inequality (2° 3) S; (2°) + (2°-1), which yields 4 S; 3 - a contradiction. Thus we conclude that X satisfies X n Zm(3) # 0. For d E XnZm(2) we obtain dX c ZT11(2) uZTn(4), which yields the estimate being not true for all a 2: 3. Finally, we consider f3 2: 2, i.e., m = 2'" 313. Then the assumption d E Xn Zm(3) leads to the inequality which is equivalent to 6 S; 3 + (m') different Shannon sets of Z7n' 3. If 0: = 2, then there exist 24>(m')+ 1 different Shannon sets of Zm. Proof 1. We begin with the case f3 = 0, i.e., m = 2m'. A Shannon set X has to be a subset of Zm(I) U Zm(2) and we write X = XCI) U X(2), where XCi) = X n Zm(i), for i = 1,2. Note that IZm(2)1 = IZm(I)1 = 4>(m). Since 2Zm(2) = Zm(2), it follows that Z,.,,(2) is a Shannon set. Moreover, the map Zm(2) :3 dl--> d + m' E Zm(I) is bijective. Let X be a Shannon set. If d E X(2), then d2 E dX and therefore d + m' being an element of Zm(I) is not an element of XCI); otherwise we would have ~ = d(d + m'). Thus we see that XCI) = Z7n(I) \ (X(2) + m') and X = (Zm(I) \ (X(2) + m'» U X(2). On the other hand, if Y is any subset of Zm(2), then (Zm(I) \ (Y + m') uY is a Shannon set. The assertion follows from IZm(2)1 = 4>(m'). Now suppose that m = 2 . 3f3m', where f3 ;::: 2. A Shannon set X is a subset of Zm(I) U Z7n(2) U Zm(3) and we write X = XCI) U X(2) U X(3), where XCi) = XnZ(i), i = 1,2,3. If « X(3), then we must have that 4>(m) = IdXI :::; IZm(3) U Zm(6) U Z7n(9)1. ä We therefore obtain the inequality which is impossible. This shows that X c Zm(I) U Zm(2) and an application of the same arguments as above gives the desired result. 2. For m = 6m', where gcd( m', 6) = 1, we have the following facts - Zm(I) = Zm(2) + 3m'. . - Zm(I) = (Zm(3) + 2m') U (Zm(3) + 4m') and (Zm(3) + 2m') n (Z1n(3) + 4m') = 0. - IZ7n(I)1 = IZm(2)1 = 24>(m') and IZ7n(3)I = 4>(m'). As before, we have X = XCI) U X(2) U X(3). If X(3) = 0, then the arguments ° of 1. for f3 = apply and we count 224>(7n')Shannon sets. If d E X(3), then XCI) does not contain d + 2m' and d + 4m', since ~ = d(d + 2m') = d(d + 4m'). Moreover, if d' E XCI), then there exists ( E Z1n(3) such that either d' = (+ 2m' or d' = (+ 4m'. On the other hand, for d E X(3) we have that dd' = d«( + 2m') = d«( + 4m'). I.e., if d' = (+ 2m.' E XCI), then (+ 4m' If. XCI) and vice versa. We conclude that IX(I)I :::; 4>(m') - IX(3)1. On the other hand, we have that 24>(mf) = IX(I)I + IX(2)1 + IX(3)1 :::; 4>(m') + IX(2)1· Therefore IX(2)1 ;:::4>(m'). If d' E Z7n(2), then either d' + 2m' E Z7n(2) or d' + 4m' E Z7n(2). In any case it follows for d E X(3) and d' E X(2) that either dd' = d(d' + 2m') or 94 dd' = d(d' +4m'). Therefore IX(2)1 :s (m').By our above inequality, it follows that IX(2)1 = (m'). Finally, if d' E X(2), then d' + 3m' ~ X(I), otherwise d'd' = d'(d' + 3m'). This gives that X(I) = Zm(l) \ «X(2) + 3m') U (X(3) + 2m') U (X(3) + 4m'». On the other hand, for a given non-empty subset Y(3) of Z(3) and a subset Y(2) C Z(2) such that IY(2)1 = (m') and such that for given dl, d2 E X(2) dl i= d2 mod 2m', we define Y(I) as in the above formula (replace X by Y). Then Y(I) U Y(2) U Y(3) is a Shannon set. This gives 24>(m')(24>(m') - 1) Shannon sets if X(3) i- 0, plus the number of Shannon sets in case X(3) = 0 gives a totalof 224>(m')+1 - 24>(m') Shannon sets. 3. Let m = 4· 3/3m', where gcd(m',6) = 1. As a first step we consider the case f3 = 0, i.e., m = 4m'. We have that IX(I)1 = 2IX(2)1 = 2jX(4)1. Moreover, since the map Zm(2) 3 x 2x E Zm(4) is bijective, it follows that Zm(2) has the f--+ unique decoding property. The map Zm(I) 3 x X + 2m' E Zm(I) f--+ is bijective. If X = XCI) U X(2) is a Shannon set such that X(2) i- 0, then s E X(I) implies s + 2m' ~ XCI); otherwise we would have for d E X(2): ds = des + 2m'). This shows that IX(I)1 :S (m'). Since X is a Shannon set, it follows that IX(2)1 = (m'),i.e., X(2) = Zm(2), and IX(I)I = (m').Note that XCI) is such that (X(I) + 2m') n X(I) = 0. Let Y c Zm(1) be such that (Y + 2m') n Y = 0, then Y U Zm(2) is a Shannon set. This gives 24>(m') Shannon sets. Since Zm(I) is also Shannon set, the assertion follows. As a next step we consider m = 12m', where gcd(m',6) = 1. A Shannon set X is a subset of Zm(1) U Zm(2) U Zm(3). If we assume that there exist d E X(3), then we arrive at the inequality (12):S (4)+ (2),a contradiction. Thus we conclude that X C Zm(I) U Z7n(2) and apply the arguments for the case m=4m'. The case m = 4 . 3/3 for f3 2: 2 is treated in a similar way. The assumption X(3) i- 0 leads to a contradiction. Thus X C Zm(I) U Z7n(2) and we can use the same arguments as in 1. for f3 = o. • References 1. R. Ahlswede, N. Cai, Z. Zhang. On Interactive Communication, IEEE Trans. In- form. Th., Vol. 43., No. 1, Jan. 1997, 22-37. 2. G.H. Hardy, E.M. Wright. An Introduction to the Theory of Numbers, 5th edi- tion, Oxford Clarendon Press, 1979. 3. C.E. Shannon. Two-way communication channels, Proc. 4th Berkeley Symp. Math. Stat. and Prob., 1961, 611-644. 4. L. Tolhuizen. New rate pairs in the zero-error capacity region of the binary multiplying channel without feedback, IEEE Trans. Inform. Th. Vol. 46, No. 3, 2000, 1043-1046. 95 Sum Capacity of the OCDMA /OCDMA Signature Sequence Set with Unequal Power Constraints Frederik Vanhaverbeke and Marc Moeneclaey TELINIDIGCOM,Ghent University, Sint-Pietersnieuwstraat 41, B-90oo Gent, Belgium fv@telin.rug.ac.he Abstract. In this paper, the sum capacity of the OCDMAJOCDMA (DID) sig- nature sequence set is investigated when the users of the two orthogonal sets are allowed to have a different average-input-energy constraint and with perfect synchronization of the users. It is found that the sum capacity is dependent on the load and the respective SNR only, but independent of the choice of the or- thogonal sets. For a fixed total power and when the power constraints of the two user sets are allowed to he different, it is shown that the sum capacity of the DID system can he made arbitrarily close to the sum capacity of the Gaus- sian Multiple Access Channel. 1 Introduction It is well known that imposing the structure of direct-sequence spread-spectrum Code- Division Multiple Access (CDMA) on transmitted signals, in general yields a capacity loss as compared to the Gaussian Multiple-Access Channel (GMAC) [1]. Denoting by N and K the spreading factor and the total number of users of the CDMA system re- spectively, in the non-saturated channel (K N, it was found that if none of the users is oversized, some generalized version of the WBE sequences can be found that maxi- mizes the capacity, so that there is no capacity loss as compared to the GMAC. How- ever, in contrast to practical CDMA systems, the chips of the (generalized) WBE sequences in general do not take values from a simple (e.g., binary) alphabet. An additional drawback is the lack of scalability of the (generalized) WBE sequences, making them not useful for any system with a dynamically changing number ofusers. In [4], the present authors introduced a synchronous channel oversaturation scheme consisting of at most 2N sequences belonging to two different orthogonal sets, i.e., the OCDMAJOCDMA (OIO) sequence set. For a number ofusers K= N+M, seal- 97 ability of the system is achieved very easily by assigning to the first Nusers (set-I users) the sequences of the first orthogonal set. The remaining M (~ N) users (set-2 users) are assigned sequences from the second orthogonal set. When N is a power of 2, both orthogonal sequence sets are easily constructed from binary-valued chips. In this original concept, all users are assigned the same power, but this was extended in [5], where the users ofthe first orthogonal set have four times the power ofthose from the second orthogonal set. . In this paper. the sum capacity of the O/O-system is investigated, when all users are synchronized in time and where set-I and set-2 users can have a different average input energy constraint: SNR s SNRA and SNR s SNRB respectively. 2 Sum Capacity In CDMA Consider a symbol-synchronous CDMA system over a non-dispersive channel where the receiver observes the sum of transmitted signals embedded in additive white Gaus- sian noise w(t). The output of the multiple-access channel under consideration is given by the real-valued 1 signal ~ K (1) r{t)= LLAkbk(i)sk(t-iT)+w(t) i=l k=1 In this expression, • Ak denotes the amplitude of user k. • Sk(t)is the unit norm signature waveform ofuser k, defined as N Sk(t) = I/S)j,kP{t - jT / N) k = 1,...,K i=v with (p(t-iTIN),p(t-jTIN) = Oij. We denote the signature matrix by S = [SI ... sKl. • (w(t),sk(t-iT» = wk(i) is Gaussian with zero mean and variance c:l- NoI2. • The data of each user k are encoded into a codeword (bk(l), ...•~(n» of length n with symbol rate lIT and E[bk2(i)] ~ 1. Denoting by Plc the code rate (bits per period T) of user k, there exists a K- dimensional capacity region ct> c 9t K (9t is the set of real numbers) for which each set of rates p = (PI •...• P K ) within this region can be achieved with the BER of every user going to zero if n tends to infinity. The sum capacity Csum over ct> is defined as: K (2) <: = max LP; pe ;=1 I For quadrature orthogonal modulation, the resulting capacity is twice as large as for real-valued sym- bols. 98 With R denoting the KxK. crosscorrelation matrix of the signature waveforms (i.e. R = ST.S), P denoting the diagonal power matrix, defined as P = diag{SNR" ... , SN!4} (with SNRFA?/cr), and IK denoting the identity matrix of order K, it was shown in [6], [2] that the sum capacity in bits/symbol period of this channel is equal to: (3) The spectral efficiency llcDMA = Csum CDMAIN represents the total number of bits per chip that can be transmitted without error. Since the bandwidth of the CDMA system is (roughly) equal to the reciprocal ofthe chip duration TIN, llcDMA can be interpreted as the maximum bandwidth efficiency of the system. If none of the amplitudes Ai is zero, we can rearrange (3) as 1 KIK (4) 1JCDMA = -Llog2 (SNR; )+-Llog2 (It;) 2N ;=, 2N ;=1 with À.; (i = 1,... ,K) the K (strictly positive) eigenvalues ofQ = P-' + R. We denote the spectral efficiency of the particular sequence set that maximizes (4) for power matrix o P and K users as llcDMA . On the other hand, the output of the GMAC, with the same bandwidth and the same signal power as (1), and its spectral efficiency (bits per TIN) are given by [1]: r(t) = ~n ~ KA .IN b, (i)p(t - iT I N) + w(t) ~ 1JGMAC [1 K = C N ~ SNR; ) (5) with C(x) = (1I2).log2(1+x). It always holds that llcDMA ~ llcDMA 0 ~ llGMAC. We summarize the results obtained in [3]: • ~ N : orthogonal sequences maximize llcoMA. We have that llcDMA 0 < llGMAc, unless K = N and SNR,= ... = SNRK. • K ~ N: there exist sequence sets (i.e. generalized WBE sequences), so that llcDMA 0 attains llGMAC only if no user is oversized", 3. Spectral Efficiency of the OIO Sequence Set In order to evaluate (4) for the OIO signature set, we need the eigenvalues ofQ = (P-' + ST.S). In the OIO system, S = [S,IS2] where SJ = raJ ... aN] and Sz = [Pl··· PM] are two orthonormal sets. We assume that SNR for every user within one set is the same, so that SNRk = SNRA for k = 1,... , N and SNRk = SNRB for 2 For the exact meaning of oversized users, see [3). 99 k = N+l •... ,K. In appendix, we prove that the spectral efficiency for the OIO system under these power constraints is given by TJgj)~ = (1-~ )C(SNRA)+ ~ .C(SNRA + SNRB) (6) Conditioning on a fixed average SNR and fixed (N,M) with M 0 and llCDMA OIO reaches its maximum for (SNRA,SNRB) = «l+M/N}ö, 0). At this maximum, the sys- tem actually reduces to a system with N orthogonal users only and there will be no loss in overall capacity as compared to the GMAC. On the other hand. ifM = N or M = 0, d(llcDMAo/~/d(SNRN = 0, and once again the sum capacity will be equal to that of the GMAC since the sequences are generalized WBE sequences, satisfying S.p.ST = (SNRéSNRB).IN = 21'}.IN. 4. Relative Performance Loss 4.1 Relative performance: % vs. GMAC For the same power distribution as above, the spectral efficiency of the GMAC is: (7) 100 -2 -1 o 2 3 4 5 6 7 8 9 SNR_AlSNR_B (dB) Fig. 1. Maximum performance loss ~max over r. In order to evaluate the spectral efficiency of the OIO system, for a particular (N,M,SNRA,SNRB), we introduce relative performance loss ~ =l-TlcDMAo/o/TlGMACA.B, where TlGMACA.B and TlCDMA OIO are given by (6) and (7) respectively. Note that for a fixed average SNR and fixed spreading factor N, so that N.SNRA + M.SNRB = (N+M)e, TlGMACA.S is independent of (SNRA,SNRB), while TlCDMA OIO is strongly de- pendent on the choice (SNRA,SNRB). It is clear that ~ depends on (SNRA,SNRs) and channelload KIN only. This implies that for a particular (SNRA,SNRB) and channel load, the sum capacity is independent of the relationship between the two orthogonal bases involved. Moreover, no gain in sum capacity of the OIO set can be achieved by extending the chip alphabet beyond binary. The maximum relative performance loss ~max has been calculated as a function of y = SNRA/SNRs in figure 1, over region r = {(K/N,sNRA): 1 s KIN:$ 2, OdB:$ SNRA:$ 20dB}. As we can see from figure 1, ~max decreases sharply with increasing y. For EAE (SNRA=SNRs)' ~ = 2.4%, but for the system in [5] tt= 6dB), ~ .... has shrunk to 0.26 % only. So, it is clear that the loss in sum capacity as compared to the GMAC has become negligible for this system. Evaluation of ~ over the entire region F, learns that à is reached in (K/N;SNRA) .... = (1.4;2dB), (1.45;3dB) and (1.5;3.8dB) for y = -2dB, 3dB and 9dB respectively. For a fixed y, ~max is reached for every value SNRA at the same load and decreases for loads away from this maximum. Beside this, for a fixed y, ~max is reached for every load at the same value of SNRA. In figure 2, the relative performance loss is shown for the load KIN E [1,2], 't= -2dB, OdB, 6dB and SNRA = 2dB, 5dB and IOdB. 101 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2 load KIN (%) Fig. 2. Relative performance loss for "(= -2dB, OdB, 6dB and SNRA = 2dB, 5dB, lOdB. 4.2 Relative performance loss: OIO vs. optimal sequences It is easily verified in the OIO system that no user is oversized if and only if SNRB :5 SNRA/(l-MIN). If "(~ I, no user is oversized and generalized WBE sequences exist that show no loss in capacity as compared to the GMAC for that power distribution. From figure I, we see that in this case, the OIO set will perform worst at "(= OdB with dmax = 2.4 % only. If "( < I, for values MIN < I-SNR,JSNRB = (M/N)ma/, all set-2 users are oversized. In that case, if we want to assess the performance of an OIO se- quence set, we have to compare to the optimal sequence set because of the unavoid- able loss in sum capacity for any spread system. For MIN < (MIN)max'Y, the spectral efficiency of the optimal sequences (12) with the same power distribution as above is A.B :: 110pt (1- )c( M N " SNRA 1- M I N î+ I, MN .C{SNR \i B ) (8) Over region r' = {(KIN,SNR~: 1 :5 KIN:5 l+(MIN)max'Y, OdB :5 SNRA:5 20dB}, the maximum relative performance loss of the optimal sequences and of the OIO sequence set is shown in figure 3 as a function of "(. From this figure, we can see that the OIO sequences are quite suboptimal when the M users from the second set are oversized. 102 For low values ofy, the additionalloss in maximum relative performance loss is about 6% for the % sequences as compared to the optimal sequences. 5 Conclusions In this paper, we investigated the sum capacity of a set of users with signatures from the OIO-type. If the set-l users are assigned a higher power than the set-2 users, the sum capacity of the % set can be made arbitrarily close to the upper bound, imposed by the GMAC. Even under the EAE constraint. the sum capacity of the % set is only marginally inferior to the optimum WBE sequence set. At the other hand, making the power of the set-2 users higher than that of the set-I users drastically reduces the sum capacity of the % system. When the set-2 users are oversized, significant perform- ance loss is incurred by the % system. References I. T.M. Cover and lA. Thomas, Elements ofInfonnation theory. New York: Wiley, 1991. 2. M. Rupf, J.L. Massey, "Optimum Sequence Multisets for Synchronous Code-Division Mul- tiple-Access Channels," IEEE Trans. Infonnation Theory, vol. 40, pp. 1261-1266, July 1994. 3. Viswanath and V. Anantharam, "Optimal Sequences and Sum Capacity of Synchronous COMA Systems," IEEE Trans. Infonnation Theory, vol. 45, pp. 1984-1991, September 1999. 4. F. Vanhaverbeke, M. Moeneclaey, H. Sari, "DS/CDMA with Two Sets of Orthogonal Spreading Sequences and Iterative Detection," IEEE Communications Letters. vol. 4, pp. 289-291, September 2000. 5. H. Sari, F. Vanhaverbeke and M. Moeneclaey,"An Excess Signaling Technique with Coding, Signal Superposition and Joint Detection," Globecom 2001, November 2001, San Antonio. 6. S. Verdu, "Capacity Region of Gaussian COMA Channels : The Symbol-Synchronous Case," in Proc. 24th Annu. Allerton Con! Communication, Control. and Computing, Oct. 1986, pp. 1025-1039. 7. S. Verdu, Multiuser detection, Cambridge University Press, New York 1998. 8. S. Verdu, S. Shamai,"Spectral Efficiency of COMA with Random Spreading," IEEE Trans. Info., vol. 45, pp. 622-640, March 1999. 103 ~ 251-------------~-------~--·- --~.----------~-.----------. ~ (/) ~20 ~ c: ct! Eo 15 't: Q) Q_ Q) ~ 10 ~ E ê 5 -~ E -8 -7 -6 -5 -4 -3 -2 -1 SNR_AlSNR_B (dB) Fig. 3. Maximum relative performance loss for oversized users. Appendix Recalling that SI and S2 are orthonormal sets, and putting X == lISNRA, e == I/SNRs: Q =[0+ X)IN BT (l+e)IM B] (I) with B = S)T.S2. Note that S),SIT=IN and S2T,S2=IM, so that BT.B=IM. The eigenvalues of Q are the solutions Ä. to the problem Q.e= À.e with e = [e) . _. eKl;toO. Let e)=[ e) _.. ~] and e2=[ ~+) ••• eK], the problem can be reformulated as Q.[e 1] = A[e 1] <=> {O; X - À}r + B.c 2 = 0 J (IT) e2 e2 B .e1 +(1+e-A)2 =0 Elimination of el from the two e~uations in (II) yields 2 (.1. -(2+ X+£).1_+(z+£+ X'£»)?2 =0 (Ill) Expression (Ill) implies that, if ez;t:O,there are two eigenvalues: Al =1+(z+e)/2+~I+(z-e'f /2 (TV) Az = 1+ (z +£ )/2 -~1 + (z -e'j /2 On the other hand, if e2 = 0, the first equation of (IT) yields Ä.3 = 1+X. Note that Ä.3 ;toÄ.I and Ä.3 ;to Ä.2 for every (x,e) E 9\2. We investigate these three possible eigenvalues separately and determine the associated eigenspaces. 104 A. It = It, Since 1.., *- (I+X), the first equation of (ll) implies e, = B.e2/(À.,-I-X), while (lIl) is met for every vector e2' This means that the multiplicity of 1.., is M. A(i) denoting the ith column of A, we can choose the following set of M orthonormal eigenveetors with eigenvalue 1.." spanning the eigenspace, associated with 1..,: E; ..!, _ - c--2 1 [ (i) B(;) 1J i = 1,...,M with a, = (À.,-l-X) (V) vl+a~ alI~ Analogously to the case It = It,, the following set of M orthonormal eigenveetors with eigenvalue 1..2, span the eigenspace, associated with 1..2, but now with a2 = (À.z-l- X): ~ _ 1 [B(;) l i=l, ...,M (VI) E; - m ~l+ai a2I~J C e2 = 0, It = 1t3 The second equation of (11) requires B T.e, = 0, implying that e, has to be orthogo- nal to the column space of B. The rank of B is M, so that (N-M) linearly independent vectors e, can be found, satisfying this condition. Denoting s~ = fIlM+l .,. PN] so that [S2IS2C] is an orthogonal matrix, we can choose for e, the ith colum of S,T.S/. This means that the eigenspace, associated with 1..3, is spanned by the (N-M) eigenvee- tors : i = 1,...,N-M (VII) It is easily verified that all proposed eigenveetors form an orthonormal set, and that the sum of all dimensions of the eigenspaces is K = N + M. So, we have found the complete set of eigenvalues of Q. Expression (6), can now be rearranged to 0/0 1 {~N M (1 1 \M 1] CDMA = -log 2 ~ïVR A .SNR B . ~'1./"2} .1!.3N-M) (VIII) 2N After substitution ofthe eigenvalues and regrouping ofthe factors, we obtain (6). 105 Error control coding for wireless personal area networks Desset Claude IMEC vzw - DESICSjWISE Kapeldreef, 75 - B-3001 Leuven - Belgium Phone: +32 16 28 11 63 e-mail: desset@imec.be A bstract not offer all the required services and is not power- efficient. Wireless Personal Area Networks will become a key Flexibility and integration of different applica- component in the 4G picture, and they have to be tions require innovative solutions. Moreover, the designed under very low power constraints. This development of low-power and low-cost systems is calls for high-performance channel coding strategies, of paramount importance in order to enable a in order to reduce the transmit power. However, widespread use of such devices. Battery-operated considering only coding gain without taking digital sensors should be able to run for a very long time power into account will lead to a biased view on this with the cell energy. Limiting the transmitted power problem. In order to reach the global power opti- is also a way to reduce interference between differ- mum, this paper considers two components. Ana- ent devices. This low power requirement strongly log power is estimated through a link budget analy- constrains design choices if we want to tackle all the sis for typical WPAN scenarios, while digital power objectives. is estimated by considering the complexity of chan- In a search for minimal power, the consideration nel encoder and decoder, and the consumption of of coding gain is of prior importance. However, the their implementation in 0.18 J.lm CMOS technology. limited energy budget also constrains error-correction This enables a power-efficient selection between vari- implementation, and we can only consider codes of ous block and convolutional/turbo coding strategies. limited complexity. In order to find the lowest-power Hamming codes and short constraint length convolu- solution, we have to consider both transmitted ana- tional codes appear to be valuable candidates, and log power and digital computation power consumed even turbo-codes in some situations, despite their by the encoder and decoder, which can be of huge higher decoding complexity. importance and ruin the coding gain. If we consider a link budget for such applications, we find required transmitted energies between 100 pJ 1 Introduetion and a few ,..tJ per bit (which is no more a low-power Wireless communications are moving towards seam- system). On the other hand, dedicated hardware usu- less connectivity in dynamically evolving environ- ally consumes between 0.1 and 10 pJ per eperation ments. This will require a cooperation between het- (logic, arithmetic or memory access). This gives an erogeneous networks and systems, known as the 4G idea. of the complexity allowed for channel coding and picture. Part of this picture consists in Wireless decoding: in order to provide 1 dB of coding gain, Personal Area Networks (WPANs1) [1]. This con- some 100 to 1000000 operations can be executed. cept covers short-range connectivity between devices Obviously, the situation also depends on whether we consider a symmetric link between power-constrained closely linked to a given user: mobile phones, lap- tops, PDAs, but also smaller devices like health sen- nodes or only a power-constrained transmitter. sors. Other applications such as home automation In power-limited applications, specific information- are also foreseen. Bluetooth is for the moment the theoretic results and codes are used. Simple tech- best-known WPAN system [2], but it certainly does niques such as majority-decoding can be rediscovered and find a natural application, e.g. through the use of 'WPAN is a registered trademark of the IEEE Reed-Muller codes. They will be compared to Reed- 107 Solomon codes of similar decoding complexity. Con- • unconstrained power case: 3 J.LJ /bit volutional codes of short constraint length are also Note that we have limited the "very low power" considered. case to 300 pJ /bit even if values below were pos- This paper proposes a strategy to select error- sible according to the link budget, as the front-em correcting codes for WPANs. In section 2, we identify consumption will become much more significant thar the specific constraints related to the WP AN environ- the transmitted power in this low power region. Thir ment, focusing on power issues. Different scenarios also means that for lower-power design, coding be- are considered. We also present power estimations comes useless and may even worsen the situation dm for computational operations used by coders and de- to bandwidth expansion. coders in a state-of-the-art technology. Section 3 The range of variation is large, but as the com- discusses various classical families of error-correcting plexity of error-correcting codes also spans severa codes, and insists on the complexity of related algo- orders of magnitudes, it can be interesting to see ho" rithms in order to derive their power consumption. different the solutions for high-power and low-power Section 4 combines the results of the two previous WPAN are. sections, and enables a code selection for minimal Having an idea of the analog power, we can now power WPANs. Finally, section 5 concludes this pa- estimate the digital part. This will be done in twc per. phases, first considering the power consumption 0 basic digital cells, and then analyzing the complex- 2 Requirements of WPAN s and ity of coding and decoding algorithms, which will be available technology done in section 3. 2.1 WPAN link budget 2.2 Power consumption in available tech- nology In this section, we try to quantify the transmit energy required per bit, using typical system parameters for In order to study the power consumption related te WPAN communications. As many of these parame- channel coding and decoding, we have to get infor- ters are not easy to estimate, we provide a range for mation about the basic components used. Due to the several of them, with a minimal value correspond- continuous evolution of microelectronics, we have te ing to very low power design and a higher value for consider what is achievable in current technologies ir WPAN terminals with more available power. The order to enable a quantitative analysis. We will con- following elements determine the link budget: sider figures for 0.18 I-'m CMOS which can be con- sidered as state of the art, even if the move towards • path loss: 53 dB (5 meters at 900 MHz) - 66 dB 0.13 and below has already begun. The supply volt- (10 meters at 5 GHz) age is assumed to be 1.8 V. We should keep in mint • noise floor: -114 dBm/MHz the fact that variations of one order of magnitude Ol more with respect to these figures are possible. • bandwidth efficiency: 1.5 bit/s/Hz (QPSK with Technology libraries provide the following average typical roll-off) energy consumptions: 0.15 pJ for logical gates (2 te 4 inputs), 0.3 pJ for a I-bit adder, 0.25 pJ for a 8- • required Eb/No: 5 - 10 dB (without coding) output buffer, 0.4 pJ for a flip-flop, 0.2 pJ for ar • noise factor and matching loss: 5 - 8 dB inverter. OthPT more specific cells could oêadvanta- geously used, but achieving a fully optimized desigr • attenuation margin (fading, walls, ... ): 10- is above the scope of this paper. 30 dB Design practice provides values a bit higher, tak- • front-end efficiency: 20 - 80% ing into account various overhead terms such as line loading and fan-out. Consumptions closer to 1 pJ pel With these sets of parameters, we can compute the operation are reported for logical gates, and a few p, average energy required per bit: for flip-flops (frequently used as shift registers, whid are basic building elements of many channel coden • very low power case: 300 pJ /bit and decoders). A I-bit full-adder also consumes mort • typical case: 15 nJ /bit power, being built out of 6 gates (but not all of then 108 are toggling at the same time). Multipliers are made Having these values in mind, we can then compute of adders, usually in a number equal to the product of the power consumption of channel encoders and de- the two word lengths. A last important component is coders. This will be done in the following section. We memories, and studies show that RAM accesses may will assume that all information bits are available ei- burn up to 15 pJ per read or written bit, for sizes of ther in a buffer memory - with an additional write several hundreds of words [3). plus read cost of at least 20 pJ /bit - of sequentially A few derivations can lead to the power consump- in a shift-register, according to what best suits the tion of other basic operations used in channel en- decoder. coders and decoders. An example is Galois-field com- putations. In GF(2m), different representations of numbers are possible. The simplest one is to use 3 Complexity and performance of m-bit words with standard addition. Multiplication error-correcting codes becomes the bottleneck, and will generally be im- plemented through a look-up table (LUT). On the In this section, we will derive coding gain and dig- other hand, using a representation based on powers ital power consumption for various classical error- of a primitive element, the multiplications becomes correcting codes. We will successively consider Ham- the easiest operation and addition the complex one. ming, Reed-Muller, Reed-Solomon, convolutional Other possibilities are available, such as polyno- and turbo codes. The idea is to see whether they mial representations. An interesting implementation can be implemented in a power-efficient way, in or- is based on Zech's logarithms. With the help of some der to be used for WPAN applications. polynomial manipulations, it enables the implemen- Complexity of encoders and decoders is only pro- tation of addition with a 2q-inputs (instead of q2) vided through numbers of operations, but numerical look-up table (q = 2m), used on the average m/2 values and comparisons will appear in section 4. times, while multiplication is simply achieved by a m-bit adder. 3.1 Hamming codes We finally have to derive the power consumption of a LUT (or ROM) of a given size, say m entries As a fust example, we consider simple Hamming (and one output). Design practice leads to an energy codes, in their systematic form. The encoding is sim- close to m nJ per reading operation, after synthesis ply achieved by directly implementing the part of the optimization. generator matrix related to parity bits. Counting the As the idea is to compare the complexity of dif- number of ones in a row of the generator matrix for ferent coder implementations in a real system and a (2m -1,2m _ m _ 1) code, this leads to a total of not to get an accurate estimation of the power con- m(2m-l_ 2) XORs for the encoder. This is a bit more sumption, reasonable approximations based on the than m/2 per information bit, e.g. 1.5 for m = 3, 2.2 presented figures will do the job, provided they are for m = 4 or 4.1 for m = 8. This implementation self-coherent. The following values will be used in can be easily synthesized. Note that above the few order to compute the digital power: logical operations, data accesses are required, in total m(2m-1 _ 1) reading operations. In order to avoid • logical gate (ind. inverter): 0.4 pJ/op the large power consumption of memories, we con- sider a hard-wired encoder simply accessing the data • flip-flop: 2 pJ /write from registers in which they have to be stored. This • n-bit adder: 1.5n p.I/op reduces the cost to one register storage operation per bit. • n-bit multiplier: 1.5n2 pJ/op Hamming codes have the advantage of a very small bandwidth expansion, and yet they can provide a sig- • RAM: 10 p.l /read or write (for 1 bit) nificant coding gain, given in table 1. Note that long Hamming codes have an asymptotic gain approach- • m-input ROM (LUT): m pJ/read (for 1 bit) ing 3 dB, but this gain is only observed at very high • GF(2m) addition: 2.5m(m + 1)/2 pJ/op Eb/No· Decoding Hamming codes is very simple. First, we • GF(2m) multiplication: 1.5m pJ/op have to compute the syndromes, which can be done 109 Code length Gain at 10 '5 Asymptotic gain Encoding such codes is simply achieved by a m 7 0.45 dB 0.58 dB bit counter, m AND gates, and m XOR gates, ev- 15 1.16 dB 1.66 dB erything being clocked 2m times to encode (m + 1. 31 1.45 dB 2.24 dB bits [4]. With 4 logical gates per counter bit, we ge 63 1.52 dB 2.58 dB the following number of logical operations per en- 127 1.47 dB 2.76 dB coded information bit: 6 m 2m / (m + 1). Considering 255 1.35 dB 2.87 dB that on the average, 2 bits of the counter, one of the AND gates, and half of the XOR gates will toggle Table 1: Coding gain provided by various Hamming at a given instant, we can derive a lower estimate 0 codes (hard-decoded), either at a BER of 10-5 or at the consumed power: (m/2 + 9) 2m /(m + 1). Table ~ asymptotically low BER (very high Eb/No). provides numerical values. Code length Effective ops Total ops 8 21 36 simply byencoding the received systematic bits and 16 35 77 comparing the obtained parity bits to the ones re- 32 61 160 ceived from the channel. This is achieved through 64 110 329 m additional XOR operations with respect to the en- coder, m flip-flops to hold the results, and m-I ORs Table 2: Number of operations consuming power in order to find whether there was an error. If the compared to the total number of executed operatioru syndrome is non-zero, the simplest way to decode is for Reed-Muller encoding. through a kind of m-input LUT, generating minterms for all the possible combinations of input bits. Each possible output will be linked to one of the informa- In order to avoid high memory-reading cost, WE tion bits, leading to its inversion if the corresponding consider as for Hamming codes that information bits syndrome has been detected. are present in flip-flops, and hence can be read with- Note that error-correction will not occur for each out a significant power overhead. These numbers 0 received word. Assuming a target BER of 10-5 with operations per bit are significantly higher than for a (63,57) code (which is the best at this BER), we Hamming codes, and this partly comes from the fact easily find through the channel BER that only 1% that the code rate is rather low, and that all the bits of the words will need some correction. That means have to be encoded, as the code is not systematic. that this part of the decoding power is negligible, and Decoding is achieved through the use of a Fast we can conclude that encoding and decoding have Hadamard Transform. Reed-Muller codes have the more or less the same consumption. However, we will big advantage that complete decoding comes at the consider n additional memory storage operation for same price as bounded decoding. This provides the the decoder, as bits coming from the receiver front- following coding gains at 10-5: end first have to be buffered. The cost of reading • m = 4 (16,5) => 0.59 dB the data is neglected, assuming that the system is hard-wired without need of a memory controller. • m = 5 (32,6) => 1.27 dB • m = 6 (64,7) => 1.81 dB 3.2 Reed-Muller codes Using the Fast Hadamard Transform, the core ol Reed-Muller codes are well known for providing goon the decoder i3 lll...ue uf sn stagt'js, with a structure pèrtormance (only a little less than long BCH codes) based on shift registers, butterflies achieving basic at a very low cost thanks to simple majority de- Hadamard decomposition, and control logic in order coders. This is especially true for first-order Reed- to steer the bits [4]. The first stage needs 2m I-bit Muller codes, of length 2m, dimension m+ 1 and min- shift register storage operations and 2m full additions imum distance 2m-1. For m between 3 and 6, they in- or subtractions (with 2-bit output). The second re- clude a (8,4,4) extended Hamming, and other codes quires 2m+l 2-bit shift register operations and 2m 2- of characteristics (16,5,8), (32,6,16) and (64,7,32). bit input 3-bit output additions, and so on, ending We can already see that one problem with these codes with 22m-1 m-bit shift register operations and 2m m- is their rather large bandwidth expansion. bit arithmetic operations. Above that, some control 110 logic is required in order to send each bit to the good also in the way bits are mapped onto symbols. How- place. ever, this is less critical in the ease of non-binary Above the Hadamard transform, we also need codes, as the decoding process itself already modifies 2m - 1 (m + I)-bit comparisons between the values symbols without taking into account the way they obtained, coupled with 2m - 1 (m + I)-bit switches are coded on bits. in order to select the largest element. A few ad- The decoder classically begins by computing the ditional operation can provide us with the decoded syndromes. This can be achieved by a FFT at the word, mainly m 2m logical XORs. places originally filled with zeros, leading to 2tn mul- This short complexity analysis gives us an idea of tiplications and 2t( n -1) additions. The second stage the decoding power consumption. We get a total is to compute the coefficients of the error-locator of (m - 1)22m shift register I-bit storage operations, polynomial. Using the Berlekamp-Massey algorithm, (m + l)(m + 2)2m-1 I-bit arithmetic operations, and this is done in 2t steps. In a LFSR interpretation, about m 2m+2 logical operations. All this is used in step i begins by shifting k times a recursive register of order to decode m + 1 bits. The decoding power is ri/21 taps (computed at the previous stage). The last dominated by shift registers. It could be reduced by output is compared to the ith syndrome element. If designing a more complex decoder. they differ, the temporary error-locator polynomial is A significant advantage of Reed-Muller codes is the updated, according to an auxiliary polynomial. This ability to move to a soft decoder. Essentially, we only polynomial also has to be updated, using previously have to replace binary operations in the Hadamard computed data (for a deeper description of this algo- transform by soft computations, or at least finite pre- rithm, refer to [5, 4]). cision. Most of the gain can be obtained by adding The complexity of step i can be computed as fol- 3 bits to all computations, i.e. beginning with 4-bit lows: kri/21 multiplications (and memory read-outs words in the first stage and ending with (m + 3)-bit of the polynomial coefficients), as well as k( ri /21 - 1) words. The complexity increase is rather low, with an additions, all these operations being run in the Galois addition of 3 22m shift register operations, 32m I-bit field; ri/21 multiplications and additions for the first arithmetic operations, and 32m+2 logical operations. polynomial update, and ri/21 divisions (equivalent With soft decoding, the coding gain is strongly in- to multiplications) for the second. creased. Simulations provide a coding gain at 10-5 of The roots of the error-locator polynomial are then 3.3 dB for the (32,6,16) and 3.7 dB for the (64,7,32). computed, in order to find the positions of errors. Even a shorter (16,5,8) code becomes attractive, with This is generally achieved by a Chien search, enabling a gain of 2.6 dB. the evaluation of the polynomial over the 2m elements of the Galois Field. This is done in nt multiplications and additions. 3.3 Reed-Solomon codes Finally, error values are computed and added to Reed-Solomen codes are one of the most popular fam- the received word. The error magnitude polynomial ily of error-correcting codes, due to their good per- is computed in (t + 1)(2t + 1) multiplications and formances for a reasonable decoding complexity. Bi- t(2t + 1) additions. Each error value is then com- nary BCH codes are also rather popular, but they puted according to the Forney algorithm in some 5t will not be considered in this paper (except Ham- multiplications and 3t additions. ming codes), as Reed-Solomon codes achieve better Using this non-systematic implementation, and performances for a given complexity. Various encoder considering Reed-Solomon codes selected for their architectures are possible, but we will consider an ef- coding gain, we reach values of 1.89 dB with a ficient "frequency-domain" design, simply using all (15,9,7) on GF(16), 2.70 dB with a (31,19,13) on inverse FFT (in a Galois field) of the k information GF(32), and 3.27 dB with a (63,41,23) on GF(64). symbols padded with 2t zeros. Note that a systematic implementation would bring The cost of this encoder is kn Galois field multi- up an improvement of 0.15 to 0.2 dB. plications and (k - l)n additions. In order to get an efficient design, we can directly work with Zech's 3.4 Convolutional codes logarithms, without converting the symbols into log- arithmic domain. This will lead to a non-systematic Besides block codes, convolutional codes also have to implementation, not only in the classical sense, but be considered as candidates. We will determine the III complexity of convolutional encoders and decoders shifts in the shift register bank, as soon as the con for codes of constraint length between 3 and 7, and straint length is above 6 or 7. rate 1/3 or 1/2, selected from tables of "best known codes" [4] and presented in table 3. The gains they 3.5 Turbo codes enable are rather high, between 3.3 and 4.8 dB at 10-5, while short constraint lengths should keep their We can obviously not end this review of possibl complexity low enough for WPANs. coding techniques without considering turbo codes However, even if their very good performances ar, Rate K Polynomials well known, we can expect a prohibitive complexit 1/2 3 5 7 for our strongly power-limited application. 1/2 5 23 35 As a matter of fact, we can consider that 6 itera 1/2 7 133 171 tions lead to results close to ML decoding. Each it 1/3 5 25 33 37 eration requires a forward and a backward recursion and it is generally admitted that both of them ar Table 3: Parameters of convolutional codes consid- twice as complex as a simple Viterbi. This leads to l ered in this study. This table provides the rate, con- rough estimate of 24 times the complexity of a Viterb straint length, and generator polynomials given in decoder for the same constraint length. The turb: octal form. The encoders are non-systematic and encoder energy consumption is computed by addin; non-recursive. one memory operation per bit to the correspondin, convolutional encoder, to take the interleaver into ac The convolutional encoder is extremely simple. For count. a code of rate I/n and constraint length K, we only Above this first estimation, we base our analysis Ol need a (K - I)-element shift register, and on the av- a power and latency optimized implementation of : erage nK/2 logical XORs, which leads to a very low turbo coder and decoder [6]. If we select the bes power consumption (see table 4). parameters in order to maximize the coding gain The Viterbi decoder is obviously more demanding. we can reach a BER of 10-5 for an Eb/NO valu One significant part is related to the storage of infor- of 2.9 dB with rate 1/2 and 2.5 dB with rate 1/3 mation sequences corresponding to surviving paths. This is about 0.5 dB above the theoretical values This is achieved through a bank of 2K-1 shift reg- which can be explained by factors such as the use 0 isters, of a length generally between 5 and 10 times finite-precision numbers. This implementations has l the constraint length. We will consider a length 8K very low power consumption of the order of 2 nJ jbi here. An implementation based on "trace-back" en- for .18 J-Im CMOS [3]. This is in fact more than 1 ables the use shift registers without exchange of in- times less than the power consnmption estimated h formation between them, which is a heavy power- the previous paragraph, thanks to the in-depth opti consuming part of more simple decoders. The trace- mization of the decoder. back itself requires some logic, having to run 8K times a random access in the bank of shift registers, with a (K - Ll-bit counter and a (K - l l-bit reg- 4 Selection of error-correcting ister memory of the current trace-back state, plus codes in a WPAN context 2K -1 logic gates used to select the right element in the bank. In order to reduce this power-consuming In this section, we compare the different codes con stage, we will consider a block-based trace-back, out- sidered in three WPAN scenarios, i.e. very low power putting K bits at one trace-back cycle. This leaves a typical power, and unconstrained power, as they wer sufficient depth of at least 7K. presented in section 2.1. In all these cases, the digita Some arithmetic computations also have to be coding and decoding power is compared to the ana achieved, and we will assume 8-bit finite precision log power, and the resulting global coding gain (0 for the memory of cumulated path metrics. For each loss) is derived. The results of these comparisons ar new information bit, we have to compute n2K addi- provided in table 4. tions and 2K-1 comparisons (of similar complexity). The conclusions of this study on WPAN chanD€ Note that despite these computations, the algorithm coding selection are the following. First, for very lot power consumption will be mainly limited by data power systems, good-old Hamming codes are the onl, 112 Code Coding Energy (pJ /bit) Global gain (dB) Type Parameters gain (dB) Encoder Decoder Very low Typical Unconstrained (15, 11, 3) 1.16 3 25 0.77 1.15 1.16 Hamming (63, 57, 3) 1.52 3.5 29 1.08 1.51 1.52 (32, 6, 16) 1.27 25 1580 - 0.83 1.27 Reed-Muller (64, 7, 32) 1.81 44 6320 - 0.27 1.80 Reed-Muller (16, 5, 8) 2.6 14 736 - 2.4 2.6 (32, 6, 16) 3.3 25 2650 - 2.6 3.3 (soft) (64, 7, 32) 3.7 44 9920 - 1.5 3.69 (15, 9, 7) 1.89 106 305 - 1.77 1.89 Reed-Solomon (31, 19, 13) 2.70 267 632 - 2.45 2.70 (63,41,23) 3.27 632 1200 - 2.77 3.27 1/2, K=3 3.3 5 171 1.3 3.25 3.3 Convolutional 1/2, K=5 4.3 10 522 - 4.15 4.3 1/2, K=7 4.75 15 1790 - 4.26 4.75 1/3, K=5 4.5 11 714 - 4.3 4.5 Turbo (rate classical 7.1 18.5 9390 - 5.0 7.09 1/3, K=4) optimized 7.1 2000 - 6.55 7.1 Table 4: Comparison of error-correcting codes in terms of gain and power consumption, for three different WPAN scenarios - very low power (300 pJ/bit), typical power (15 nJ/bit), and unconstrained power (3 ~J /bit). All comparisons are done for a BER of 10-5, and a global gain is derived by combining the coding gain with the loss related to encoder and decoder consumption. ones we can afford. They lead to a global coding gain coding gains of 7 to 8 dB. Figure 1 gives a few on of 0.5 dB for a system working around 200 pJ/bit, the evolution of global coding gain with WPAN bit and soon reach 1 to 1.5 dB if a higher bit energy is energy. allowed. They also have the advantage of presenting a very limited bandwidth expansion, which can be an additional requirement for some systems. 8,---------~--------~--------~ __~ More efficient coding schemes can be used above 7 .·0 ..... 1 nJ /bit. The choice between soft first-order Reed- -Çl' .C? ... Muller codes and Reed-Solomon codes is not so obvi- 6 ous. Reed-Solomon codes tend to provide less coding gain for low-power implementations. On the other c: hand, despite their simple ML decoding, Reed-Muller ~4 codes still use quite a lot of power. Short constraint length convolutional codes are the best candidates. With a constraint length of 3, a coding gain of 3 dB can be obtained at 2 nJ /bit, and 4 dB are available at 10 nJ /bit with a longer constraint length. Starting from 10 nJ /bit, turbo-codes really become 103 184 1eS the best alternative. In our study, they even provide System energy (pJlbit) the best coding gain at 2 nJ /bit, but we should take into account the fact that we use a power-optimized Figure 1: Global coding gain achieved by using dif- implementation, which is not the case for other codes. ferent codes, as a function of the transmit bit energy Depending on the decoder optimization,S to 6.5 dB for a WPAN application. of coding gain can be achieved at 15 nJ /bit, and if we move towards 100 nJ or 1 ~J /bit, we will reach 113 5 Conclusions Future-generation wireless networks. IEEE Personal Communications, 8(5):10-17, October In this paper, we have investigated the way to reduce 2001. the power consumption of wireless personal area net- works thanks to the use of channel coding. Consider- [2] Per Johansson, Kazantzidis Manthos, Rohit ing the power levels achieved in such systems and the Kapoor, and Mario Gerla. Bluetooth: An en- consumption of channel encoders and decoders, we abler for personal area networking. IEEE Net- have seen that channel coding can effectively reduce work, 15(5):28-37, September 2001. the power consumption. The opposite conclusion was [3] Bruno Bougard, Alexandre Giulietti, Liesbet found in some prior literature [7], but this seems to Van der Perre, and F. Catthoor. A class of power be related to their hypothesis of low-efficiency front- efficient VLSI architectures for high speed turbo- ends: whatever the transmitted power, they consider decoding. submitted to Globecom'02, 2002. a fixed overhead of some 100 nJ /bit, which seems def- initely too high if we want to consider low-power ap- [4] Stephen B. Wicker. Error Control Systems f01 plications. Estimating the minimal power consump- Digital Communication and Storage. Prentice- tion per bit for the front-end is a crucial issue: it Hall,1995. gives rise to a threshold below which coding becomes useless, as the transmitted power becomes negligible. [5] E. R. Berlekamp. Algebraic Coding Theory. In our case, considering applications with different McGraw-Hill, 1968. average bit energies ranging from 100 pJ to 10 nJ /bit, [6] A. Giulietti, B. Bougard, V. Derudder: we successively recommend, Hamming coding, short S. Dupont, J.-W. Weijers, and L. Van der constraint length convolutional coding, and in the . Perre. A 80 Mb/s low-power scalable turbc end turbo coding. These results hold for symmetric codec core. In Custom Integrated Circuit: systems, for which both encoding and decoding are Conference (CICC), Orlando, FL, USA, May achieved in the transmitter and receiver. In more 2002. specific situations, like "sensor networks" with low- power nodes sending information to a central higher- [7] Eugene Shih, Seong-Hwan Cho, Nathan Ickes, power receiver, we can use even more efficient codes, Rex Min, Amit Sinha, Alice Wang, and Anan- as the decoders will not be as critical any more. tha Chandrakasan. Physical layer driven proto- Finally, we would like to mention a few facts that col and algorithm design for energy-efficient wire- have not been considered in this paper. First, se- less sensor networks. In MOBICOM 2001, 7tl quential decoders for convolutional codes could be Conference on Mobile Computing and Neiuiork- considered. Even if they are suboptimal, their re- ing, Rome, Italy, July 2001. duced complexity enables the selection of codes with longer constraint lengths, meaning that the resultant coding gain should be explored. Secondly, the fading character of wireless channels has not been consid- ered, except through a power margin. If the fading is fast enough to enable good averaging through inter- leaving, coding solutions will become even more ap- pealing that what was found here. As a last remark, some applications may be strongly constrained not only in power, but also in bandwidth. This is proba- bly not the case for WPANs, but ifwe want to extend our analysis to such situations, trellis-coded modula- tions could be a possible solution. References [1] Magnus Frodigh, Stefan Parkvall, Christiaan Roobol, Per Johansson, and Peter Larsson. 114 Frame-reordered multi-temporal motion estimation for scalable MPEG Stepban Mietens", Peter H.N. de With2, and Christian Hentschelê 1Eindhoven University of Technology, EES!, Eindhoven, The Netherlands 2CMG Eindhoven / Eindhoven University of Technology, The Netherlands 3Philips Research Labs., Eindhoven, The Netherlands Abstract. The applicability of MPEG video coding can be improved by scaling the resource usage, considering the desired application and the device that is going to be used. For this purpose, we present a new resource-scalable motion estimation technique, based on a flexible three-stage process. This process involves frame processing in display order independent of GOP structures and approximation of MPEG motion-vector fields using multiple references. Quality refinements are optional, giving a flexible framework with a large scalability range (with a factor of 14) of computational effort and memory bandwidth usage, resulting in different picture-quality levels or bitrates. Experiments show that in high-quality operation, the new method slightly outperforms a full-search motion estimation with a search window of 32 x 32 pixels, although it is based on a recursive block matcher that has only a fraction of the complexity of a full-search block matcher. For e.g. mobile applications with power constraints, the computational effort can be further reduced by at least 43% compared to a single-pass recursive block matcher, at an expense of a slight increase of the bitrate (0.013 bits/pixel). 1 Introduction Internet-based applications (e.g. video conferencing), portable television applications and mobile consumer terminals impose variable video quality requirements on the system architecture. These requirements can be exploited for scaling the algorithmic complexity of the applications (such as MPEG coding), while accepting a certain quality 1088 under circumstances as indicated below. Firstly, a part of the available general-purpose computation power of a TV can be saved on-the-fly to be able to perform other tasks in parallel by request. Secondly, when using small displays in e.g. mobile devices, the observer cannot perceive fine details that are contained in the complete video signal. However, for such devices, still a full and thus costly processing of the video is performed. In this paper, it is our objective to design a scalable MPEG encoding system, featuring scalable video quality and a corresponding scalable resource usage [IJ. Such a system enables advanced video encoding applications on a plurality of low-cost or mobile consumer terminals, having lim- ited resources (available memory, computing power, stand-by time, etc.) as compared to high-end computer systems or high-end consumer devices. Note that the advantage of scalable systems is that they are designed once for a whole product family instead of a single product. A computationally expensive corner stone of an MPEG encoder is motion estimation, which is used to achieve high compression rates by exploiting the temporal redundancy. The search of motion vectors in t.hp. motion estimation process requires significant computational effort, because large temporal distances between reference frames lead to large search areas. We have found considerable savings in computation and introduce scaling by performing an initial motion estimation with the video frames at the entrance of the encoder. This estimation is exploited to efficiently derive the desired motion vector fields needed for the final MPEG encoding process. Furthermore, the quality of full-search motion estimation can be obtained with an optional refinement stage. The paper is organised as follows. Section 2 gives a brief introduetion to the motion estimation process and Section 3 adresses the problem statement. Section 4 presents a new technique to per- form motion estimation with considerable savings in computational effort and memory bandwidth for resource-constrained applications. Section 5 shows experimental results and Section 6 concludes the paper. 115 2 Motion estimation for MPEG coders Successive frames of a video sequence have a temporal correlation that is utilised for video data com- pression, by sending frame differences instead of complete frames to the decoder, saving bandwidth and/or storage space. Motion in video sequences introduced by camera movements or moving oir jects result in high spatial frequencies occuring in the frame-difference signal. A higher compression rate is achieved by flattening these spatial frequencies using motion estimation and compensation techniques. Figure 1 shows the basic architecture of an MPEG encoder. Fig. I. Basic architecture of an MPEG encoder. The motion estimation process in MPEG systems divides each frame into rectangular macro- blocks (16 x 16 pixels each) and computes motion vectors per block. A motion vector signifies the displacement of the block (in the x-y pixel plane) with respect to a reference image. For each block, a number of candidate motion vectors are examined. For each candidate, the block under test in the current image is compared with the corresponding block fetched from the reference image, displaced by the motion vector. After testing all candidates, the one with the best match is selected. This match is usually done on basis of the sum of absolute differences (SAD) between the current block and displaced block. The collection of motion vectors for a frame forms a motion vector field. The MPEG coding standard defines three different types of frames, namely 1-, P- and B- frames, where I-frames are coded without any temporal reference, thus as completly independent frames. P- frames are based on motion estimation using one temporal reference, namely the previous reference frame. The motion between the reference frame and the P-frame is called forward motion. B-frames are based on motion estimation that can use both backward and forward motion, hence they can also refer to the upcoming reference frame. Reference frames are 1- and P-frames. Since B-frames refer to future reference frames, they cannot be (en/de )coded before this reference frame is received by the (enjde)coder. Therefore, the video frames are processed in a reordered way, e.g. "IPBB" (transmit order) instead of "IBBP" (display order). Notations For ease of discussion, we form subgroups of pictures (SGOP) that have the form (I/ P)BB ...B(I j P) within a group of pictures (GOP) according to the MPEG definition and we refer to Figure 2. The number of pictures within a subgroup k is denoted by Mlr, analogous to the prediction depth M of a GOP, and can vary from SGOP to SGOP. The MPEG forward vector-field, which is used in the prediction of the ith frame of the SGOP, is denoted by n. The MPEG backward vector-field is denoted by b:. Arbitrary vector fields are denoted by (Xm -+ Xn) for the forward case and (Xm +- Xn) for the backward case, indicating motion between frame Xm and Xn with n > m. To indicate the frame type of X, it can be replaced by I, P, or B. In this paper, we discuss motion estimation in terms of entire vector fields, rather than the individual motion vectors. 116 subgroup 1 subgroup 2 ~~ 10 B1 B2 B3 P4 B5 B6 B7 Pa ... ~ : 3 ~ "!4 : t 3 t .. ~ : •• i 'f ! t:l ~ I 4, I t "i-i I , I ' ... ! I • ~B,hj(ri~) i < )< M, Fig. 2. Example of vector fields used for motion estimation in MPEG encoding after defining a GOP structure. In this example, a GOP with a constant M = 4 was chosen. 3 Problem statement A large number of algorithms has been proposed for reducing the computational effort of a full- search motion estimation. The algorithms make a trade-off between complexity and the quality of the computed vector fields. When compared to full search, popular algorithms like New Three Step Search [2] and Center-Biased Diamond Search [3] provide a good quality of motion vector fields at low cost. However, the accuracy of the motion vectors is limited for fast motion in the video sequence. Further reduction of the computational effort is achieved by using recursive motion estimation (RME) [4][5]that derives candidate motion-vectors from previously computed motion vectors in both the current motion vector field (eo-called "spatial" candidates) or the previous motion vector field (so-called "temporal" candidates). Currently, the usage of RME algorithms is limited to a fixed GOP structure with M = COTlBt. Only the vector field fkt is used once for the computation nr of the next field and without modification. A more sophisticated approach for motion estimation is presented in [6], featuring a two-step estimation process and enhanced vector-field prediction. The first step of this approach is a coarse RME to estimate forward vector-fields. The second step uses the vector fields computed in the first step as prediction and performs an additional RME. Vector fields used for prediction are scaled to the required temporal distance. The problem of the aforementioned algorithms is that a higher value of M increases the pre- diction depth, which implies a larger frame distance between reference frames, thereby hampering accurate ME. Furthermore, the algorithms do not provide sufficient scalability. For these reasons, we introduce a new three-stage motion estimation that works not only for the typical MPEG GOP structures, but also for more general cases. Furthermore we introduce a new technique called multi-temporal ME. These new techniques give more flexibility for a scalable MPEG encoding process. 4 New three-stage motion estimation Temporal candidate motion vectors play a key role within our new technique for ME. For this reason, we propose the usage of RME (which is based on block matching), since such algorithms make use of temporal candidates and provide a good prediction of the current motion in a video sequence at low cost. It is obvious that the prediction quality improves with a smaller temporal distance D, where the parameter D denotes the difference between the frame numbers of the considered frames. Therefore, we commence with estimating the motion using the minimum temporal distance IDI = 1, which results in an accurate motion estimation that can be performed at low computational effort. Since 117 a common MPEG GOP structure has M > 1 and thus some of the required vector fields have D > 1, we consider this as a first stage to derive a prediction of vector fields. In a second stage, these predicted vector fields are used to calculate the required vector fields according to the MPEG standard. In a further stage, the vector fields can be refined by additional- although simple - motion vector refinement. This concept results in a new motion estimation process that is carried out in three stages as follows. - Stage 1. Prior to defining a GOP structure, we perform a simple RME for every received frame Xn and compute the forward motion-vector field (X,,_l -t Xn) and then the backward field (Xn-l i- Xn). For example, in Figure 2 this means computing vectors like If and b~,but then for every pair of sequentia! frames. - Stage 2. After defining a GOP structure, all the vector fields F E {J, b} required for MPEG encoding are approximated by appropriately accessing multiple available vector fields FA and FB and combine them using the linear relation F = a * FA + fJ * FB' (1) where the scaling factors a and fJ depend on the processed fields to obtain the correct temporal distance needed for F. For example, IJ = ff+(B1 -t ]h) (see Figure 2), thus having a = fJ = 1. Note that a and fJ become different if the frame distances change or when complexity scaling is applied (see below). - Stage 3. For final MPEG motion estimation in the encoder, the computed approximated vector fields from the previous stage are used as an input. Beforehand, an optional refinement of the approximations can be performed with a second iteration of RME. Architecture Figure 3 shows the architecture of the three-stage motion estimation embedded in an MPEG encoder. Note that the amount of memory needed for the new architecture is the same as used for the architecture shown in Figure 1, except for the additional motion vector memory. The amount is the same because the entrance frame memory for Stage 1 can be integrated with the memory for the reordering process. With respect to the additional vector memory, the following can be said. The memory needed to store a vector field is negligible compared to the memory consumption of a video frame. For comparison, the vector needs only 2 bytes, whereas a macroblock contains 256 bytes (luminance only). Fig,3. Au,WIie(."turè dt an MPEG encoder with the new scalable three-stage motioD estimation. Let US now discuss several aspects of the architecture. - The initial motion estimation process in Stage 1 is performed on succeeding frames, which have a temporal distance of 1. Furthermore, Stage 1 uses original frames, without quantisation errors. For these reasons, the RME results in higher quality prediction based on accurate motion vector fields. 118 - Stage 2 can optimally choose a GOP structure by e.g. analysing the computed motion vector fields. For example, if motion occurs in a sequence, the first frame that is followed by (almost) zero motion can be defined as a reference frame. - With Equation (1), Stage 2 introduces a new concept called multi-temporal ME. It means that the computation of a vector field results from combining two other vector fields (see example in the description of Stage 2) and/or the total prediction is based on various vector fields (as follows). We define the computations using various vector fields as a "motion model". Note that such a motion model is independent of the initial stage of motion estimation, e.g. in our case recursive block matching. For example, an affine motion estimation would simply lead to more accurate motion vector fields. A prediction based on various vector fields can be used for high-quality appllcations to approach different motion models like real velocity, acceleration, zoom, rotation, etc. To give an example of multi-temporal motion estimation for an object with constant motion speed, we predict a motion-vector field Î by specifing the motion model "most recent velocity" by (2) Note that besides our framework, any state-of-the-art motion estimation algorithm can be improved by using multi-temporal vector-field predictions. This implies that a higher number of predictions are generated for the computation of one vector field. - Stage 3 is intended for high-quality applications to reach the quality of a conventional MPEG motion estimation algorithm by refining the motion vectors that are approximated in Stage 2. - Figure 3 indicates a central memory for motion vectors that is available for all three stages. The advantage of this central memory is that it can be used in combination with multi-temporal motion estimation to enhance the vector-field predictions. As indicated in the example pre- sented in Equation (2), the selection of vector fields for a further vector-field prediction is not limited to vector fields that are found within the current SGOP, but also to the previous SGOP (e.g. the use of b~~, in Equation (2». - The three stages are decoupled from the actual coding process and are connected with each other via the central motion-vector memory. This concept leads to a flexible usage of the three- stage motion estimation, where within an SGOP, the stages can be processed in sequence or in parallel. The main advantage of the proposed architecture is that it enables a broad scalability range of resource usage and achievable picture quality in the MPEG encoding process. This is illustrated by the following statements. - Stage 1 can omit the computation of vector fields (e.g. the backward vector fields) or compute only significant parts of a vector field to reduce the computational effort and memory. - The effort for computing a vector field can be reduced in all stages if a constant motion velocity is measured in the current video stream. - The set of motion vectors that are refined in Stage 3 can be limited to significant parts of a vector field to save computations and memory accesses. Ifthis refinement is omitted completely, the new technique can take advantage of further reduced computational effort, because the processing of vector fields in Stage 1 and 2 is much simpler than motion estimation itself when applied to frames with a large temporal distance. 5 Experiments and results The flexible scalable motion-estimation technique introduced in Section 4 gives a good opportunity for quality and computational scaling. The results of a proof-of-concept experiment using the 119 "Stefan" sequence (tennis scene) is shown in Figure 4, based on a GOP size of N = 16 and M = 4 (thus ''lBBBP'' structure). We use the RME taken from [4] (limited to pixel-search) in Stage 1 and 3 because of its simple design. Note that the RME for this proof-of-concept does not yet take advantage of the reduced temporal distance during the initial stage at the entrance of the encoder. In this experiment, the scaling of complexity is introduced by gradually increasing the vector field computations in Stage 1 using the order h, 12,h, 14, bs,~, blo and then the same order was used for the vector field refinements in Stage 3. The area with the white background shows the scalability of the quality range that results from downscaling the amount of computed motion-vector fields. Each vector field requires 14% of the effort compared to a 100% simple RME based on 4 forward vector fields and 3 backward vector fields when going from one to the next reference frame. If all vector fields are computed and the refinement Stage 3 is performed, the computational effort is 200% (not optimised). SNR of ..... onatruc:tecI .... me. with dlffe .. nt computation effort 31 29 zr .,25 ;-23 ili 21 19 17 -- 15 Zl ~ ~ W ~ ~ W ~ _ ~ ~ Fig. 4. SNR of reconstructed B-frames of the "Stefan" sequence (tennis scene) with diHerent computational effort, P-frames are not shown for the sake of c1earity (N = 16, M = 4). The percentage shows the different romputational effort that results from omitting the computation of vector fields in Stage 1 or performing additional refinement in Stage 3. The average SNR of the reconstructed P- and B-frames (taken after motion compensation and before computing the differential signal) of this experiment and the resulting bitrate of the encoded MPEG stream is shown in Figure 5. Note that for comparison purpose, no bitrate control is performed during encoding and therefore, the output quality of the MPEG streams for all complexity levels are equal. The quantisation factors MQU ANT we use are 12 for I-frames and 8 for P- and B-frames. For a full quality comparison (200%), we consider full-search block-matching with a search window of 32 x 32 pixels. The new motion estimation technique slightly outperforms this full search by 0.36 dB SNR measured from the reconstructed P- and B-frames of this experiment (25.16 dB instead of 24.80 dB). The bitrate of the complete MPEG sequence is 0.012 bits per pixel (bpp) lower when using the new technique (0.096 bpp instead of 0.108 bpp). When reducing the computational effort to 57% of a single-pass RME, an increase of the bitrate by 0.013 bpp compared to the 32 x 32 full search is observed. 6 Conclusions We have presented a new scalable technique for motion estimation in MPEG encoding. The seal- ability can be exploited to reduce the computational effort over a large range making our system feasible for low-cost mobile MPEG systems. The motion-estimation technique has been split into 120 Resulting SNR and bitral8 for scaled computation effort Tl.,--------------------,0.170 26 .. , __ 0.160 25 +---~'..----------- --;;;==--Lj O.lSO , ~:+t:::::::::::::::=\~.~:::::::::;;;;;:;:;.....-~~~:::;;~~;;;;;;;;;;~; 22+ '~rc~~~~=----~I---SNR~B~P~}_ i~ <, _- - 0.1<10 :; 0.130 ~ +---,wL~-·'~'~-.~~~---~I·~~~~~~~~--~ ~ ~ ... ~! : +-----/-/------=,..ç-')Oo -. -_.-_--------I 0.110 18 - ~. 17+-~-,-~-r __ .-.- •.•.--4.......... ~_-~~_-~~~-~-+0.~ '-.. 0.100 complexly ofmotlon"""""n process Fig. 5. Average SNR of reconstructed P- and B-frames and resulting bitrate of the encoded "Stefan" stream at different computational efforts. A lower average SNR results in a higher differential signal that must be coded, which leads to a higher bit-rate. a precomputation stage and an approximation stage. Optionally, a refinement stage can be added to come to the quality of a conventional MPEG encoder (or even outperform it). In the preoom- putation stage, we used a simple recursive block matcher to find rather good motion estimates because the frames are processed in time-consecutive order. In the approximation stage, vector fields are scaled and added or substracted (thus having multi-temporal references), which is less complex than performing advanced vector searches. The computation of e.g. the backward motion estimation can be omitted to save computational effort and memory bandwidth usage. First experiments with the new method show that a full processing of our framework slightly outperforms a 32 x 32 full-search motion estimation when quality is compared. For comparison of the computational effort, we have used a simple recursive block matcher as a reference (note that this is a challenging comparison, because the algorithms are completely different). With a 12% increase of the bitrate, a reduction of 43% in computational effort is obtained, compared to a single-pass recursive motion estimation. The advantage of the proposed system is that it offers a large range in saving computational effort. In our experiments, the computational effort is scaled by a factor of 14, resulting in an average SNR range from 17.84 dB to 25.16 dB ofthe reconstructed p- and B-frames and a bitrate range from 0.164 bpp to 0.096 bpp, References 1. C. Hentschel et al.: Scalable Algorithms for Media Processing. IEEE Int. Conf. on Image Processing (ICIP 2(01) 3 (2001) 342-345 2. T. Koga, K. TInuma, A. Hirano, Y. Iijima and T. Ishiguro: Motion-compensated interframe coding for video conferencing. Proceedings NTC 81 (1981) C9.6.1-9.6.5 3. J.Y. Tham et al.: A Novel Unrestricted Center-Biased Diamond Search Algorithm for Block Motion Estimation. IEEE Trans. Circuits Systems Video TechnoL 8 (1998) 369--377 4. P.H.N. de With: A simple recursive motion estimation technique for compression of HDTV signals. IEE Int. Conf. Image Proc. and its Applic. (IPA'92) (1992) 417-420 5. G. de Haan et al.: True-Motion Estimation with 3-D Recursive Search Block Matching. IEEE 'frans. Circuits Systems Video TechnoL 3 (1993) 368-379 6. F.S. Rovati et al.: An Innovative, High Quality and Search Wmdow Independent Motion Estimation Algorithm and Architecture for MPEG-2 Encoding. IEEE Trans. Consum. Electron. 46 (2000) 697-705 121 Improvements of the Context Tree Maximizing (CTM) Data Compression Algorithm Andries P. Hekstra Philips Research, Eindhoven Abstract In (5), Volf and Willems studied a simplified version of the Context Tree Weighting (CTW) algorithm, called the Context Tree Maximizing (CTM) algo- rithm. The memory consumption of both CTW and CTM can be quite large. In [4], Willems and Tjalkens presented a memory reduction strategy which applies to both CTW and CTM. Here, we present a memory reduction strategy, which gives less compression loss than the method of [4]and for which a tradeoff between compression performance and memory complexity is possible. Next, we further improve the compression performance of CTM by considering the "on-the-fly" [5] model bits of CTM as a separate file, that can again be compressed with a K-T estimator. It turns out to be crucial to use a modified Krichevsky-Trofimov (KT) estimator with a short range memory. 1 Intraduct ion In 1995, Willems, Tjalkens and Shtarkov received the best paper award of the IEEE Transactions on Information Theory for their invention of the Context Tree Weighting (CTW) data compression algorithm. Using a recursive approach, they made the oth- erwise computationally infeasible averaging over all possible models computationally feasible. The fact that the CTW algorithm has not found practical applications yet - e.g. their is no WinCTW tool - is probably due to the following reasons. • As KPN holds two patents on essential implementation aspects of CTW [2, 3, 4], the inventors have been reluctant to share their source code. It requires quite some insight into CTW and arithmetic coding to write efficient CTW compression software. • Even with the available memory reduction strategies, including our improvement, the memory consumption e.g for files of 1 megabyte is still significant. • Most importantly, the compression/decompression time of CTW is orders of mag- nitude larger than that of the well-known Lempel-Ziv compression engines. The Context Tree Maximizing (CTM) algorithm [5], is a stripped down version of CTW. In all respects, CTM is simpler than CTW: 123 • CTM is conceptually simpler, • the software design complexity of CTM is lower, • the logarithmic probability representation patented by KPN [2] is not relevant for CTM, • the memory reduction strategy patented by KPN [3] can very well be replaced by our reduction stragegy, which is free for use, • due to the absence of numerically recursive computations, the compression time of CTM is smaller than that of CTW, • due to the fact that CTM makes the model explicit, the decoder does not have to build a full size tree, which makes the decompression time even smaller than that of the encoder. 2 A Node Memory Reduction Scheme which gives less Compression Loss Both the CTM and CTW encoders build a tree, in whose nodes counters and probability information is stored. Strategies to limit the number of nodes in the tree can be applied to both CTM and CTW. For the case of CTW, the decoder needs to use the same memory reduction scheme as the encoder. In the case of CTM, the decoder receives explicit instructions of the encoder about which subtree of the full encoder tree is applicable (by means of the so called "model bits"), so that the decoder can remain unknowledgeable of the encoder's memory strategy. 2.1 The a = 0 or b = 0 memory reduction scheme of Willems and Tjalkens [3, 4] Using common notation for context tree algorithms [1], let a denote the number of a's that has been observed in a given node of the tree. Similarly, let b denote the number of observed l's. If for a given node (i.e. a given context) a = 0 or b = 0, this means that the predicted bit, given that context, is deterministic, i.e. constant. Willems and Tjalkens used the intuition that if a given context can already generate perfect predictions, it seems meaningless to explore deeper contexts than the given context. They prevented a node for which a = 0 or b = 0 from getting child nodes. 2.2 Intuition behind the new strategy As stated in [3], it is not a new idea, to create child nodes whenever new contexts occur, and delete nodes later for some good reason. In fact, the only new aspect of our strategy is the criteria we use to select nodes for deletion. Tills criterion is that a + b is "small". More precisely, the criterion is that a + b < f(t) = t/lOOOOO,where t is the 124 (time) index of the byte to be compressed, t = 0,1, .... For instance, when we have compressed 1 megabyte, the criterion is a + b ~ 10. 1 2.2.1 For nodes with a small total count a + b, probability estimates are unreliable Consider the probability that the predicted bit will be a 0, as estimated by the K-T estimator (E = 1/2, Volf found that E = 0.15 gives better compression performance and obviates the need for a zero-redundancy estimator) [5), _ a+E Po = a+ b+2E' When the total number of occurences a + b of the given context is large, Po will be a reliable estimate. On the other hand when a + b is very small, the outcome of Po can be highly influenced by random fiuctuations, and is therefore unreliable. 2.2.2 Limitation on the memory consumption at the start of a file causes compression loss The memory reduction strategy of [3) prevents nodes from being created. Thus, when compressing a file, the growth of the number of nodes is slower, right from the very beginning. On the other hand, nodes for which initially a = 0 or b = 0, if they had been created, could later have had a > 0 and b > 0 and therefore might have contributed to the compression performance of the algorithm. Not creating such nodes carries a penalty in terms of compression rate. In contrast, our method always creates nodes, gives them some time to develop nonzero or "non-small" a + b, and e.g. once every 100000 symbols checks whether the nodes have become meaningful, and if not deletes them. It turns out this more permissive node creation strategy carries a lower compression rate penalty. 2.2.3 What counts for complexity is the maximum memory consumption What we see with our memory strategy, is that the number of nodes initially grows very rapidly, followed by a slow growth. Thus, the memory consumption at the start of compressing a file is much larger than with Willems and Tjalkens' method. How- ever, note that, in a computer, what counts for complexity is the maximum memory consumption for a given file to be compressed, not the number of nodes as a function of time. 2.3 Performance of the new strategy We implemented both the original and the new memory reduction strategy, with op- tional activation of either one of them. Table 1 gives an overview of the compression rates and maximum number of nodes without memory reduction. In order to bring the Iln Table 1, 2, below, in order to align the memory consumption of the new pruning rule with that ofWillems and Tjalkens, we have have implemented a smaller function j, viz. j(t) = min{2, tj20000}. 125 Scheme All Nodes KPN Pruning New Pruning File Rate Nodes Rate Nodes Rate Nodes bib 2.17 8.8E+5 2.29 9.4E+4 2.19 3.1E+5 bookl 2.29 4.2E+6 2.34 6.4E+5 2.36 6.6E+5 book2 2.07 3.3E+6 2.14 4.3E+5 2.17 6.8E+5 geo 4.67 2.8E+6 4.67 3.7E+5 4.67 6.8E+5 news 2.74 3.5E+6 2.84 4.4E+5 2.83 7.3E+5 objl 4.73 4.7E+5 4.77 5.0E+4 4.73 4.7E+5 obj2 3.12 2.7E+6 3.13 3.1E+5 3.26 6.6E+5 paper I 2.68 6.2E+5 2.81 5.9E+4 2.70 3.4E+5 paper2 2.51 8.2E+5 2.61 8.7E+4 2.53 3.4E+5 paper3 2.85 6.0E+5 2.99 5.9E+4 2.86 3.6E+5 paper4 3.32 2.3E+5 3.45 2.0E+4 3.32 2.3E+5 paper5 3.54 2.2E+5 3.67 1.8E+4 3.54 2.2E+5 paper6 2.82 4.8E+5 2.94 4.4E+4 2.82 3.2E+5 pic 0.81 1.5E+6 0.81 1.9E+5 0.81 1.7E+5 progc 2.83 5.0E+5 2.94 4.5E+4 2.83 3.3E+5 progl 1.97 5.0E+5 2.08 4.8E+4 2.01 2.8E+5 progp 2.03 3.9E+5 2.12 3.3E+4 2.04 2.3E+5 trans 1.80 5.7E+5 1.99 5.8E+4 1.87 2.7E+5 I AVG2 I 2.72 I 4.2E+6 I 2.81 I 6.4E+5 I 2.75 I 7.3E+5 I Table 1: Compression rates for CTM with ascii decomposition and weighing at the ascii boundaries [4] with context depth D = 6 in bits per source byte and maximum number of nodes for the Calgary corpus, comparing no restrietion on the number of nodes, the Willems- Tjalkens strategy and the new memory reduction scheme, resp. memory consumption of CTM with the new reduction scheme down to a value that is comparable with the memory consumption with the a = 0 or b = 0 KPN scheme invented by Willems and Tjalkens, we deleted all nodes for which a + b :s: f(t) = min{2, tj20000} Observe that our scheme has only a slightly higher memory consumption than the KPN scheme, and a compression loss which is only one third of the compression loss of the KPN scheme. 3 Coding the CTM model bits as if they were a file Throughout our paper, we use ASCII decomposition and weighing on ASCII bound- aries. The CTM encoder can operate in two passes. During the first pass, it builds the full context tree, e.g. all occurring contexts up to a certain maximum depth. Then, it determines, using maximization instead of weighting, the "best" model. In order to transmit this best model, the on-the-fl.y approach of Volf and Willems is used. We refer to [5]. The result is a stream of "model bits", where each bit indicates whether 126 or not a certain node is "split", i.e. the "best" model tree has children at that node. In [5J, the model bits are transmitted uncoded. Equivalently, they can be considered to be coded using a coding probabilities equal to 1/2. 3.1 Performance improvement when using a constant coding probability different from 1/2 Through experimentation we found that a significant compression rate improvement can be obtained by assigning the event that a "splir/no split" model bits indicates "no split" the probability 0.9 instead of 0.5. This can be explained by the fact that the "best" CTM model has many more leaves than internal nodes. Setting the "no split" probability high reduces the model cost of the leaves. 3.2 To code the model bits with a short range K-T estimator In the on-the-fly approach, the sequence order in which the model bits appear is deter- mined by when a certain context appears for the fust time. Nodes created during the beginning of the compression performance - the tree is initially empty - are much more likely to be split than nodes created during later stages of the compression procedure. Thus, the coding probability of the model bits should be time dependent with short range memory. A K-T estimator was applied to the model bits, and the memory range of the estimator was limited by halving the "split" and "no split" count whenever the sum of the counts exceeds 250. Note that the best CTM model depends, in fact, on the coding probabilities of the split bits. To construct the CTM model, we use a fixed coding probability of 0.9. Then, we code the resulting split bits with the short range K-T estimator. We did explore redetermination of the CTM model with these new coding probabilities but did not find a significant compression gain. 3.3 Performance gain Table 2 presents the compression rates of the original CTM algorithm and the two im- provements described in this section. We see that just changing the coding probability to O.g instead of 0.5 hrings the biggest gain. A smaller improvement follows from the use of the K-Testimator. 4 Conclusions 4.1 Overall performance gain w.r.t. the results of Volf et. al. In [5J,compression results were only reported for "book2", without a pruning rule. For a maximum tree depth D = 6, a compressed file size of 154966 bytes was obtained. This corresponds to a compression of 2.03 bits/byte. Compare this with the entry in the third numerical column of Table 3 for "book2" (1.98 bits/byte). Thus, for this file, the improvement we obtain is 2.5 percent. 127 4.2 Remaining performance difference between CTM and CTW Table 3 shows that, for an equal maximum number of nodes in the context tree, the compression rate of CTM is only ca. 5 percent higher than that of CTW. The fact that the compression rates we find for CTW are slightly worse than reported in (4) is due to the fact that we limited the maximum tree depth to D = 6. References [1) F.M.J. Willems, Y.M. Shtarkov, T. J. Tjalkens, "The context-tree weighting method: basic properties", IEEE Trans. on Inform. Th., Vol. IT-41, Nr. 3, pp. 653-664, May 1995. (2) F.M.J. Willems, T.J. Tjalkens, US patent 5864308, "System, coding section, ar- rangement, coding apparatus," Koninklijke PTT Nederland N.V., 1997. (3) F.M.J. Willems, T.J. Tjalkens, US patent 5986591, "Context tree algorithm method and system," Koninklijke PTT Nederland N.V., 1998. (4) F.M.J. Willems, T.J. Tjalkens, "Complexity Reduction of the COntext Tree Weighting Algorithm: A Study for KPN Research," EIDMA Report RS.97.01, Technical University of Eindhoven, 1997. [5] P.A.J. Volf, F.M.J. Willems, "A Study ofthe Context Tree Maximizing Method," Proc. 16th Symp. Inform. Theory in the Benelux, pp. 3-9, Nieuwerkerk a/d Ijssel, May 18-19, 1995. 128 I Coding Prob. I 0.5 0.9 I Short Range K-T I bib 2.19 2.03 1.98 bookl 2.36 2.30 2.28 book2 2.17 2.09 2.07 geo 4.67 4.61 4.60 news 2.83 2.66 2.62 objl 4.73 4.20 4.11 obj2 3.26 2.95 2.91 paper I 2.70 2.50 2.46 paper2 2.53 2.39 2.35 paper3 2.86 2.67 2.62 paper4 3.32 3.06 3.00 paperf 3.54 3.23 3.16 paper6 2.82 2.61 2.56 pie 0.81 0.80 0.80 progc 2.83 2.59 2.54 progl 2.01 1.88 1.83 progp 2.04 1.88 1.84 trans 1.87 1.71 1.65 I AVC I 2.75 I 2.56 I 2.52 Table 2: Compression rates for CTM in bits per source byte for the new memory rednetion scheme and a coding probability of the of 0.5, 0.9 and short range Krichevsky- Trofimov resp. Note that the first colomn of this Table is a replication of the fifth numerical column of Table 1. 129 Pruning Rule a + b < min{2, tj20000} a + b < ~jlOOOOO Max. Number of Nodes 7.3e5 2.8e6 Method CTM CTW CTM CTW bib 1.98 1.89 1.96 1.83 book1 2.28 2.27 2.23 2.21 book2 2.07 2.05 1.98 1.94 geo 4.60 4.59 4.60 4.58 news 2.62 2.57 2.53 2.43 obj1 4.11 3.81 4.11 3.80 obj2 2.91 2.79 2.75 2.54 paper I 2.46 2.34 2.45 2.31 paper2 2.35 2.28 2.33 2.24 paper3 2.62 2.52 2.62 2.50 paper4 3.00 2.83 3.00 2.83 paper5 3.16 2.95 3.16 2.95 paper6 2.56 2.41 2.55 2.39 pie 0.80 0.80 0.80 0.80 progc 2.54 2.39 2.54 2.37 progl 1.83 1.73 1.80 1.66 progp 1.84 1.72 1.84 1.70 trans 1.65 1.53 1.60 1.45 I AVC I 2.52 I 2.41 I 2.49 I 2.36 Table 3: Compression rates in bits per source byte for with new memory reduction scheme, comparing CTW with CTM when the model bits are coded with a short range K-T estimator. Note that the first colomn of this Table is a replication of the third numerical column of Table 2. The left most two columns use the same limit on a + b as in Table 1,2. The third and fourth column prune less severely. 130 Rate-Distortion Optimal Adaptive Quantization and Coefficient Thresholding for MPEG Coding Dirk Farin", Michael Käsemann, Peter H.N. de With2, and Wolfgang Effelsberg1 1 Dept. of Computer Science IV, University Mannheim, Germany farin~informatik.uni-mannheim.de 2 CMG Eindhoven / University of Technology Eindhoven, Netherlands p.h.n.de.vith~tue.nl Abstract. This paper presents an MPEG-2 compatible adaptive quan- tization algorithm that leads to the optimal encoding of I-frames in the sense of maximizing PSNR. It integrates three key features into a single Lagrangian optimization model: adaptive quantization including quantizer-change overhead consideration, coefficient thresholding, and a new coefficient amplitude reduction technique, Our results show that I- frames generated by the TM5 reference encoder are about 1.5-2.0 dB below the theoretical optimum. 1 Introduction In video coding, it is desired to obtain the best possible image quality at a predefined bit rate. Typically, MPEG encoders control the quantization step size based on a feed-forward control algorithm. This results in frequent changes of the quantizer setting, thereby generating a coding overhead due to the coding of new quantizer settings. Moreover, in single-pass video coders (like TM5 [6]), a bad prediction of image coding complexity may lead to an unequal quality distribution in a single image. The principle of optimal quantizer selection has been introduced in [5],where the Lagrange-multiplier method was used to assign quantizers to independent coding units to optimize the overall quality under a limited bit-budget. However, changing quantizer settings in the MPEG standard involves a coding overhead. Hence, a quantization scale cannot he chosen independent of the context. In [3], an extension to the quantizer selection algorithm is proposed which takes quantizer-change overhead into account. A different approach to increase coding efficiencyhas been proposed in [4](coefficientthresholding). The algorithm omits DCT coefficientswhen the amount of bits saved is high but the decrease of image quality is relatively small. This paper combines the above-mentioned techniques into a unified opti- mization process. Furthermore, we implemented coefficient amplitude reduction (CAa) as a new technique for improving image quality. It is based on the fact that reducing the amplitude of a DCT coefficient can be advantageous if the reduced coefficient has considerably shorter Huffman codes (consider lengthy escape codes that are reduced to short code-book entries). 131 2 Adaptive Quantization Consider the problem of coding an image at rate'' Rmax with minimum dis- tortion (MSE) D. Each image consists of a fixed number of coding units (e.g., macroblocks), which can each be coded with different quantizer settings qi. Let Di(qd be the distortion of macroblock i when quantized with qi, and let Ri(qi) be the number of bits required for coding the macroblock. The optimization problem can now be formulated as ~!n L Di(qi) such that L Ri(qi) s Rmax· (1) • In [5], Shoham showed that by using the Lagrange-multiplier framework, this constrained optimization problem can be written as the equivalent problem ~!n L Di(qi) + ÀR;(qi) (2) i for a fixed À. The paper [5] also provides the proof that each solution of the transformed (unconstrained) problem is also a solution of the original problem with the rate-constraint R'max = Ei R;(qi) if the rate-distortion function is convex. As R'max is dependent on À, a suitable value of À has to be determined to solve the original problem with R'max = Rmax 4. The suitable À-valuecan be determined using a binary search. The advantage of the second problem formulation in eq. (2) is that the sum and the minimum operator can be exchanged to ~~!nDi(qd + ÀR;(qd· (3) • This formulation obviously reveals that the global optimization can now be car- ried out independently for each macroblock, making an efficient implementation feasible. Unfortunately, according to the MPEG standard, changing the quantization scale requires additional bits in the macroblock header to code the new settings. The overhead comprises 2 bits for coding the macroblock mode and 5 bits for the quantization scale, compared to only 1 bit for the macroblock mode when the quantizer is the same as in the last macroblock. Especially at low bit rates, this overhead cannot be ignored. Hence, we introduce the quantizer change overhead as an extra contribution to the rate:" I for qi = qi-l, ROV(qi,qi_d = 7 for qi =I qi-l, (4) { 1 if qi is the first MB in a slice. 3 In this paper, we use the term rate to denote the number of bits per frame. 4 In practice, exact equivalence of rate cannot be guaranteed, and a suitable tolerance has to be accepted. 5 Note that additional header fields exist. As they have constant size, they can be ignored in the minimization problem. However, they have to be considered when calculating the total rate. 132 After adding the overhead to the functional in (2), our optimization problem reads as ~!n~ Di(qi) + )..R;(qi) + )"ROV(qi, qi-d· (5) • This can no longer be solved independently for each macroblock, but can be determined using a dynamic programming approach. Consider the graph in Fig- ure 1, in which each column of nodes represents a macroblock and each row defines a quantizer scale. Each path through the graph corresponds to a possible coding of the frame. Traversing the nodes induces associated costs Di (q) + )..Ri (q) and graph edges from row ql to row qz have costs ROV(Q2, Ql). Hence, the total path cost is equivalent to functional (5), and the minimum cost path defines the solution of the above minimization problem. no quantizer change ...... _ ... _--- ... with quantizer change MBI MB2 MB3 MB4 Fig. 1. Equivalent graph search problem to the Lagrangian minimization problem. Note that there are 31 different quantizer scales in MPEG instead of only four. 3 Thresholding Ramchandran [4] introduced coefficient thresholding as a post-processing step after quantization to further reduce the bit rate while still retaining as much image quality as possible. The idea is to drop coefficients (set to zero) when the additional distortion is small compared to the number of bits saved. Considering thresholding as a separate post-processing step induces the difficulty that it is not clear how to choose quantization parameters. IT a target rate of Rmax is requested, obviously the rate after quantization has to be greater, so that thresholding can be used to further decreasing the rate. However,the exact rate is unknown. We solved this problem by incorporating coefficient thresholding together with adaptive quantization into a single Lagrangian framework. The followingalgorithm exploits a useful property of the nCT which leads to an efficient implementation of thresholding. As the DCT does not change the £2 norm of a vector, the MSE of a block can either be computed in the 133 spatial domain or, equivalently, in the frequency domain. This property enables to calculate efficiently the additional distortion that is introduced by modifying (or even omitting) a single coefficient. To simplify notation, we concentrate on a single DCT block, consisting of coefficients Ci. We denote quantization by c~ = Q(Ci) and dequantization by êi = Q-l(cD. Let C = {(Pi,êi)} be the ordered set (ascending Pi) of non-zero quantized coefficients (ê, ~ 0), where Pi is the position of the coefficient (in zig- zag order). Hence, by using a table of the Huffman code-lengths r(run, value), the bits needed to code coefficient i are r(pi-Pi-l +1, cD. Omitting the coefficient would induce additional distortion q. Note that coefficient i = 0 is always the DC coefficient which cannot be omitted. Let S ç C be the subset of coefficients in the block that we decide to code. Hence, we intend to minimize the Lagrangian cost associated to a selection S: min sçc L c? + L (c, - êi)2 + >.r(pi - Pi-l + 1,cD· (6) (p,c)EC-S l:Si:SISI ~ costs for omitting '-------------~~------------_, costs for coding quantized coefficient Similar to adaptive quantization in the previous section, this minimization problem can be solved by computing an equivalent graph search. The corre- sponding graph is depicted in Figure 2. Every non-zero coefficient is represented by a graph node. A special node EOB is added as a last node so that skipping the last coefficient is possible. Each non-skipping edge is attributed with weight (c, - êi)2 + >.r(Pi - Pi-l + 1,c~), consisting of the quantization error and the length of the Huffman code. Each skipping edge is attributed with weight L q, where the sum includes all skipped coefficients. -.. coefficient transmitted ~...------ coefficient skipped Fig.2. Equivalent graph search problem to coefficient thresholding. To visualize the principle of coefficient thresholding, we coded a frame using fixed quantization scales. Afterwards, we applied coefficient thresholding to fur- ther reduce the bit rate. The result for a frame of the Claire sequence is shown in Fig. 5. It can be seen that for small reductions of rate in the thresholding step, the slope of the rate-distortion curve is less than that using quantization only. However, for larger rate reductions, the slope of the thresholding curves becomes much steeper, corresponding to a faster decrease of image quality. To optimally join adaptive quantization and thresholding, we merged the adaptive quantization graph and the thresholding graph into a single combined 134 graph (Fig. 3). In this way, we get the "convex hull" over the curves of Fig. 5, being the optimal combination of adaptive quantization and thresholding at every bit rate. MBl MB2 MB3 Fig. 3. Combination of adaptive quantization graph and thresholding graph. Each box shown with a thresholding graph actually contains six concatenated thresholding graphs (for the six DCT blocks contained in each macroblock). 4 Coefficient Amplitude Reduction In this section, we introduce coefficient amplitude redaction (CAR) as a gen- eralization of coefficient thresholding. The idea is that it can be advantageous to decrease the value of a coefficient when the number of bits saved outweighs the additional distortion. Especially when the true coefficient value is near the lower decision boundary of the quantization interval, reducing the coefficient amplitude does not introduce much additional distortion (Fig. 4a). On the other hand, when a slight decrease prevents the run-value pair to be coded with costly escape sequences, the bit rate gain may be significant. As the MPEG Huffman table is monotone, increasing coefficients will never lead to shorter codes. CAR can be implemented by extending the thresholding graph as shown in Fig. 4b. For each coefficient with value C;, further c~ nodes are created, repre- senting the new (reduced) value of the coefficient (range 1, ... , cD. Node costs are assigned accordingly. All new edges and dummy nodes have zero cost. CAR can be implemented independently of thresholding by omitting the skip- ping edges in Fig. 4b. A further advantageous property is that the combination of CAR and thresholding can be implemented by successive application of CAR first and thresholding afterwards on the modified coefficients. Clearly, the CAR step selects the optimal coefficient value, equivalent to the shortest path between every second node. As every sub-path of a shortest path is also a shortest path, either this path or a skipping edge would be chosen by the thresholding step. By replacing the thresholding sub-graphs in Fig. 3 with the CAR graphs, we obtain the theoretically optimal encoding of the frame. 135 : : ~ :: :.:.:.:.~.:.:~~::::::::::~~~~~~~~~~.:~~~~~~~~ •..•- .• (~~~ ~~~~~ .. .. •.•. •... ....:.:.:.~.:•. .... ...: :.:.:.:..... ::::::\ .•........ quantized coefficient ::,.- .. error error :1 .><. , ... '" c '" 1 g-geo (a) Quantization error does (b) Coefficient thresholding graph, enlarged not increase much when with additional amplitude reduction nodes. original value is near deci- sion boundary. Fig.4. Coefficient amplitude reduction. 5 Results We have implemented the above algorithms into the SAMPEG encoder frame- work [1]/[2]. A single frame was selected from a test sequence and coded with different combinations of quantization and coefficient modification. For quanti- zation, we used three variants: constant quantization (all macroblocks are coded with the same quantization scale), adaptive quantization (as explained above), and adaptive quantization without considering quantizer-scale change overhead (NOO). Furthermore, we used the TM5 reference implementation [6] for com- parison. For coefficient modification, we used: thresholding alone, CAR alone, both combined, and both disabled. Table 1 shows the absolute PSNR reached for a fixed rate and the increase of PSNR compared to using constant quantizer scales. Adaptive quantization increases the PSNR by about 0.13 dB. Applying thresholding leads to another 0.2-0.3 dB increase. The PSNR increase obtained from CAR is only marginal and can be neglected. NOO cannot increase PSNR much above the constant quan- tization heuristic. At low bit rates, it even performs worse because of frequent quantizer changes. Comparable results are obtained for other input images. According to our results, using frame-constant quantization scales is a good heuristic for PSNR optimal quantization. The heuristic achieves ~ +1.2-1.8 dB compared to TM5 and is only ~ 0.3 - 0.5 dB below the theoretical maximum. In a second experiment, we examined which coefficients in a DCT block were thresholded most. Approximately 70-80% of the thresholded coefficients were at the end of the DCT block. Skipping these coefficients moves the EOB code to an earlier position, which results in a particulary large reduction of bits. Accordingly, applying thresholding to only the last coefficients of a block results in about 80%of the PSNR increase. This fact may enable computationally inexpensive heuristics for fast thresholding. 136 Claire (~67800 bits) lino coeff. mod.! CAR ! thresholding ! both constant q.scale" 46.16 (0.0) n/a n/a n/a TM5 44.91 (-1.25) n/a n/a n/a adapt.yno overh. (NOO) 46.21 (+0.06) 46.22 (+0.07) 46.40 (+0.24) 46.41 (+0.25) adaptive quant. 46.29 (+0.13) 46.30 (+0.15) 46.46 (+0.30) 46.47 (+0.31) Stefan (~170000 bits) lino coeff. mod.! CAR ! thresholding ! both constant q.scale 36.87 (0.0) n/a n/a n/a TM5 35.62 (-1.25) n/a n/a n/a adapt.j'no overh. (NOO) 36.96 (+0.09) 36.96 (+0.10) 37.27 (+0.40) 37.27 (+0.40) adaptive quant. 36.99 (+0.12) 37.00 (+0.13) 37.29 (+0.42) 37.30 (+0.43) Table 1. Overall results: PSNR in dB (absolute and increase compared to constant quantization). The bits per frame were chosen as if the sequence was coded at 1.2 Mbps (at CrF resolution). 6 Conclusions We have presented an optimal quantization algorithm for MPEG coded I-frames. It achieves to generate images with the best possible image quality at a given bit rate. Even though it may be computationally too complex for practical encoding applications, it is suitable to serve as a reference to compare other, heuristic, algorithms with. The algorithm can easily be extended to support P- and B- frames by including the additional macroblock mode decisions in a similar way. References 1. Dirk Farin, Niels Made, and Peter H. N. de With. SAMPEG, a scene adaptive, parallel MPEG-2 software encoder. SPIE Visual Communications and Image Pro- cessing, 4310:272-283, January 2001. 2. Dirk Farin, Niels Mache, and Peter H. N. de With. A software-based high-quality MPEG-2 encoder employing scene change detection and adaptive quantization. IEEE ICCE Digest, pages 148-149, June 2001. 3. Antonio Ortega and Karman Ramchandran. Forward-adaptive quantization with optimal overhead cost for image and video coding with applications to MPEG video coders. In SPIE Digital Video Compression, February 1995. 4. Kanaan Ramchandran and Martin Vetterli. Rate-distortion optimal fast thresh- olding with complete JPEG/MPEG decoder compatibility. IEEE Transactions on Image Processing, 3(5):700-704, September 1994. 5. Yair Shoham and Allen Gersho. Efficient bit allocation for an arbitrary set of quantizers. IEEE Transactions on Acoustics and Signal Processing, 36(9):1445- 1453, September 1988. 6. MPEG-2, Test Model 5 (TM5). Doc ISO/IEC JTC1/SC29/WGll/99-225b. Test Model Editing Committee, April 1993. 6 Even though thresholding can be combined with constant quantization, the perfor- mance highly depends on the selected rate (see Fig. 5). 137 Claire 50 48 46 44 a: ~42 11. 40 constant quantization adapt. quant. + thresholding thresholding for q.scale = 1 thresholding for q.scale = 2 thresholding for q.scale = 3 thresholding for q.scale = 4 thresholding for q.scale = 6 thresholding for q.scale = 8 thresholding for q.scale = 10 .-.._.. thresholding for q.scale = 12 -- 32~--~~~~~-=7.=--==~~==~~~~= 20000 40000 60000 80000 100000 120000 140000 160000 bits per frame Fig. 5. Using coefficient thresholding as independent post-processing step after quan- tization. Claire 50 48 46 adaptive quantization + thresholding + CAR -- adaptive quantization ---- constant quantization . 40 TM5 ----- 38 20000 40000 60000 80000 100000 120000 140000 160000 bits per frame Fig. 6. Results for the Claire sequence. 138 Flexible Access to JPEG2000 Codestreams Marcela Iregui+, Jéröme Meessen", Philippe Chevalier+, and Benoft Macq! 1 Université Catholique de Louvain, Communications and Remote sensing laboratory, Bätiment Stevin, Place du Levant, 2 B-1348 Louvain-la-Neuve, Belgium • {iregui, Meessen, Macq}~tele.ucl.ac.be http://vww.tele.ucl.ac.be 2 Université Catholique de Louvain, POMS unity, Place des Doyens, 1 B-1348 Louvain-la-Neuve, Belgium chevalier~poms.ucl.ac.be http://vww.poms.ucl.ac.be Abstract. This paper presents an efficient way for delivering JPEG2000 (J2K) data in a client-server architecture to seamlessly browse images with no need to receive the whole compressed file. The main advantage of the emergent J2K coding algorithm is the flexibility of the gener- ated codestream, which permits seamless navigation through very large images and sets of images, an useful issue in medical remote diagnosis or remote sensing applications. Herein, we present a data flow strategy based on optimal data parsing along with an interactive communication protocol that allows an efficient data transfer. The relevant portions of the codestream to be sent are selected taking into account several pa- rameters such as: delays, memory, bandwidth and client displaying and decoding capabilities in state-full sessions (i.e. keeping track of the al- ready sent data to avoid redundancies). We propose an optimal use of the available resources according to the user preferences by using opti- mization techniques. 1 Introduction In professional applications like remote sensing and medical imaging, there exists a large need to browse images from a remote server in a seamless way. However, this process can be very slow due to the large size of data and bandwidth limi- tations, so that only a portion of the image can be displayed at a paticular time. Moreover in dynamic browsing intefaces the user can change the request at any moment. In consequence, the response time must be minimized by sending the most important portions of the image at each time. Lately, new coding algorithms as JPEG2000 allow progessive decoding of portions of the compressed images, which is very useful to meet the above re- quirements. Thus, we propose a server-client architecture where the client can access and browse J2K images from a remote server. If the server deals with • This work was funded by the 1ST project PRlAM (IST-28646) 139 2 Marcela Iregui et al. several clients limited by different constrains in delays and bandwidth, a data streaming strategy is necessary to optimize the data flow and a caching mecha- nism to hold data at server and client sides. Similar approaches are presented in [5] and [4] to allow browsing in large images. This work exploits the J2K seal- ability and introduces several dimensions to the navigation problem. We make allowance for bandwidth or memory constraints by proposing an optimal J2K packets streaming mechanism based on the optimization of an utility function. This paper is organized as follows. First, we introduce the J2K mean func- tionalities emphasizing the codestream structure. Next we propose a client-server system adapted to medical and remote sensing applications along with a coarse description of the system main modules (i.e. Encoder, Parser, Protocol, decoder and viewer). In the remaining sections, we present a detailed description of the Parser and Protocol, which allow a flexible access to the content. Finally, some results are illustrated. Concluding remarks are presented in the last section. 2 JPEG2000 The image compression algorithm JPEG2000, issued as an International Stan- dard in December 2000, offers a set of features which makes it a very attractive tool for professional image applications. It offers not only a good compression efficiency but a set of options as: - Lossless and lossy compression - Random codestream access - error resilience - Sca1ability by quality and resolution - ROl definition One of the most powerful features of JPEG 2000 is the versatility of the generated codestream. It consists of several packets that can be arranged in different ways, allowing codestream reordering and progressive transmission and decoding. The codestream can be ordered either by incremental quality layers (each improving the SNR), resolutions or position. In next sections we will describe the main functional blocks of the J2K international standard and the codestream syntax. 2.1 Coding principles The uncompressed image is first divided in several tiles encoded independently. Next, each tile is compressed following the block diagram shown in figure 1. The first block performs a DC shifting and color transform. Each component is then treated independently and transformed by either 5x3 or 9x7 wavelet filters, depending if lossless or lossy compression is chosen. After filtering and quantization, each sub-band is split in blocks (see figure 2). These blocks are independently encoded bit-plane by bit-plane using a bit modeling procedure, which encodes each bit in 3 coding passes: significance, magnitude refinement and clean-up pass. According to the significanee states of the neighbors, a context 140 Flexible Access to JPEG2000 Codestreams Fig. 1. JPEG2000 coding block diagram. is generated and passed to a MQ coder along with the bit value in order to create a block bitstream. A rate control algorithm selects the contribution of each codeblock to the quality layers according to the desired rates. Finally, J2K packets are created and ordered following a preferred progression order. Each packet is associated to a given component, layer, resolution and precinct. Here, a precinct is the assembly of several codeblocks (see figure 2) representing a spatial region of the image. Pm:incts Codcblocts Fig. 2. Resolutions, Codeblocks and precincts partitions. 2.2 Codestreazn syntax J2K codestreams are composed of a main header and several tile-bitstreams. Each tile-bitstream consists of a tile header and several packet bitstreams. Mark- ers are used to delimit the information contained in the codestream. There exist mandatory and optional markers, the optional ones can be used for example for delimiting packets and add error resilience capabilities to the codestream. Pack- ets in the codestream can be ordered in several ways according to a preferred scalability, so five possible progression orders are allowed: 1. Layer-Resolution-Component- Position, 2. Resolution-Layer-Component-Position, 3. Resolution-Position-Component- Layer, 4. Position-Component- Resolution- Layer, 5. Component- Position- Resolution-Layer. An example of the Layer-Resolution-Component-Position progression order is shown at figure 3. In this case, when displayed, the user will see an overview of the whole image in low quality. 141 Marcela Iregui et al. Fig.3. LRCP progression order. 3 System platform The system platform has been designed to meet the requirements of medical or remote sensing applications. Among others, the most important requirements are: - In both domains the images are so large that access to the data must be progressive. The transfer is made through the common network. It implies to adapt the client/ server exchanges to changing channel conditions. In a multi-user situation the server must be the intelligent actor to optimize the resources allocation. - In medical applications, physicians browse medical exams consisting of mul- tiple images. So, the whole system -i.e the protocol, the parsing algorithm etc.- must be able to deal with multiple images requests like: "give me the qu.ality layer i of resolution level r of component c of images m and n". The server must take the client software and hardware capabilities into ac- count. 3.1 Syst.em model The system consists of a server, which encodes and archives images, and a client, which requests some image data, decodes it and displays the images as shown in Figure 4. The principal system modules are: Fig.4. System block diagram. - Encoder: Images are encoded using a JPEG2000 compliant encoder which generates a J2K codestream. In order to easily access the codestream, the 142 Flexible Access to JPEG2000 Codestreams encoder creates an index file associated to the compressed file. The index contains the position of the main header and packets in the codestream with their respective tile, component, layer, resolution and precinct. - Parser: It is the intelligent entity of the server. Using the information con- tained in the index file, it looks for the relevant parts of the codestream according to the user requests and the channel bandwidth or client capabili- ties. It maintains a model of the decoder state in order to determine the next data to send. The Parser fills a buffer with a maximum quantity of data that maximizes the user satisfaction at a particular time. The buffer size depends on the memory, bandwidth and delay constraints imposed by the network or the client. Protocol: It is the intelligent discussion allowing the server to transmit only the relevant data to satisfy the clients request. The proposed protocol is close to the upcoming JPEG2000 Interactive Protocol (JPIP)[7J. In our case the client has no knowledge about the JPEG2000 data structure, he sends requests that are viewer oriented like zoom, pan and select an Region of Interest (ROl). The server responses consist of the selected J2K packets and the necessary information to describe these packets. Decoder: It is a J2K "scalable" decoder, able to decode progressively por- tions of the codestream. In order to actualize at each time the decoded data, a copy of the received packets is maintained in the decoder cache memory. At the output the decoder put the image information in an image cache memory ready to be used by the viewer. - Viewer: It allows ROIs definition for a group of images from a single one, look at several thumbnail to seek a particular image, make zooms, pans, cropping, etc. The user interface is able to display the decoded data on an efficient way, depending on the application. The viewer transmits the user's request to the network protocol module. 4 Intelligent data streaming 4.1 Parsing and optiInization As said above, the parser must be able to seek the relevant parts of the J2K codestream according to the user requests. The idea is to maximize the user satisfaction and efficiently manage resources: cache memory and/or bandwidth. By user satisfaction we mean displaying the required image region at the max- imum quality and resolution in a minimum delay. To minimize the delay, the available bandwidth must be optimally used in order to maximize the rate in each transmission interval. The problem can be formulated as: if G, is the state of the client cache at time i, we want to find the optimal set of J2K packets Si to be sent at interval i, such that the total rate is such that: R; = L rk ~ Bi (1) kES, 143 Marcela Iregui et al. and will produce the largest utility U(Gi U Si). In equation (1) rk is the rate ofthe packet k and Bi is the available bandwidth (or cache memory). Ri is the effective bandwidth which is the sum of rates of the J2K packets that maximize the resources and the utility function for the interval i. The state of the client cache Gi is updated by: Gi+l = Gi U Si This problem is an extension of the 0-1 knapsack problem, where the utility metric will determine the value of each packet and the bandwidth (memory) constraint corresponds to the capacity of the sack. The 0-1 knapsack problem can be easily solved using greedy algorithms or dynamic programming [2]. Utility function The definition of the utility metric, U, is based upon the user preferences. This function depends on the packet dependencies and the way the user navigates in the image(s). Thus: 1. We suppose that at the beginning of the session the user selects a preferred progression order to navigate on the image(s). Depending on the selection, a weight is given to each variable of the display. 2. The packet value is given by a measure of the importance of its corresponding layer, resolution, component and position. In the ease of layers, lower layers have priority over higher ones, the same for resolutions and components. For example, packets from higher layers have 0 value if the corresponding lower layers have not been sent or previously selected as candidates. 3. For the position, the criterion we use is related with the relevance of the given precinct regarding the region of the image selected by the user, and additionally by its location between the selected area. We give more weight to such precincts located in the center of the region because normally users tend to focus at the center of a zoomed region rather than at the borders. 4. If the user navigates in a set of N images, i.e. a medical exam, the packet value is affected by the importance of the image at which it belongs. If At time i the user chooses a ROl in the image I, the packets belonging to this image have priority over that from image I + 1 and so on. If we define SCSi as the set of packets that has been already selected to be sent and kt,r,c,p,n as the packet corresponding to layer l, resolution r, component c, precinct p and image n, the utility function of a packet k is given by: (2) In (2), Ui," Ui,r, Ui,c, Ui,p and Ui,n represent the utility of the layer, resolution, ° component precinct and image respectively. Thus, if x > is a measure of the distance from the center of the ROl, ai E {I, 2, 3, 4} the weight given to each dimension by the user and 1,r ,c the weight of each layer, resolution or component; we define utility variables as: u. _ .,1 - {o if kt-l,r,c,p al 1 ot herwise . ~ (Gi Us), 1 > 0, (3) 144 Flexible Access to JPEG2000 Codestreams if kl,r-l,c,p ~ (Gi U s), r >0 (4) otherwise if kl,r,c-l,p ~ (Gi Us), c> 0 (5) otherwise if p ~ ROI(i) (6) otherwise I-n if n < I (7) Ui,n = {N + I - n otherwise 4.2 Protocol, decoding and visualization As mentioned in section (3), the server is the intelligent actor of the protocol because he is able to translate the client request into a byte-range request re- garding the bandwidth, the client capabilities, etc. In order to access all these parameters, the proposed main phases of the protocol are : 1. Initial connection During this phase the client specifies his capabilities and his identity. He selects an image (or a medical exam) to browse. 2. Header Transfer and Client interest specification At the end of this phase, if it was requested, the client received the main header of the selected image (or medical exam) and, eventually, some restrictions from the server. 3. Interactive J2K Data Transfer The client and the server exchange re- quest, answer and error messages. At the normal end of this phase, i.e. when the client disconnects, the server sends a mirror of the index table in order to allow the client to reuse it in future sessions. 5 Simulation Results In this section we illustrate the results showing a simple example in a LRCP navigation scenario of a 4096x4096 image. The image is J2K compressed with two quality layers, 4 resolution levels and 256 precincts/resolution. Supposing that at time i the client has received the whole layer 0, so he has an overview of the image. Knowing that he has limited resources, he chooses a region to magnify as shown in figure 5(a) and sends a request to the server. We show in figures 5(b) and 5(c) the same image region displayed at the ti+! instant without and with optimization respectively. In image 5(b) we can see that the top has been updated but the center which is normally the target region is still fuzzy. 145 Marcela Iregui et al. (c) ti+1, optimal Fig. 5. images displayed at ti and ti+! 6 Conlusions The presented data flow mechanism allows the minimization of the server re- sponse time according to the user preferences. This method is adaptable to different clients with different resources. In this way the constrained clients will receive the maximum quantity of JPEG2000 data according to their capacities and applications. References 1. David Taubman and Michael Marcellin. JPEG200 Image Compression Fundamen- tals, Standards and Practice. Kluwer Academics Publishers. November 2001. 2. Laurence Wolsey. Integer programming. Wiley Interscience. 1998. 3. C. Weidmann, M. Vetterli, A. Ortega and F. Carignano. Soft caching: Image caching in a rate-distortion framework. IEEE conference on Image Processing (ICIP 97). 1997. 4. Chengjiang Lin and Yuan F. Zheng. Fast Browsing of large scale images using server prefetching and client caching techniques. Applications of Digital Image Processing XXII. SPIE July 1999,pages 376-387. 5. Jia-Ru Li, Xia Gao, Qian Leiming, and Vaduvur Bharghavan. Goodput Control for heterogeneus Data Stream. Proc. of the 10th Inal. workshop on Network and Operating System Support for Digital Audio and Video. NOSSDAV June 2000. 6. Martin Boliek, Christipoulos Gharilaos and Eric Majani. JPEG200: Part I Final Draft International Standard.ISO/IEC 15444-1. March 2001 7. Prandolini, Houchin and Clark. JPIP Requirements and profiles. March 2002 146 Fast Affine Projection Algorithm using the Successive Over-Relaxation Method Felix. Albu, Anthony Fagan DSP GROUP, UCD, Belfield 4, Dublin, Ireland Abstract: - In this paper the implementation of several fast affine projection (FAP) algorithms using the Logarithmic Number system (LNS) is investigated. A new stable FAP algorithm based on Successive Over-Relaxation (SORFAP) method is proposed. Also, a simplified version of SORFAP algorithm is investigated. We show that the 32-bit or 20-bit LNS implementation of the SORFAP algorithm is simpler than that of other FAP algorithms and easy to implement on FPGA or DSP. It is only marginally complex than NLMS and is a better alternative to NLMS algorithm in different voice applications. Introduetion The problem of unwanted echoes arises wherever the microphone picks up the unwanted signals such as the signals radiated by the loudspeakers or other reflections of the speech signal via different echo paths. The reverberation time is typically on the order of a few hundred milliseconds. Thus, the need for an adaptive echo- cancellation filter (EeF) with a long impulse response (hundreds of coefficients) is evident. The well-known normalized LMS (NLMS) algorithm bas been widely used but it bas slow asymptotic convergence. The affine projection algorithm (APA) [1] can be considered as a generalization of the NLMS algorithm. However, its fast version presented in [2], when implemented with an embedded FRLS (Fast Recursive Least Squares) algorithm suffers from numerical instability. The complexity of this algorithm is 2L + 20N , where L is the length of the filter and N is the projection order. Other difficulties associated are memory requirements and code overhead. Another forms of the standard FAP that use sliding-window RLS type approach have been proposed in [3-4]. The complexity ofthe real version is 2L + 3N + 8N . This 2 algorithm uses only 2 divisions per iteration, unlike that proposed in [7] (called Robust FAP algorithm (RFAP)) that bas N divisions per iteration and 2L + N2 + 4.5N multiplications. These alternate FAP algorithms have no feedback incorporated. If the estimations deviate from the accurate value, the errors propagate to the next iterations, causing the adaptive filter to fail sometimes. A frequently proposed remedy is to re-start periodically a new inversion process. Even so, the numerical errors accumulate so fast sometimes that the re-starting period would have to be made very small. It's difficult to foreseen the unhealthy signs of instability for the numerous internal variables (especially for the conventional FAP algorithm). An 147 improved F AP algorithm using the conjugate gradient (CG) method to do the matrix inversion was proposed in [6]. It was called CGFAP and it was proved that it is stable and easy to implement in comparison with other FAP algorithms. It uses a feedback scheme so that the numerical errors do not accumulate. It has been verified on floating point and fixed-point DSP platforms including 16 and 24 bits ones [6]. In this paper we study the behaviour of 20-bit or 32-bit LNS implementations of the classical FAP algorithm [2], the CGF AP algorithm and our new proposed SORF AP algorithm (Successive Over-relaxation Fast Affine Projection) algorithm. SORF AP algorithm We will use most of the notations and the definitions presented in [6]. It is shown there that the matrix inversion problem implied by FAP algorithms reduce to solving a set ofN linear equations. R(n )E(n)= IJ. , where IJ. is a N vector with only one non- zero element, which is unity at the top and Since R(n )is symmetric and positive definite. Compared with the Jacobi method for the same class of problems, SOR (of which the Gauss-Seidel method is a special case) offers faster convergence. It uses updated values as soon as they are available [7]. Next lines present the SOR method for solving Ax = b , where A is an nxn matrix. The Gauss-Seidel method computes X(k) 1 = (b - ~ ,.Lij) ji ax I, Sz = Sx ,----_--------_. x"-1 RECIP Lz = Lx, Sz = +Sx ----------~. --- x"-O.5 RSQRT, Lz = Lx > 1, Sz = +Sx -------_._--_._---- ------------ Table 1. LNS Arithmetic Operations We employ a solution developed by the HSLA project team [8], which yields a drastic reduction in the size of the look-up tables required compared to those needed for conventionallinear interpolation ofboth functions. This is achieved by the parallel evaluation of a linear approximant and an error correction term. The 32-bit LNS implementation uses 321,536 bits of lookup tables. A 20-bit LNS format is also considered. It maintains the same range as the 32-bit, but has precision reduced to 11 fiactional bits. This is comparable to the 16-bit formats used on commercial DSP devices. The 20-bit version requires just 10,920 bits of lookup tables. More details about the logarithmic number system are available at 11Hp:illaplCLIlCl.ac.ukd-lSLi\. In the next section results for an implementation ha ..ed on the 32-hit and 20-bit logarithmic ALUs are presented. 150 Simulations In these simulations the excitation signal is amplitude normalized speech, sampled at 8 kHz, the echo path has the length L, the projection number is N. The convergence of the algorithm was compared by using the squared norm of the difference between the LEM model and the adaptive filter (in dB) [9]. The parameter f1 for the all PAP and NLMS algorithms was set to I. The echo path represents a room impulse response and is taken from [9]. The projection order is N=lO. For SORFAP we used (J) = 2/(1 + sin(7l' / N». This value seems to provide better tracking abilities, although the performance isn't much influenced for a wide range ofvalues around it. Different formulas for an optimal value are found in literature [7] but they are too complicated to be implemented. Our simulations showed that the 32-bit CGF AP and SORFAP finite implementations (FLOAT or LNS) have virtually identical performances. Fig. 2 shows some losses in performances due to lower finite precision of 20-bit versions in comparison with their 32-bit versions. The SORF AP initial convergence is better than that of the NLMS algorithm. Fig. 3 shows that updating P(n) every second up to forth sample do not affect too much the output error (Fig. 3 shows an example for the 20-bit SORF AP implementation). Our simulations showed that the SORF AP algorithm might be used for digital echo cancellers as well. Minor modiftcations of the SORF AP algorithm are required in order to be applied to active noise control following the way reported in [10]. The classical FAP algorithm uses a sliding window fast RLS algorithm that it's difficult to implement, memory intensive and potentially numerically unstable. The 32-bit LNS or FLOAT implementations of classical FAP algorithm (without the restarting procedure) is unstable sometimes. In all cases where the 32-bit or 20-bit FLOAT or LNS implementation ofthe Gay's basic FAP algorithm were unstable the equivalent CGF AP or SORF AP algorithm implementations remained stable. Because it has N 2 + 4 N + 2 MACs less than CGP AP, the SORF AP algorithm could use higher values of the projection order than CGF AP for the same computational effort because of its reduced complexity. As an iterative method, SOR approaches P(n )with a delay and this tracking error isn't a problem since R(n) varies at a slower rate because L» N . This delay allows us not to update P(n) every sample. Our simulations show that we can update P(n) every second up to forth sample without affecting too much the output error. By updating P(n) every fourth sample, the difference is increased to at least 1.75 N 2 + 3.75 N + 2 MACs per sample. Therefore, the average number of MACs and divisions is p times smaller for SOR section ( 2 L + N 2 / p + (6 - I / p) N - I MACs and 1division, where p depends on L or N values, usually between 2 and 4). Higher values of p are possible, especially for higher values of Lor N. For example, with L=IOOO and N=IO, an NLMS needs 2025 MACs (assuming 25 MACs for a division), the CGFAP needs 2316 MACs and the RFAP needs 2395 MACs. The SORFAP needs 2174 MACs, while the SORFAP withp=4 needs about 2107 MACs. 151 5 o ________ · L L 4... 4 4 _ co -es -5 · • • · • • .. • • • • . I • . I I . I I . • • . • I . • • E .§ -10 --..-~~. ------~ : SORFAP 1000 ~ o ~.:-.;.".,,;-.:.~~:...................... ... _--~: - ~ SORFAP .... .. _ (p=4) .0····~. 5 10 15 20 25 30 35 40 45 N Fig. 4. Real time requirements of 4 Fast Affine Projection algorithms Therefore, in this case, the increase is just about 4 % for SORF AP with p=4 in comparison with NLMS. For N=5, the increase is just about 34 MACs or about 1 % (2059 MACs for SORF AP with p=4 in comparison with 2025 MACs for NLMS). The SORF AP algorithm with p= 1 needs the least amount of computation of the four FAP algorithms presented as long as N :5; IS (see Fig. 4). The value of corresponding N grows as p grows (it is 25 for p=2, 42 for p=4 etc.). Conclusions These simulations show that the 32-bit or 20-bit LNS implementation of SORF AP is stable and requires fewer operations than other FAP algorithms. SORF AP can be only marginally complex than NLMS and is a better candidate for implementation in voice applications. Its 20-bit LNS implementation appears to offer a very attractive alternative to conventional arithmetic if the precision it is not a major issue. Our future work will be focused in implementing the SORF AP on FPGA following the way reported in [11] and analysing its performance and stability on l ó-bit fixed-point processors. 153 Acknowledgements This work has been performed under the EU ESPRIT 33544 HSLA Long-term research project (!ltlp:llapler.nci.aC_Llk;H~LA), coordinated by the University of Newcastle, UK [1]. The authors would like to thank Jiri Kadlec from UTIA, Prague for his help. References: [I] K. Ozeki, T. Umeda, 'An adaptive Filtering Algorithm Using an Orthogonal Projection to an Affine Subspace and its Properties,' Electronics and Communications in Japan, Vol. 67-A, No.5,1984 [2] S. Gay, S. Tavathia, 'The Fast Affine Projection Algorithm', pp. 3023-3026, ICASSP'95 Proceedings [3] Q.G. Liu, B. Champagne, and K. C. Ho, " On the use of a modified FAP algorithm in subbands for acoustic echo cancellation," in Proc. 7th IEEE DSP Workshop, Loen, Norway, 1996,pp.2570-2573 [4] M. Ghanassi, B. Champagne, "On the Fixed-Point Implementation of a Subband Acoustic Echo Cancel er Based on a Modified FAP Algorithm", 1999 IEEE Workshop on Acoustic Echo and Noise Control, Pocono Manor, Pennsylvania, USA pp. 128-131 [5] Ville Myllyla, "Robust fast affine projection algorithm for acoustic echo cancellation", IW AENC 200 I, Darmstadt, Germany [6] Heping Ding, "A stable fast affine projection adaptation algorithm suitable for low-cost processors", ICASSP 2000, Turkey, pp. 360-363 [7] RBarrett, M. Berry, T. Chan, 1. Demmel, J. Donato, J. Dongarra, V. Eijkhout, R Pozo, C. Romine, H. van der Vorst, 'Templates for the solutions of linear systems: Building blocks for iterative methods', SIAM, 1994 [8 J.N.Coleman, E.Chester, C.Softley and J.Kadlec, "Arithmetic on the European Logarithmic Microprocessor", IEEE Trans. Comput. Special Edition on Computer Arithmetic, July 2000, vol. 49, no. 7, pp. 702-715; and erratum October 2000, vol. 49, no. 10, p.1152 [9 C. Breining, P. Dreitseitel, E. Hansier, A. Mader, B. Nitsch, H. Pudeer, T. Scheirtler, G. Schmidt, and J.Tilp, ' Acoustic echo control- An application of very high order adaptive filters,' IEEE Signal Processing Magazine, pp. 42-69, July 1999 [10] Y. Kaneda, M. Tanaka, J. Kojima, 'An Adaptive Algorithm with Fast Convergence for Multi-input Sound Control', Active95, pp. 993-1004, Newport Beach, California, USA. [11] F. Albu, J. Kadlec, N. Coleman, A. Fagan, "Pipelined Implementations of the Modified EF-LSL Algorithm", accepted at ICASSP2002, Orlando, U.S.A. 154 Jacobi Algorithm for Joint Block Diagonalization lil Blind Identification L. De Lathauwer C. Févotte B. De Moor J. Vandewalle* Abstract In this paper we generalize the well-known SOB! technique for blind source separation to convo- lutive mixtures. Our algorithm is based on joint block diagonalization of a set of covariance matrices by means of a unitary similarity transformation. For the latter problem we derive a Jacobi procedure. 1 Introd uction In this paper we show that, under some constraints, blind separation of the inputs of a MIMO FIR system can be achieved by resorting only to the second-order statistics of the output, if we know that the inputs are spatially white but individually correlated in time. This is a convolutive equivalent of the well-known SOB! approach to the blind separation of instantaneous linear mixtures [2]. SOB! relies on the joint diagonalization of a set of covariance matrices by means of a unitary similarity transformation; for this problem one can resort to a Jacobi iteration. Convolutive mixtures could be identified by means of joint block diagonalization of a set of covariance matrices. We will derive a Jacobi algorithm for the latter problem. In Section 2 we will define our data model. Section 3 outlines the computational procedure. In Section 4 we discuss in detail how the joint block diagonalization can be realized. The real case is covered in Section 4.1, the complex case in Section 4.2. 2 Model We consider the following discrete-time M!MO model: L X(t) = L A(l)S(t -l) + N(t), 1=0 where: • X(t) = [Xl (t), , xm(t)jT is the vector of observations. • Set) = [SI (t), , sn(t)V contains unknown zero-mean stationary sources, mutually independent but individually correlated in time. We assume that n < m. • A(l) = [aij(l)], l = O, ... ,L are the unknown (m x n) Markov parameters. OL. De Lathauwer is with the research group ETIS, UPRES-A 8051, 6 avenue du Ponceau, BP 44, F 95014 Cergy-Pontoise Cedex, France. Tel: +33-(0)1-30.73.66.10; fax: +33-(0)1-30.73.62.82; e-mail: delathau@ensea.fr; URL: http://www-rech.ensea.fr. C. Févotte is with IRCCyN, UMR 6597, 1 rue de la Noé, BP 92101, Nantes, France. Tel: +33-(0)2.40.37.69.24; fax: +33-(0)2.40.37.69.30; e-mail: cedric.fevotte@irccyn.ec-nantes.fr; URL: http://www.irccyn.ec- nantes.fr. B. De Moor and J. Vandewalle are with the group SCD-SISTA of the E.E. Dept. (ESAT) of the K.U.Leuven, Kard. Mercierlaan 94, B-3001 Leuven (Heverlee), Belgium. Tel: +32-(0)H'-32.17.09; fax: +32-(0)16-32.19.70; e-mail: {demoor,vdwalle }@esat.kuleuven.ac.be; URL: http://www.esat.kuleuven.ac.be/sista-cosic-docarch. 155 • N(t) is i.i.d. white noise, independent from the sources, with variance a7v. Let L' be an integer such that mL' ;:, neL + L'). We define: Si(t) [si(t), ,si(t - (L +L') + lW, j = l, ... ,n, Xi(t) [xi(t), ,xi(t-L'+l)f, i=l, ,m, Ni(t) [ni(t), ,ni(t - L' + lW, i = 1, ,m, Set) [SI (t)T, , Sn(t)T]T, X(t) [XI(t)T, ,Xm(t)Tf, N(t) [NI(t)T, ,Nm(t)T]T Let, for i = 1, ... , m,j = 1, ... , n, Aij EeL' x(L+L') be given by and define the matrix A E cmL' xn(L+L') as Then we have: X(t) = AS(t) + N(t), (1) in which we assume that A is full rank. This is the typical equation for blind separation of instantaneous mixtures, with the individual sources correlated in time. However, a major difference with [2] is thefact that the sources in Eq. (1) are only partially spatially white, because time-shifted versions of Sj(t) may be correlated (j = 1, ... .n). Formally, the covariance matrices Rs(r) = E{S(t)S(t + r)B} are block- diagonal, instead of diagonal, with «L + L') x (L + L'» blocks given by Rs; (r) = E{Sj(t)Sj(t + r)B} (j = 1, ... , nl. As a consequence, we will only be able to separate filtered versions of the sources. IT necessary, the remaining SIMO filters will have to be estimated afterwards. 3 Procedure We have (2) in which Ï(r) contains only zero entries, except for ones on the diagonal (r = 0), the 7th subdiagonal (r > 0) or superdiagonal (r < 0). The noise variance a7v can be estimated as the mean of the mL' - nl L + L') smallest eigenvalues of Rx(O). In what follows, we will only work with the noise-compensated matrices IT the Eigenvalue Decomposition (EVD) of Rx(O) is given by Rx(O) = U· A2• UB, (3) in which U E cmL' xn(L+L') has orthonormal columns and A E ]Rn(L+L')xn(L+L'l is diagonal, and if Rs(O)! represents an arbitrary square root of Rs(O), then we have A.Rs(O)! =U·A·V, (4) 156 for some unitary matrix V E cn(L+L' )xn(L+L'). Combination with (2) yields, for different values of T ~O, A -1. UH. RX(T) . U· A -1 = V· neT) . v", (5) in which neT) E !C"(L+L')xn(L+L') is a block-diagonal matrix given by neT) = Rs(O)-! . RS(T) . Rs(O)-~. The simultaneous block-diagonalization in Eq, (5) leads to a unitary matrix Q that is equal to V up to some trivial indeterminacies: V=Q·P·Dv, with Dv an unkown block-diagonal matrix containing (L + L') x (L + L') unitary blocks and P an unkown permutation of these blocks. Combination with Eq. (4) yields A =U·A· Q.p ·Dv ·Rs(O)-! = U·A· Q. P ·DA, (6) in which DA E !C"(L+L')xn(L+L') is an unknown nonsingular block-diagonal matrix. In this way, the sources have been separated, but for each source we have introduced some filtering, represented by the corresponding block of DA. H required, the original sources may be recovered using a blind SIMO technique [1]. 4 Simultaneous Block-diagonalization The problem we want to solve is the following. Given matrices M1, ... , Mp E eN x N, with N = nR, find a unitary matrix Q that maximizes p f(Q) = L IIblockdiag(QH . Mp' Q)1I2, (7) 1'=1 in which blockdiag(') takes the block-diagonal, consisting of n (Rx R)-blocks, ofits argument. It is clear that Q can only be determined up to a block-diagonal unitary transformation and a block permutation, as illustrated in Eq, (3). We will propose a Jacobi-iteration scheme. 4.1 Real Case Consider a Jacobi rotation matrix J E ]RNXN, equal to the identity matrix, except for the entries at position (i,i) and (j,j), which are given by cosO, and the entries at position (i,j) and (j,i), which are given by sin 0 and - sin 0, respectively (i < j). Let the (1', s) entry of the transformed matrix M' I' = JT . Mp . J be represented by m' rap' Then we have to maximize in which B1 is the set of indices in the diagonal block to which (i, i) belongs and B2 is the set of indices in the diagonal block to which (j,j) belongs. We have: (m'iip)2 (miip cos2 0 - (mijl'+ mjip) cosO sin 0 + mjjp sin2 0)2 (m'jjp)2 (miip sin 0 + (mijl' + mj;p) cosOsinO + mjjp cos2 0)2 2 (m'ikp)2 (mikp cosO - mjkp sinO)2 (cos2 e + sin2 0) (k ~ i) (m'jkp)2 (mik I' sinO + mjkp coSo)2(cos'' e + sin2 0) (k ~ j) (m'kip)2 (mkip cosO - mkjp sinO)2(cos28 + sin2 0) (k ~ i) (m' kjp)2 (mkip sinO + mkjp COSO)2 (cos2 e + sin2 0) (k ~ j) 157 f can be maximized by computing the critical points of its derivative f', which is also homogeneous in cos lJ and sin lJ, and retaining the global optimum. Computing the critical points of f' amounts to finding the roots of a polynomial of degree 4 in t == tanlJ. (Note that the SOB! equivalent is a quadratic problem.) This approach is more direct than the one in [3] (cf, infra). 4.2 Complex Case 4.2.1 Polynomial Rooting Approach In [3] the following problem is tackled by means of a Jacobi algorithm: m~ L !lEH . Mp' EW, p with E E CNxR having orthonormal columns. We may use the subresults to solve our problem. Consider a Jacobi rotation matrix JE CNxN. The entries at position (i, i) and (j,j) are equal to c, and' the entries at position (i,j) and (j,i) are given by s and -s', respectively, where c==coslJ Let the (r, s) entry of the transformed matrix M'l' == JH . Mp' J be represented by m' rep- Then we have to maximize in which BI is the set of indices in the diagonal block to which (i, i) belongs and B2 is the set of indices in the diagonal block to which (j,j) belongs. Define V == (cos(2lJ) sin(2lJ) cos Q sin(2lJ) sin Q ) T , Gp Re(Zl'Z{!) c', Re(Z' .. l' ZIH) p. Gp Re«m:il' + mjjp)Zp) G' p Re«m:ip + mjjp)Z'p) 1 ( mHp - mjjl' ) Zp 2" --:-(mijp + mjip) z(mijp - mj;p) 1 ( mi;p - mjjp ) Z' I' 2" . mijl' + mjip .. z(mjil' - mijl') . x.; ( ~(lmkjl'l~ - Imkipl2) Re(mk;pmkjp) Im(mkil'mkjp) ) Ykp ( Hlmjkpl2 - l~ikpI2) Re(m;kpmjkp) Im(mikpmjkp) ). Then we have: T T 1 2 Im'iipl2 V Gl'V+GpV+ 1 miip+mjjpl 4 158 VT G' p V + G'; V + ~ Imiip + mjjpl2 T 1 2 2 -V Ykp + '2 (lmikPI + Im;kpl) (k i- i) T 1 2 2 V Ykp + '2 (ImikPI + Im;kpl) (k i- j) T 1 2 2 -V Xkp + '2 (lmkiPI + Imk;pl) (k i- i) V T x.; + '21 (lmkiPI 2 + Imk;pl) 2 (k i- j). Hence f takes the form (8) with G L(Gp+G'p) p Maximization of (8), under the constraint IIVII = 1, using a Lagrange multiplier, leads to 2(G + .u)V + G = 0, (9) and, hence, V = -~(G + ),.J)-IG, (10) where>. is a real scalar chosen in such a way that (11) Ui and >'i being the eigenveetors and -values of G. As we can see from (11), the problem amounts to rooting a polynomial of degree 6 and selecting the root of which the corresponding V maximizes f. (SOB! involves a polynomial of degree 3.) The elements of the optimal Jacobi rotation follow from cos8 = VI + cos(28)/2 and sin 8 ei'" = (sin(28) cos Q: + i sin(28) sina)/(2 cos8). If G is orthogonal to one of the eigenvectors of G, the corresponding ->'i is a double root of (11). In this case, we have to resort to (9) instead of (10) for the computation of V: V = _.!.(G 2 - >'I)tG l + £'·U ~ t, where c, is a real constant chosen such that IIVII = 1 and f is maximum. If it exists, it is given by [3)mentions that this problem is observed near convergence. Actually, the situation is worse: when there is little noise, G becomes proportional to the canonical unit vector El and G converges to a multiple of EIEr Hence, >. = 0 is a quadruple root and the corresponding V follows from 1 V = -'2GtG + C2U2 + C3U3, in which the first term is proportional to El and U2, U3 are orthogonal to it; Cl and C2 are real constants chosen such that IIVII = 1 and f is maximum. There are two possibilities: (1) if II~GtG" > 1, then this does not yield a solution, and (2) if II~GtGIl < 1, then the solution is not unique. However, the remaining possibilities for >.,given by lead to solutions that are close to ±EI. 159 4.2.2 Tensorial Rank-I Approximation Approach The optimal Jacobi rotation can also be computed via the best super-symmetric rank-1 approximation of a partially symmetric (2 x 2 x 2 x 2)-tensor. This approach has the conceptual advantage that we aim directly at the global optimum, instead of determining all the critical points of f and selecting the best one. However, current implementations of the technique may not be faster than the Matlab roots command. Call X = (e s)T. Let the outer product be symbolized by "0": (A 0 8);1;, ...3112... "" (A)i1;, ... (B)ili2 ...· Define the following mapping from (!2X2 to (!2X2: ). Define the following matrices: mii" ( mjip ( mik" mjk" )( ( ( ( Then we have: Im'iipl2 rstu Im'jjpl2 rstu L Im';kpI2 XTG1"X' = L i(G1" I + I Gl,,)r8tuXrX:X;Xu 0 0 kEB1,k¥i rstu I: Im'ikpl~ XT M(G2,,)X' = L ~(M(G2") 0 I + I 0 M(G2,,))r8h'XrX;X;Xu kEB"k¥j rstu L Im'ki,,12 XTH1"X' = L i(H 1P 0 I + I 0 Hl,,)r8tuXrX:X;Xu kEB"k¥i Tstu L Im';k,,12 XT M(H2,,)X' = L i (M(H2p) 0 I + I 0 M(H2,,))r8tuXrX:X;Xu. kEB2,k¥j r8tu Hence, f takes the form / = L arstuXrX:X;XU1 (12) rstu 160 in which A is a (2 x 2 x 2 x 2)-tensor that has the symmetry ar.tu = a;ur •. Maximization of f is equivalent to the best least-squares approximation of A by a super-symmetric rank-l tensor À X 0 X' 0 X' 0 X [5]. For the computation of the best rank-I approximation of a given tensor, a higher-order Rayleigh Quotient Iteration was proposed in [8]. This algorithm converges quadratically in a neighbourhood of the solution. We adapt the algorithm to impose super-symmetry on the rank-I approximation (ór• is the Kronecker delta): Given initial estimate X(O) for 1= 0,1, ... normalize X(l) so that IIX(I) 11 = 1 Compute À(l), B, Mb M2: ratu br ~a L r.ttu x(l)"x(I)'X(I) 8 t u stu ~ a x(I)'x(I)' - \(I)Ó L rtu8 t u A TB tu ~ (1)'(1) (1)'(1) L arstuXt Xu + artsuXt Xu tu Solve for X(l+l): Re(X(I+l») Re(B) ) ) = ( Im(B) (13) Im(X(l+l») endfor Two interesting initial values can be obtained as follows. Associate to A the matrix-to-matrix mapping defined by a summation over its last two indices. Compute the dominant eigenmatrix E of this (4 x 4) Hermitean mapping. It makes sense to choose X(O) such that XHEX is maximized. This the case for the two Schur vectors associated with the dominant eigenvalue of E [6]. An alternative is to associate to A the mapping from third-order tensors to vectors defined by a summation over its last three indices. A computationally cheaper but perhaps less accurate initialization is then to choose X(O) as the left singular vector associated to the dominant singular value of this (2 x 8) mapping, as proposed in [5]. 5 Conclusion In this paper we derived a convolutive equivalent of SOBI [2], relying on joint block-diagonalization, rather than on joint diagonalization. This problem can still be solved by means of a Jacobi iteration, but the computation of an optimal Jacobi rotation now involves the rooting of a polynomial of degree 4 (real data) or 6 (complex data). The problem can also be formulated in terms of the best super-symmetric rank-I approximation of a (2 x 2 x 2 x 2)-tensor. This approximation can be calculated, e.g., by means of a higher-order Rayleigh-Quotient Iteration. The principle of this paper can also be used to generalize [7,8] to convolutive mixtures. Acknowledgements Lieven De Lathauwer holds a permanent research position with the French Centre National de la Recherche Scientifique (C.N.R.S.); he also holds a honorary post-doctoral research mandate with the Fund for Scientific Research-Flanders (F.W.O.), affiliated with the KV.Leuven. Cédric Févotte holds a Ph.D. research position with the French Ministry of Research. Bart De Moor and Joos Vandewalle are Full Professor with the KV.Leuven. This work is supported by several institutions: 1. Research Council KV.Leuven: Concerted Research Action GOA-MEFISTO-666 (Mathematical Engineer- ing for Information and Communication Systems Technology), 161 2. Flemish Government: the F.W.O. projects G.0240.99 (Multilinear Generalisations of the Singular Value Decomposition and Applications in Signal Processing and System Identification) and G.0256.97 (Numerical Algorithms for Subspace System Identification, Extension to Special Cases), the F.W.O. Research Com- munities lecos (Identification and Control of Complex Systems) and ANMMM (Advanced Numerical Methods for Mathematical Modelling), 3. Belgian Federal Government: Interuniversity Poles of Attraction Programme IUAP IV-02 (1997-2001): Modeling, Identification, Simulation and Control of Complex Systems, and IUAP V-22 (2002-2006): Dy- namical Systems and Control: Computation, Identification & Modelling. The scientific responsibility is assumed by its authors. References [1] K. Abed-Meraim, W. Qiu, Y. Hua, "Blind System Identification", Proc. of the IEEE, Vol. 85, No. 8, Aug. 1997, pp. 1310-1322. [2] A. Belouchrani, et al., "A Blind Source Separation Technique using Second Order Statistics", IEEE Trans. Signal Processing, Vol. 45, No. 2, Feb. 1997, pp. 434-444. [3] A. Belouchrani, K. Abed-Meraim, Y. Hua, "Jacobi-like Algorithms for Joint Block Diagonalization: Application to Source Localization", Proc. IEEE Int. Work. on Intelligent Sig. Proc. and Comm. Sys. (ISPACS), Melbourne, Australia, Nov. 1998. [4] J. Cambré, L. De Lathauwer, B. De Moor, J. Vandewalle, "Best Rank-(R,R,R) Super-Symmetric Tensor Approximation - A Continuous- Time Approach", Proc. IEEE Signal Processmq Workshop on Higher-Order Statistics (HOS'99), Caesarea, Israel, June 14-16, 1999, pp. 242-246. [5] L. De Lathauwer, B. De Moor, J. Vandewalle, "On the Best Rank-I and Rank-(R1,R2, ••. ,RN} Approximation of Higher-Order Tensors", SIAM J. Matrix Anal. Appl., Vol. 21, No. 4, April 2000, pp. 1324-1342. [6] G.H. Golub, C.F. Van Loan, Matrix Computations, 3rd ed., Johns Hopkins University Press, Balti- more, Maryland, 1996. [7] A. Holobar, C. Févotte, C. Doncarli, D. Zazula, "Single Autoterms Selection for Blind Source Separation in Time-frequency Plane", Proc. Xlth European Signal Processing Conf. (EUSIPCO- 2002), Toulouse, France, Sept. 3-6, 2002. [8] D.-T. Pham, J.-F. Cardoso, "Blind Separation of Instantaneous Mixtures of Non-stationary Sources", IEEE Trans. Signal Processing, Vol. 49, No. 9, pp. 1837-1848. [9] T. Zhang, G.H. Golub, "Rank-one approximation to High Order Tensors", SIAM J. Matr. Anal. Appl., Vol. 23, No. 2, pp. 534-550. 162 On two Classes of Alternatives to Canonical Correlation Analysis, using Mutual Information and Oblique Projections De Bie Tijl and De Moor Bart ESAT-SCD Katholieke Universiteit Leuven Kasteelpark Arenberg 10 3001 Leuven Belgium http://www.esat.ku1euven.ac.be/sista-cosic-docarch tijl.debie~esat.kuleuven.ac.be tel.: +32-16-32 19 39 fax: +32-16-32 19 70 Abstract. Many of the widely applied signal processing algorithms are based on second order statistics. PCA (principal component analysis) identifies directions of large variance in data living in one single data space, CCA (canonical correlation analysis) searches highly correlated directions in data living in different (often 2) spaces. While the use of only these second order statistics is well justifiable for gaussian data, often higher order statistics are required to cover the needs of real life applications. Considerations based on statistical independency and in- formation theory have lead to ICA (independent component analysis), which can be seen as an alternative to PCA. We motivate the need for an analogous alternative to CCA by explaining why CCA doesn't work appropriately for certain data sets. Firstly then, a class of alternative versions of CCA based on mutual information will be presented in this paper. As a second alternative, we show how, under certain conditions, CCA may be adapted to overcome its weaknesses while still remaining based on second order statistics. A side result is a new and very efficient algorithm for calculating ICA under certain circumstances." keywords: canonical correlation analysis, independent component analysis, signal processing, mutual information 1 Matrices will be denoted by capitalletters; the i-th column of matrix M is denoted as M(:,i); (column) vector variables are denoted by a regular lower case letter; samples of a vector variable, put next to each other in a matrix, are denoted by a boldface lower case letter corresponding to the variable. For brevity, we assume all data to be centered (ie having zero mean). 163 1 Canonical Correlation Analysis and its Limitations 1.1 Canonical Correlation Analysis (CCA) Canonical correlation analysis is used to find relations between two (or some- times more) datasets Yl and Y2 (here assumed to be centered), of which the k columns represent samples in an lt- and lz-dimensional space respectively [1]. More specifically,in each of the datasets, it searches for directions, called Dl (:, 1) and Dz(:, 1), so as to maximize the correlations between the orthogonal projec- tions of the data Yl and Y2 on DI(:' 1) and Dz(:, 1) respectively. T T (D I:,( 1) , D z:,( 1» = argm8XvlElRi.V2ElR~ _ I( T VI • YlY2 T)( . Vz TT) V VI • YlYl . VI Vz . Y2Y2 . Vz vi· L\z· vz where (1) This gives the first canonical components Dd:,I) and Dz(:,I). The following canonical components are found by maximizing the same cost function, under the additional constraint that the data projected on them must be uncorrelated with the projections on the previous canonical components. The number of canonical components is equal to the smallest dimension among the datasets: mine h, lz). One can easily prove that they are found by solving the generalized eigenvalue problem (2) (EJI izz) (~~~z)· (g _OA) where A is a diagonal matrix containing the generalized eigenvalues. 1.2 Limitations It is easy to see that CCA often leads to meaningless results for non-gaussian data. Suppose we have the following (noise free) generative model for the data, where we take dimensions of YI, Yz and x equal to l: YI = MI·x { Yz = Mz·x (3) where MI and Mz are square mixing matrices and x is a vector containing independent signals. This means that the mutual informationê between xCi) and 2 The mutual informationbetween xCi) and x(j) (with 1i(x(i» the entropy of x(i», is definedas MI(x(i), x(j» = 1i(x(i» + 1i(x(j» -1i(x(i), x(j». 164 x(j) is zero for each i and j with i #- j MI(x(i),x(j)) =0 Applying CCA on a such a datasets generally leads to useless results, in the sense that the retrieved canonical components give no information on the underlying mixing model (figure 1). ./ ~~'~--~----~o----~~~ )1'.(') Fig.!. Depicted in the figure are 1000 samples of a 2-dimensional YI on the left, and on the right the corresponding samples of Y2. The solid lines represent the directions of the independent components. The dash-dotted line in each plot shows the first canonical component, the dashed line the second. For calculating the first canonical component, the correlation between the orthogonal projections of YI and Y2 on the respective direc- tions is calculated and maximized. The second canonical component is such that the orthogonal projections of the samples on it, is uncorrelated with the orthogonal projec- tions on the first canonical component. It is clear that in order to find directions which give an indication on the underlying model, orthogonal projections are not suited. The reason for this is that the independent components are linearly combined as in formula (4), and the colums of MI and M2 are not necessarily orthogonal. We can pin down two reasons for this: - only second order statistics are used, and - projections of the data on the canonical components are orthogonal, whereas the colums of the mixing matrices are not necessarily orthogonal to each other. 1.3 Comparison with Principal Component Analysis and Independent Component Analysis ICA is an analysis tool analogous to the well known PCA. It searches for a linear decomposition of a signal y in components x along M(:, i), so that the components of x are independent of each other. Thus, it is assumed that the data is generated by the model: y = M· (x + n) + m 165 where the components of x are mutually independent, n and m represent noise, and M is the mixing matrix. 3 When PCA would be applied on such data, the x are usually not retrieved. Attempts to solve this in general using nonlinear PCA versions didn't succeed. A lot of research has been done on algorithms to find the independent com- ponents ([6],[5)). Most of them consist in a dewhitening step performed first, followed by a step involving higher order statistics or nonlinear decorrelation. The first of these steps accounts for the fact that projections on the independent components are not orthogonal. The second one minimizes a mutual information like quantity between the projections. As for PCA, nonlinear versions of CCA have been proposed (such as in [4],[3]), but in general, these are not suited either for determining independent compo- nents underlying two datasets. The analogy between peA and CeA however suggests to try an analogous generalization of eCA to an lCA-like algorithm. We will thus propose two variants of eCA, which relate to CCA in the same way as lCA relates to PCA and both tend to fill the gap in the following table: based on based on second order statistics mutual information one signal PCA lCA space more than one signal CCA ? space algorithms use algorithms use orthogonal projections oblique projections 2 A Class of Alternatives to Canonical Correlation Analysis 2.1 General Framework leA can be seen as a model-based variant of peA. We will now formulate an analogous variant to eCA. We consider a model of the form: Yi = Mi· (x+n:d +ml { Y2 = M2· (x+n2) (4) +m2 3 The noise term n is often omitted, since in leA no distinction between x and n can be made anyway. However, it is clear that noise on the independent component signals directly is often present. (For instance, noise on independent radio signals can be represented by n, while m stands for noise on the measurements performed by the antenna array.) Therefore, and since it will become relevant in the remainder of the text, we introduce n as an additional signal here already. 166 where Xl and X2 are the independent component variables, MI and M2 the mix- ing matrices, Yl and Y2 the measurements, and nI, n2, mI and m2 represent noise on the independent component variables, and measurement noise respectively. From now on, for convenience, we assume the dimensions of the data vectors to be all equal to Z. Further, we assume that being d = (xT n[ nr m[ mn T, MI{d(i),d(j)} = 0 for all i and j. Analogous to rCA, and assuming the noise is small enough, we can now search for demixing matrices transforming the variables YI and Y2 into Xl and X2 with MI{x*(i),x*(j)} = 0 (or as small as possible). For the problem at hand, however, we have an additional criterium that says that for every Xl (i), there must exist an X2 (j), so that Xl (i) and X2(j) correspond with each other. Here, correspond should be defined more precisely. These two criteria clearly overdetermine the problem. We will now propose several ways to cope with this. Single space ICA followed by matching One possible solution is to per- form lCA on Yl and on Y2 separately, This will generally yield two different estimations Xl and X2 of x. Then, as a second step, one looks for pairwise corre- spondences between the elements of Xl and of X2. This can be done by scoring every pair with a mutual information like quantity, or with the square of the eu- clidian distance, and then optimizing the sum of this distance measure over all possible matchings. An alternative approach to this problem in which these two steps are performed more or less simultaneously, is described in [2]. We should note that the algorithm described in [2] is not restricted to signals parameterized by our linear model (4). Rank reduction followed by ICA If the measurement noise is small enough as compared to the signals, we can first do a rank reduction on (~~), leading to y, and then apply reA on y, leading to only one estimate of x. Note that the rank reduction is nothing else than performing PCA, and retaining the principal components containing most of the energy. Double Space leA followed by selection of independent components A similar approach consists of performing rCA directlyon (~~), followed by a selection of the independent components which are most prominently present in the measurements (in terms of energy content). Another selection criterium could be to choose the independent components which are the least gaussian (noise in particular and thus measurement noise is often close to gaussian). 167 2.2 Discussion Each of these methods leads to similar results in many cases, except: - The first method leads to two estimates of x, whereas the other two only give one and usually better estimate. - The second method is the fastest, and performs well in the case of low measurement noise levels. - The third method can handle higher levels of measurement noise, as long as it has a gaussian distribution and the independent components x don't (which is likely in many cases). 3 A Second Class for a Special Case The keyelement in the next algorithm is that certain oblique projections are invoked. Furthermore, we assume quite stringent conditions on the generative model of underlying the data, so that only correlation analysis needs to be ap- plied, no use of higher order statistics has to be made. 3.1 Conditions We assume in the algorithm that the data is generated in the followingway: (5) with lengths of vectors x, nl and n2 equal to l, nl and n2 being (not necessary gaussian) noise on x and with correlations k 1 (X) :~ T T T II ~ (x nl n2 ) = ( oro 0) (6) oor with IIthe identity, T diagonal, and where x, nl and n2 have zero mean. In other words, we expect YI and Y2 to be generated by x, and each by an uncorrelated zero mean noise influence which is also uncorrelated with x. 3.2 Algorithm and Proof We are now interested in retrieving the independent variables x, as well as MI and M2 giving the independent component directions. 168 Theorem 3.21 We can find an estimate of the independent component direc- tions, being the columns of MI and M2' as the solutions ofthe eigenvalue problem 0 1 1712 . Ei.}) . (MI MI ) ( 1721 . Eu 0 M2 -M2 = (7) (Z~-~2)' (~ _OA) where A = (I + T) -1 is diagonal. We can see that as long as r has different values on its diagonal, the solution will be determined. Moreover, the relative values of the eigenvalues give an indication of the robustness of the eigenvalue problem: the closer to 1, the less robust. Proof 3.21 We 'll proof that 1721 • Eu MI = M2 . A l . the remainder of the proof is analogous. 1721 . Eu1 . MI = M2 • A <=? M2(x + ll2)(X + lll)T Mi· [MI(x + lll)(X + lll)T M'[]-l MI = M2 . A <=? (x + ll2)(X + lll)T . [(x + lll)(X + lll)T]-1 = A <=? xxT . [xxT + llllli T]-1 = A <=} n . [n + rj-l =A 3.3 Corollary: a fast ICA algorithm The goal of leA is to separate a set of signals into its statistically independent components. In developing ICA methods, different approximations of mutual information have been made ([5],[6]). Essentially all go out from the following model underlying the data y: y = M . x + rn, where the mutual information between xCi) and x(j) is zero for each i and j with i i= j (MI(x(i),x(j)) = 0), and with rn being gaussian noise. However, when we have the measurements as in equation (5) at our disposition with negligible mI and m2, we can apply the higher described algorithm for retrieving x, and thus the independent components. This algorithm is much more efficient than any of the previously described algorithms in literature. As higher described (subsection 3.2), a quality factor of the result can be returned, and if then appearing necessary, a standard leA algorithm can still be performed. 4 Conclusions We have shown that eeA in some cases leads to meaningless results. Adapta- tions of the eeA algorithm were made, firstly by making use of existing ICA algorithms, and secondly through requiring stronger assumptions on the dataset. 169 A side result is the fact that under certain assumptions on the data, use of correlation analysis can he enough for carrying out an independent component analysis. In the past, it was generally thought that second order statistics is indispensable for doing ICA. 5 Acknowledgments Tijl De Bie is a research assistant with the Fund for Scientific Research - Flan- ders (FWO- Vlaanderen). Dr. Bart De Moor is a full professor at the Katholieke Universiteit Leuven, Belgium. Our research is supported by grants from sev- eral funding agencies and sources: Research Council KUL: Concerted Re- search Action GOA-Mefisto 666 (Mathematical Engineering), IDO (IOTA On- cology, Genetic networks), several PhD/postdoc & fellow grants; Flemish Gov- ernment: Fund for Scientific Research Flanders (several PhD /postdoc grants, projects G.0256.97 (subspace), G.0115.01 (bio-i and microarrays), G.0240.99 (multilinear algebra), G.0197.02 (power islands), G.0407.02 (support vector ma- chines), research communities ICCoS, ANMMM), AWl (Bil. Int. Collaboration Hungary/ Poland), IWT (Soft4s (softsensors), STWW-Genprom (gene promo- tor prediction), GBOU-McKnow (Knowledge management algorithms), Eureka- Impact (MPC-control), Eureka-FLiTE (flutter modeling), several PhD grants); Belgian Federal Government: DWTC (IUAP IV-02 (1996-2001) and IUAP V-22 (2002-2006): Dynamical Systems and Control: Computation, Identification & Modelling), Program Sustainable Development PODO-U (CP/40: Sustaini- hility effects of Traffic Management Systems); Direct contract research: Ver- haert, Electrabel, Elia, Data4s, IPCOS. References 1. H. Hotelling, "Relations between two sets of variables", Biometrika, 28, 321-327, 1936. 2. S.Akaho, Y.Kiuchi, and S. Umeyama, "MICA: Multimodal indepen- dent component analysis" , Proc. of Int. Joint Conf. on Neural Networks (IJCNN'99), pp.927-932, 1999. 3. Thomas Melzer, Michael Reiter, Horst Bischof, "Kernel Canonical Cor- relation Analysis", PRIP- TR-65,2001. 4. Tony Van Gestel, Johan A.K. Suykens, Jos De Brabanter, Bart De Moor, Joos Vandewalle, "Kernel Canonical Correlation Analysis and Least Squares Support Vector Machines", Proc. International Confer- ence on Artificial Neural Networks (ICANN 2001), pp. 381-386, Vienna, Austria, Anglist '21-25, 200l. 5. Lieven De Lathauwer, Bart De Moor, Joos Vandewalle," An Introduetion to Independent Component Analysis" , Journal of Chemometrics, Special Issue on Multi-Way Analysis, Vol. 14, No. 3, May-June 2000, pp. 123-149. 6. Aapo Hyvärinen, Juha Karhunen, Erkki Oja, "Independent Component Analysis", John WHey & Sons, 2001. 170 AGADDIS:Authentication and Geometrical Attacks Detection for Digital Image Signature Frederic Lefebvre", Benoit Macq+, and Jean-Didier Legat2 1 Telecommunication and Teledetection Laboratory Université catholique de Louvain Batiment Stevin - 2, place du Levant B-1348 Louvain La Neuve, Belgium {lefebvre.macq}~tele.uc1.ac.be 2 Microelectronics Laboratory Université catholique de Louvain Batiment Maxwell - 3, place du Levant B-1348 Louvain La Neuve, Belgium legat~dice.ucl.ac.be Abstract. In this paper, we present a new agorithm for digital image signature. Digital Signature Standard is largely used to dispute authen- tication documents. A digital signature is a bit stream dependent on key and content of document. For each document, the digital signature algorithm provide a unique output bit stream. In order to be efficient in images, the digital signature should be different if and only if the image content, and not the input bit stream, is different. AGADDIS is a one way compression function. AGADDIS extract some characteris- tics, invariant against geometrical deformations (rotation and scalling) and robust against image processing attacks (like compression, filtering, blurring, stirmark. ..). The message digest from this new soft hash func- tion is a 180 bits or 1024 bits length according to ECDSA and DSA Digital Signature Standard. keywords: hash function, pattern recognition, radon transformation, dig- ital signature, watermarking, cryptosystem. lOverview Digital signature scheme was introduced by Goldwasser,Micali and llivest [2]. This authentication scheme asserts that an adversary can not compute a sig- nature with two different messages. In cryptosystems, the type of processes are largely used to insure data integrity, data origin authentication and non repudi- ation. In classical document, the signature is unique for each different document. A document is different if and only if the bit stream is different. This non collision property is given by hash function property. An other hash function property is the infeasibility to reverse the process. It means that it must be impossible to find or compute the message from the digital signature. For example, MD5 [3], SHAI [4]are customized compression function in cryptographic process. 171 In RASH algorithm [1], we introduced a new definition for image application: two images are different if and only if image contents are different. Image rnanip- ulations must not affect the output of the hash function, called message digest. To respect the above postula, we developped a specific hash function for images based on the Radon Transform, The design of this hash algorithm was focused on specific imaging attacks : blur, sharpening, compression, noise insertion, ro- tation, scaling and stirmark [6]. The Radon transformation [7] provides some mathematical properties. From Radon transform, some robust and almost invariant elements can be extracted. _"' "1.... Image source Radon transform Typical point extraction Fig. 1. Typical point extraction In our previous paper, we explained how to extract these typical points. In the following sections, we will describe our new method to compress these points with high level of non collision with other soft hash image and our new method to detect authentify a signature. 2 Previous work As I explained in RASH algorithm, the Radon transform is largely used in medi- cal image processing. In tomography, X-Rays are largely used to define an organ. In fact, the bundle provided by X-Rays goes through an organ, and its attenu- ation depends on the content of the organ. For a specific distance and direction (or angle), we have a projection. This set of projections (180 projections) is called Radon transform. To respect the aim of Radon in tomography: how to define a region (an or- gan), we can suppose that in 2D picture, the content is the value of each pixel figure(2). For a gray scale picture, this value is the luminance. We hope that this new method can represent as well as possible the region (content) of the picture. 172 »>: Fig. 2. line integral of Radon Each projection is an estimation of line integral of g(x,y) (or summation in discrete domain) of 9 and p. Mathematical equation of this transformation in i: continu domain is defined by: Rg(p,9) = gep· cos 9 - q.sin9,p. sin 9 + q. cos 9) dq (1) The mathematical expression of Radon transform leads to some very useful properties. - IT an image 9 is rotated by ergy of RASH curve and a factor of scale under 1 decrease RASH curve figure(4). Output soft hash function must not be sensitive to geometrical distorsions. Hence RASH curve is normalized by the variance a (5). (5) 174 x 105 Lena RASH scale faèför~ 1.4 r---'---------~--_, 1.1 2.5'----~-----~---' o 50 100 150 200 200 X 104 Lena RASH scale factor=O.5 2.4r---------~--_, 2.2 2 1.8 1.6 1.4 1.20'----5:":0---1~0-0--1~5:-:0---=-'-2oo Fig. 4. Scale factor effects To keep the more significative coefficient of DCT during step two, we sub- stract to RASH normalization by variance, its mean. The new output soft hash function is given by: RASH RASHnorm = a - mean( RASH a ) (6) 3.1 AGADDIS com.pression To complete the compression operation, only some coefficientsare selected from DCT sequence. To built an inverse DCT with a hight precision to compare hash function from original image and caraeterstics from the image test, most of DCT coefficients have to be checked. After some test applied in differents images, the 120st coefficients represent 99,99 percent of the energy in the DCT sequence. To realize a 1024 bits length signature (according to DSA), the 128st coeffi- cients are quantified with 8 bits for each DCT coefficientsfigure(5). It is a linear quantization. 3.2 AGADDIS Authentication and Experim.ents To test the 1024 bits of the signature, the typical points extracted to the image test are compared to the sequence built by the 1024 bits of the signature. 175 x 10' Lena RASHscale=0_5 RASHnormalized 2.4 r-:-=--------------, 3,----------------, 1_2'----~--~--~----' o 50 100 150 200 150 200 128s1DCT coefficients quannzed ~r-------------_. 250 200 150 100 50 50 100 150 Fig. 5. HASH compression steps The authentication is separated in two steps. In first, we try to determine if the 1024 bits can be the signature of the image test. We compute an iDCT in the 1024 bits (with zero padding) and we examine the peack correlation between iDCT and RASH curve from the test image. ITit is over 0.9, the second test is applied: - the DCT coefficients (the signature of 1024 bits) are synchronized with the typical points extracted from the image test - the synchronized DCT coefficients (the signature of 1024 bits) are padded by the image test DCT coefficients.To have a lossy rcconstructiou based on DCT, it is necessary to have all coefficients (7) from the original signal. 1») N RASH(n) = L (W(k).DCTRASH(k). cos II.(2n -2~·(k - (7) k=l By padding the 128 DCT coefficientsfrom signature with the 52 lastest DCT coefficients from RASH of the image test, inverse DCT reconstruction will give us enougth Information to rompare signature and RASH of image test. lf signature and DCT coefficients padded do not come from the signal, the reconstruction will be wrong, and too many differences will exist between iDCT and original signal. The following figures show the different steps and the results for two images with different contents: Lena and Baboon figure(6) 176 RASH of lena.bmp ~~l~~ o 20 40 §9nchroniz~RASH~boon.b~ 140 160 180 :[ -2~-~--~----~~----~----~----~----~----~------~~~ o 20 RASt4Q)fba~p from §(gnature ~fi¥ilpaddin9 ~ lena.b~SH 160 180 jo 2, L\+) generate the (T, L\). We will consider general monotone access structure (T, L\), which describes subsets of participants that are qualified to recover the secret s E K (K - finite field) in the set of possible secret values. There exists an adversary A which can corrupt a set of servers during any time period. Corrupting a server means learning the secret information in the server, modifying its data, sending out wrong message, and so on. Since the server can be rebooted, the adversary is a mobile one. The collection of all possible corrupted servers for fixed time period we call bad and is denoted by L\A, and the collection of all possible uncorrupted servers for the same period of time we call good and is denoted by rA. It is obvious that L\A and T»: are monotone and rA n L\A = 0. So we can consider a second access structure (rA, L\A), which is called adversary access structure [11). The adversary access structure is complete, so we will denote it only by rA. The simple example of adversary access structure is to set a number b to be the maximum number of broken (corrupt) servers by adversary for fixed time frame (i.e. threshold case). The contribution of this paper is twofold: First, we introduce new operation for the access structures which extends the notion of Q2(Q3) adversary structure introduced by Hirt and Murer [11). This operation characterize which adversary structure can be tolerated. Also this operation allows us to study how the partic- ipants and the adversary structures are linked. Second, we propose a proactive SSS for general access structures for both, participants and adversary, as long as the participants access structure admits a LSSS and some conditions for both access structures hold. 2 Preliminary 2.1 Notations Let K be finite field. An (n, t)-Vandermonde matrix (over K) with t < n, is matrix which i-th row is of the form (l,D:i, ... ,D:~-l), where D:l, ,D:n E K. For an arbitrary matrix M over K, with m rows labeled by 1, , m and for arbitrary non-empty subset N of {l,... , m}, let MN denote the matrix obtained by keeping only those rows i with i E N. If {i} = N we write Mi. Consider the set of row-vectors Vil' ..• , Vik and let N = {il' ... , ik} be the set of indices, then we denote by VN the matrix consisting of rows Vil' ... 1 Vik. Instead of < E, Vi > for i E N we will write < E, V N >. Let Mlr denote the transpose of M N, and let I mMlr denote the K -linear span of the rows of M N. We use K er M N to denote the kernel of MN, i.e. alllinear combinations of the columns of MN, leading to o. 198 It is well known that any square Vandermonde matrix has non-zero determi- nant. If M is an (n,t)-Vandermonde matrix over K and N is non-empty subset of {I, ..., n}, then the rank of MN is maximal (i.e. is equal to t, or equivalently, ImMJ; = Kt) if and only if 1Nl ~ t. More over: Let e denote the column vector (1,0, ...,0) E K': If 1Nl < t, then e 1. ImMJ;, i.e. there is no >. E KINI such that MJ,>. = e. Let us define the standard scalar product < x, y > and x .L y, when < x, y >= O. For a K-linear subspace V of K", V.L denotes the collection of ele- ments of Kt, that are orthogonal to all of V (the orthogonal complement), which is again a K -linear subspace. For all subspaces V of Kt we have V = (V.L).L, (ImMJ;).L = KerMN or ImMJ, = (KerMN).L, < x,MJ;y >=< MNx,y > Hence from ImMJ, = (KerMN).L follows the lemma. Lemma 1. [5J The vector e 1. I mMJ; if and only if there exists k E ~ such that MNk = 0 and kl = l. Let V = (VI, ... , Vt) E K''; W = (WI, ... , Wt) E ~; The tensor product V ® wis defined as a matrix t x t that the j-column is equal to Vjw. 2.2 Definition Now, generalizing the notion of Q2(Q3) adversary structure introduced by Hirt and Murer [11],we introduce a new operation for the access structure. Definition 1. For the access structure (r,.:1) we define the operation * as fol- lows: n * .:1 = {A = Al U A2; Al E (n - 1) *.:1, A2 ELl}, for n = 2,3, .... Let us consider the tuples tF, .:1), (r, 2*.1), ... , (r, n*.1). They are access struc- tures if and only if r n n * .:1 = 0. Definition 2. For the complete access structure r we define the operation * as follows: First we set .:1 = 2P \ rand (as in Definition 1) calculate n * .1. Then we define n * r = 2P \ n * .:1, for n = 2,3, . Now we can consider the sequence r,2 * T, ,n * r, of access structures if and only if n * r =f. 0, i.e. if n * r is non-trivialone. Lemma 2. Let r be a complete access structure, then n * r =f. 0 for every n if and only if there exists a Pi E P such that {Pi} 1. .1. 2.3 The settings We will follow the settings of the scheme in [13,10,15]. Consider system of n servers P = {PI, P2, ••. , Pn}, which are connected to a common broadcast chan- nel. We can also assume that the system is synchronized. To make things simpler, we assume that there are private channels between each pair of servers and that the messages sent by broadcast are safely authenticated. With this assumptions, we are able to focus on the proactive scheme itself. There is also a dealer D who should share the secret s E K and a mobile adversary A. For the system of servers P, we consider the access structure (r,.:1) 199 of qualified and forbidden groups. Since this access structure is set up in the be- ginning of the procedures and is not changed during all live of the system we will call it static. On the other hand the adversary access structure FA is dynamic. We prove in this paper that if both access structures fulfill some requirements it is possible to build unconditionally secure proactive scheme. 3 VSS Since secret sharing were proposed initially by Shamir [16]and Blakley [3], re- search on this topic has been extensive. In the "classic" secret sharing schemes, there are assumed to be no faults in the system. Chor et al. [8]first defined the complete notion of VSS. There are two aspects of the security in a VSS. One is the security of the secret and the other is the security of the verification. In [2]it was shown that in any unconditionally secure threshold VSS, b < n/3. In [15] Stinson and Wei proposed more efficient unconditionally secure VSS with threshold t and with b::; n/4 - 1. In this section we provide an unconditionally secure VSS which will be used in the proactive scheme later. 3.1 LSSS and MSP Brickell [4]points out how the linear algebraic view leads to a natural extension to a wider class of secret sharing schemes that are not necessarily of the thresh- old type. This have later been generalized to all possible so-called monotone access structures by Krachmer and Wigdreson [12]based on a linear algebraic computational device called monotone span program (MSP). Definition 3. [12,5J The quadruple M = (K,M,é,'!jJ) is called monotone span program, where K is a finite field, M is a matrix (with m rows and d ::; m columns) over K and '!jJ: {I,... ,m} --> {I,... , n} is a surjective junction. The size of M is the number of rows m. Here '!jJlabels each row with a number from [1,... , m] oorreeponding Lu a fixed player, so we can think of each player as being the" owner" of one or more rows. And for every player we consider a function

to Ps, where i,k E G. 2. After receiving the information, Pk computes À, such that M~«:])À = e, o for some group cG and GE 2 * TA. 3. Denote by RI the first column in R. So, s =< RI,e >=< RI,M~(G)À >= < M=< (M= < (S, where (S. Note that joint information held by the players in G is S(MiR)T = RAfl' and hence MjvT = vjM[ holds for all good players P;,Pj. Thus all good players are in G. Therefore veri = 1 for each good player Pi. 3. Suppose that all players from G E TA output veri = 1 at the end of the Share. Then in G no one complained to the others. Since we assume that there are ..::lA bad players, there are at least G E 2 * TA good players in G. Further because of condition iii) the players in G can determine the secret s' EK. Of course s' = s if the dealer is good. 4. Regarding privacy let N be the "rejected" set and let us consider joint infor- mation held by the players in N, i.e. S= O. If the conditions are satisfied, then Pk computes and sends to Pj the values Mcp(j)(V~e?k»)T. Otherwise Pk broadcasted an accusation of Pr 4. Pj checks whether Mcp(j)(v~elk»)T = vcpelj)M~(k) for the values of e not accused by some set of servers from 2*FA (in step 3). If the set of values of k for which equations are not true is from 2 * FA, then Pj broadcasts an accusation of Pe. 5. If Pe is accused by some set of servers from 2 * rA(from steps 3 and 4), then he can defend himself as follows. For those Pi that Pe is accused by, Pe broadcasts V~()i)"Then all servers Pk checks whether v~()k)M~(i) = Mcp(k)(V~()i)T and broadcasts "yes" or "no ". If the set of servers broadcasting "yes" is from 2 * FA, then Pe is not a bad server. 6. Pj updates the list of bad servers L by including all values e for which Pe is accused by at least one set from 2 * rAor found bad in the previous step. e Then Pj updates Its shares as Vj +--- Vj + Ee\tL vJ ). In this phase the real shares are not involved, so no information about them could be revealed. Secondly, from the protocol we know that every good server should have the same list L. Therefore, the good server will keep consistent shares after renewal. Note that a good server Pe can be accused by at most 2 * ..1A servers. In this case, Pe will broadcast its defense. On the other hand, suppose P« gives to Pi a 204 wrong share, i.e the received share Pi is not consistent with some set of servers from 2 * rA. Then Pi will accuse P; in step 4. If Pe broadcasts a correct share in the defense, then Pi can correct his share. Otherwise Pe will be found to be bad. 4.3 Recover a share When a server is corrupted or replaced, it needs to be rebooted and thus it needs to recover the secret shares. Detection First we provide a protocol, to detect the corrupted servers, which we call detection. 1. Pe computes and sends M to Pk. 2'. Pk computes À, s.t, M~(ë)À = E, for some group à c G and ä E 3 * rA. 3. As in VSS ease the secret s =< (Sëh, À>. Let us define the d = max{ Ir,o( N) I; N E r-} and let dl = mine d, d). We are now in position to prove the following theorem. 205 Theorem 3. The scheme described in this section is an unconditionally secure proactive secret sharing scheme if the following conditions are satisfied: iv) F = 3 * FA' v) Im(Mcp(G)) = «« if and only if GE F. (i.e. Mcp(G) has a maximal column rank if and only if G E F.) The proof follows from Theorem 2 and from the description of the protocol. References 1. G.R.Blakley and G.A.Kabatianskii, Linear Algebra Approach to Secret Shar- ing Schemes, Springer Verlag LNCS 829, 1994,33-40. 2. M.Ben-Or, S.Goldwasser and A.Wigderson, Completeness theorems for Non- Cryptographic Fault-Tolerant Distributed Computation, Proc. ACM STOC'BB, 1988, 1-10. 3. G.R.Blakley, Safeguarding cryptographic keys, AF/PS Conference Proc. 48, 1979, 313-317. 4. E.F .Brickell, Some ideal secret sharing schemes, J. of Comb. Math. and Comb. Computing 9, 1989, 105-113. 5. R.Cramer, Introduetion to Secure Computation, Secure Computation 2000. 6. R.Cramer, I.Damgard, U.Maurer, General and Efficient Secure Multy-Party Computation from any Linear Secret Sharing Scheme, Weizmann Workshop on Cryptography, Weizmann Institute of Science, Rehovot, Israel, June 1998. 7. R.Cramer, I.Darngard, U.Maurer, General Secure Multy-Party Computation from any Linear Secret-Sharing Scheme, Proc. EUROCRYPT 2000, Springer Ver- lag LNCS 1807, 316-335. 8. B.Chor, S.Goldwasser, S.Micali and B.Awerbuch, Verifiable secret sharing and achieving simultaneity in the presence of faults, Proc. of the IEEE 26th Annual Symp. on Foundations of Computer Science 1985, 383-395. 9. M.van Dijk, A Linear Construction of Secret Sharing Schemes, DCC 12, 1997, 161-201. 10. A.Herzberg, S.Jarecki, H.Krawczyk, M.Yung, Proactive secret sharing or: How to cope with perpetnet leakage, Proc. CRyrTO 1995, Springer Verlag LNCS 963, 339-352. 11. M.Hirt and U.Maurer, Player Simulation and General Adversary Structures in Perfect Multiparty Computation, J. of Cryptology 13, 2000, 31-60. 12. M.Karchmer, A. Wigderson, On Span Programs, Proc. of B-th Annual Structure in Complexity Theory Conference, San Diego, California, 18-21 May 1993. IEEE Computer Society Press, 102-111. 13. R.Ostrovsky, M.Yung, How to withstand mobile virus attack, ACM Symposium on principles of distributed computing, 1991, 51-59. 14. T.Rabin and M.Ben-Or, Verifiablesecret sharing and multiparty protoeels with honest majority, Proc. of the 21st Annual ACM Symp. on Theory of Computing 1989, 73-85. 15. D.R.Stinson and R.Wei, Unconditionally Secure Proactive Secret Sharing Scheme with combinatorial Structures, SAC'99, Springer Verlag LNCS 1758, 200- 214. 16. A.Shamir, How to share a secret, Communications of the ACM22, 1979,612-613. 206 Automatic Human Face Detection for Home Surveillance Applications* Fei Zuo! and Peter R.N. de With2 1 Eindhoven University of Technology, EESI, 5600MB Eindhoven, the Netherlands F.Zuo~tue.nl 2 CMG Eindhoven / Eindhoven University of Technology,the Netherlands peter.de.with~cmg.nl Abstract. This paper concentrates on exploiting human face informa- tion for surveillance applications in a home environment. The system features real-time human face detection and facial feature identification. It is our aim to insert the results in a video-security system architec- ture, where MPEG-4 coding techniques enable low bit-rate video trans- mission over a home network environment. The processing contains the following essential elements: (1) skin-color segmentation, (2) histogram analysis for facial feature detection, and (3) probability-based confidence value evaluation of facial features. We have tested our sequence of pro- cessing algorithms on a set of video sequences. The experimental results show that our approach offers near real-time processing speed with good detection capability, but the robustness needs further improvement. 1 Introduetion Video surveillance systems have become popular in many professional applica- tions. The small inexpensive cameras for multimedia computing enable the in- troduction of video surveillance applications in a consumer home environment. In the home environment, video surveillance is attractive for new applications when it is combined with face recognition. Such a system can automatically per- form tasks such as identifying persons approaching the back door for security purposes. The required processing task of such a application usually involves a widc variety of video processing algorithms ranging from motion segmentation to pattern recognition. A typical home video surveillance system may contain the following video analyzing tasks. 1. Moving person segmentation for identifying approaching persons. Motion information is analyzed here to separate moving targets from their back- ground. * This work is supported by the HomeNet2Run project, which is running under the ITEA research programme within the EUREKA framework. 207 Fei Zuo and Peter H.N. de With 2. Face detection. When the person gets near enough, his/her face can be de- tected and extracted. The corresponding facial features are extracted and/or coded at the same time for later processing. 3. Face recognition. Face recognition distinguishes different persons and decides about the person's identification. Among these tasks, face detection is an indispensable and important step because it usually sets the input for the face recognition modules. The performance of most face recognition algorithms relies on an accurate locating of human face regions. However, face detection has remained to be a difficult problem because human face varies strongly in its appearance. The challenges associated with face detection can be attributed to the following factors: pose, presence or absence of structural components, facial expression, occlusion, image orientation and imaging conditions [3]. A wide variety of methods for face detection have been proposed in the past decade. Extended surveys of these methods can be found in [3][4]. These meth- ods range from simple edge-based algorithms to complex high-level approaches utilizing advanced pattern recognition techniques. Among these approaches, skin color has been proved to be an effective facial feature for locating facial regions. In addition, skin-color-based methods usually achieve much higher speed than other computation-expensive approaches and are especially suitable for real-time applications such as video surveillance. Several studies [1][2][3]have revealed that human skin color forms a highly condensed cluster in certain color spaces, and its distribution can be characterized as a multivariate Gaussian distribution. However, skin color detection methods are prone to detection errors, especially in cases where human faces are immersed in a skin-color-like background. Some recent skin-color based methods use geometric analysis or motion information for face verification. However, these methods generally cannot achieve robustness due to the following reasons: 1. Most verification processes only simply make a true-or-false decision for a candidate skin-color blob, therefore, they are prone to make erroneous deci- sions when faces and their background are contained in the same skin-color region. 2. In geometry-based verification, a set of rules defining a face are usually formed according to heuristics or anthropometric measurements. Due to the variation of human faces (e.g. race, sexe, and age), these rules should be well defined. The definition of a 'perfect' threshold for classification of faces and non-faces has been proved not feasible. In this paper, we propose a skin-color based face detection which invokes a fur- ther extraction process. The extraction process uses confidence values for some facial features. The confidence value of each facial feature is based on a proba- bilistic analysis of facial geometry. The proposed approach selects the most prob- able facial feature combination to form a complete facial region. Our approach has the following advantages over aforementioned skin-color-based methods: 208 Automatic Human Face Detection for Home Surveillance Applications 1. It can extract the face region from a large skin-colored area by verifying the existence of facial features such as mouth and eyes. 2. It avoids a strict true-or-false decision by incorporating probabilistic metrics. A set of facial features is considered to have a certain probability to represent a human face. If one set of facial features achieve a sufficiently high confidence value, the corresponding region is regarded as a real face region. The paper is structured as follows. In section 2, we give a brief introduetion of the proposed method and its processing flow. Section 3 illustrates in more detail the key algorithms, i.e. the skin-color segmentation and probability-based facial region evaluation. Section 4 presents the evaluation results of experiments using our proposal. Section 5 presents conclusions. 2 Sequence of Processing Algorithms for Face Detection In this section, we present an overview of all processing tasks that are performed for our face detection proposal. The purpose of this section is to briefly discuss the individual steps in the processing. In the next section, we will discuss details of the most important steps. Fig. 1 visualizes the sequence of processing steps. (d) (e) (I) (g) Fig. 1. The sequence of processing algorithms for the proposed face detection method (a) Original image frame (b) Skin color segmentation (c) Filtering (d) Contouring (e) Region forming (f) Thresholded image for histogram analysis (g) Final result. Each frame of the original video sequence (Fig. l(a)) is first segmented into areas based on skin-color detection (Fig. 1(b)) [1J. A binary majority filter is then applied to smooth the segmentation results and it also removes minor objects and it fills holes in the object (Fig. 1(c)). The contours of the skin-colored areas are then traced (Fig. l(d)) and candidate regions that may contain faces are recognized and labeled (Fig. l(e)). Each candidate region is converted to a binary image using a threshold based on both luminance and chrominance information (Fig. l(f)). The binary image emphasizes some of the salient facial features. 209 Fei Zuo and Peter H.N. de With After these pre-processing steps, we use a probability-based face verification algorithm to further extract facial regions from the candidate regions. In this algorithm, possible prominent facial feature regions (mouth and eyes) are first located, using histogram analysis. Then so-called individuallocal confidence val- ues are assigned to each feature. All possible combinations of facial features are then formed to generate a face candidate set. For each combination, the global relationship between constituting feature regions is examined to yield a global confidence value. The candidate combination with the largest comprehensive confidence value is considered the most-likely facial region. After such a facial region is determined, post-processing eliminates unlikely candidates based on shape analysis (Fig. leg)). The rectangular bounding box indicates the face re- gion, while the enclosed upper and lower horizontallines represent the eye region and mouth region, respectively. 3 Key Algorithms for Face Detection 3.1 Skin Color Segmentation We apply the research result from [Ijbecause it uses two signal components only which supports real-time applications. We analyzed a sample set of facial pix- els taken from people of different race, gender, age and under various lighting conditions. The skin color is mostly concentrated in two normalized signal com- ponents r = R+~+B and 9 = R+g+B' The combination (r,9) yields a bivariate Gaussian distribution, which is plotted in Fig. 2. Skin-color distributiof' Fig. 2. Bivariate Gaussian distribution of skin color showing a narrow concentration (I-£r = 110.4157, I-£g = 80.4125, {j~ = 154.9733, {j~ = 20.1298, {jgr = (jrg = -18.5518). The mean values of rand 9 (I-£r = EI'=l ri, I-£g = E7=19j) are computed. Also the covarianee term a gr and the signal varianees {j; and {j~ are evaluated for a rough segmentation of the original image frame into possible facial areas. 210 Automatic Human Face Detection for Home Surveillance Applications 3.2 Probability-based Facial Region Verification Facial features have been widely used in facial processing literature for classifying human faces. However, facial feature appearance and distribution vary consid- erably among different people and under different conditions. Some of the facial features can not be explicitly distinguished from image deteriorations resulting from local poor video quality (e.g. a dark noisy area). Some of the facial features can be easily mixed up like eyebrows and eyes. For this reason, we focus on first selecting the most prominent facial features - eyes and mouth. We assume that these features are always present in every face image. At the same time, the detection of less prominent features, like nostrils and eyebrows, can contribute positively to a confident identification of prominent facial features. The algorithm starts with a binary image which may contain a human face. First the horizontal histogram is generated from the input image [6], from which second derivatives of local maxima are located as reference lines. These reference lines correspond to some comparatively 'flat' areas having no significant dark regions, i.e. potential cheek lines. The local minima above the reference line and the local minima below the reference line form two candidate sets: the eye region candidate set ESk = {ei I i = I,m} and the mouth region candidate set MSk = {mj Ij = l,n}(see Fig. 3). The algorithm iterates over the whole facial region to get all reference lines and all possible eye and mouth candidates: ES = UESk and MS = UMSk. Fig. 3. Face detection and subsequent facial histogram analysis. For each e, E ES, we define the probability of being the real eye region as a local confidence function: m LC(e"EYE) = L WsP". (1) 8=1 The term ui, is a weighting factor and Ps represents the confidence value based on different assessment criteria that are explained below. Two criteria are of significant importance for their contribution to the confidence function. 1. A principal criterion is the matching probability of ei fitting to a pre-defined eye region template (see Fig. 3(a». A series oftemplates are used in this stage to accommodate for various eye positions. The probability value indicates how well ei fits to one of these available templates. 211 Fei Zuo and Peter H.N. de With 2. Another important criterion considers the possible existence of less promi- nent features like nostrils and eyebrows, for increasing the reliability of our decision. The detection of less prominent features in the correct positions relative to ei increases the probability that ei is a real eye region. In Fig. 3(b), auxiliary regions es and et are introduced for this purpose, where es may contain the eyebrows and et may contain the cheek. The presence of low-intensity pixels in es and high-intensity pixels in et gives ei a higher confidence value. This is especially useful when a significant eyebrow area appears in the face. Eye templates 1- - -- Auxiliary region es Candidate eye region Auxiliary region et ei (a) (b) Fig. 4. Local confidence evaluation Similar processing is also applied to evaluate the mouth region. After local confidence evaluation is examined, the individual candidate features of ES and MS are extended with their corresponding confidence values, as follows: where Cei represents the confidence value of ei and Cmj represents the confidence value of mj' 'The examination of only local features and their relations is not sufficient for a final judgment of a facial region. A global confidence evaluation process is applied to assess the overall probability for a face candidate. We define a face candidate as a combination of facial feature regions. For each face candidate (ei,mj) E ESC x MSC, a global confidence function is evaluated as follows: n GC(ei, mi) =~ ~ WtQt . (2) t=l The term Wt is a weighting factor and Qt represents the global confidence value according to global assessment criteria. These criteria are based on geo- metric relations between different features. For example, one of the criteria is based on the statistical analysis of the ratio between face width at the eye level de and the distance between eye and mouth dv. The probability density function of this parameter for a large group of people can be characterized as a normal 212 Automatic Human Face Detection for Home Surveillance Applications distribution. Therefore, the confidence value Qt in our proposal is based on the probability evaluation of the specific ratio de/dv. The final confidence evaluation function of a face candidate combines equa- tions (1) and (2) into: The variables wg, We, Wm are weighting factors. The face candidate with the highest confidence value is selected as the most probable facial region. A post- processing step is then performed to make a final judgment using a shape analysis of the selected region. 4 Experimental Results To evaluate the efficiency of our proposed technique, we tested our method on several video sequences including both standard testing sequences and self-made sequences. The system achieves an average of 10.7 frames/sec processing speed on a Pentium IV desktop (Intel 1.7G Pentium IV processor, 256M memory, Red Hat Linux 7.2, gcc) with a resolution of 320 pixels by 240 lines, which is sufficient for real-time video surveillance applications. Example frames from the testing video sequences are shown in Fig. 5. In sequence Salesman (Fig. 5(a» which contains relatively detailed background, the system identifies the face region correctly in 90% of the frames. We recorded a special experimental indoor sequence (Fig. 5(b» because it contains skin- colored background objects such as cabinets, tables and parts of the person's clothes. The system successfully identifies the face region in 95% of the frames. The experiments prove that our approach is quite attractive for real-time video surveillance applications. However, initially the proposed method was prone to make false detections when dealing with more detailed background objects, and it showed low robust- ness against poorly-illuminated environments. These problems were solved by incorporating an image correction pre-processing step and a refinement of the previously mentioned confidence evaluation criteria. (a) (b) Fig. 5. Detection results on different video sequences 213 . Fei Zuo and Peter H.N. de With 5 Conclusions In this paper, we have proposed a fast human face detection technique for home video surveillance applications. The proposal first uses a skin-color model to roughly segment the possible facial areas. Afterwards, a probability-based evalu- ation process is applied to further extract facial features from candidate regions. In this step, prominent feature regions such as eyes and mouth are extracted based on confidence value evaluation. The experimental results show that a 90-95% detection accuracy is achieved. As there is no training procedure in- volved in the processing, the proposed technique is suitable for real-time video processing. Our proposal can be further refined by incorporating more advanced nor- malization and criterion selection. Motion information can also be included to improve the overall detection accuracy. The robustness of the system with re- spect to poor illumination and rotation of the faces still need further study. References 1. Yang, J., Lu, W., Waibel, A.: Skin-Color Modelling and Adaptation. Technical Re- port CMU-CS-97-146. School of Computer Science, Carnegie Mellon University, Pittsburgh (1997) 2. Sobottka, K., Pitas, Ioannis.: Extraction of Facial Regions and Features using Color and Shape Information. In Proc. 13th International Conference on Pattern Recog- nition. Vienna Austria (1996) 421-425 3. Yang, M-H., Kriegman, D., Abuja, N.: Detecting Faces in Images: A Survey. in IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), Vol 24, no. 1. (2002) 34-58 4. Hjelmaas, E.: Face Detection: A Survey. in Computer Vision and Image Under- standing, Vol 83. (2001) 236-274 5. Yang, M-H., Abuja, N.: Detecting Human Faces in Color Images. in Proc. Interna- tional Conference on Image Processing, Vol1. 1. (1998) 127-130 6. Kotropoulos, C., Pitas, I.: Rule-based Face Detection in Frontal Views. in Proc. International Conference on Acoustics, Speech and Signal Processing. Munich Ger- many (1997) 127-541 214 Multi-party Server-Aided Key Distribution Protocols Based on Symmetric techniques Malek Bechlaghem" Université Libre de Bruxelles Dept. of Computer Science, Bd. Du Triomphe, e.P. 212, 1050 Bruxelles, Belgium mbechla@ulb.ac.be Abstract. Server-aided multi-party key distribution (MSKD) protocols are protocols in which a Trusted Third Party generates and broadcasts securely a session key to protocol participants. We investigate MSKD protocols through their desired properties and propose new protocols offering additional properties. Our protocols are contributory in the sense that every protocol participant equally contributes to the key generation process and guarantees its freshness. Our protocols do not require the use of conventional encryptionldecryption, instead, we use other security mechanisms such as Secure Keyed Hash Functions. Our protocols allow pre-computation on TTP side which is an important property allowing to reduce the TTP computational complexity during protocol runs. We define backward secrecy as being a week variant of perfect forward secrecy and show that our protocol provide backward secrecy. I. Introduetion Key establishment protocols can be roughly classified in two categories: Key distributton protocols which rely on a trusted entity to generate and transfer a session key to protocol participants. On the other hand, in Key agreement protocols each participant is involved in the construction ofthe key. In this paper, we are interested in multi-party key distribution protocols based on symmetric techniques. Server-less multi-party key distribution protocols [3] are not easily extendible to multi-party settings since every user needs to share his secret key with all other users so in this paper we confine our work on Mu/ti-party Server-aided Key Distributton (MSKD) protocols. In this paper, we considered relevant features and properties of MSKD protocols and in doing so, we discovered that existing protocols suffer from the lack several of these properties which led us to define new useful properties. The remainder of this paper is organized as follows. After presenting some necessary definitions in section 11, we discuss the motivations and goals of our work in section Ill. After describing few useful notations in section IV, we then detail our protocols in section V . • This paper was finalized when the author was working for Belgacom, Bd du Roi Albert 1127, )030 Brussels. 215 11.Key establishment protocols: Definitlons and properties Most of the following definitions are taken from the literature. Menezes & al [5], chapter 12 is a good reference. Key authentication is the property whereby one party is assured that no other party aside from protocol participants may gain access to an agreed secret key during a protocol run unless aided by dishonest protocol participant. Key confirmatien is the property whereby one party (possibly the TIP) is assured that other protocol participants actually have possession of an established session key. Explicit key authentication is the property obtained when both key authentication and key confirmatien hold. An authenticated key distribution protocol is a key distribution protocol which provides key authentication. A contributory protocol is a protocol where each party equally contributes to the key and guarantees its freshness. Resistance to known key attacks. A protocol is said to be resistant to known key attacks if compromise of past session keys should not release any useful information about future session keys. "Perfect" Forward secrecy. A protocol is said to provide perfect forward secrecy if compromise of long-term keys cannot result in compromise of old session keys. Ill. Motivation and goals To our knowledge, apart from Boyd protocols [4J who provided a framework to develop key establishment protocols and Needham-Schroeder like protocols [7,8,9J which can all be generalized to n-party case, no specific multi-party server-aided key distribution protocol using symmetric techniques has been developed. MSKD protocols has not been widely studied because they suffer from the inherent drawbacks and disadvantages of 2-party key distribution protocols that can be summarized through the followings: In most existing server-aided key distribution protocols, no entity authentication to the TTP is foreseen. In some situations, it may desirables for the TIP to authenticate entities participating in the protocol before distributing session keys. Typically, MSKD protocols are not contributory in the sense that the session key is generated by the TIP and broadcasted to users. In some situations, it might be simply unacceptable to rely on a single party to generate the group key giving not enough guarantees that the key is fresh and random. No existing server-aided key distribution protocol (either in 2 and multi-party settings) offers perfectforward secrecy. The TTP is actively involved in the protocol runs generating and distributing session keys to a multitude of protocol participants. So, we took these drawbacks into consideration when developing our protocols and were particularly interested in reaching the following properties: 216 Achieve partielpants authentication to the TTP before any key distribution from the TIP holds. No use conventional encryption-decryption Contributory protocols, where all participants contribute to the key generation Guarantee of key freshness and correct key possession to protocol participants without the obligation of key confirmation phase We investigate perfect forward secrecy, which is difficult to achieve in server-aided multi-party key distribution protocol using symmetric techniques. Reduce TTP involvement during protocol runs IV. Notations TIP Trusted third party U Set of existing users in the system, U={ U , U" U" ... } lb U Data which uniquely identify the i member of the system P Set of participants in a protocol run. Pi i" participant in a protocol run. Within this document, we will use indistinguishably the terms P and U in the system. P Initiator of a protocol run with the TIP P Last participant involved in authentication phase of our protocols K Long-term secret key of U shared with the TIP RW J'" protocol run in which P will be involved CNT)i Nonce shared between the TIP and Pi during the t protocol run RUN)i in which Pi will be involved. K_l. Session key established during the jUl_])rotocol run in which P was involved h(x) The result of applyin_g a Collision Resistant Hash Function (CRHF) [10,6] to x h(k,x) The result of applying a Secure Keyed Hash Function [1] to x, k being a fixed length key Fig. 1. Notations V. Our multi-party key establishment protocol V.I Initiation phase The initiator of the protocol run sends to the TIP the list P of participants involved in the protocol run. Without loss of generality, we assume P ={Pl' P2, P3, ••• , p.}. Every participant in the protocol run receives the names of other participants in an authenticated message coming from the TIP. 217 Nonce synchronizaüon between the TTP and protocol participants. Each time a user participates in a protocol run, he must agree on a new nonce with the TTP. In our protocols, we consider that the nonce must be kept secret. So, when he is registered for the first time, every user U; agrees with the TTP on an initial secret nonce cJVIi,. This value will be used during the first protocol run in which U; will be involved. When he will participate to his t protocol run, P; selects randomly a nonce CNTj; corresponding to the current protocol run and computes l( = h(K,CNT·I) (J) CNT.t P, discards CNT·1and sends J( , to the TfP. The TIP retrieves the new nonce it shares with P; by computing CNT, = 1( (J)h (K, CNT·I). We note finally that CNT'-I; is also discarded on TfP side. V.2 Authentication phase In this paper, we consider an inherent drawback of existing server-aided key distribution protocols related to the way entity authentication is achieved. Typically, entity authentication between protocol participants is achieved through key confirmation. Moreover, no entity authentication to the TfP is foreseen. The consequence is that when the TfP receives a message from an originating party requesting a session key to share with another party, the TTP has no guarantee that the request came indeed from the originator. It may be simply an attacker trying to mount an efficient cryptanalytic attack by collecting a maximum messages encrypted with long-term secret keys. To be immune from such threats, we define the following ro e Direct entity authentication is the property whereby explicit authentication of participants to the TIP holds before a session key is distributed by the TfP. Direct entity authentication deals with the authentication of protocol participants to the TIP which may be a desirable property in some situations. It allows the TIP to establish identities of all protocol participants and their aliveness at a given instant before deciding to distribute session keys. Authenrieatlon protocol 1- The TfP and protocol participants agree on fresh nonce using the method described in section V.l. 2- For every participant P; in the protocol run, the TIP computes the value Hi = h(Kp CNT) 3- The TfP computes the sum S= HI tB H] tB .. , tB Hn.n being the number of participants in the protocol run. 4- The TIP selects randomly an integer A, adds it to S and sends the resulting sum to the "Initiator" of the protocol run: 1TP -7 initiator PI: 1TP _A UTH_MESS = S tB A = H, tBH2 tBH3(J)···@Hn@A Once he receives the message ITP _AUTH-MESSAGE from the TfP, the initiator PI computes the value HI = h(KI, CNT), adds it (XOR addition) to 1TP _AUTH_MESS. He then sends the resulting message to P, who will perform the same action and forwards the resulting message to next user. Finally, if all participants behave correctly, Po should 218 receive the message H, tE A from p ...r He compute H. and adds it to the message he receives resulting in the value A. Finally, the "finalist" applies the function "h" to A and sends the resulting message "FINALIST_AU1H_MES" to the TIP: 5- TIP ~ Initiator = PI: ITP _A Um_MESS = Hl $Hz (/)H3tE ... (/) H, (/)A 6- PI ~ Pz: P }-AUm_MESS = H] (/)H3(/) (/)H, tEA 7-P] ~ P3: p}-AUm_MESS =H3(/)H.(/) (/)Hn$A 8-P ...1 ~ P, i P...}-Aum_MESS=Hn$A 9- Pn ~ TIP : r,_Aum_MESS = A Upon fmding a match between the message P, _A U1H_MESS received from P n and the integer A it generated at the beginning of the protocol, the TIP is convinced that all participants are who they claim to be. She is also convinced that all participants are alive and contributed in the authentication phase. Upon fmding a mismatch, the TIP terminates the protocol run. Fig. 2. Authentication protocol Authentication protocol message flow topology. We opted for an annular topology described in the following figure: ,----, I _---ëO- lP' TTP ~""1 L- Fig. 3. Authentication protocol message flow topology The order of participant in the annular topology can either be imposed by the TIP or by the initiator. We opted for an annular topology simply to allow minimizing the messages originating from and received by the TIP during authentication phase. Security of authentication protocol Use of nonces eNT,. Since we are using a Secure Keyed Hash (SK.HF) function, associating a nonce with P,'s key K, guarantees that the value H, = h(K, CNT) will be fresh and new for every protocol run provided that the value of eNT, is different each time the user P, is involved in a protocol run. Attacker's! motivation and strategy. Firstly, the attacker wants to compromise participant Pi key K, In case it is not able to compromise Pi key K's, the attacker wants to masquerade as Pi who's name doesn't appear in the list P received by the TIP from the initiator in the initialization phase. To succeed in his strategy, the attacker must be able to retrieve the value "A" without Pi'S involvement. To do so, the attacker must be able to reproduce the value H, = h(K~ CNT). Since we are using a I In an extended version of our paper [2], we describe different types of attackers (insiders, external attackers, ... ) and the strategy of each of them. 219 secure keyed hash function, the attacker cannot compute If; without having any knowledge about the value of the key K;. Denial of service attack. The only effective attack an attacker can mount is a kind of "denial of service attack" where he injects or modifies messages in the flow of messages exchanged during authentication protocol. Such an attack is not considered as a security breach and can be dealt with by techniques such as physical security. Authentication phase failure. Byeavesdropping on message exchanged during a particular protocol run, the attacker is able to gain knowledge about H;os without knowing any secret key K; (ie [I,n]). The way he can do it is very straightforward: P ;-A UTH_MESStB P,+;-A UTH_MESS= H'+I. At the end of authentication phase, if the TIP doesn't receive the correct value A, it stops the protocol run and requires new nonce values from each participant. This protects from an attacker replaying H;'s corresponding to former protocol runs. On the confidentiality of secret nonce CNT/s. A new secret nonce CNTJ;, t corresponding to the protocol run in which P;is involved, is sent from P;to the TIP as follows: R\ = h(K;,CNT°';) EBCNTj;. Since an attacker knows h(K;,CNT-I) and R\ byeavesdropping, secret nonce CNT\ is now disclosed to the attacker. This problem can be solved by simply having P; incrementing first CNTJ-'; and then computing R\ = h(K;,CNTjOI;+ 1) Efl CNT';. V.3 Session key generation by the TTP When thinking about a key generation method, our motivation was of twice. Firstly, we wanted that every protocol participant contributes to the key generation and guarantees its freshness. Secondly, we were interested in a mechanism allowing every participant to be convinced that we has the correct established key. This property may be needed in situations where no key confmnation is foreseen. Our method to generate a fresh session key is based on the Chinese Remainder Theorem (CRT) which allows us to reach our desired goals. CRT theorem. Suppose that mi' m,•...• mu are pair-wise relatively prime positive integers, and let ai' ~, ... , aDbe integers. Then the system of congruencies, X = a; (mod m) for 1<~, has a unif.Jue solution modulo M = mi x m2 x ... x ID.. To generate a session key SK, the TIP solves the following system of congruencies for the session key SK: SK == h(KI,CNTI + 1) (mod m) SK == h~,CN1\+ 1) (mod m.) Where m; (IE LI,n]) are pair-wise relatively prime positive integers Security and confidentiality of the session key. When associated with fresh participants nonce, CRT theorem guarantees the uniqueness and freshness of the session key SK. Nonce CNf; must be incremented because, as we explained previously, all's H;'s (H; =h(K;,CNT) are disclosed to an attacker eavesdropping on messages exchanged during authentication protocol. 220 Contributory key generation method. Proving that each particrpant equally contributes to the key is very straightforward since the session key SK is constructed from all participants contributions (through their fresh nonce). Remark. We could have applied one way hash function to M and used the result as the session key value. Unfortunately, this won't allow us to provide protocol participants with the guarantee of correct key possession without key confirmation, Guarantee of key freshness and correct key possession without key confirmation. When he receives the session key, each participant Pi reduce it modulo m. Upon finding a result that is equal to h(IC"CNT"i+ 1), he is now convinced that the session key comes from the TfP, that the key is fresh and more importantly that he his in possession of the correct established key since apart from the TfP which shares secrets with every participant, no other entity can compute the session key SK without knowing participant secrets shared with the TfP. V.4 Key distribution protocol: Key_Dist When developing our key distribution protocol, one of our goals was to have a protocol free from conventional encryptionldecryption (such as invertible block ciphers). So we argue that not relying on block cipher algorithms (such as DES) would help to be immune from a major advance in cryptanalysis techniques against block ciphers. Our protocol allowing a TfP to broadcast a session key to protocol participants is based on Shamir's polynomial interpolation [10]. 1- The TfP executes authentication protocol with protocol participants. 2- After a successful authentication phase, the TfP generates a session key SK (as described in section V.3) 3- To distribute the session key SK to protocol participants, the TfP solves first the following equations for al'~' ... , a.: h(KI, CNT\+2)= SK + al x 1 + ~ X (1)2 + + a. x (1)" h~, CNT\+2)= SK + al x 2 + ~ X (2)2 + + a. x (2)· h~, CNT'D+2)= SK + al x n + ~ x (n)' + ..... + a. x (n)" All computations are performed modulo a suitably large prime number q. 4- Let f(x)= SK + al x x + ~ X (X)2 ..... + aDx (x)" . Note that f(I)=h(Kl,CNT"1+2), f(2)=h(~,CN1"2+2), ... and finally f(n)= h(K.,CNTD+2). The TfP computes f(n+ 1), f(n+2), ..... , f(2n) and sends them to all protocol participants. An alternate mechanism consists in the TfP maintaining a read only public directory where it makes available these values for protocol participants. 5- Each participant Pi who knows IC, and possesses n+ 1 points (x, f(x) can now interpolate the polynomial f and gain access to the session key SK. Fig. 4. Key distribution protocol: Key_Dist Theorem V.l: Key_Dist protocol is an authenticated key distribution protocol. Sketch of proof By monitoring network traffic, n points «n+l, f(n+l», (n+2, f(n+2», ... , (2n, f(2n», are revealed to an attacker who wants to gain information 221 about the value of the session key SK. For each candidate value SK', the attacker can construct one and only one polynomial f'(x) of degree n such that f'(O)=k', f'(i)=f(n+i) for i E [l,n]. All such polynomials are equally likely; therefore, since nonce are incremented (same argument given in section V.3), there is nothing the attacker can deduce about the value of the session key SK. Theorem V.2: Key_Dist is contributory. Proof: The TIP distributes a session key generated using a key generation method which has been proven to be contributory (as explained in section V.3). Theorem V.3: Key_Dist is resistant to known key attacks. Sketch of proof. The proof of this theorem can be deduced from the security of key generation method (explained in section V.3) and from the proof of theorem V.l where it has been explained that unless the attacker knows Pi'S long-term secret key K;, it is impossible for him to gain any knowledge about the established session keys. V.5 On perfect forward secrecy We recall how a participant Pi sends to the TIP a new nonce value corresponding to the current protocol run. P; selects randomly a nonce eNTJi corresponding to the current protocol run (jib for example). Then he computes R\=h(Ki,eNTJ·\+I) EBeNTJ; and sends it to the TTP. cxr", is then discarded on both TTP and Pi'Ssides. We consider a scenario where Pi has already participated in "j" protocol runs RUN'i' RUN2i, .... , RUN'i· If Pi'S key K, become compromised, an attacker who is able to gain access to nonce eNTi (corresponding to RW) is now able to deduce the session key corresponding to that protocol run. He is also able to deduce all nonce eNT'" 'i' eNT'"'i'.... eNTi, which allows him to deduce the session keys corresponding to all remaining protocol runs in which Pi was involved. Regarding to runs RUN'., RUN2i, .... , RW-'., since corresponding nonce were discarded, the compromise of Pi'S key K, and nonce eNT; doesn't allow the attacker to gain any knowledge on session keys corresponding to runs RUN'., RUN2;, •••• , RUN'·'. This backward security allows us to defme backward secrecy as being a weak variant of perfect forward secrecy as follows: Backward secrecy is the property whereby the compromise of a user PUi long-term secret and the secret material (e.g. nonce) corresponding to a particular run RUN;. in which P, was involved. doesn't compromise the session keys corresponding to previous protocol runs that take place before RUN;. \1.6 On TTP involvement during protocol runs When the TIP is involved in key distribution protocols, a desirable property would be to have a TTP performing off-line pre-computations to reduce on-line computational complexity. We assume that at the end of protocol run, each participant is asked by the TIP to generate and sends securely a new nonce (using the method described in section V.I) that will be used in the next run he will be involved in. In such a situation, TTP oftline pre-computation is made possible since the TIP can 222 compute for each participant P; values h(}s,CNT), h(ls,CNT;+I) and h(}s,CNT;+2) that will be needed in the next protocol run P; will be involved in. VI Conclusion We investigated multi-party server-aided key distribution protocols. We developed protocols offering interesting properties when compared with existing 2-party protocols which can be generalized to n party. Our protocol reduces the TIP involvement during protocol runs through offline pre-computations. Our protocol is contributory since each participant equally contributes to the key value. Our protocols don't require the use of conventional encryptionldecryption algorithms but use other security mechanisms such as polynomial interpolation. Regarding to key confirmation, our protocols alloweach participant to be convinced that he received the correct established session key from the TIP. Finally, it has to be noted that an extended version of our paper [2] describes an efficient key confirmation protocol in comparison with the traditional approach which accomplishes key confirmation by having participants exchanging messages encrypted with the established session key and signed with participants' private signature keys. References. 1. S. Bakhtiari, R. Safavi-Naini and J. Pieprzyk, "Keyed Hash Functions", Cryptography: Policy and Algorithms, Springer-Verlag, 1996, pp.201-214. 2. M. Bechlaghem, "Key establishment protocols revisited", in preparation. 3. R. Blom, "An Optimal Class of Symmetric Key Generation Systems", Advances in Cryptology - Eurocypt 84, Springer-Verlag; 1984, pp. 335-338. 4. C. Boyd, "A Framework for Design of Key Establishment Protocols", Information Security and Privacy, 1996, pp.146-157. 5. A. Menezes, P. Van Oorschot and S. Vanstone, "Handbook of Applied Cryptography", CRC Press, 1997, pp.547-548. 6. National Institute of Standards and Technology (NIST), "FIPS Publication 180: Secure Hash Standard (SHS), May 11, 1993. 7. R.M. Needham and M.D. Schroeder, "Using encryption for authentication in large networks of computers", Communications of the ACM, 21 (1978), pp. 993-999. 8. B.C. Neuman and T. Ts'o, "Kerberos: An Authentication Service for Computer Networks", IEEE Communications, 32(9), September 1994. 9. D. Otway and O. Rees, "Efficient and timely mutual authentication", Operating Systems Review, 21, 1987, pp.8-10. 10. R.L. Rivest, "The MD5 Message-Digest Algorithm", RFC 1321, April 1992. 11. A. Shamir, "How to Share a Secret", Communications of the ACM, 22(11), November 1979, pp.612-613. 223 Secret Exponent Information Leakage for Timing Analyses Lejla Batina1,2 and Cees Jansen! lSafeNet BV Boxtelseweg 26a, 5261 NE Vught, The Netherlands 2K.U. Leuven ESAT/COSIC, Kasteelpark Arenberg 10 B-3001 Leuven-Heverlee, Belgium {lbatina, cjansen }@safenet-inc.com Abstract. Side-channel attacks are a real threat to implementations of cryptographic algorithms. In this paper we focus on the secret exponent information leakage in modular exponentiation algorithms (like used in RSA cryptosystems), caused by obtaining information on the number of square and multiply operations performed. Using a random exponent model in an information theoretic approach, the exponent leakage is shown to be too small to exploit in practice, e.g. 6.06 bits for a 1024 bit exponent. An extension of the model to observation of multiple parts of the exponent is also given. 1 Introduction Today many analysis methods exist which are used to attack implementations in hardware or software of cryptographic algorithms of both types i.e. public-key and secret-key cryptography. Rather than attacking the algorithms themselves, specific properties of the implementation such as timing behaviour ([1], [4]) and power consumption ([5]) during execution of the algorithm are exploited to gain information about the secret key. These, so called side channel attacks can be very effectivein breaking the cryptosystem, necessitating careful implementation and consideration of countermeasures. In this paper we focus on asymmetrie i.e. public-key algorithms, in particular on modular exponentiation which is used in RSA cryptosystem ([6]). The first question we ask ourselves is how much information we obtain (in the Shannon sense) when observing the total number of operations, i.e. modular multiplica- tions and squarings, in a certain part of the secret exponent. The simplest instance of this problem is to consider a left-to-right square- and-multiply algorithm for exponentiation in which we cannot distinguish be- tween multiplication and squarings. In a first order approximation it is assumed that the secret exponents are chosen at random from the set of odd numbers 225 3,5, ... , 2n-1. For this random exponent model the exact probability distribution is derived, and the entropy H(K) of the number of operations K is determined. The results is showing that this information is far from exploitable for the prac- tical bit-lengths in nowadays applications. This observation can be furthermore extended in observing the situation in which the attacker is able to attack some specific part(s) of the exponent. The relation between exponent information leakage and the number of exponent parts is also given. The remainder of this paper is organized as follows. In Section 2 we use the combinatorial approach to develop a simple model for Hamming weight leakage. In Section 3 we conclude that Hamming weight information is not really useful information i.e. if only info is the number of squarings and multiplications, the adversary cannot do much with it. Further refinement of possible attack is considered in Section 4. The general relation between information leakage and exponent length is proven to be logarithmic. In particular, the information leakage is 6.06 bits for a 1024 bits exponent, which is far too little to be practically exploitable in an attack. Section 5 concludes the paper. 2 A Random Exponent Model Let us first assume that the secret exponent is an arbitrary odd number. We want to compute the number of possible exponents of length I up to n (I ::; n) which require exactly k operations (squares or multiplies) to be computed. We will compute this in a number of steps. First, we determine the number of (different) exponents of length exactly n (so with MSB equal to 1), which require exactly k operations: Least significant bit (LSB) is 1, because the exponent, say e, is odd, and therefore we have to count all different sequences of O's and 1's for the remaining n - 1 bits. Let us first calculate the number of operations for computing Me by use of the standard square-and-multiply algorithm ([3]): Algoritlun 1. Square-and-Multiply Algorithm (from MSB) INPUT: M and e =~~=~~ei2i = (eo, el, ... , en-I) OUTPUT: Res = Me 1. Res +- M 2. For n-2 to 0 do: 2.1 Res +- Res2 mod N 2.2 if ei = 1 then Res +- Res- M mod N 3. Return Hes So, the number of operations, which are squares (S) and multiplies (M) are determined with bits on positions from n - 2 to o. If this number is denoted as k, and WH is its binary Hamming weight, we conclude: k = n - 1 + wH(e) - 1 = n - 2 + wH(e). (1) 226 We can now count how many exponents exist with some fixed number of op- erations k, which have bit-length exactly n. Here, LSB is also not taken into account (being fixed as 1). So, the number of different exponents is (;=~)where k = n, n + 1, ..., 2n - 2. Secondly, we want to determine the number of exponents of length up to n with exactly k operations involved in exponentiation. Let us denote this number with G(n, k). We get the following: G(n,k) = L ~-=-i2) n (. (2) i>~ - 2 To illustrate this formula let us find all exponents of length up to n = 7, for which k = 8. The possible lengths are n = 5: 11111; n = 6: 100111, 101011, 101101, 110011, 110101, 111001;andn = 7: 1000011,1000101,1001001,1010001, 1100001. According to formula (2), we can easily check: G(7,5) = L~=5(~-=-~) = m + (~)+ m = 1 + 6 + 5 = 12. Let us now rewrite the formula (2) in a different way to make calculations easier. We consider fust the following case: k = 2m. In this case G (n, k) becomes: G(n,k) = .~ ~ (i2m-_2) = (m - 1) + (m) i ( n- 2) m - 2 + ... + 2m - m-I n . (3) z=Tn+l We will use the following theorem. Theorem 1. Fn+1 =L l~J ( n~J .) Vn~ O. (4) j=O J Proof: Follows directly as sums of diagonals in Pascal's triangle ([7)). It is easy to see that this equality can be applied on the equation (2) if and only if n = k and in that case we get G(n,n) = Fn-l. This holds trivially for n> k. So, we conclude: G(n,k) = Fn-1, for all n, n ~ k, where k is fixed. We still have to consider those cases for which k > n. Consider again the formula (4) (for keven): (5) = G(n - 1, k - 1) + G(n - 1, k - 2) 227 We obtain the recurrence, which can be further expanded: G(n, k) = G(n - 1, k - 1) + G(n - 1, k - 2) = G(n - 2, k - 4) + 2G(n - 2, k - 3) + G(n - 2, k - 2) (6) = ... ~ (k -1) =!- 2 i k + 1,2 + i) G(n - '2 .=0 From here follows: Theorem 2. The numbers G(n, k), for k even, satisfy the following equation: G(n,k) = G(n-l,k-2)+G(n-l,k-1) =~ ~ (k-1) 2 i k G(n-'2+1,2+i). (7) Proof: By induction. Using (7) we can easily compute G(n, k) for arbitrary n and k: The numbers G(n, k) are listed in Table 1, for n ::; 12 and k ::; 20. Table 1. The behaviour of numbers G(n, kl. 2 10 0 ... 0 3 1 1 1 0 ... 0 4 1 1 2 2 1 0 ... 0 5 1 1 2 3 4 3 1 0 ... 0 6 1 1 2 3 5 7 7 4 1 0 ... 0 7 1 1 2 3 5 8 12 14 11 5 1 0 ... 0 8 1 1 2 3 5 8 13 20 26 25 16 6 1 0 ... 0 9 1 1 2 3 5 8 13 21 33 46 51 41 22 7 1 0 0 0 0 10 11 2 3 5 8 13 21 34 54 79 97 92 63 29 8 1 0 0 11 1 1 2 3 5 8 13 21 34 55 88 133 176 189 155 92 37 9 1 12 1 1 2 3 5 8 13 21 34 55 89 143 221 309 365 244 247 46 1 The previous conclusions are easily verified. On the main diagonal we notice Fibonacci numbers. Also, the numbers under this diagonal are the same within each column. Namely, as we proved G(n, k) does not depend on k, for all k s: n and this number is equal to (n - n= Fibonacci number. We also note that the recurrence (5) holds. We are interested in G(ID,14) i.e, how many exponents exist in the interval [1,210] which involve 14 operations while performing exponentiation. It is easy to check: G(ID,14) = L~=o(~)G(4, 2 + i) = G(4,2) + 6G(4, 3) + 15G(4,4) + 2DG( 4,5) + 15G( 4,6) = 1 + 6 . 1 + 15 ·2+ 20 . 2 + 15 . 1 = 92 228 Now let us assume that exponents are selected at random from the set of odd numbers {3, 5, ... ,2n - I} with equal probability (2n-1 - 1)-1. Let K denote the associated random variable denoting the number of operations in an expo- nentiation with the randomly selected exponent. The probability distribution of K is given by: Pr[K = k] = (2n- 1 - 1)-lG(n, k). (8) As can be seen, even for very high values of n there is always a non-zero proba- bility of very small number of operations. 3 Entropy of operations and exponent leakage In the light of side-channel cryptanalysis, the previous consideration is tightly related to the followingquestion: If the attacker possesses the exact information on number of operations k performed while exponentiation has been done, what is the probability for him to successfullyguess the secret exponent e? We assume, as expected, that he has a detailed knowledge on algorithm of exponentiation and the relevant bit-lengths. So, we are interested in the expected amount of in- formation that k gives about e. Formulated in an information theoretic sense: get an expression for the mutual information It K: E) between the random variables K and E, where E denotes the random exponent. This notion of given-away information of the key is introduced in [2]. For E and K random variables, we have: l(K;E) = H(K) - H(KIE) (9) = H(E) - H(EIK). Here H(K), H(E) denote the entropies of K and E respectively, and H(KIE) and H(EIK) are conditional entropies of K with given E and vice versa. H(EIK) is usually interpreted as the uncertainty about E given K. Note that for any given exponent, the number of operations is exactly determined by (1). Hence, the uncertainty in K, given E is zero, resulting in: leK; E) = H(K), and (10) H(EIK) = H(E) - H(K). Equations (10) clearly show that the information leakage is exactly equal to the entropy H(K) of the number of operations. Havirig the exact probability distribution of this random variable from the previous section, this exponent leakage can precisely be determined. By assuming a uniform probability distribution on K and observing that K takes on values k E {2, 3, ..., 2n - 2}, we can easily bound H(K) from above: H(K) :S log2(2n - 3) bits. (11) Approximating H(E) ~ n - 1 we obtain the followinglower bound on the con- ditional exponent uncertainty: H(EIK) = H(E) - H(K) ~ n - 1 -log2(2n - 3) bits. (12) 229 From (11) and (12) the logarithmic relation between information leakage and maximum exponent length can be observed. Applying (12) for n = 1024 bits, we get H(EIK) ~ 1012, so the average amount of information that K gives about E is not more than 12 bits. However,from Table 2 it can be seen that the exact exponent leakage in this case amounts to 6.06 bits. Table 2. Data for the entropy and upper bound for two models. IIRan. expo model Binomial Model N Log(N)IIH(K) Bound H(K) Bound 2 1 0 0 0 0 4 2 2.24 2.32 1.50 1.58 8 3 3.09 3.70 2.33 2.80 16 4 3.46 4.86 2.95 3.90 32 5 3.18 5.93 3.50 4.95 64 6 4.11 6.97 4.02 5.98 128 7 4.63 7.98 4.54 6.99 256 8 5.09 8.99 5.04 7.99 512 9 5.57 10.00 5.54 9.00 1024 10 6.06 11.00 6.05 10.00 2048 11 6.54 12.00 6.55 11.00 A slightly different model is one in which the most significant bit of the ex- ponent is always taken to be 1. The justification of this model comes from the fact that in practice RSA key generation appliances may force the secret expo- nent to be of maximum length. For this model the length n is fixed and the Hamming weight of the exponent is a binomially distributed random variable. Consequently, the number of operations is a binomially distributed random vari- able, K, which takes on values k E {n - 2, ... ,2n - 2}. Use ofthis distribution, yields the following upper bound on thp entropy of K: H(K) ~ log2(n + 1) bits. (13) The two bounds for H(K) differ by :::! 1 bit. For long exponent lengths, the contribution of short exponent tends to become negligible and the two models give identical results for exponent leakage. Figure 1 shows the exponent entropy loss for both models and their corresponding upper bounds. 4 Observation in parts In this section we generalize the results from the previous section by considering the possibility that the attacker is observing the random exponent in two or more parts. The assumption here is that the number of operations (total of squares and multiplies when performing an exponentiation) in each part is known to the 230 "1 Ir-.:..~-: 12}_;==~ ~ !_Eb.m-BinOm : '0 j- .. --.---.-------.- --- .--------_.-_I"""-~"""- I ! • aj-------- ~+--------- JO I I Fig. 1. Exponent entropy loss for two different models (Random Exponent Model (REM) and binomial model adversary. Obviously, if each part comprises only one bit of the exponent, then he knows the value of that bit in each part exactly from the corresponding one or two operations observed. If, on the other hand, the number of parts is less, with more bits in each part, then the uncertainty for the attacker will be higher, as there is no longer a one-to-one correspondence between the values of the bits and the number of operations for each part. We consider the fixed exponent length model in which the number of operations has a binomial distribution. It is assumed that the exponent of length n bits is partitioned into parts of equal length I bits, with the exception of the most significant part, which contains the remaining n - LT J I bits. Let hB(m) denote the entropy (in bits) of a binomially distributed random variable, representing the number of operations in an exponent part of length m bits. Let H(Kt) denote the total amount of information obtained by observing the operations from all parts. Then if n - LTJ I > 0, the following relation holds: t H(K ) = hB(l - 1) + (tiJ - 1)hB(l) + hB(l) (n -l7Jl - 1) bits. (14) This can be seen from the independenee of the parts and the fact that the least and most significant bits are always 1. Figure 2 shows H(Kt) as a function of the part-length for a 1024 exponent on a log-log scale. The steps in the curve are caused by the sudden change in the number of parts LT J . A more realistic model in which exponents are taken to be random, but co- prime to a random even composite number should be further developed. Also according to [8]short RSA exponent can be successfully attacked, so in practice not all bit lengths are possible. 5 Conclusion We have considered secret exponent information leakage for modular exponen- tiation algorithms in an information theoretic setting. To this end, expressions 231 1024 bit exponent 12T _.__.. I '0 -----_._-- ! •t----- ---.----.---------------"'-.....:: o~----------- ~ _ o '0 '2 Fig.2. Random Exponent Model - Observation in Parts for the number of exponents resulting in a given number of square and multi- ply operations have been derived. These expressions straightforwardly lead to the probability distribution of the number of operations in the random expo- nent model. This random exponent model has subsequently been used to obtain data on the exponent leakage, showing that the amount of information is too small to exploit in practice. A further refinement of the model, considering the observation of multiple parts of the exponent, has also been given. References 1. G. Hachez, F. Koeune, and J.-J. Quisquater. Timing attack: what can be achieved by a powerful adversary? Proceedings of the 20th symposium on Information Theory in the Benelux, pages 63-70, May 1999. 2. C. J. A. Jansen. Key signature schemes. Proceedings nf the Seventh Symposium UTt Information Theory in the Benelux, Noordwijkerhou.t, The Netherlands, pages 197-205, 1986. 3. D. E. Knuth. The Art of Computer Programming, volume 2jSeminumerical Algo- rithms. Addison-Wesley, 1997. 4. P. Kocher. Timing attacks on implementations of Diffie-Hellman, RSA, DSS and other systems. Lecture Notes in Computer Science, Springer- Verlag, pages 104-113, 1996. Advances in Cryptology-CRYPTO 96. 5. P. Kocher, J. Jaffe, and B. Jun. Differential power analysis. Lecture Notes in Computer Science, Springer- Verlag, pages 388-397, 1999. Advances in Cryptology- CRYPTO 99. 6. R. L. Rivest, A. Shamir, and L. Adleman. A method for obtaining digital signatures and public-key cryptosystems. Communications of the ACM, 21(2):120-126, 1978. 7. K. H. Rosen. Handbook of Discrete and Combinatorial Mathematics. CRC Press, 2000. 8. M. J. Wiener. Cryptanalysis of short RSA secret exponents. IEEE Transactions on Information Theory, 36(3):553-558, May 1990. 232 A Short Note on Irreducible Trinomials in Binary Fields Mathieu Ciet*, Jean-Jacques Quisquater, and Francesco Sica* Université catholique de Louvain, Crypto Group Place du Levant, 3 1348 Louvain-la-Neuve, Belgium {ciet. jjq. sica}Odice.ucl.ac.be -http://vwv.dice.ucl.ac.be/-crypto 1 Introduction In this paper, we analyse the irreducibility of trinomials defined over lF2[X]. For elliptic curve cryptography, prime extensions fields lF2P are recommended to avoid current attacks like the Weil descent attack [3]. One often represents lF2P as a quotient lF2[X]/(J(X)), where f is an irreducible polynomial over lF2 of degree p. Performance reasons impose that irreducible polynomials have the short- est number of non zero terms. More precisely, the reduction polynomial plays a fundamental role in the basic field operations and particularly in modular reduc- tions. This in turn is related to the number of carries in each modular reduction and this is where the structure of the polynomial plays a crucial role. Recommended binary fields for elliptic curve cryptosystems, as in norms IEEEP1363, ANSI X9.62 or SEC1, are produced together with irreducible trino- mials or pentanomials when no irreducible trinomials exist. However criteria for existence or non-existence of irreducible trinomials or pentanomials over given extensions are not clearly stated in the cryptographic literature (but cf. [4, § 4.5.2]). The purpose of this short note is a first attempt to clarify some parts of this problem. We propose, following the work of [1, 6], to give a proof of the following theorem. MAIN THEOREM. Let P be a prime, p == 13 mod 24 or p == 19 mod 24. Then there are no irreducible trinomials of degree pover lF2. In particular, the quotient representation of 25% of all prime degree extensions oflF2 has to use at least a pentanomial as a reduction polynomial. 2 Proof of the Theorem The proof relies on a theorem of Swan and Dalen [2,6], originally due to Stick- elberger [5]. We cite here a particular instance of the theorem. * The work described in this paper has been supported by the European Commission through the IST Programme under Contract IST-1999-12324. 233 Theorem 1. Let f E Fq[Xl be a squarefree polynomial over the finite field with q elements (q prime J. Suppose f factors over Fq [Xl into the product of r distinct irreducible factors. Let F E Z[Xl be a representative of f, that is f = F mod q. Then deg f - r is even if and only if disc F is a square mod 4q. By computing explicitly the value of the discriminant disc F in the case of tri- nomials, Swan was able to deduce the following theorem. Theorem 2. The polynomial X" + XA: + 1 E 1F2[X] has an even number of irreducible factors if and only if 1. n is even, k is odd, n f:. 2k and nk/2 == 0 or 1 mod 4, 2. n is odd, k is even not dividing 2n and n == ±3 mod 8, 3. n is odd, k is even dividing 2n and n == ±1 mod 8, 4. one of the previous cases holds with k replaced by n - k. In partienlar if n = p is a prime congruent to ±3 mod 8, then XP + XA: + 1 is irreducible implies that k or n - k must be equal to 2. Since XP + XA: + 1 and XP + Xp-A: + 1both have the same number of factors, we see that we are reduced to examine the factorisation behaviour of XP + X2 + 1 (when p == ±3 mod 8). However, if p == 1 mod 3, it is immediate to see that X2 + X + 1 divides XP + X2 + 1. Thus, for p == 13 mod 24 or p == 19 mod 24, polynomials of the form XP + X A:+ 1 are all reducible. The density of such p' s is 1/4, by the prime number theorem for primes in arithmetic progressions. 0 References 1. LF. Blake, S. Gao, and R.L. Lambert. Construction and Distribution Problems for Irreducible Trinomials over Finite Fields. In D. Gollmann, editor, Applications of Finite Fields, Oxford-Clarendon Press, pages 19-32, 1996. 2. K. Dalen. On a theorem of Stickelberger. In Math. Scand. 3, pages 124-126, 1955. 3. P. Gaudry, F. Hess, and N.P. Smart. Constructive and Destructive Facets of Weil Descent on Elliptic Curves. Journal of Cryptology, 15(1):19-46, 2002. 4. A. J. Menezes, P. C. Van Oorshot, and S. C. Vanstone. Handbook of Applied Cryp- tography. CRC Press, 1997. 5. L. Stickelberger. Über eine neue Eigenschaft der Diskriminanten algebraischer Zahlkörper. In Verh. 1 Internat. Math. Kongresses, Zürich 1897, pages 182-193, Leipzig 1898. 6. R.G. Swan. Factonzation of Polynornials over Finite Fields. In Poe. J. Math., HI, pages 1099-1106, 1962. 234 An Algorithm for Joint Diagonalization by a Congruence Transformation Lieven De Lathauwer Bart De Moor Joos Vandewalle* Abstract Simultaneous matrix decompositions are nowadays popular for solving a variety of signal processing problems, especially problems related to signal separation. In this paper we derive a new algorithm for the approximate diagonalization of a set of matrices by means of a simultaneous non-unitary congruence transformation. 1 Introduction Approximate diagonalization of a set of R given (N x N) matrices by means of a si- multaneous congruence transformation forms the basis of several algorithms for source separation, such as the Analytical Constant Modulus Algorithm (ACMA) [15],algorithms for higher-order-only Independent Component Analysis (ICA) [3], ... In addition, many well-known source separation algorithms are based on an approximate diagonalization by means of a simultaneous unitary similarity transformation; the fact that the transforma- tion is unitary is induced by a prewhitening. Examples are the ICA-algorithm described in [2], the second-order-only blind source separation method (SOBI) presented in [1] and the algorithm for the blind separation of non-stationary sources proposed in [12]. Ac- tually, it seems strange to consider some second-order constraints on the mixing matrix as infinitely more reliable than other second- or higher-order constraints. Instead, one could give the different constraints an appropriate (finite) weight and deal with them simultaneously instead of sequentially. We called this principle "soft whitening" in [8] (complementarily to "hard whitening" or "without whitening"). Soft whitening versions of [2, 1, 12] also take the form of an approximate diagonalization by means of a simulta- neous non-unitary congruence transformation. ·L. De Lathauwer is with the research group ETIS, UPRES-A 8051, 6 avenue du Ponceau, BP 44, F 95014 Cergy-Pontoise Cedex, France. Tel: +33-(0)1-30.73.66.10; fax: +33-(0)1-30.73.62.82; e-mail: delathau@ensea.fr; URL: http://www-rech.ensea.fr. B. De Moor and J. Vandewalle are with the group SCD-SISTA of the E.E. Dept. (ESAT) of the K.U.Leuven, Kard. Mercierlaan 94, B-3001 Leuven (Heverlee), Belgium. Tel: +32-(0)16-32.17.09; fax: +32-(0)16-32.19.70; e-mail: {demoor,vdwalle}@esat.kuleuven.ac.be;URL: http://www.esat.kuleuven.ac.be/sista-cosic-docarch. 235 For the computation of this simultaneous decomposition, an extended QZ-iteration has been proposed in [15]. Jacobi-algorithms have been derived in [4, 5, 9]. In this paper we show that the problem can be reduced to a simultaneous unitary congruence transforma- tion. In Section 2 we discuss simultaneous 'congruence, in Section 3 simultaneous T congruence, and in Section 4 joint simultaneous * and T congruence (we adopt the terminology used in [10]). Section 5 is a remark of a numerical nature. 2 Simultaneous *congruence We are dealing with the following problem. Given matrices AI, A2' ... ,AK E CNxN, we want to find W E CNxN such that (1) with Ab A2' ... ,AK E CNxN diagonal. We assume that W is full rank. (If W has more rows than columns, then one may first perform a dimensionality reduction using the techniques explained in [4, 7]). For K ~ 3, the problem is in general overdetermined and will be solved in an approximate sense. Let the SVD of W be given by in which D, V E CNXN are unitary and 1:; E CNxN is diagonal. Define, for k = 1,2, ... ,K, Àk as Äk = _l;-lUH AkD1:;-l = VH Ak V. (3) The fact that all these matrices are commuting, may be expressed as (4) with M = U· 1:;-2. UH. (5) Hence we may first obtain 1\1 from Lhe overdëtërmined set of linear equations (4), then compute D and 1:; from the EVD (5), and finally estimate V from the simultaneous EVD (3). The dimensionality of (4) is as follows. Because M is Hermitean, we have N(N + 1)/2 complex unknowns. There are R(R - 1)/2 different matrix equations, and each matrix equation provides N(N + 1}/2 different complex linear equations - (4) can be rewritten as (6) 236 To be a bit more accurate: since the diagonal of an Hermitean matrix is real, we have in fact R(R - I)N2/2 real equations in N2 real unknowns. After calculating the best non-trivial solution to this set of linear equations (as the right singular vector corresponding to the smallest singular value of the coefficient matrix), and computing the EVD (5), the simultaneous EVD (3) remains. V may be obtained by means of a Jacobi-iteration, as explained in [2, 13]. The computation of an elementary rotation involves the computation of the dominant eigenvector of a real symmetric (3 x 3) matrix ({Ak} complex) or (2 x 2) matrix ({Ad real). In [15] the simultaneous congruence transformation (1) was translated into a simultaneous generalized Schur decomposition, for the computation of which an extended QZ-iteration was proposed. The latter involves an iteration over a sequence of SVDs of matrices of dimensions (N x K), ((N - 1) x K), ... , (2 x K), respectively. An alternative is the Jacobi approach. For real matrices, computing the optimal rotation matrices amounts to the computation of the roots of a polynomial of degree 8 [4, 5]; for complex matrices, we have to compute the best rank-I approximation of a partially symmetric complex (2 x 2 x 2 x 2) tensor [9]. 3 Simultaneous T congruence For given BI, B2, ... , Bp E CNxN, we may have, instead of Eqs, (1), a simultaneous decomposition of the type (7) with 01, O2, ... , Op E CNxN diagonal (e.g. [14]). Let the SVD of W again be given by Eq. (2). Then we define, for p = 1,2, ... , P, Bp as (8) The counterpart of (4) becomes: (9) with M again given by (5). Here we have, for the determination of M, R(R - I)N2/2 complex linear equations in N(N + 1)/2 complex unknowns. (8) is a simultaneous Takagi factorization of the symmetric matrices {Bp}. In [6] we derived a Jacobi-algorithm for the determination of the optimal V. It is similar to the Jacobi-algorithm for the simultaneous EVD (3): when {Bp} is complex, the calculation of an elementary rotation again involves the computation of the dominant eigenvector of a real symmetric (3 x 3) matrix; when {Bp} is real, both problems coincide. This result was independently rediscovered in [14]. 237 4 Combined * and T congruence In some problems, like the blind separation of non-circular sources [8] (the results may also be applied to, e.g., the problems addressed in [1, 12]), we have both Eqs. (1) and (7). M is then the solution to the resulting global set of linear equations. V is to be obtained from a joint simultaneous EVD / Takagi factorization. The real symmetric (3 x 3) matrix is here simply the sum of the matrices corresponding to the two subproblems. 5 Singular values of W are close It is well-known that when eigenvalues of a matrix are close, the corresponding eigen- vectors are ill-conditioned [lIJ. This does not necessarily pose a major problem for our method. Call hl the estimate of the true matrix M, with EVD hl = û .~-2 . ÛH. (10) If hl = M+O(t), (11) then we have ~-2 ~-2 + O(t), (12) Û U· Q+O(t), (13) in which Q is a block-diagonal matrix containing unitary blocks where eigenvalues are close. We have then (14) such that the simultaneous diagonalization procedure may compensate for Q. 6 Conclusion In this paper we have derived a new algorithm for the approximate diagonalization of a set of R given (N x N) matrices by means of a simultaneous congruence transformation. It relies on the following 3 steps: (i) solving a big overdetermined set of linear equations, (ii) EVD of an Hermitian (N x N) matrix, (iii) joint diagonalization by a unitary congruence transformation of a set of R (N x N) matrices. Acknowledgements Lieven De Lathauwer holds a permanent research position with the French Centre National de la Recherche Scientifique (C.N.R.S.); he also holds a honorary post-doctoral research mandate 238 with the Fund for Scientific Research-Flanders (F.W.O.), affiliated with the K.U.Leuven. Bart De Moor and Joos Vandewalle are Full Professor with the K.U.Leuven. This work is supported by several institutions: 1. Research Council K.U.Leuven: Concerted Research Action GOA-MEFISTO-666 (Math- ematical Engineering for Information and Communication Systems Technology), 2. Flemish Government: the F.W.O. projects G.0240.99 (Multilinear Generalisations of the Singular Value Decomposition and Applications in Signal Processing and System Identi- fication) and G.0256.97 (Numerical Algorithms for Subspace System Identification, Ex- tension to Special Cases), the F.W.O. Research Communities ICCoS (Identification and Control of Complex Systems) and ANMMM (Advanced Numerical Methods for Mathe- matical Modelling), 3. Belgian Federal Government: Interuniversity Poles of Attraction Programme IUAP IV-02 (1997-2001): Modeling, Identification, Simulation and Control of Complex Systems, and IUAP V-22 (2002-2006): Dynamical Systems and Control: Computation, Identification & Modelling. The scientific responsibility is assumed by its authors. References [1] A. Belouchrani, et al., "A Blind Source Separation Technique using Second Order Statistics", IEEE Trans. Signal Processing, Vol. 45, No. 2, Feb. 1997, pp. 434-444. [2] J.-F. Cardoso, A. Souloumiac, "Blind Beamforming for Non-Gaussian Signals", lEE Proceedings-F, Vol. 140, No. 6, 1994, pp. 362-370. [3] L. De Lathauwer, B. De Moor, J. Vandewalle, "Independent Component Analysis Based on Higher-Order Statistics Only", Proc. Bth IEEE SP Workshop on Statistical Signal and Array Processing (SSAP-96), Corfu, Greece, June 24-26, 1996, pp. 356- 359. [4] L. De Lathauwer, Signal Processing Based on Multilinear Algebra, Ph.D. thesis, K.V.Leuven, E.E. Dept., Belgium, 1997. [5] L. De Lathauwer, J. Vandewalle, B. De Moor, "Jacobi-Algorithm for Simultaneous Generalized Schur Decomposition in Higher-Order-Only ICA", Proc. IEEE Benelux Signal Processing Chapter Signal Processing Symposium (SPS'9B), Leuven, Belgium, March 26-27, 1998, pp. 67-70. [6] L. De Lathauwer, B. De Moor, J. Vandewalle, "IC A Techniques for More Sources than Sensors", Proc. IEEE Signal Processing Workshop on Higher-Order Statistics (HOS'99), Caesarea, Israel, June 14-16, 1999, pp. 121-124. [7] L. De Lathauwer, B. De Moor, J. Vandewalle, "On the Best Rank-l and Rank- (RI, R2, •. ·, RN) Approximation of Higher-Order Tensors", SIAM J. Matrix Anal. Appl., Vol. 21, No. 4, April 2000, pp. 1324-1342. 239 [8] L. De Lathauwer, B. De Moor, "On the Blind Separation of Non-circular Sources", Proc. XIth European Signal Processing Conf. (EUSIPCO-2002), Toulouse, France, Sept. 3-6, 2002. [9] L. De Lathauwer, B. De Moor, J. Vandewalle, "Jacobi-iteration for the Complex Simultaneous Generalized Schur Decomposition" , Tech. Report ESAT jSCD-SISTA, K.U.Leuven, Belgium (in preparation). [10] R.A. Horn, C.R. Johnson, Matrix Analysis, Cambridge University Press, 1985. [ll] T. Kato, A Short Introduction to Perturbation Theory for Linear Operators, Springer-Verlag, N.Y., 1982. [12] D.-T. Pham, J.-F. Cardoso, "Blind Separation of Instantaneous Mixtures of Non- stationary Sources", IEEE Trans. Signal Processing, Vol. 49, No. 9, pp. 1837-1848. [13] A. Souloumiac, J.-F. Cardoso, "Jacobi Angles for Simultaneous Diagonalization", SIAM J. Matr. Anal. Appl., Vol. 17, No. I, Jan. 1996, pp. 161-164. [14] A. Souloumiac, E. Moreau, "Blind Source Separation via Joint Diagonalization of Symmetrie Complex Matrices", Proc. 2002 IEEE Int. ConJ. on Acoustics, Speech and Signal Processing (ICASSP 2002), Orlando, FL, USA, May 13-17,2002. [15] A.-J. van der Veen, A. Paulraj, "An Analytical Constant Modulus Algorithm", IEEE Trans. Signal Processing, Vol. 44, 1996, pp. 1136-1155. 240 An Algebraic Algorithm for Blind Identification with More Inputs than Outputs L. De Lathauwer B. De Moor J. Vandewalle* Abstract In this paper we link the blind identification of a MIMO Fm filter to the calculation of the Canonical Decomposition (CANDECOMP) in multilinear algebra. This allows for the blind identi- fication of systems that have much more inputs than outputs. We also derive algebraic tools for the computation of a high-rank CANDECOMP. 1 Introd uction Blind identification of a linear system is the identification of that system without knowing its inputs. Typically one assumes that the inputs are spatially and temporally independent. In this contribution we exploit the structure of the higher-order cumulant of the outputs. We show that a part of it satisfies a CANDECOMP model, in which the components yield the unknown Markov parameters. The CANDECOMP of a higher-order tensor is the decomposition of that tensor in a minimal number of rank-I terms; for a general discussion and a brief overview of the state-of-the-art, we refer to [4]. For an (I x J x K x L) tensor, the number of terms can be much higher than min(I,J,K,L) (unlike the situation for matrices), enabling us to blindly identify systems that have much more inputs than outputs. The link between CANDECOMP and blind identification is explained in Section 2. Next, we derive new techniques for the calculation of the CANDECOMP. Section 3 proposes a technique that works under some mild assumptions on the rank of the tensor and the values taken by the canonical components. In Section 4 these assumptions are further weakened. Section 4.1 deals with the case of super-symmetric higher-order tensors; Section 4.2 addresses unsymmetric tensors. 2 A CANDECOMP approach to blind identification Consider the following data model. L yen) = LH(l)X(n -i) + N(n), 1=0 in which X(n) E ]RJ are the unkown inputs, which are assumed to be mutually independent, yen) E ]RI are the observed outputs, H(i) E ]R/xJ, i = 0, ... , L are the unknown Markov parameters, and N(n) E ]RI is Gaussian noise. Let us consider the (I x 13) matrices C(Tl,T2,T3,T4), defined by (C(Tl, T2, T3, T4»i,,(i2-1)/2+(i3-1)1+i, = Cum[Yi2(n - Tl), Yi3 (n - T2), Yi! (n - T3), Yi, (n - T4)]. OL. De Lathauwer is with the research group ETIS, UPRES-A 8051,6 avenue du Ponceau, BP 44, F 95014 Cergy-Pontoise Cedex, France. Tel: +33-(0)1-30.73.66.10; fax: +33-(0)1-30.73.62.82; e-mail: delathau©ensea.fr; URL: http://www- rech.ensea.fr. B. De Moor and J. Vandewalle are with the group SCD-SISTA ofthe E.E. Dept. (ESAT) ofthe K.U.Leuven, Kard. Mercierlaan 94, B-300l Leuven (Heverlee), Belgium. Tel: +32-(0)16-32.17.09; fax: +32-(0)16-32.19.70; e-mail: {demoor,vdwalle}@esat.kuleuven.ac.be; URL: http://www.esat.kuleuven.ac.be/sista-cosic-docarch. 241 Define also Then we have: C(O,L - 1,0,0) C(O,L-l,O,L-l) ) C(O,L - 1,1,0) C(O,L -1, I,L-l) C(O,L - 1, L - 1,0) C(O,L -1,L -1,L -1) H· diag(Kl, ... ,KJ)· (H(L - 1) 0 H(O) 0 H)T, in which 0 is the Katri-Rao or column-wise Kronecker product, and Kl,··., KJ are the cumulants of the inputs. This equation is actually the decomposition of a fourth-order tensor T E ]RLIXIXIxLI, of which T is a matrix representation, in a sum of rank-I terms: J (Dk,k,ksk. = LKj (H)k,j(H(L -1))k,j(H(O))ksj(Hh.,· (1) j=l In what follows, we will derive means to compute this decomposition. In Eq. (1) we have actually only exploited the structure of the output cumulant for a very specific set of time lags: Tl = 0, T2 = L - 1, T3 = 0, ... ,L - 1, T4 = 0, ... ,L - 1. The expressions for the input-output cumulant relations for other sets of time lags are more complex. However, more accurate results may be obtained by taking more time lags into account. The solution to (1) may then be used to initialize a matching of both sides of the overall set of input-output cumulant relations. By way of illustration, we also provide the expressions for Tl = 1, T2 = L - 1, T3 = 0, ... ,L - 1, T4 = 0, ... ,L - 1. Call H the part of H without the H(O) block. Define T'! = H· diag(Kl, ... , KJ) . (H(L - 2) 0 H(O) 0 H)T and define T' 2 as the matrix with the same block structure, of which the first block row and column are zero and the remaining part is given by inT T 2 = H· diag(Kl, ... ,KJ)· I - ( H(L -1) 0H(I) 0H) . Then we have: C(I,L -1,0,0) C(1,L -1,O,L -1) C(I,L-l,I,O) C(1,L -1, I,L -1) ( C(I,L-~,L-l,O) C(I, L - 1,L - 1, L - 1) 3 CANDECOMP Algorithm 1 This section is inspired by the technique derived in [2], which only applies to super-symmetric higher- order tensors (real tensors are super-symmetric when they are invariant under arbitrary index permuta- Lium;). Consider an (I x J x K x L) tensor T of which the CANDECOMP is given by R tijkl = L nirbjrCkrdlr. (2) r=l in which A E ]RIXR, B E ]RJxR, C E ]RKxR, D E ]RLxR. R is called the rank of T, Note that the R components may be reordered, and that, within the same component, the different factors may be 242 rescaled, as long as the overall component remains the same. Associate with T a matrix-to-matrix mapping as follows: (T(M));j = Lt;jklmkl. kl Let this mapping be represented by a matrix T E ]RIJ x KL, and consider a factorization of T of the form (3) with E E ]RIJxR and F E ]RKLxR full rank (this factorization may, e.g., be obtained by means of an SVD). The full rank property is generically satisfied if R"; min (IJ, KL). Hence we may read the value R as the number of significant singular values of T. Because of (2) and (3), we have: A®B=E·W for some nonsingular W E ]RRxR. The task is now to find W such that the columns of E . Wand F . W-T correspond to rank-l matrices. Theorem 1 Define a mapping 4> : ]RlxJ X ]RlxJ --7 ]RlxJxlxJ by (4) Then we have that 4>(G, G) = 0 if and only if G is at most ronk-I. Proof: It is easy to check that 4>(G, G) = 0 if G is rank-I. For the "only if" part, let the SVD of G be given by U· n vr. We have: rs L (jr(1sUi1 rUil sUi2sVi2r· rs Rank-l terms corresponding to the same r = s cancel out in Eq. (4). However, due to the orthogonality of U and y, the other terms are linearly independent. So we must have that CTrCTs = 0 whenever r ~ s; hence, ~ is at most rank-I. • Denote the (I x J) matrices represented by the columns of E as EI' ... ' ER and let 4>.t = 4>(E.,Et). Due to the bilinearity of 4>, we have for s = 1, ... , R. Once W is known, the canonical components follow immediately. An other approach is to resort to an Alternating Least Squares (ALS) procedure. Let us rewrite (13) as Bijk) = W-T . Cijk) . W-1 vi.i, k, I in which Cijk) E CRxR have a zero diagonal. Given an estimate of W, the optimal (in a least-squares sense) estimation of Cijk), in which one imposes that these matrices have a zero diagonal, is a classical linear least squares problem. The optimal estimation of a column of W-T, given estimates of the other columns and of Cijk), also amounts to solving an overdeterrnined set of linear equations. ALS is then an iteration between such elementary problems. Simulations will have to make clear whether this approach is advantageous compared to the direct ALS estimation of the matrices A, B, C and D in (2). 5 Conclusion In this paper we established a link between the blind identification of a MIMO moving average system and the CANDECOMP of a fourth-order tensor. The number of inputs that can be allowed, roughly grows as [2L, in which I is the number of outputs and L the system order. We have also derived techniques for the computation ofthe CANDECOMP of an (Ix JxKxL) tensor, of which the rank is not bounded by I, J, K or L. We have first explained how, under mild conditions, the solution can be obtained by determining a congruence transformation that simultaneously diagonalizes a set of matrices. Next, we have derived a technique for super-symmetric higher-order tensors that works under even weaker conditions. We also indicated a way to generalize the latter algorithm to unsymmetric tensors. Acknowledgements Lieven De Lathauwer holds a permanent research position with the French Centre National de la Recherche Scientifique(C.N.R.S.); he also holds a honorary post-doctoral research mandate with the Fund for Scientific Research-Flanders (F.W.O.), affiliated with the K.V.Leuven. Bart De Moor and Joos Vandewalle are Full Professor with the K.V.Leuven. This work is supported by several institutions: 245 1. Research Council K.V.Leuven: Concerted Research Action GOA-MEFISTO-666 (Mathematical Engineer- ing for Information and Communication Systems Technology), 2. Flemish Government: the F.W.O. projects G.0240.99 (Multilinear Generalisations of the Singular Value Decomposition and Applications in Signal Processing and System Identification) and G.0256.97 (Numerical Algorithms for Subspace System Identification, Extension to Special Cases), the F.W.O. Research Com- munities ICCoS (Identification and Control of Complex Systems) and ANMMM (Advanced Numerical Methods for Mathematical Modelling), 3. Belgian Federal Government: Interuniversity Poles of Attraction Programme IVAP IV-02 (1997-2001): Modeling, Identification, Simulation and Control of Complex Systems, and IUAP V-22 (2002-2006): Dy- namical Systems and Control: Computation, Identification & Modelling. The scientific responsibility is assumed by its authors. References [1) A. Belouchrani, K. Abed-Meraim, Y. Hua, "Jacobi-like Algorithms for Joint Block Diagonalization: Application to Source Localization", Proc. IEEE Int. Work. on Intelligent Sig. Proc. and Comm. Sys. (ISPACS), Melbourne, Australia, Nov. 1998. [2) J.-F. Cardoso, "Super-Symmetric Decomposition of the Fourth-Order Cumulant Tensor. Blind Iden- tification of More Sources than Sensors." Proc. ICASSP-91, Vol. 5, pp. 3109-3112. [3] J.-F. Cardoso, A. Souloumiac, "Blind Beamforming for Non-Gaussian Signals", lEE Proceedings-F, Vol. 140, No. 6, 1994, pp. 362-370. [4) L. De Lathauwer, B. De Moor, J. Vandewalle, "Computation of the Canonical Decomposition by Means of a Simultaneous Generalized Schur Decomposition", Tech. Report No. 01-109, ESAT /SCD- SISTA, K.V.Leuven, submitted to: SIAM J. Matrix Anal. Appl.. [5) L. De Lathauwer, C. Févotte, B. De Moor, J. Vandewalle, "Jacobi Algorithm for Joint Block Diag- onalization in Blind Identification", Proc. 23rd Symp. on Information Theory in the Benelux, May 29-31,2002, Louvain-la-Neuve, Belgium. [6) L. De Lathauwer, B. De Moor, J. Vandewalle, "An Algorithm for Joint Diagonalization by a Congru- ence Transformation", Proc. 23rd Symp. on Information Theory in the Benelux, May 29-31, 2002, Louvain-la-Neuve, Belgium. 246 Brokerage of Next Generation Mobile Services Mortaza S. Bargh, Ronald van Eijk and Alfons Salden Telematica Instituut, P.O. Box 589, 7500 AN Enschede, the Netherlands {bargh, vaneijk and salden}@telin.nl Abstract. Next generation mobile delivery encompasses context aware and personalization enabling technologies. Through a Personal Service Environment, PSE [7], this service delivery asks for a seamless integration of complex and distributed heterogeneous entities such as wireless and fixed networks, terminals, services, users and organizations. We study the role and defme the functionality of a service broker in our PSE. We do so by investigating the basic brokerage mechanisms from a privacy perspective and from a distributed multimedia quality of service management perspective. We demonstrate the validity of our brokerage paradigm within our PSE by presenting our experiences in building a location-based mobile scheduling service in a B2E setting. 1 Introduetion A mobile application depends on one or more services. Each service, in turn, encompasses a complex set of sub-services -hereupon, referred to as basic services- distributed over many physical and administrative domains. Two types of actors can be identified during execution of those basic services, namely, a requester and a provider. Note that a requester can itself be a user, a third party (from the standpoint of the service) or even a provider (of another basic service). The existence of these complex and heterogeneous aspects in mobile service delivery requires subsequently a sophisticated brokerage system to initiate, steer and terminate a service being acceptable to all actors involved. In respect to service brokerage several issues have to be resolved. Which basic services are needed in a service? Where to find providers offering these basic services? How to schedule these basic services? How to integrate basic services taking into account existing constraints imposed by devices, networks, requesters and providers? How to adapt the service to the dynamics within a mobile environment? How to learn from current experiences in order to make the future services more efficient? How to react appropriately under future mobile service conditions? How to anticipate future brokerage problems? The main goal in service brokerage is the implementation of required mobile service functions in such a way that the resources are optimally managed. This issue has extensively been studied in the area of QoS management for distributed multimedia applications. The problem of optimizing resource management in distributed systems has not yet been resolved. Nevertheless, the research in this area has resulted in many solutions in terms of frameworks and standards, see [5] and [6] for an overview. One possible solution is to centralize resource management at a single entity. Other approaches are based on brokerage and client/server schemes [2]. In a brokerage scheme presented in [4] a negotiation protocol links QoS brokers, e.g. 247 resource managers, located in each node of a network. Such a broker may act as a buyer when gathering resources or as a seller when offering available resources. In a client/server scheme the application (client) interacts with a set of resource managers (servers) for QoS negotiation and monitoring purposes. In addition to the area of distributed multimedia QoS management, the concept of a broker has been used in areas such as commerce and trade, network bandwidth management, etc. Unlike these works limiting their scope to a particular aspect (business, network, application area, etc), we define the role ofthe broker in a broader sense for systems delivering mobile services. Furthermore, it is our objective to explicitly extract and point out the generic methods that are used in brokering complex mobile services as in the case of multimedia streaming. Our paper is organized as follows. Section 2 points out that the problem of next generation mobile services involves the problem of a PSE and that of service brokerage. In section 3. we treat our view on brokerage of mobile services, in which brokerage mechanisms are categorized from a privacy perspective as well as a QoS management perspective. In Section 4 we apply our brokerage paradigm to personalize a mobile scheduling service in a B2E setting by means of software agents. 2 Problem of next generation mobile service delivery The main problems in next generation mobile services are that of service customization and that of service brokerage. In the following we elaborate on both these issues. 2.1 Problem of customization We proposed a so-called Personalized Services Environment, PSE [7], to customize mobile services. In a PSE users are allowed to roam between different (wired and wireless) access networks and receive services according to their personal profiles and environmental contexts. Mainly we are concerned with B2E and B2B services over different wireless networks forming the access networks for the employees of companies. The employees use peer-to-peer services as well as client/server services and interact with these services via different terminals. Generally, we assume that there are service and network providers who facilitate the delivery of customized mobile services. Furthermore, we assume that the core networks and the servers have enough communicational and computational resources for delivering a personalized mobile service. Both these assumptions leave our model of PSE with five types of actors that impose different customization requirements on mobile services. These actors are users (having personal preferences), end-devices at the disposal of users (having limited capabilities), the access networks and the services which are under the control of their providers (both having limited resources/capabilities), and the contexts in which users are roaming (imposing organizational policies). 2.2 Problem of brokerage We discriminate between two planes to deliver personalized mobile services in PSE, namely, a data or service plane and a brokerage or control plane [8]. The data plane contains service components, governed by the brokerage plane, that store, forward and adapt the data units and logic in mobile services. A service is delivered in the data 248 plane, which therefore is also referred to as the service plane. In the control plane, on the other hand, there are service components that obtain requests, profiles and status of stakeholders to steer and manage storage and flow of content and logic in the data plane. In our view, a broker is in charge ofthe control plane and handles all issues of mobility (dynamically changing of locations, personal preferences, service capabilities, network throughput, terminal limitations, etc). Therefore, the control plane will alternatively be referred to as the brokerage plane. In the sequel we concentrate on the brokerage plane from a theoretical as well as a practical point of view. 3 Brokerage in theory Like most real-time control, communication, and information systems, our PSE is complex in nature, consisting of one or more basic services that jointly provide a service. In order to illustrate the functionality of a broker in our PSE we investigate brokerage mechanisms in mobile services from a privacy perspective in section 3.1. To illustrate the relation between the basic services, Subsection 3.2 elaborates on the generic phases in establishing and maintaining, i.e. brokering, a complex mobile service from a QoS management perspective. 3.1 Brokerage of basic mobile services In [8] we proposed a functional problem-solving environment for service brokerage based on an agent paradigm, see also Subsection 2.2. In distributed multimedia applications such an agent-based approach has proven to support effectively service brokerage in terms of robustness, flexibility, openness and resource optimization [2]. In the sequel we clarify our agent-based service brokerage model supporting the delivery of basic mobile services. 3.1.1 Privacy problem In its simplest form, a service is requested from a Provider (P) by a Requester (R). This service could be (or consists of) sending messages, allocation of resources, or setting up a telephone call between point A and point B. The provider has resources to deliver the service. The data flows belonging to the service live in the data plane, while control flows live in the brokerage plane. Two Requester Agent (RA) and Provider Agent (PA) represent R and P in the brokerage plane, respectively. Note that such agents are not just software agents, but it might also be a piece of hardware, the user herselfJhimself, etc. To establish the service, a broker has to find the providers who might have the capabilities that the requester needs. The broker then has to choose a suitable or the best provider capable in satisfying the requester's needs or preferences. RA and PA are in possession of their own preference and capability information, respectively. In the brokerage plane preference information can flow from a RA to a PA, and rd capability information can flow the other way. Any agent (RA, PA or any other 3 party agent) that is informed of both preferences and capabilities is in a position to make a decision on the type of flows in the data plane, i.e., on the service to be delivered. Concluding, the privacy issues involved in mobile service brokerage concern how to reveal the preference and capability information to only entrusted parties. 249 3.1.2 Organizational agents solving privacy problem We solve the privacy problem through agents that deal with preference or capability information that are neither requesters nor providers are called middle-agents (MA's). The flow of information can be stopped at different points in the brokerage plane and from that point on different organizational solutions can be chosen to solve the brokerage problem. Preference information can initially be kept private to the RA, be revealed to some MA or be known by the PA. The same three possibilities exist for capability information. We assume that the preference information is handed over from RA to MA and from MA to PA, and the capability information is handed over from PA to MA and from MA to PA by a brokerage action. Depending on agents RA, MA and PA having this information before and after a brokerage action, nine general middle-agent roles can be identified (analogous [1] for information-gathering organizations), namely: 1. Where there is no MA involved, RA or PA (or both) could broadcast their preferences or capabilities to the whole community. Consequently, either the requester informs the provider of the preferences or the provider informs the requester of the capabilities. After such a brokerage action, either PA or RA (or both), respectively, could be aware of both capabilities and preferences and therewith devise a solution. When RA or PA broadcast their knowledge about preferences or capabilities, the whole community can be aware of this information, which may not be desirable from a privacy perspective. To limit the extent of private information dissemination or to hide the identity of RA or PA, there is a need of an MA to facilitate the brokerage process. The following brokerage actions reflect the roles and mechanisms that such an MA may have and use. 2. Front-agent: PA informs MA of its capabilities in order for MA to deal with RA on PA' s behalf. 3. Yellow-pages (matchmaker): PA has already informed MA of its capabilities. MA shares this information with RA in two ways: either RA asks MA for it or MA forwards it to RA in a deterministic way (ifRA is subscribed). 4. Anonymiser: RA informs MA of its preferences in order for MA to deal with PA on RA' s behalf. 5. Blackboard: RA has already informed MA of its preferences. MA shares the information with PAin two ways: either PA asks MA for it or MA forwards it to PA in a deterministic way. 6. Broker: Both RA and PA inform MA of their preferences and capabilities, respectively. MA holds this information for itself and especially does now share preferences and capabilities with PA and RA, respectively. 7. Recommender: Both RA and PA have already informed MA of their preferences and capabilities, respectively. MA shares the capabilities with RA. 8. Introducer: Both RA and PA have already informed MA of their preferences and capabilities, respectively. MA shares the preferences with PA. 9. Arbitrator: Both RA and PA have informed MA of their preferences and capabilities, respectively. MA shares partly the capabilities and preferences with RA and PA, respectively. The brokerage actions mentioned above assume that the requester and provider agents are aware of the middle agent, MA. For example, in a pure brokered organization all 250 the agents generally know an MA. In an open system, however, hybrid brokered organizations use a matchmaker allowing providers and requesters to fmd an appropriate broker. Hybrid organizations can make use of anonymizer or front-agent MA's to protect both requesters and providers from infringing and intruding agents. 3.1.3 Decisionmaking agents Finding a proper solution to a service brokerage problem from a privacy perspective requires taking a combination of basic services, each with one or more brokerage actions. One can distinguish two aspects in each brokerage step while confining the solution space. The first aspect concerns the selection of methods used in decision making. For example, the methods according to which a broker agent assigns requests to providers can be drawn from several areas of research, including load balancing, managerial task assignment, and market-based economics. The second aspect concerns determining who is entitled to make the decisions. Apparently anyone aware of both preferences and capabilities is in a better position to decide. With a close investigation of the nine cases mentioned in Subsection 3.1.2 (each corresponding to one specific combination of RA, MA and PA being aware of the preferences and capabilities at the time of decision-making), we distinguish four cases from the standpoint of which agent is capable to decide. The first aspect regarding decision-making methods is briefly touched in the followingcategorization. 1. No one has both preferences and capabilities information. Here we propose to use negotiation techniques, widely studied in Al and multi-agent systems, to reach an agreement. Hereby, the RA and the PA (or their representative MA in the role of a front-agent or anonymise) can withhold the sensitive information regarding the preferences and capabilities. For example, such sensitive information can be the price range that they are willing to payor to get for the service. Of course, as in real life, on the one hand agents may try to learn about the preferences and the capabilities of their opponents (by studying their behaviors for a long period of time). But on the other hand, each agent may do its outmost to hide such information (or deceive the opponent by its behavior). 2. An MA is aware of both preferences and capabilities when it is a broker, recommender, introducer, and arbitrator. As an entrusted entity, such an MA is allowed to make a decision on behalf of the others, when acting as a broker, or to provide support, while acting in the other three cases. 3. A RA solely (or together with another agent) is in the position of making a decision based on full information of preferences and capabilities. This is the case when MA acts as a yellow pager, reeommender or arbitrator. 4. A PA solely (or together with another agent) is in the position of making a decision based on full information of preferences and capabilities. This is the case when MA acts a blackboard, introducer or arbitrator. Depending on it's organizational role, an agent makes a decision in favor of the requester, the provider or both (i.e., being fair). This dependency influences the choice of a private mobile service. Another problem to handle is the effect of dynamically changing preferences and capabilities. A capability change over domains implies the entry or exit of providers. The ability of an organization to quickly adapt to new preferences and capabilities is in addition a function of the distance that the 251 information has to travel, and the costs of keeping that information up-to-date. This mayalso influence the choice of a basic mobile service. 3.2 Brokerage of complex services The role of an agent in a basic service is one of the requester, the middle-agent or the provider. At the scale of a complex service living on several domains, however, any agent may take multiple roles. For example, an agent requesting information from several providers carries out a complex integration before serving the accumulated information to other requesters. Here we don' t intend to elaborate on the exact relations between the agents brokering a complex service. However, to gain a better overview, we mention the generic brokerage phases in executing these complex services, Distributed multimedia applications require a sophisticated QoS management to orchestrate heterogeneous system components. The research in this field has contributed and still does to different standardization bodies. We observe a strong relation between the QoS management topics for real-time multimedia applications and the brokerage topics involved in next generation mobile services. In both areas, for example, the preferences and capabilities of the actors are represented by meta- data or profiles to reach a settlement. Like in real-time streaming applications, in a PSE the preset conditions and constraints do not remain valid through the whole lifecycle of the service due to dynamically changing locations, time, device, network load, user preferences, etc. Therefore, it is necessary in both cases to monitor (the status of) the service during the delivery time and to adapt the service dynamically to rising conditions. A multimedia service is realized in three phases, namely: establishment, management and clearing, in which the resources are allocated, used and managed, and released, respectively [2]. To ensure the requirements of the users, QoS management carries out a set of functions in these phases of a multimedia service [2] and [3]. The establishment phase is characterized by the following functions: QoS specification, QoS mapping, QoS negotiation and resource reservation, admission control, resource commitment, and accounting. Because a multimedia service is delivered continuously, the management phase is composed of the following steps: VoS momtonng, VoS re-negotiation, and QoS adaptation. Finally, the clearing phase contains one step: QoS termination. The functions mentioned in the previous paragraph can also be identified with those needed in the brokerage of mobile services in our PSE (see Section 4 for an illustrative example). A service mapping function is a necessary step when (software) agents make use of different communication languages. Since in our PSE the behavior of actors is not static, the service monitoring function becomes crucial to adapt the service to changes in the overall mobile service setting, whether it concerns the characteristics of networks, users, end-devices, policies and provided mobile services. In addition to the above-mentioned functions we need knowledge management functions in our PSE services. Having such brokerage functionalities, agents can learn about the behavior of other agents (those of competitors) and accordingly update their own profiles through these new findings. 252 4 Brokerage in practice One of the major application areas of the brokerage principles presented above is in QoS management of multimedia applications. There are many publications on this issue in recent years [2]-[6]. Particularly, [2] presents an agent-based architecture for supporting QoS management in distributed multimedia systems, where different types of agents are introduced to carry out the functions mentioned in Subsection 3.2. In this section we outline our ongoing activities in designing and implementing a location based personalized scheduling service using agent technology. The scheduling service in mind arranges an appointment somewhere (in the range of interest) and at some time (in the range of coming days). In the data plane, the system delivers the data about a meeting to the corresponding attendees. In the brokerage plane all measures are taken to arrange the meeting in accordance with the attendees' preferences, available resources (meeting rooms, projectors, demonstration facilities, etc). The important issue in settling the appointment is the preciseness ofthe location of the meeting (for example the city and the building/room that the meeting is going to take place). In the following we describe this service in three phases identified in the previous sections. In the service establishment phase a user requests a meeting with a group of people. Software-agents (of the attendee and other required resources) negotiate. different issues such as the location, the day, the starting time, the ending time (or the duration) of the meeting. During this negotiation process the preferences of the users on these issues are taken into account. When an agreement is reached, the appointment is stored in the scheduling database (resource and time reservation) and a notification is sent to the users. In the service management phase, monitoring agents (software agents or users themselves) compare the current location of their users with respect to the upcoming appointments. In our implementation, if a user realizes that shelhe cannot make a scheduled meeting, shelhe requests for a rescheduling of the meeting to a different location and/or time. This assigns an activator role to the scheduling agent of this user in order to contact the corresponding agents of the other attendees to renegotiate over a different location and meeting time on the same day. These other agents are assigned a responder role. Since each agent represents one of the attendees, it is aware of its user's current location. The activator agent requests the responder agents to broadcast to him information about their locations and preferences. Dependent of the responders' privacy policies, they might pass this information to the activator. The activator will start and manage the renegotiations, using a strategy based on the amount of information it has about the responders. When all responders agree on a new location and time proposed by the activator, the meeting can be rescheduled. Subsequently, the rescheduled appointment is stored in the scheduling database (resource and time reservation) and a notification is sent to the users. This example shows the different roles of agents and illustrates the privacy issues and brokerage actions required in providing the service. 5 Conclusions We distinguished the following actors involved in a mobile service delivery from the viewpoint of PSE brokerage and based on their roles, behaviors and activities: end- users (employers/employees), end-devices, network operators and service providers 253 and policy makers. In this setting, a PSE broker carries out the following (meta-) functions to realize a mobile service delivery: Integral representation, retrieval and updating of actor profiles. Service initiation, whereby the requests and offerings are matched and finely tuned in order to optimize overall system performance. Service management, whereby deductive or inductive inferential structures are derived to enable a broker to monitor the service, to adapt the service on the fly, and to learn and anticipate. Service clearing, whereby the resources are released. The brokerage strives to satisfy all actors with the resulting settings of the mobile services. We represented actors by agents in the brokerage plane. The PSE system reaches satisfaction when all involved agents, and thus the actors they represent, are pleased with the proposed settings of mobile services in the service plane. In a view presented in [8] this satisfaction is interpreted as "acceptable QoS levels for all actors. Privacy of preferences and capability information of actors is going to be an important issue in brokering next generation mobile services. Based on the agent paradigm, we presented a taxonomy of different brokerage mechanisms, deployed in many (basic) services, from a privacy perspective. We explained a location based scheduling service, implemented with software agents, in terms of three QoS management phases exploited in the paper. References [I] K. Decker, K. Sycara and M. Williamson, 1997, "Middle Agents for the Internet", Proceedings of the 15th International Joint Conference on Artificial Intelligence, Nagoya, Aichi, Japan, August 23-29, 1997. [2] L.A. Guedes, P.C. Oliveira, L.F. Faina and E. Cardozo, 1997, "QoS Agency: An Agent- based Architecture for Supporting Quality of Service in Distributed Multimedia Systems", IEEE conference on protocols for multimedia systems, multimedia networking (PROMSMmNet'97), Santiago, Chile, Nov. 1997. [3] A. Hafid, G. von Bochmann R. Dssouli, 1998, "Distributed Multimedia Application and Quality of Service: a Review", Electronic Journalon Networks and Distributed Processing, No. 6, February 1998, pp. I-50. [4] K. Nahrstedt and J.M. Smith, 1995, ''The QoS broker", IEEE Multimedia, spring 1995, pp. 53-67. [5] A. Campbell, C. Aurrecoechea and L. Hauw, 1995, "Architectural Perspectives on QoS Management in Distributed Multimedia Systems", PROMS'95, Salzburg, Austria, October 1995,. Pp. 274-283. [6] C. Aurrecoechea, A.T. Campbell, and Linda Hauw, 1998, "A survey of QoS architectures" , Multimedia Systems, Springer-Verlag, June 1998 , pp.13 8-151. [7] M.M. Lankhorst, H. van Kranenburg, A. Salden, and A.J.H.Peddemors, "Enabling Technology for Personalising Mobile Services," HICSS-35, January 2002, Hawaii, USA. [8] A.H. Salden, R.J. Van Eijk, M.S. Bargh, and J. de Heer, 2002, "Agent-based brokerage of personalized B2B mobile services", Accepted for SSGRR2002, a copy can be downloaded from l1t{p~. U( H_:.tClln.nl;d:-\~gjl u:-;.1')\· \; ;c:\,vPrn!l~d- ih.:- ";")-' i~. 254 From speech to 3D face animation Peter Vanroose", Gregor A. Kalberer", Patriek Wambacq", and Luc Van Goo11,2 1K.U.Leuven, ESATjPSI ETH Zürich, BIWI * 2 Peter.Vanroose~esat.kuleuven.ac.be A bstract. In this paper we present a new method to animate the face of a speaking avatar -i.e., a synthetic 3D human face- such that it re- alistically pronounces any given text, based on the audio only. Especially the lip movements must be rendered carefully, and perfectly synchronised with the audio, in order to have a realistic looking result, from which it should in principle be possible to understand the pronounced sentence by lip reading. Since such a system requires minimal bandwidth and relatively low com- putational effort, it could e.g. be used to transmit video conferencing data over a very low bandwidth channel, where the lip motion rendering is done at the receiving end, by only transmitting the audio channel, or in extremis even only an orthographic or phonetic transcription of the text together with precise phoneme timing information. 1 Motivation Producing realistic synthetic face animation is a challenging task, which has been tackled since the early 70s. Obtaining sufficient realism is very difficult: to date, no system was able to pass a "facial animation Turing test". A variety of approaches can be found in literature [1,3]. Most of these use the concept of 'visemes' , which are the visual counterparts of phonemes: visemes are 'key mouth shapes', each one corresponding to one or more particular sounds (phonemes). Our system first 'learns' the face expressions of all possible visemes and all viseme pair transitions from real 3D face dynamics, observed at frame rate for a triangulated mesh of about 10000 vertices on the faces of speaking actors. This learning process is time consuming, but is done amine and only once. To obtain the necessary realism at the receiving end, it is not sufficient to just concatenate the sequence of visemes or viseme pairs corresponding to the spoken sequence of phonemes since that would give a 'jerky' effect, which is really unacceptable. Correct inter-viseme face expressions together with perfect timing are crucial to obtain the necessary coarticulation effects, which suddenly give the face dynamics a much more human appearance. Correct timing alignment can be obtained by stretching the mouth shape sequence such that it exactly matches the audio. Finally, the obtained trajectory * This work was partially supported the K.U.Leuven Research Fund and by the E.U. 5th Framework project "MYTHE". 255 is post-processed by mapping it into 6D 'viseme space' (representing the 6 first components of an independent component analysis) and smoothing it by spline fitting. 2 Phoneme set and viseme selection Phonemes are the basic acoustic units of a language. For every language, a particular set of phonemes is selected, which best suit that language. E.g., for English, we use 45 phonemes, plus one (j#/) to represent silence. In contrast to phonemes, there is no general agreement on the choice of a viseme set. A single viseme may correspond to several phonemes, but on the other hand, due to coarticulation effects, a single phoneme (like /m/ in the word "mean") could be mapped to more than one viseme (as the /mj in "moon" looks more 'rounded' than the jmj in "mean"). We based our selection of visemes in English on the work of Owens [7] for consonants, with the difference that we only consider two variants ('rounded' and 'widened') of each consonant. For vowels, we use the viseme set of Montgomery and Jackson [6].This gives a total of 20 visemes: 2x6 consonant groups (jp,b,m/, jf,vj, jt,d,s,z,th,dh/, jw,rj, jch,j,sh,zh/ and jk,g,n,l,ng,h,yj), 7 for vowels Ui,iij, je,aj, jaa,o/, uhj, j@@j, jooj and ju,uu/) and one viseme for the 'neutral' position (silence). . It is important to note that our visual speech model combines the visemes with additional coarticulation effects, which highly adds to the realism. This is an important improvement over earlier methods [1-3]. 3 Coarticulation In order to obtain a naturally looking video sequence, not only the individual viseme key shapes but even more the transitions between these must be rendered as realistically as possible. Just performing a (linear) interpolation between key frames gives an unnatu- ral, jerky pronunciation. Therefore, inter-viseme mouth shapes must he 'learned' from real VIdeodata. Luckily, with the chosen set of visemes, it sufficesto have a single, accurate model of every viseme pair transition, and then glue these together, thereby respecting the correct timing of each viseme. The assumption which makes this a valid approach is the Markovian 'condi- tional independence' assumption between consecutive phonemesjvisemes, which has proven successful in speech processing [4] and is still the underlying model of all current speech recognition systems, see below. The extraction of inter-viseme mouth shapes is a time consuming process, but since it has to be done only once, on the training data, this can be seen as an offlineprocessing which does not influence the real-time performance of our system. In addition to the above, and if processing power in the rendering system is not a bottleneck, we post-process the obtained trajectory as follows. We first 256 map it into 6D 'viseme space', which consists of the 6 first components of an Independent Component Analysis (ICA) of the deformations from the neutral position of the generic face model (see next section). Then this trajectory is made fluent by fitting splines to the viseme space coordinates of the viseme sequence. 4 Precise 3D modelling of every viseme pair transition To build a complete database of 3D face models for every viseme transition, we had to select a limited set of about 20 sentences in which every viseme pair is present in the form of two consecutive phonemes that map to these visemes. We did this for both English and Dutch. Then several people pronounced these sentences, while at the same time the audio was recorded and their face was captured with a 3D system at 25 frames per second. To guarantee perfect synchronisation between audio and video, both streams were recorded on a single tape. From these recordings, only the relevant video parts were cut out, viz. only the fragments corresponding to viseme pairs, with at most 5 fragments per viseme pair. These fragments were further processed in order to obtain a clean 3D model for each of the possible viseme transitions. For the 3D recordings, the "ShapeSnatcher" system of Eyetronics was used [8]. It creates a 3D grid model as the one below (with additional texture) for in principle any surface, from a single picture. We mapped all obtained 3D face sequences onto a generic head (by using a common reference topology) in order to be able to train the characteristic mouth shapes for a specific viseme. 3D grid on avatar head 257 5 Modelling the acoustic signal The viseme pair models can be learned from 3D video data, provided we have very accurate timing information from the audio input, and this both on the training data (audio and 3D video) and on the real-time audio input that is going to steer the virtual 3D face model. The speech audio signal is first preprocessed to extract a compact 'feature vector' representation which still carries all essential information. The signal, sampled at 16kHz, is segmented in chunks of 32 millisecondswith an overlap of 22 ms, i.e., the time resolution is 0.01 seconds. Each chunk thus contains 512 audio samples, from which the FFT transform is taken. From these 512 spectral values, 24 feature values are derived, the so-called Mel-scalecepstral coefficients, also including time derivatives [4]. The audio signal is now thus reduced to a trajectory through 24-dimensional feature space, sampled at 100 points per second. Most current state-of-the-art automatic speech recognition (ASR) systems use this representation to train an acoustic hidden Markov model (HMM) with 3 states per phoneme, where a transition is made once every 10 milliseconds. For the English phoneme set with 45+ 1 phonemes, this implies training 138 x 138 transition probabilities from a sufficiently large database of 'anno- tated speech' (i.e., phoneme labelled and time-aligned), in conjunction with a probability model (usually a "union of Gaussians") for the conditional probabil- ities of a feature vector belonging to one of the HMM states. Since HMM states correspond to phonemes, not to observations (viz. the 24-dimensional feature vectors), this Markov model is called 'hidden'. An acoustic model for e.g. a word with 2 phonemes like the word "do" [àu] is a Markov chain with 6 states, each phoneme having an 'initial' state, a 'middle' state and a 'final' state. The state transition probabilities for # ---> dl, dl ---> dl, dl ---> dz, dz --> dz, dz --> d3, d3 --> d3, d3 --> UI, UI --> UI, UI ----+ Uz, Uz ----+ Uz, Uz ---> U3, U3and U3 ----+ # are trained by observing all those transitions ----+ U3 in the training database, observing the corresponding feature vector sequences, and calculating the (empirical) conditional probabilities. Note that acoustic models, just like the used phoneme set, are language specllie. 6 Extraction of precise timing for viseme transitions Given an audio signal, the acoustic model of an ASR system will thus be able to produce the sequenceof phonemes that (according to the HMM) has the highest 258 probabilitv of matching the given audio. In order to obtain this optimal phoneme string the ASR must perform a precise segmentation of the audio, thereby i:I.'S- signing subsequent parts of the audio stream to each of the HMM states. Hence, as a side effect, the ASR system will produce precise timing information at a sub-phoneme level, with a resolution of 10 ms. It is this segmentation algorithm which will be used to obtain phoneme timing [5]. The alignment of the acoustic signal with the most likely state transition sequence, i.e., determining the path through the HMM with highest conditional probability given the feature vector sequence, is obtained by applying the Viterbi algorithm, originally designed for decoding convolution codes [9]. The performance of this segmentation is seriously improved if the phonetic transcription of the audio is known. This is especially true for the off-line training phase, since it ensures perfect viseme pair models. In this training phase we even used a manual phonetic transcription. In that case, the Viterbi algorithm reduces to a "Viterbi alignment" step, since only the duration of phonemes, i.e., the number of iterations where the HMM stays in the same state, is to be optimised. It is less crucial (and also, in most applications, unrealistic) to have this information in the rendering system which is steered by the acoustic signal alone. But if we e.g. consider the most bandwidth-efficient mobile system in which only phonemes and their timing are transmitted, and the audio is generated by a text-to-speech system, then the phonetic transcription is indeed available. Note that the phonetic transcription can also be automatically derived from the orthographic transcription of the spoken sentences, given a phonetic dictionary. Applying the algorithm leads to the assignment of 3 timings (in multiples of 10 ms) to each phoneme in the transcription, one for each of the three states of the HMM model per phoneme. This sub-phoneme information turns out to be very useful in the viseme rendering, since it allows to have a more accurate timing of the mouth movements, which greatly adds to the realism. 7 Conclusions Realistic face animation is still a challenge. We have tried to attack this problem via the acquisition and analysis of 3D face shapes for a selection of visemes, and by using very accurate viseme timing information, both in the offline training and in the client-side animation. The animation is organised as a navigation through 'viseme space', as a concatenation of viseme pair transitions which could then be post-processed to an optimally smoothened trajectory. Given the input in the form of a spoken sentence, a face animation can be created fully automatically. The proposed method yields realistic results, with more detail in the under- lying, 3D models than earlier approaches. 259 Snapshots from rendered 3D sequence. References 1. C. Bregler, M. Covell, M. Slaney, "Video rewrite: driving visual speech with audio" , in SIGGRAPH, pp. 353-360, 1997. 2. M. Brand, "Voice Puppetry", in Animation SIGGRAPH, 1999. 3. T. Ezzat, T. Poggio, "Visual speech synthesis by morphing visemes", International Journalof Computer Vision, vol. 38, pp. 45-57, 2000. 4. X.D. Huang, Y. Ariki, M.A. Jack, Hidden Markov Models for speech recognition, Edinburgh University Press, 1990. 5. T.Laureys, K. Demuynck, J. Duchateau, P. Wambacq, "An Improved Algorithm for the Automatic Segmentation of Speech", in Proc. Srd Intemat. Conf. on Language Resources f3 Evaluation (LREC02), Las Palmas, May 2002. 6. A. Montgomery, P. Jackson, "Physical characteristics of the lips underlying vowel lipreading performance", Jour. Acoust. Soc. Am., vol. 73, pp. 2134-2144, 1983. 7. O. Owens, B. Blazek, "Visemes observed by hearing-impaired and normal-hearing adult viewers", in Jour. Speech f3 Hearing Research, vol. 28, pp. 381-393, 1985. 8. "ShapeSnatcher software" , http://www.eyetronics.com/ 9. A.J. Viterbi, "Error bounds for convolutional codes and an asymptotically optimum decoding algorithm", IEEE Trans. on Inform. Theory, IT-]~(2), pp 1,60-269,1967. 260 Rotationally Variant Complex Channels Georg Tauböck Telecommunications Research Center Vienna (FTW), Tech Gate Vienna, Donau-City-StraBe 1, A-1220 Vienna, Austria, tauboeckClftw. at, WWW home page: http://tititi . ftw. at Abstract. In the past, several authors studied the properties of rota- tionally variant complex random vectors (see e.g. [1]-[5]).It is weUknown that the covariance ' matrix en = E{ nnH} is not sufficient for a com- plete second order description, the knowledge of the pseudo-covaTiance matrix Pn = E{nnT} (the random vector n is assumed to be zero-mean) is mandatory, too. Additionally, if a channel introduces rotationally vari- ant complex noise, the corresponding encoder and decoder have to take into account the pseudo-covarianee matrix or, equivalently, work on a real/imaginary part level. Otherwise, a capacity loss has to be accepted. The purpose of this paper is to derive analytical formulas (in terms of covariance and pseudo-covarianee matrix) for this capacity loss. 1 Introduction Throughout this paper, the channel is modeled via y = Ax+n, (1) where y E (jr and x E (jt denote the received and transmitted vectors, re- spectively. A is a deterministic r x t complex matrix, and n E CVr is zero-mean complex Gaussian noise with nonsingular covariance matrix en = E{nnH} and pseudo-covariance matrix Pn = T E{nn }. The transmitter is constrained in its total power to S, (2) or equivalently, since xH x = tr (xxH), and expectation and trace commute, (3) In principle, all encoding-decoding schemes for this channel can be classified into two types, the ones which utilize the knowledge of Pn and the others which neglect it, or - to be more precise - erroneously assume that Pn is the zero matrix. These two types of transmission have different capacities in general, eneglect r; and eutilize r: ' which motivates the calculation of the capacity loss 1 The superscripts H and T denote Hermitian transposed and transposed, respectively, E{·} denotes the expectation operator. 261 LlC = Cneglect Pn - Cutilize Pn· In the following, it will turn out that this can be done analytically, and furthermore, that the final formula is astonishingly simple, i.e., it depends only on the singular values (c.f., [8J) of a transformed version of the pseudo-covarianee matrix Pn. Before we proceed with this specific problem, we present some preliminaries about complex random vectors. 2 Preliminaries A complex random vector x E CC n is said to be Gaussian if the real random vector x E 1R2n consisting of its real and imaginary parts, x = [~~~~], is Gaussian. Thus, to specify the distribution of a zero-mean complex Gaussian random vector x, it is necessary to specify the covariance of X, namely, (4) Using the covarianee matrix Cx = E{xxH} and the pseudo-covarianee matrix Px = E{xxT} one finds - after some algebra - (5) from which it followsthat the knowlegeof Cx and Px also determines a zero-mean complex Gaussian random vector completely. Le:mma 1. ~{Cx} = ~{C;'} ~{Cx} = -~{Ci} (6) ~{Px} = ~{p[} ~{Px} = ~{p[} Proof. The real part of an Hermitian matrix is symmetric, the imaginary part of an Hermitian matrix is anti-symmetric, and real and imaginary parts of a symmetric matrix are symmetric. 0 We will use Lemma 1 to show an important property of Px which will be needed later on: Theorem 1. There exists a diagonal matrix Ax E R2n (consisting of the eigen- values of px) and an orthonormal matrix Qx E 1R2n, s.t. - Px = QxAxQx, T (7) À E diag {Ax} {::}- À E diag {Ax} (including multiplicities). (8) 262 Proof. According to Lemma 1, Px is a symmetric matrix. Applying the spectral theorem, c.f. [8], yields (7). Let In denote the n x n identitiy matrix. We have, and therefore, det (Px - Àhn) = det (-Px - .ÀI2n) = (-1)2ndet (Px + .ÀI2n) = = det (Px + .ÀI2n) , (10) which implies (8). 0 Definition 1. A complex random vector is called rotationally invariant [c.f., [1j) or proper (c.f., [5J) or circularly symmetric (c.f., [6]) if its pseudo-covariance matrix vanishes. For any z E cr.;n and A E cr.;nxm define A Z - _ [~{z}] ~{z} and A= A [R{A} ~{A} -~{A}] R{A} ,s.t., for a rotationally invariant random vector, Cx = !êx. Lemma 2. The mappings z H Z = [~{{zz}}] and A H A = [~{A} -~{A}] ". ~{A} R{A} have the following properties: C=ABÇ:}ê=AÊ C=A+BÇ:}ê=A+Ê C = AH Ç:} ê = AT C = A-I Ç:} ê = Al det (A) = [det (A)12 = det (AAH) (ll) Z=X+YÇ:}z=x+i) Y = Ax Ç:} i} = Ax R{xHy} = :êTi} U E cr.;nxn is unitary Ç:} Û E cr.;2nx2n is orthonormal C E cr.;nxn is non-negative definite => ê E cr.;2nx2n is non-negative definite Proof. All properties are immediate or almost immediate (c.f., also [6]). 0 We can now state the following theorem about the eigenvalues of Px (see, The- orem 1): Theorem 2. The positive eigenvalues of Px are the non-zero singular values of r; 263 Proof. On one hand, we have where Lemma 1 was used, on the otherhand, F",F", - M2n = (13) _ [~{P",}~{P",} + ~{P",}~{P",} - u; R{P",}~{P",} - ~{P",}~{P",} ] - -R{P",}~{P",} + ~{P",}R{P",} R{P",}R{P",} + ~{P",}~{P",} - )dn . Therefore (À is real), (14) and furthermore, applying Lemma 2, (15) The eigenvalues of F",F", are the squared eigenvalues of F", and are equal to the eigenvalues p",pfI, which are the squared singular values of P",. 0 3 Differential Entropy of Complex Random Vectors The differential entropy h(x) of a complex random vector x is defined as the differential entropy h(x) of the corresponding real random vector x. It is well known, c.f., [5)or [6),that rotationally invariant complex Gaussians are entropy maximizers: Theorem 3. Suppose the complex random vector x E ~n is zero-mean and has a nonsingular covariance matrix e",. Then the entropy of x satisfie? h(x) :s logdet (7ree",) (16) with equality if and only if x is rotationally invariant and Gaussian. Proof. [5), [6). o Theorem 3 tells us that for a zero-mean rotationally variant (P", does not van- ish) complex Gaussian random vector x, h(x) < logdet (7reC",). Unfortunatley it does not tell us by how much the quantity h(x) is degraded when the pseudo- covariance matrix P", is non-vanishing. The following theorem gives us the an- swer: Theorem 4. Suppose the complex random vector x E G::: n is zero-mean Gaussian and has a nonsingular covariance matrix e", and a pseudo-covarianee matrix P",. 2 Throughout this paper log = log2. 264 Let Cx = LxL{f (L; lower triangular) be the Cholesky decomposition (c.f., [Sj) of Cx· Then the entropy of x satisfies 1 hex) = logdet (rreCx) + 2 L log (1 - .xn ' (17) Ài where .xi are the singular values of PL -Ix = L;1 PxL;T, the pseudo-conarianee matrix of the complex random vector i;IX. Proof. Perform a Cholesky decomposition (c.f., [8]) Cx = LxL{f (Lx lower tri- angular) of Cx and consider the complex random vector y = L;IX (Lx is non- singular). Obviously, y is Gaussian with covarianee matrix Cy = In and pseudo- covariance matrix Py = PL-;lx. This yields (x = Lxii, according to Lemma 2) hex) = hex) = (18) = ~ log det (2rreCa,) = ~ log det (2rreC L:1Î) = ~ logdet (2rreLxCiiL;) = = ~ log (det (2rreCy) det (LxL;)) = ~ log (det (2rreCii) det êx) = = ~ log (det (2rreC1Î)(det Cx)2) = ~ log (rre)2n (det Cx)2 det (2Cii ») = = logdet (rreCx) + 2logdet 1 (2C1Î) = logdet (rreCx) + 2logdet 1 (1 + Py - ), 2n and applying Theorem 1, 1 hex) = logdet (rreCx) + 2logdet (I 2n + Ay) = 1 = logdet (rreCx) + 2 L log (1-.x;) , À.>O where the sum is over all positive eigenvalues (counted with multiplicity) of FL-;lZ' or equivalently (Theorem 2), over all (non-zero) singular values of PL-;lX. D Using the inequality lnx :::;x-I, one easily finds a lower and upper bound for the entropy: Corollary 1. Suppose we have the same situation as in Theorem 4. Let dmaz denote the largest eigenvalue of PyPf/ (y = L;IX). Then, tr(PyPf/) tr(PyPf/) logdet (rreCx) - 2ln2 (1- d ) :::;hex) :::; logdet (rreCx) - 2ln2 . (19) max Observe that the deviation of the entropy from the "ideal" rotationally invariant entropy is approximately determined by the trace and the largest eigenvalue of PyPf/. 265 Theorem 4 together with the maximum-entropy theorem for real random vectors (c.f., [7]) implies Theorem 3. In this sense, it is a generalization, since it is an equality, not an inequality. It also follows from the theorem that the singular values of PL-1 have to be smaller than (or equal to) 1. The converse X is true as well: '" Theorem 5. Let C E (Cnxn be an Hermitian positive definite matrix and C = LLH be its Cholesky decomposition. C and a matrix PE (Cnxn are the covarianee matrix and the pseudo-covariance matrix of a zero-mean complex random vector, respectively, if and only if P is symmetric and the singular values of L -1P L-T are smaller or equal to 1. Proof. We only sketch the proof. Consider (20) and apply" Theorem 1 and Theorem 2 to L -1P L - T. Note that ê + P has to be non-negative definite. 0 4 Capacity Loss In this section, we return to our channel model as presented in the introduction. We intend to calculate the capacity loss if only the information given by the covariance matrix C« is used, i.e., to calculate the capacity difference between the case where the pseudo-covarianee matrix Pn is taken into account and the case where the pseudo-covarianee matrix is erroneously assumed to be vanishing. Note that many coding and signal processing algorithms make only use of the covariance matrix Cn. The mutual information I(x; y) can be written as I(x; y) = hey) - h(ylx) = hey) - hen), (21) and thus, maximizing lex; y) is equivalent to maximizing hey). We have hey) = h(Ax + n). In the case where the pseudo-covarianee matrix Pn is neglected, the maximation of logdet (-rreCy) = logdet (ACzAH + Cn) +r log (rre) yields a zero- mean rotationally invariant complex Gaussian random vector x. Let en = LnL;; be the Cholesky decomposition of en. With B = L;;l A and the determinant identity det(XY + I) = det(Y X + I), one finds logdet (ACxAH + en) = logdet (ACxAH + LnL;{) = = logdet (BCxBH + In) + log det en = 3 For the converse part, one cannot apply the theorems directly, since they assume that the matrices are (pseudo-)covariance matrices. However, these matrices have the necessary structure used in the corresponding proofs, S.t. the statements about the eigen/singular values are valid for them as well. 266 = log det (CxEH B + In) + log det C = n = logdet (CxUD~D~UH + In) + log det Cn = = logdet (D~UHCxUD~ +In) +logdetC = n = logdet (D!e",D! + In) + logdet Cn, where D! (diagonal) and U contain the square roots of the eigenvalues and the normalized eigenveetors of EHE, respectively, and ex = UHCxU. Note that tr (e",) = tr(C",), s.t. e", can be found via "water-filling". The random vector y then! has a covariance matrix Cy = ACxAH + Cn = AUexUH AH + Cn and a pseudo-covarianee matrix" Py = Pn. In an high signal-to-noise environment, it is justifiable (see Theorem 5) to assume that it is possible to compensate for the rotationally variant noise, i.e., to maximize the mutual information with the same covariance matrix Cx by an appropriate selection of the pseudo-covarianee matrix Px. Applying Theorem 4, this yields a capacity loss of LlC = Cneglect r; - Cutilizep n = ~ L log (1 - .Àn ' (22) x, where .Ài are the singular values of L;l PnL;T, Ly being the Cholesky factor of Cy = AUexUH AH + Cn. Lower and upper bounds are available from Corollary 1. 5 Example It can be shown" that for Discrete Multitone (DMT) modulation (baseband OFDM, [9]) as used in ADSL the noise at the input of the decision device is rotationally variant if the noise at the input of the receiver is colored. Applying (22), the following expression holds for the capacity loss, (23) where ~ is the number of sub-carriers, Rz(s) is the autocorrelation function of the zero-mean, discrete-time, real-valued (baseband), stationary Gaussian ran- dom noise process at the input of the receiver, H (z) denotes the channel transfer function, and L is the water level (Water Filling). Note that L depends on the signal power. 4 Note that x and n are independent random vectors. 5 If x is rotationally invariant, so is Ax (c.f., [5]). 6 Will be addressed in a separate paper. 267 6 Conclusions We investigated complex matrix channels with additive complex Gaussian noise. We did not assume rotationally invariant noise and included the corresponding pseudo-covarianee matrix into our considerations. For this, we proved a stronger maximum-entropy theorem for the complex multivariate case than previously known, which also takes into account the pseudo-covarianee matrix. We derived lower and upper bounds for the deviation of the entropy of a rotationally variant complex Gaussian random vector from the rotationally invariant counterpart. We used these results to find an analytic expression for the capacity loss if the pseudo-covariance matrix is not taken into account, and provided some bounds as well. Finally, we gave an example of a practical, widespread transmission system (xDSL), which fits perfectly in our framework and in which the pseudo- covarianee matrix is usually neglected. References 1. A. Lampe, R. Schober, W.H. Gerstacker, "Iterative Multiuser Detection for Complex Modulation Schemes", Proc. of IEEE International Symposium on Infor- mation Theory (ISIT), (Washington D.C.), p. 33, 2001. 2. Y.C. Yoon, H. Leib, "MaximizingSNR in Improper Complex Noise and Appli- cations in CDMA", IEEE Communications Letters, vol. 1, pp. 5-8, Jan. 1997. 3. S. Buzzi, M. Loops, A. M. Tulino, "A new Class of Muliuser CDMA Receivers based on The MinimumMean-Output-Energy Strategy" , Proc. of IEEE International Symposium on Information Theory (ISIT), (Naples, Italy), p. 355, June 2000. 4. B. Picinbono, P.Chevalier, "Widely Linear Estimation with Complex Data", IEEE Transactions on Signal Processing, vol. 43, pp. 2030-2033,Aug. 1995. 5. F.D. Neeser, "Communication Theory and Coding for Channels with Intersymbol Interference", PhD thesis, ETH Zürich, Switzerland, 1993. 6. I.Emre Telatar, "Capacity of Multi-antenna Gaussian Channels", European Transactions on Telecommunications, Vol. 10, No. 6, pp. 585-595,NovIDee 1999. 7. T.M. Cover, Y.A. Thomas, "Elements of Information Theory", John Wiley f1 Sons, Inc., ] 9!H 8. G.H. Golub, C.F. Van Loan, "Matrix Computations", North Oxford Academic Publishers Ltd, a subsidiary of Kogan Page Ltd, p. 16, 1986. 9. R. Fischer, "Mehrkanal- und Mehrträgerverfahren fur die schnelle digi- tale Übertragung im Ortsanschlussleitungsnetz", PhD thesis, Universität Erlan- gen/Nürnberg, Germany, 1996. 268 BER Analysis of a DPSK Phase Diversity Receiver for Coherence M ultiplexing Arjan Meijerink, Geert Heideman, and Wim van Etten Telecommunication Engineering Group, Faculty of Electrical Engineering, University of Twente P.O. Box 217, 7500 AE, Enschede, The Netherlands a.meijerink~ieee.org A bstract. Coherence multiplexing (CM) is an optical multiplexing tech- nique that is particularly suitable for optical access networks and optical LANs, because of its low costs. In most previously reported CM sys- tems, either single-ended or balanced detection is used, which requires either phase-locking (for homodyne detection) or frequency-shifting (for heterodyne detection) to avoid fading of the demodulator output signal. Recently, we proposed a scheme in which the receiver output signal is stabilized by means of a phase diversity network. To perform bit-by-bit detection using this scheme, OOK modulation should be used, which in- troduces some performance degradation with respect to PSK modulation in conventional systems. Moreover, using OOK puts very severe condi- tions on the CMRR of the balanced photodiode pairs in the receiver, in order to avoid crosstalk. In this paper, a phase diversity receiver based on DPSK demodulation is introduced. It is shown that this receiver results both in an improved performance with respect to OOK modulation, and moreover, that it is less sensitive to crosstalk. 1 Introduction Increasing bandwidth demands of end users call for a conversion of the present communication networks, from copper cables to optical fibers. This conversion has already taken place in core networks, and is currently drifting towards the access parts, where the end users are connected. To minimize fiber costs, passive optical network (PON) architectures seem suitable. To enable multiple access on this network, a multiplexing scheme is required that minimizes the costs per end user. A well-developed and relatively bandwidth efficient technique is wave- length division multiplexing (WDM). This technique is therefore often used in core networks, both for effectively utilizing the capacity of the optical fiber and for enabling optically transparant wavelength routing. WDM is a very expen- sive technique, however, since it requires very narrowband lasers and selection filters. Moreover, temperature control is needed, both for stabilizing the laser wavelength and stabilizing the selection range of the filters. Although this is not much of a problem in core networks (where the costs are being shared by a vast number of users), it seems to make WDM too expensive for access networks. An alternative solution is optical time division multiplexing (OTDM), where each user is assigned a particular times lot for transmitting one or more bits or pack- ets. This is particularly effective in the downstream transmission path of a PON, 269 as the transmission of the downstream channels can be performed by a single transmission node. In the upstream, however, the distributed transmitters are not localized to a node. Therefore, a synchronization scheme is required to avoid crosstalk, resulting in inefficient bandwidth utilization. For smaller networks, op- tical code division multiplexing (OCDM) schemes seem to be more suitable, as they can operate asynchronously in the same wavelength band, thereby enabling low access delay suited to bursty traffic. Another advantage is the so-called soft capacity, which means that the performance of the network degrades only grad- ually when the number of users is increased; adding a user does not require reconfiguring the network [1]. In our paper, we will consider a very simple form of OCDM, called coherence multiplexing. 2 Coherence Multiplexing (CM) Coherence multiplexing (CM) [2] is based on the principle of distinguishing be- tween coherent and incoherent mixing of lightwaves, as illustrated in Fig. 1. The idea is that each transmitter launches two versions of a broadband carrier into the common fiber. These two versions are made mutually incoherent (uncorre- lated) by delaying them with respect to each other by a timeshift Ttr which is much larger than the coherence time Tc of the source. Moreover, one of these two carriers is BPSK modulated by the information signal met). (The other car- rier is transmitted unmodulated.) In the receiver, the correct channel can be selected by mixing the received signal with the same signal being delayed by a timeshift Tre. Mixing is performed by a balanced detector, which consists of a 2 x 2coupler and two photodiodes. If Tre = Ttr then the lightwave taking the upper path in the transmitter and the lower path in the receiver mixes co- herently with the lightwave taking the lower path in the transmitter and the upper path in the receiver, as their mutual time delay is zero. Since one of these lightwaves is modulated, the mixing product is an antipodal baseband signal proportional to the modulating signal met). If the delays of all the transmitters are spaced apart much more than the coherence time of the sources, then it can be simply verified that all the lightwaves from interfering transmitters mix in- coherently, resulting in broadband interferometric noise. Moreover, the coherent mixing term suffers from source intensity noise. Therefore, the output signal has to be matched filtered before thresholding is performed. For large received pow- ers, interferometric noise and intensity noise dominate over other noise sources like shot noise and thermal receiver noise. Assuming that the complex envelope of the field emitted by the broadband source can be modelled as a circular com- plex Gaussian process with a Gaussian spectral profile, and that all the fields in the receiver have matched polarization states, the signal-to-noise ratio after matched filtering can be shown to be [2] r=: SNR= . 2 Tb V~ 6..f (1) 4M2 + 2M + 1 Tc 4M2 + 2M + 1 Rb ' where M is the number of active users, Tb is the bit-time of the modulating signal met), 6..f is the 3 dB linewidth of the source and Rb is the bitrate. 270 :. ;- - - - - - - - - - - - - - - ~;m-itt~r- ! r-'-, ____""'''"---r: 'pl: ï - - ~- - - - - - - - - - - - - - - - - - - - I * £(/) receIVer , ' 1(/) , T ' , T -' u :, :I\nf\ I~ ~ \_~ : I I J" : ~ J' Fig.1.A coherence multiplex system with one transmitter and one (balanced) receiver As the matched filter bandwidth will generally be much smaller than the band- width of the noise, the decision samples can be assumed to be Gaussian distrib- uted, so the bit error rate is given by (2) Although CM cannot compete with WDM as far as bandwidth efficiency is concerned, it might be favourable from a cost point of view, as broadband light sources (for instance LEDs) and only simple components are required for crosstalk-free transmission. Therefore, CM is particularly suitable for small-scale networks like LANs and access networks. 3 Stability Issue The problem with the balanced receiver in Fig. lis that the coherent light- waves have to be mixed exactly in phase in order to achieve constructive inter- ference. Therefore, even a small drift in the delay in either the transmitter or receiver will introduce a drop in the amplitude of the output signal, by a factor cos(21rJe(Ttr - Tre)), where Je is the carrier frequency of the light [3J. Three solutions are known to solve this problem. The most straightforward solution is to lock the coherent lightwaves in phase, by applying a feedback loop from the detected signal to the delay Tre, which adapts the refractive index, for example by means of the thermo-optic or electro-optic effect [4J. A second solution is to perform heterodyne detection instead of homodyne detection, by shifting one of the two coherently mixed lightwaves in frequency with respect to the other. This can for instance be done by means of an acousto-optic modulator in one of the Mach-Zehnder branches, either in the transmitter or the receiver [5J. Finally, the output signalof a coherence multiplex receiver can be stabilized by means of a phase diversity network, which will get some more attention in the next section. 4 Phase Diversity Detection of Coherence Multiplexed OOK Signals Recently, we proposed how stabilized detection without phase-locking can be performed using either a 3x3 [3] or a 4x4 [6] phase diversity scheme. Phase diversity isa detection method which has been successfully applied in numerous types of coherent optical systems [7J. Consider the coherence multiplex receiver based on a 4x4 phase diversity network, as given in Fig. 2. In this receiver, the balanced mixer is replaced by a 4x4 optical hybrid (for instance a multimode interference coupler) and two differential pairs of photodiodes. 271 The geometry of the hybrid is assumed to be such that the power of the input signals is equally divided over the output ports, and moreover, that the mixing phases are given by 4>, 4> + ~, 4> - ~ and 4> + 1f, where 4> is an arbitrary phase that depends both on the phase difference between the input signals (which changes with ITtr - Trel) and on the absolute phase transfer of the hybrid. As a result, the output currents of the differential photodiode pairs lIet) and lQ(t) both consist of desired signals hs(t) and lQ,s(t), respectively, and broadband noise hn(t) and lQ,n(t), respectively. It can be shown that the desired signals are given by m(t)Acos4> and m(t)Asin4>, respectively, where the amplitude A incorporates transmitted power, splitting and coupling losses, and the respon- sivity of the photodiodes. To minimize the degradation due to the noise, both signals are first matched filtered by the low-pass filters, before they are squared and added. As the difference in mixing phase is ~ radians, the output signal does not depend on <1>. Therefore, this receiver is not able to demodulate BPSK modulated signals like in Fig. 1. This problem can be solved by replacing BPSK modulation by on-off keying (OOK), which can be performed by directly mod- ulating the source. (In the next section, a different solution will be discussed.) Since OOK modulation incorporates modulating the power of the source, the variance of the interferometric noise depends on the number of users that are simultaneously transmitting a '1'-bit; therefore the signal-to-noise ratio can be considered as a random process "(t) which is varying with time. It is assumed (for simplicity) that the received signals from both the matched transmitter and the interfering transmitters are bit-synchronized and have the same power level. Hence, for a particular bit k, the signal-to-noise ratio is a discrete random vari- able "(k that can take one out of M possible values. Moreover, all transmitters are assumed to transmit '0' or '1' bits independently, with an equal probability of ~. Then it can be proven [6] that the average bit error probability of the phase diversity receiver can be approximated by r,~(2) 1 M L (M-I) M-I n p (ex ( 4(4n2~2n)TC) 1 (3) n=O + Q (J 2 Tb (471.2 + 10'11. + 7) Tc ) whereas the average bit error probability for balanced detection of OOK is (4) Tb ) 2 (4n2 + IOn + 7) re Figure 3 shows the network capacities one can obtain for a given number of users M at an average bit-error rate of 10-9. 272 Fig. 2. A coherence multiplex received based on a 4x4 phase diversity network From this figure it is obvious that phase diversity detection of OOK modulated signals results in a lower capacity than balanced detection of PSK modulated signals. The results for balanced detection of OOK modulated signals suggest, however,that this degradation is mainly caused by the change of the modulation format rather than the change of the detection method. In the next section, it will be proven that this is indeed the case. A second disadvantage of using OOK modulation concerns the subtraction of the photodiode currents. As the output signals of the differential pairs are no longer antipodal, the subtraction operations should be DC-coupled. Moreover,canceling the common mode signals is very difficult as they are no longer DC. As a result, the splitting ratio of the 4x4 coupler should be strictly uniform and the responsivities of the photodiodes need to be identical, in order to avoid crosstalk from interfering users. Finally, a disadvantage of using OOK modulation is that the detection threshold needs to be adapted to the received power in order to minimize the bit error probability. Fig.3. Network capacityover linewidth at a bit error rate P, = 10-9 a) BPSK modulation and balanced detection b) OOK modulation and balanced detection c) OOK modulation and phase diversity detection 5 Phase Diversity Detection of Coherence Multiplexed DPSK Signals The two main disadvantages of using OOK modulation can be cleared away by performing differential phase shift keying (DPSK) modulation instead of OOK modulation. This means that, in the phase modulator in the transmit- ter, a transition of 7r radians is made when a binary '1' is transmitted, and no transition is made when a binary '0' is transmitted. In the receiver, the squaring operation should be replaced by a delay-and-multiply operation, as il- lustrated in Fig. 4. Now let the output samples of the matched filters in the l- and Q-branches for a particular bit k be denoted by hand Qk. Then it can be shown that hand Qk contain information terms Is,k = E[hl = mkA . Tb cos , respectively, source intensity noise terms ISin,k = ASin,k cos cl> and Qsin,k = ASin,k sin cI>, respectively, and interferometric noise terms lin,k and Qin,k, respectively, where mk = mk-l when a binary '0' is transmitted, and mk = -mk-l when a binary '1' is transmitted. ASin,k is zero mean Gaussian with variance O";in = A2TbTc, and lin,k and Qin,k are both zero mean Gaussian with variance O"rn= !(4M2 + 2M -1)A2TbTc. Because the com- plex envelopes of the lightwaves are assumed to be circular complex Gaussian distributed with a symmetrical spectrum, the corresponding quadrature compo- nents are independent. One can prove that this implies that the interferometric noise currents are uncorrelated, such that lin,k and Qin,k are uncorrelated and therefore independent, as they are jointly Gaussian. The output signalof the receiver can be written as (5) By assuming that the phase cP does not change significantly during two bit-times, and by defining ln,k ~ Asin,k + lin,k cos cP + Qin,k sin cl> , (6) Qn,k == lin,k sin cl> - Qin,k cos cP , (7) this can be written as s; = (mkA. Tb + ln'k) ( mk-IA . Tb + ln,k-l ) + Qn,kQn,k-l (8) ln,k, Ie»:», Qn,k and Qn,k-l are zero mean Gaussian distributed and mutu- ally independent. Their varianees do not depend on k and are given by = aJu !(4M2 + 2M + 1)A2TbTc and O"~D = !(4M2 + 2M - 1)A2TbTc. From (8), it is obvious that the conditional probability density functions fSklmk=mk-l and fSklmd"mk_l of Sk under the conditions that. 'Trlk and mk-i ure the :same or not, respectively, are related as fSklmk=mk-l (s) = fSklmk#mk_l (-s). As a re- sult, when equal bit probabilities are assumed, the probability of bit error P, can be minimized by setting the threshold to Sth = O. Moreover, the probability of error does not depend on the transmitted bit, so Peis given by (9) By defining (10) (11) 274 we can write (12) Since a and {3 can be proven to be mutually independent, we get (13) Unfortunately, it is very hard (if not impossible) to find analytical expressions for the probability density functions fo:(a) and ff3(b) of a and {3, respectively, as the varianees 01and a~n are not the same. For large M (say M > 3), however,one can easily verify that a very close upper bound on Peis obtained by assuming that (14) With that assumption, a is approximately Rician distributed (15) whereas {3 is approximately Rayleigh distributed (16) where Io(x) is the modified Bessel function of the first kind and order zero: 1 Jot" exp(x cos 0) dO Io(x) == 27r (17) Subsituting this in (13) gives (18) 1 = 2" exp ( 1 Tb) - 4M2 + 2M + 1 Tc 1 = 2" exp ( ~ jj.f) 4M2 + 2M + 1 Rb . The resulting network capacities at a bit error rate of 10-9 are shown in Fig. 5, together with the previously obtained results. The results for the phase diversity receivers apply both to the 3x3 as well as the 4x4 solution. 275 Fig.5. Network capacityover linewidth at a bit error rate P; = 10-9 a) BPSK modulation and balanced detection b) DPSK modulation and phase diversity detection c) OOK modulation and balanced detection d) OOK modulation and phase diversity detection 6 Conclusion Stabilization of a coherence multiplex receiver by means of a phase diversity network introduces only a minor capacity degradation with respect to a phase- locked balanced detector. This holds for amplitude modulation as well as phase modulation; phase modulation result in the best performance, however. When phase modulation is used, the bits should be differentially encoded prior to mod- ulation, and moreover, the demodulation in the diversity branches should be done using a delay-and-multiply circuit instead of a square law device. A second advantage of using phase modulation is that a constant power is transmitted by all the users, such that the common mode terms in the photocurrents are DC; this makes the subtraction of the photocurrents easier. A disadvantage of phase modulation is that performing the modulation is more difficult than amplitude modulation, which can simply be performed by directly modulating the source. References 1. Sampson, D.D., Pendock, G.J., Griffin, R.A.: Photonic Code-Division Multiple Access Communications. Fiber and Integr. Opt. 16 (1997) 129-157 2. Pendock, G.J., Sampson, D.D.: Capacity of coherence-multiplexed CDMA net- works. Opt. Comm. 143 (1997) 109-117 3. Van Etten, W., Meijerink, A.: Optical stabilization of coherence multiplex output signal by means of a phase drversity network. Proc. 6th Ann. Symp. lBEE/LEOS Benelux Chapt., Brussels, Belgium (2001) 149-152 4. Griffin, R.A., Sampson, D.D., Jackson, D.A.: Demonstration of Data Transmission Using Coherent Correlation to Reconstruct a Coded Pulse Sequence. IEEE Photon. Technol. Lett. 4 (1992) 513-515 5. Blair, D.A., Cormack, G.D.: Optimal Source Linewidth in a Coherence Multiplexed Optical Fiber Communications System. J. Lightwave Techno!. 10 (1992) 804-810 6. Meijerink, A., Heideman, G., Van Etten, W.: Performance evaluation of an OOK coherence multiplex receiver based on 4x4-phase diversity detection. Proc. XXVIIth V.R.S.!. General Assembly, Maastricht, The Netherlands (2002) (to ap- pear) 7. Davis, A.W., Pettitt, M.J., King, J.P., Wright, S.: Phase Diversity Techniques for Coherent Optical Receivers. J. Lightwave Technol. 5 (1987) 561-572 276 A NEW BLIND SIGNAL PROCESSING ALGORITHM FOR CHANNEL EQUALIZATION J. Levendovszky", L. Kovács' and E.C. van der Meulen/ 1 Budapest University of Technology and Economics Department of Telecommunications Pázmány P.sétány liD, H-1l17, Budapest, Hungary {levendov,kovacsl}Chit.bme.hu 2 Katholieke Universiteit Leuven, Department of Mathematics, Celestijnenlaan 200B, B-3001 Leuven (Heverlee), Belgium ecvdm~gauss.vis.kuleuven.ac.be The paper is concerned with developing novel adaptive algorithms for decor- relating weakly staturner random processes. The proposed decorrelation . technique proves to be instrumental in mobile communication, where equal- izing radio channels with severe intersymbol interference without training sequence is a frequently occurring task. The performance of adaptive decor- relation algorithm can increase spectral efficiency which is of imporlance in introducing broadband digital services in 3G mobile systems. INTRODUCTION Selective fading, resulting in excessive channel distortions, is a rather typical phenomenon in digital radio communication because of multipath propagation. Therefore, to achieve high spectral efficiency with a given cellloss or bit error rate via narrowband radio access networks (or via mobile systems), one has to equal- ize the channel distortions. Since fading can occur randomly in time, training sequence is not available to optimize the weights of the receiver. This prompts the development of blind signal processing algorithms which can equalize the channel characteristic by only observing the output signalof a linearly distorted noisy channel without a known training sequence. Traditional techniques apply modified MMSE and ZF algorithms with training sequence. In the absence of training sequence, the decisions themselves are used to replace the known trans- mitted symbols. No investigation has yet been launched to ascertain the stability of this method, when errors in the decisions may yield that the equalizer coeffi- cients converge to a wrong steady state. Furthermore, by using the decisions in the equalizer algorithm gives rise to a nonlinear stochastic approximation. The paper investigates the stability of these so-called decision feedback architectures 277 (when decisions are used instead of the training sequence) by using the Kushner- Clark method. Simulations demonstrate that the equalized channel characteristic is close to the optimal one and can support high QoS (low error rate) communi- cation. THE MODEL Let us assume that the following quantities are given: • a transmitted binary sequence containing equally distributed, mutually in- dependent Bernoulli random variables Yk E {-I, I} with P(Yk = 1) = P(Yk = -1) = 0.5; • a received sequence Xk = L:n hnYk-n + Ilk where hk is an unknown linear transformation (the channel distortion caused by multipath propagation) and sequence Ilk is an additive white Gaussian noise; To carry out the optimal Bayesian rule is a rather tiresome task due to the memory of the received sequence introduced by channel distortion. Therefore, suboptimal detection algorithms came into use by implementing FIR filter at the receiver side in order to equalize the channel distortion which is followed by a threshold detector. In this way, the detector structure is given as: fik = sgn (ijk), where Yk = L:f;;J WjXk-j, and J is the number of equalizer coefficients. Since ISI has a great impact on the correlation pattern of the received sequence (and consequentlyon the bit error rate), the major concern of filtering is to decrease ISI or in other words to decorrelate the received sequence. The overall impulse response of the channel end equalizer is given as: (1) THEPROBLEM One of the most widely used classical equalization strategy is Minimum Mean Square Error (MMSE) where the optimization of the equalizer weights are based on minimizing the quadratic error (2) The solution of this minimization is the Wiener-Hopf equation: wapt = Rr where R is the covariance matrix of the received sequence: ~j = E [Xk-iXk-j] and r is the crosscorrelation vector Ti = E [XkYk-i]. When training set is available this equation can be approximately solved by the Robbins-Monroe stochastic approximation: (3) 278 Note, that the solution of this approxiination assumes the existence of a training set TI<: := {(Xk, Yk), k = 1, ..., K} since the explicit knowledge of the transmitted sequence Yk is supposed to be known during the recursion. However in radio communication the training sequence results in a significant overhead. Thus to achieve efficient bandwidth usage we would like to implement an adaptive equalizer without training sequence. One can get rid of the training set applying the blind version of algorithm (3). In this case the decisions are used in the recursion instead of the transmitted sequence, given as follows: (4) This algorithm, often referred to as Decision Feedback MMSE algorithm, is widely used, however its stability and performance is not proven analytically. The main contribution of the paper is to investigate the theoretical performance of this algorithm. In contrast to the classical MMSE algorithm, the DFMMSE algorithm optimizes the following criterion: (5) One must note that (5) is a highly nonlinear function of the equalizer coefficients. In this paper we seek answers to the following questions: 1. What is the relation between the optimal weights of the classicJ~d the decision feedback algorithm? MMSE (w~n <=> MMSE(wopt) 2. How does the DFMMSE algorithm converge assuming constant bit error probability? WEIGHT OPTIMIZATION SUBJECT TO THE DFMMSE It is obvious that the convergence of the DFMMSE is highly dependent on the bit error rate (BER), since frequently occurring wrong detection can move the weights the wrong direction. For the sake of mathematical convenience we assume that the bit error rate is constant during the weight optimization process. In this case the expression of the quadratic error (which is minimized by the DFMMSE) can be expressed as the sum of conditional probabilities: 279 E [ (Y' - 1;,WjX,_j) , I y, ~ y,] pry, ~ v,) + E[ r (ij,- 1;,WjXH I ij"" Y'] prY, "y,) ~ E [ (Y' - 1;,WjX,_j) '] + -V, - 1;,WjX,_j) '] (1 -~) E [( p. Using vector notations as x = [Xk, Xk-l, ... , Xk_J]T and w = [wo, WI, ... , wJf we can simplify this equation as follows JDF W) 2] (1 - Pb) + E [ ( -Yk - xT W) 2] Pb = E [ (Yk - xT E [Y~ - 2YkXT w + wT xxT w] (1 - Pb) + E [y~ + 2YkXT W + wT xxT w] Pb = [1- 2rTw+wTRw] (1- Pb) + [1+ 2rTw+wTRw] Pb = 1 - (2 - 4Pb)r w + wTRw T where R denotes the autocorrelation matrix of the received sequence (Rj E [Xk-iXk-j]) and r is the cross-correlation vector defined as Ti = E [YkXk-i], re- spectively. Differentiating this equation and making equal to zero we arrive at - (2 - 4Pb) r + 2Rw = 0 (6) which leads us to the final formula: w~ = R-lr(l - 2Pb) (7) Next we shall demonstrate that the optimal weight vector of DFMMSE results in the same BER-performance as the normal MMSE. In order to elaborate on this concept, first BER as a function of the equalizer coefficients will be derived. Pb(W) P (Yk > 0 I Yk = -l)P(Yk = -l)+P (Yk < 0 I Yk = 1) P(Yk = 1) = 1: [r (Y > 0 I Yj, = -1, Yk-l = Yb ... , Yk-L = YL) P (Yk = -1, ..., Yk-L k YE{-l.I}L + P (Yk < 0 I Yk = 1, Yk-l = Yb ... , h-L = YL) P (Yk = 1, ..., Yk-L = YL)] = LI 1: (OO hk(x I Yk = -1, Yk-l = YI,···, Yk-L = YL) dx + 2 yc{ -1.I}L Jo + r. h (x I Yk = 1, Yk-I = ui.. .. , Yk-L = YL) dx = k 1 LH 1: ° 100 1 exp (:L + qu L,f"'l fJlVr)2 dx + rn= 2(12 2 YE{-I.I}L V 27rl1 280 where ~(.) denotes the standard normal distribution function and sigma2 = No 'Lf=oW]. Ifwe define theset Y:= {y = (YO,Y1, ... , YL)!YO = -1 and Yi E {-I, I}} then, by the symmetry of the standard normal distribution, we obtain (8) Using (1) and rearranging the double summation, we obtain PE(W) = (1/2L) L ~ "LL...I=OL...n=max{O,I-M} "min{I,N} h) Wn l-nYI yEY ( J No 2:;;=0 w~ = (1/2L) L ~('L;;=own'Lf!.:;nhl-nYI). (9) yEY J No 2:;;=0 w~ Let us denote gk = 'Lf=o W'rhk-i and gfF = 'Lf=0(1-2Pb)wthk-j = (1-2Pb)qk. Substituting this expression into (9) one can obtain which demonstrates the equivalence between wopt and w~f in the sense that both weight vectors results in the same BER performance. In this way, one can ascertain that DFMMSE yields the same performance as MMSE in the case of a constant BER. Furthermore, simulations revealed that if initially BER< 10-1 than the algorithm is stable and final performance indeed coincides with that of MMSE. CONVERGENCE IN MEAN SQUARE In this section we prove the convergence of the DFMMSE algorithm in mean square sense, using the Kushner-Clark Theorem. 281 Theorem 1 (Kushner-Clark) If an arbitrary nonlinear stochastic recursion is given in the form of w(k + 1) = w(k) + ~(k)\IT (w (k), x(k») and the following properties are satisfied: 1. 2:~1 ~(k) = 00, 2:~1 ~(k)P < 00 \;lp> 1 and limk_oo~(k) = 0; 2. 'Ph .L, ~ lloun e JO ounnq partui. l deri . eriuattues exist: aw:' alJl(wx) alJl(wx) ox;' '-I' vz; 3. The following limit exist: \IT (w) = limk~ooEx [\IT (w(k), x)] then l.i.mk_oow(k) = w* where d:;~t) = III (w(t») and w*: \IT (w") = o. This result reduces the convergence analysis of a nonlinear stochastic recur- sion to the analysis of a set of ordinary differential equations. The proof of this theorem can be found in [3]. In our case Property 1. can be easily met by setting ~ = Ijk. The limit in Property 3. can be calculated using (4) and 9 as IlI(WI) = E [YkXk-1 - t WjXk-jXk-l] (1 - Pb) + E [-YkXk-1 - t WjXk-jXk-l] Pb = t t 1=0 1=0 (Tl - RljWj) (1 - Pb) - TIPb - RljWjPb or in vector notation which leads us to the analysis of the following differential equation: (12) Actually, we are interested in the asymptotic solution of (12). Applying a trans- formed coordinate system spanned by the eigenveetors of the correlation matrix R, we can decouple this system of differential equations into independent ones, for which the solution is w(t) = L c;sie-.À,t + w* (13) where Rs, = ÀiSi. From (ll) it can be seen, that Property 2. is fulfilled. Since the correlation matrix is positive definite [4]therefore its eigenvalues are real and positive. Hence the solution w(t) tends to w*, which proves the stability and convergence ot the VFMMSt; algorithm. 282 NUMERICAL RESULTS In this section we extend numerically the stability analysis to the case of vari- able bit rate during the convergence. The bit error rate after the convergence is plotted versus the Signal- To-Noise Ratio, demonstrating the convergence proper- ties of the DFMMSE algorithm. The results came from a model of a measurement of an urban radio propagation scenario used for designing the GSM mobile system [2]. The model provides six individual propagation paths and 800 ns symbol time. Figure 1. depicts, that only a very high noise (about 1 dB SNR) can cause poorer .... .... 4 ...... ......... - •....•... ". n' .. IO~.,=-o - -~----:!,--~-7..,,--7:--=-----:!;--~ Figure 1: BER versus Eb/No (SNR) for SUD, MMSE, and DFMMSE algorithms (left) and zoomed in (right) performance and instability of the Decision Feedback algorithm than the normal MMSE based on training set. (For a given modulation one can change SNR to an initial BER (BER without equalization)). In Figure 2 the performance loss of the decision feedback algorithm is depicted relative to the classical MMSE. It can be seen that about 5 dB SNR there is only a 2% loss of performance. Figure ?? shows the relative performance of both the MMSE and the DFMMSE to the threshold detector (SUD). In an extreme bad SNR scenario it is not worth using anyequalizer. Under -5 dB the DFMMSE is not stable. If the SNR is beyond 2 dB than DFMMSE can outperform the simple threshold detector. Further- more, if the SNR goes above 3 dB than DFMMSE yields the same performance as MMSE with training sequence. CONCLUSIONS In the paper it was proven that the blind version of MMSE yields the same performance as the original algorithm. In this way channel equalization can be performed without a training set which can be lead to a significant increase in 283 I,,, 5"120 . I • •I, .... I'~ [ I [Ol I I'" i t., I: 110 • I,~ .. , -'" " c -" - " Figure 2: BER of DFMMSE relative to MMSE (left), BER of DFMMSE and MMSE relative to SUD (right) versus Eb/No (SNR) spectral efficiency. Simulation results ave revealed that in case of 3 dB initial SNR the same detection performance can be achieved without a training sequence as with a training sequence. REFERENCES [1] J. G. Proakis, Digital Communications, McGraw-Hill, 1995. [2] R. Steele, L. Hanzo, Mobile Radio Communication, WHey, 2000. [3] Kushner, H. J. and Clark, D. S., Stochastic Approximation Methods for Uncon- strained Systems, Springer 1978. [4] Haykin, S., Adaptive Filter Theory, Prentice Hall, 1985. [5] J. Levendovszky, L. Kovács, "A new blind signal processing algorithm for decorre- lation and channel equalization," Proc. of VIPromCom2001 Zadar, Croatia, Junl3- 15,2001. [6] G. Jeney, J. Levendovszky, "Stochastic Hopfield Network for Multi-user Detection" European Conf. Wireless Techn., pp. 147-150, 2000. 284 OPTIMAL STOCHASTIC TIMERS FOR FEEDBACK MECHANISMS IN MULTICAST COMMUNICATIONS J. Levendovszky ", T. Dávid! and E.C. van der Meulen2 1 Budapest University of Technology and Economics Department of Telecommunications Pázmány P.sétány liD, H-ll17, Budapest, Hungary levendov~hit.bme.hu 2 Katholieke Universiteit Leuven, Department of Mathematics, Celestijnenlaan 200B, B-300l Leuven (Heverlee), Belgium ecvdm~gauss.vis.kuleuven.ac.be This paper is concerned with the design of optimal stochastic timers for feedback mechanisms in multicast communication. The objective is to de- velop such timer distributions for generating NACK signals which avoid the misuse of bandwidth, i.e. the NACK signals do not flood the network by occupying an overwhelmingly large bandwidth. Therefore, the distribution of aggregated NACK messages must fulfill a certain criterion which assures that a relatively small number of NACKs being generated. In the paper the optimal timer distribution is derived in the case of uniform distances between the sender and receivers and among the receivers them- selves. Random distances are also taken into account. Then the case of nonuniform distances are taken into account and results are derived by us- ing the centrallimit theorem. A Markovian control scheme is also presented to achieve an optimal feedback mechanism. INTRODUCTION One of the major bottleneck in multicast communication stems from the number of NACKs generated by the receivers if the sender's packet is received erroneously. Generating NACKs in a non-supervised fashion can swiftly flood the network with signaling packets which can considerably decrease the through- put. In order to circumvent this effect a suppression mechanism of NACKs is introduced by sampling a stochastic timer. If the timer expires and no NACK from other receivers are detected then the node i sends a NACK to the central node. Otherwise its NACK is suppressed. The underlying challenge is to develop optimal sampling distributions which prevent flooding the network with NACKs but, at the same time the number of NACKs is high enough to ensure a secure feedback to the sender. 285 THEMODEL Let us assume that there is a graph G(V, E, d), with a node s E V referred to as "sender" and a subset of other nodes {rj,j = 1, ... , J} c V referred to as "receivers". There is a vector c = (Cl, ... , cJ) characterizing the distances of each receiver from the sender, and a matrix C, the Cj element of which describes the distance between receiver node i and receiver node i. . Upon sending a message, the sender also sends a timer p.d.f. to each receiver denoted by jet) (or specify a parameter of a certain density family). When sending feedbacks, the receivers sample this timer p.d.f, and wait accordingly. If no feedback from other nodes arrives during the waiting period, then a feedback is generated on the corresponding node. Otherwise the feedback is suppressed. In order to formulate the problem, let Xi E {O, I} denote the random variable expressing whether a feedback is generated on node i (X, = 1) or not (Xi = 0). We are concerned with evaluating the distribution of the aggregated number of NACKs Y := 2:.;=1 Xj. Our endeavour is to develop some optimal timer distributions j(opt) in order to achieve some desired properties of the distribution of Y denoted by Pç-. One of such properties can be given as follows: j(opt) : maxP(A < Y < B) (1) het) for a given A and B. TIMER DISTRmUTIONS We considered the following timer distributions jet, w), where w denotes the free parameter(s) subject to optimization: • the timer density is selected from the exponential distribution family: f Jexp (t \) = {eXP(~)-l ,/I 0 ($) exp ($t) o ~ t ~ T otherwise where w = À . • the timer density is is selected from the "power-law" distribution family: jpow(t,a) = { oj; (+r-1 0 ~ t ~ T otherwise where w = a. 286 • the timer density is selected' from the Radial Basis Function distribution family: where w = (x, m, a) and K denotes the number of components, Xi (i = 1, ... , K) the weight of component i, mi (i = 1, ... , K) is the "mean" value of component i, and a is the common variance. The corresponding distribution functions can be expressed as follows: • Exponential timer: (t \) Fexp,l\= {~P(~t)-l -- exp(À)-l t 1- «». o a 289 Since the parameters m and (B - (ll) FEEDBACK OPTIMIZATION BY MARKOVIAN APPROACH When developing a feedback mechanism one can rely on observing the number of NACKs received at a given time instant. If it is not optimal then further adjustment of the timing distribution is needed. In this way, starting with an arbitrary timer p.d.f., the system can gradually improve it till the number of NACKs fulfills a given optimization criterion. Since the distribution of generating or suppressing NACKs depends on the preceding number of NACKs, this scheme can be modeled by a Markov chain. Assuming homogen delays again, as was seen before C +T J ' p:= P(Xd = l c f(t - c) . IT (1 - F(t - 2c))dt }=l,J,t" Let us set the feedback mechanism as follows: • an interval (A, B) and a positive small number ~ is given; • the objective is to maximize P(A < Y < B) • in time instant k the number of NACKs are measured which is denoted by Y(k); • based on the value of Y(k), the following control mechanism takes place p(k) + ~ if Y(k) < A p(k + 1) = P(Xi(k + 1) = 1) = { p(k) if A ~ Y(k) ~ B . (12) p(k) - ~ if Y(k) > B It is easy to see that the underlying purpose is to increase the probability of generating NACKs, if the number of them is not sufficient, or decrease the prob- ability of generating them if Y(k) is beyond a given threshold. Furthermore, one can view Y(k) as a Markov chain, the stochastic matrix of which is given as i!d~i)! (p + ~)i(l - p(k) - ~V-î if j < A Pij(k) := i!d~i)!p(k)i(l- p(k))J-i if j < A (13) { i!d~i)!(p(k) - ~)i(l_ p(k) + ~)J-i if j > B 290 Despite the relatively simple state transition rule, it is difficult to find a close form for the stationary distribution of this inhomogenous Markov chain. Simulations prove though that this stationary distribution (denoted by 7l") exist and has the property of max 2:f:A 7l"i. The numerical results are shown by the next figure: x ... poplJXi=11=0.37 Optimal solution: 1'(8<= • ol HACKs c= 10)=0.472 _II_ o 2 4 6 8 10 12 14 16 18 20 22 24 Figure 1: Optimal probability by Markov chain method THE NUMERICAL RESULTS Results have been derived for the cases of exponential, power-law and RBF timer distributions. In the case of non-uniform but deterministic link delays we tested a network which included 15 receivers. The corresponding numerical results are shown in figure 2, where the probability defined by (11) has been plotted as a function of parameter w. x xp: PfoptUO<=-- of NACKs<=1J=O.683 •• ambdaloP1l= 1.' •• time: 9 •. 0 sec Pow: ptopQJO<=. ol HACKs<=71=O.611. a'opQ= 1.45. time: 68.0 sec RBF: 1'10""(0<" ot HACKs<=7)=0.823. x(op~= 2.59. time:437.0 eec 0.5 4.8 10.0 ~ ~ Figure 2: Probability of aggregated NACK message numbers (P(D < Y < 7)) for several timer distributions in the case of 15 receivers One can see that in the case of exponential delay distribution the optimal >. parameter (which maximizes the probability that the number of NACKs falls into the region 0 ~ y ~ 7) is >'opt = 1.64 , while in the case of power-law 291 distribution the optimal value is aopt = 1.45. The maximal probability that the number of NACKs falls into the region 0 ::; Y ::; 7 is 0.683, while in the case of power-law distribution the maximal probability is 0.611. The RBF function gives the best result, the optimal probability is 0.823. In the case of uniform but random link delay we tested a network which included 15 receivers too, and the maximal timer delay value was T = 10. Based on the optimized w parameters, the following performance were obtained: " 1'10<=. ol NACKs<=7] Exponential Inorm.q takes 10.0 seconds 1.0 Powe ....... Inorm.q tates 421.0 .econds - RBF Inonn.l) takes 224.0 seconds 0.5 5.0 10.0 Mean Figure 3: Probability of aggregated NACK message numbers (P(O ~ y ~ 7)) for several timer distributions in the function of 'mean' parameter One can see that for lower mean delay values the timer distributions yield nearly the same performance while in the case of higher mean delay values the RBF distribution gives a much better performance. This is because of high flexibility of weight parameters. REFER.ENCES [1] J. Nonmacher, E.W. Biersack: "Scalable Feedback for Large Groups", IEEE/AGM Trans. Networking, vol. 7., pp 375-386, June 1999. [2] M. Nekovee,A. Teschendorff, S. Olafsson: "An optimized sochastic timer approach for feedback suppression in reliable multicast", EURESCOM Report, P-1112 [3] P. Sharma, D. Estrin, S. Floyd, and V. Jacobson: "Scalable timers for soft state protocols", presented at INFOCOM"97, Kobe, Japan. [4J P. E. Pfeiffer: Probability for Applications, NewYork: Springer-Verlag, 1990.. [5] D. DeLucia and K. Obraczka: "Multicast feedback suppression using representa- tives" presented at IEEE INFOGOM'97, Kobe, Japan. 292 Efficient algebraic interleavers for turbocodes P. Le Bars, C. Le Dantee and P. Piret Canon Research Center France, SA Rue de la Touche-Lambert, F-35517 Cesson-Sévigné Cedex, France ABSTRACT: Turbocode interleavers are obtained by algebraic methods, They produce codes with a high InÏDÎInUIn distance. Their performances are very good at high SNR. 1 Summary We consider rate 1/3 turbocodes [1) produced by convolutional encoders with three delay elements. The feedback polynomialofthese encoders is g(x) = l+x+x3 or g(x) = 1+x2+x3 and it has period 7. The feedforward polynomials hex) and hex) also have degree 3. The length n of the information sequence is assumed to satisfy 150 S n S 3000. In the "waterfall" region, many interleavers essentially have the same level of performances. At high signal-to-noise (SNR) ratio, differences may be very meaningful. One weak point of many interleavers is their inability to "break" all low weight in- formation sequences. In particular, it is difficult to design an interleaver that breaks all information sequences of type a(x) = xi + xi+7 + xi + xj+7. If the interleaved version a* (x) of a(x) also has a similar form: a'(x) = xk + xk+7 + xl. + xL+7, the Hamming weight of the resulting encoded sequence is 28. In our opinion, this is too small to reach very good performances: at high SNR, the minimum distance of the code is one of the factors that has great influence on the performances. b = ahlg a c=a'hlg Figure 1 : A general turboencoder of rate 1/3 In this paper, we present an algebraic construction that eliminates this type of weakness. Our interleavers 7r satisfy 7r(i) '= i modulo 7. Hence, they preserve the divisibility by g(x), [2). Assume that n = 7RM, with R prime and MS R. The action of 7r is on each of the 7 sets I (i) = {i, i + 7, i + 14, ... } of positions for i = 0, ... ,6. Each such action is specified by some M-tuple l! of integers. The quality of l! is shown to depend on the property that, for some M x M circulant matrices At, t = 1, ... , L, the residue modulo R of h At does not contain any zero component. 293 2 Construction We assume that the information sequence a(x) is divisible by g(x) and we write it as a(x) = 2:~=oxka(k)(x7) where xka(k)(x7) represents the contribution of all coefficients ai for which i - k is zero modulo 7. If we explicitly write a(k)(x) = 2:f=Ol aj,kxj, we see that aj,k is nothing but the coefficient of x7j+k in a(x) = 2:~~l aixi. We call a(k)(x7) the kth homogeneous component of a(x) and we call a(k)(x) its simplified version. When a(x) only contains one nonzero homogeneous component, we call it a homo- qeneous sequence. Obviously, a homogeneous sequence is divisible by g(x) if and only if its weight is even. Write also the corresponding interleaved sequence a*(x) as 2:k xka*(k)(x7). Since we only consider interleavers 1r satisfying 1r(i) == i mod 7, the coefficients of a(k) (x) and a*(k) (x) are permutations of each other. Definition 2.1 : Given a polynomial z(x) with an even number of nonzero coefficients z(x) = Lxi, I= {ibi2, ... ,i2s}, ir < ir+l, (1) iEI the span sp(z) of z(x) is defined to be (i2 - ill + (i4 - i3) + ... + (i2s - i2s-Jl. Given some interleaver producing z*(x) from z(x), the full span fsp(z) is defined as the sum of sp(z) and sp(z*). For ease of representation, we write lei) = {O, 1,2, ... ,T, ... ,RM - I} for all i and we represent the initial (and natural) ordering of these RM integers by a R x M matrix Z having the number IjM + k in position (j, kj, 0 ~ i ~ R -1, 0 ~ k ~ M - 1. For example, with R = 7 and M = 5, N = RM is 35 and Z is given by 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 z= 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 .sn :ll :l? :l:l :ld Then, given the M-tuple!! = [ho, ... ,hM-d of integers, we let act, for all i. a circular downwards permutation of amplitude hj on the ph column of Z. The new matrix is denoted by Zo. Thus, if Z is as above and if!! is [0, 2, 5, 1, 3], Z* is given by 0 26 12 33 24 5 31 17 3 29 10 1 22 8 34 Z*= 15 6 27 13 4 20 11 32 18 9 25 16 2 23 14 30 21 7 28 19 294 The interleaving operation associated with (Z, Z'), or equivalently with b, produces from any z(x) = Zo + ZlX + ... + Z34X34, the interleaved sequence z'(x) = Zo + ZlX26 + Z2x12 + ... + Z34X19, which can be rewritten as z· (x) = Zo + Zl1X + Z27X2+ zgx3 + zgx4 + ... + z14x34. In other words, jM + k is moved to position (j - hk)M + k modulo RM. For 0 ~ k ~ m-I, let a(x) = xka(k}(x7) be a homogeneous information sequence of even weight and let v = [a, b, cl be the triple of encoded sequences produced from a(x) bya turboencoder using an interleaver 7r such that 7r( i) == i mod 7. For i1 < i2 and for r = 1,2, the Hamming weight of (x7i1 + x7i2)fr(x)/ g(x) is equal to 2 + 4{i2 - ill. It follows that the Hamming weight WH(V) of the encoded sequence v produced by a homogeneous sequence a(x) = xka(k} (x7) of weight 2 is equal to 2 + (2 + 4 sp(a(k) (x)) + (2 + 4 sp(a(k). (x)) where a(k}'(x7) is the interieaved version of a(k}(x7). Thus, when v results from the encoding of a homogeneous sequence a(x) = xka(k)(x7) of weight 2, WH(V) is equal to 6 + 4 fsp(a(k}). More generally, when xk a(k)'(x7) is any homogeneous sequence of even weight, the weight WH(V) satisfies WH(V) = 4 fsp(a(k} (x)) + 3 WH(a(k}(x)). Property 2.1 : Assume R 2: M 2: 2. Let z(x) be any sequence of Hamming weight 2 and of formal degree RM - 1. If z(x) is interleaved by an elementary bolt interleaver of size R x M specified by some M-tuple b, it will always satisfy fsp(z) 2: M when all residues modulo R of the components of h are different. Property 2.2 : Assume R 2: M 2: 6. Let P1 be the M x M circulant matrix with [1 - 2 1 0 ... OlT as fust column. Any sequence z(x) of Hamming weight equal to 4 and interleaved by a bolt interleaver of size R x M specified by some M-tuple b. will satisfy fsp(z) 2: 6 if b. satisfies property 2.1 and if the residues modulo R of the components of b. P1 are different from zero. Property 2.3 : Assume R 2: M 2: 8. Consider the six M x M circulant matrices Pi, i = 2, ... ,7, the fust column of which is respectively [1 - 1 - 1 1 0 of for P2, [1 - 1 1 - 1 0 of for P3, [1 0 - 2 1 0 ... of for P4, [1 - 2 0 1 0 of for P5, [2 - 1 - 1 0 of for P6, [1 1 - 2 0 ... of for P7. Any sequence z(x) of Hamming weight equal to 4 and interleaved by a bolt interleaver of size R x M specified by some M-tuple h will satisfy fsp(z) 2: 8 if b. satisfies properties 2.1 and 2.2, and if, for each i, i = 2, ... ,7, the residues modulo R of the components of hP;, are different from zero. Property 2.4 : Assume R 2: M 2: 8. Consider the three M x M circulant matrices Pç, i = 8,9,10, the fust column of which is respectively [1 - 3 2 0 ... of for Pil, [2 - 310 ... of for Pg, [1 - 2 2 - 1 0 ... of for PlO. Any sequence z(x) of Hamming weight equal to 6 and interleaved by a bolt interleaver of size R x M specified by some M-tuple h will satisfy fsp(z) 2: 8 if h satisfies property 2.1 and iffor i = 8,9,10, the residues module R of the components of hPi are different from zero. Property 2.5 : If h satisfies any of the properties above, and if r is relatively prime with R, then rb. modulo R satisfies the same property. 295 The selection of fl is made on the basis of such properties. The subsequent construction of the global interleaver 'Ir includes the specification of 7+tuples Q = [do, ... , d6] and ~ = [eo, ... , e6]. For k = 0, ... ,6, the simplified version ak(x) of ak(x7) is interleaved by means of dkfl to produce ä*(kl(x) and ä*(kl(x7) is multiplied by x7ek modulo x" + 1 to produce a*(kl(x7). Here are three very good systems produced by this method - R = 17, M = 8, n = 7RM = 952; fl= [0, 1,~ 9, 5, 2, ~ 1~, Q = [1, 7, 10, 2, 15, 12, 16], ~ = [0, 13, 58, 116, 76, 6, 48]; g(x) = 1 + x2 + x3, hex) = 1 + x + x3, hex) = 1 + x + x2 + x3• - R = 23, M = 9, n = 7RM = 1449; fl = [0, 1, 16, 18, 7,.11, 8, 6, 19], Q = [1, 22, 5, 21, 11,8, 13], ~ = [0, 186,91,174,4, 128, 113]; g(x) = 1+ x + x3, hex) = 1 + x2 + x3, hex) = 1+ x + x2 + x3• - R = 23, M = 15, n = 7RM = 2415; fl = [0, 1, 19, 8, 17, 21, 18, 16, 10, 3, 15, 6, 5, 11, 9], 4. = [1, 6, 10, 15, 8, 7, 22], ~ = [0, 6, 323, 194, 269, 157, 120]; g(x) = 1 +x2 +x3, hex) = 1 +x+x3, hex) = 1 +x+x2 +x3• The performances of these interleavers (we call them" bolt" interleavers) were simulated on an Additive White Gaussian Noise channel, with a SNR per information bit going from 0.4 dB upto 1.4 dB. The obtained frame error rate (FER) after 50 iterations of MAP decoding is given in figures 2 and 3. We have also represented the FER of the interleavers of the same size that were selected as a standard by the 3GPP committee [3]. It is obvious from this figure that the interleavers presented in this paper potentially have better performances than the 3GPP interleavers. In particular, their error floor performances are better and their minimum distance is large (resp. 34, 36 and 38 with "very high probability" ... ). 3 References [IJ C. Berrou, A. Glavieux and P. Thitimajshima, "Near Shannon limit error-correcting coding and decod- ing", in Proceedings of ICC'93, Genève, Switzerland, pp. 1064-1070, May 1993. [2JR. J. McEliece, C. Le Dantec and P. Piret, Permutations preserving divisibility, IEEE 1hms. on Inform. Theory, vol. 47, pp.1206-1207, March 2001. [3J3,d Generation Partnership Project (3GPP), TSG RAN Meeting No 5, Technical Specification TS 25.212 v3.0.0, pp. 15-18, Kyongju, Korea, October 1999. 296 1 FER --+--+- n=952 Bolt __,.__.._ n--952 3GPP -- .- n=2415 Bolt -*. *- n=24153GPP 0,1 0,01 \ \ 0,001 \"'---._ <..---- 'lt. '. <, ~. 1E-4 • 5 1E- 1 1E-6 dB 0,15 0,3 0,45 0,6 0,75 0,9 1,05 1,2 1,35 1,5 1,65 Figure 2 : Simulated frame error rates for frames of length 952 and 2415 1 ~--------------------------------------------------~ FER --+--+- n=1449 Bolt __,.__.._ n=1449 3GPP 0'11 0,011 I 1 0,0011 II 1E-41 i I 1E-51 I I ! 1E-6L- ~d~B~ 0,15 0,3. 0,45 0,6 0,75 0,9 1,05 1,2 1,35 1,5 Figure 3 : Simulated frame error rates for frames of length 1449 297 On the Influence of the Filtering Function on the Performance of Fast Correlation Attacks on Filter Generators Anne Canteaut and Eric Filiol !NRlA - Projet CODES BP 105 78153 Le Chesnay Cedex, France Abstract. This paper presents a generalization of the fast correlation attack presented by Chepyshov, Johansson and Smeets, for the particular case of filter generators. By considering not only the extremal Walsh co- efficientsof the filtering function but all the nonzero values in the Walsh spectrum, it is possible to significantly reduce the number of required running-key bits. Most notably, the properties of the filtering function have only a minor influence on the length of the running-key subsequence needed for the attack. 1 Introduction The running-key used in a stream cipher is produced by a pseudo-random gen- erator whose initialization is the secret key shared by the users. Most keystream generators are composed of linear feedback shift registers (LFSRs). Therefore, they are vulnerable to correlation attacks [9].These techniques exploit the corre- lation that may appear between the observed output sequence (i.e., the running- key in a known plaintext attack) and the output of a constituent LFSR. Meier and Staffelbach [7] formulated this attack as a decoding problem. Any subse- quence of the LFSR output belongs to a binary linear code whose dimension is equal to the linear complexity of the LFSR. Any running-key subsequence can then be seen as the result of the transmission of the LFSR output subsequence through a particular channel. In practice, the noise is produced by a Boolean function whose role is to break the linearity properties inherently attached to the LFSR. Thus, all techniques for fast correlation attacks [7,1,2,8,5,41 consist in decoding the running-key subsequence relatively to the LFSR code. Here, we focus on fast correlation attacks against nonlinear filter generators. In such a device, the running-key is generated as a nonlinear function f of the stages of a single LFSR. A classical approach is then to consider an affine func- tion whose distance to the filtering function is minimal. Some linear relations between the running-key bits and the LFSR initial state are derived from this approximation. Therefore, the involved transmission channel is a binary sym- metric channel with cross-over probability N.c(J)j2n where n is the number of variables of the filtering function and N .c(J) is its nonlinearity. Very recently, 299 Jönsson and Johansson [6] observed that the required running-key length can be reduced by using all affine functions at distance N C(f) from i. The under- lying idea is that the number of available linear relations increase whereas the transmission channel is unchanged. It obviously appear that the attack becomes more powerful when the number of extremal Walsh coefficients of the filtering function increases. Here, we present a general attack which makes use of all nonzero Walsh coefficients of the filtering function. We get a larger number of linear relations, leading to a more efficient decoding when we use the technique presented in [2].The main modification is that the involved transmission channel is now a non-stationary channel. However, we can derive a theoretical bound on the running-key length which guarantees a successful attack. Most notably, we show that the required running-key length is almost independent of the number of variables of the filtering function and of its nonlinearity. Both of these param- eters only influence the running-time of the attack. We do not investigate other cryptanalysis techniques like inversion attacks [3]. 2 Definitions The pseudo-random sequence (Stk::=:o produced by a nonlinear filter generator corresponds to the output of a nonlinear Boolean function whose inputs are taken from some stages of a given LFSR. The LFSR is defined by its characteristic L . polynomial of degree L, P(X) = Li=O -XiX'. Then, the output (Utk~o of the LFSR satisfies the following recursion: L-1 "It 2: L, Ut = 2: -XiUt-L+i , i=O where (uo, ... ,UL-1) is the LFSR initial state. Let i be a balanced Boolean function of n variables and let ('Yih o required by the attack. Since any Q E F~ such that :F(f + IPo:) =1= 0 provides N vectors qo:,t, the average number of d-tuples (qO:l ,tl' ... ,qO:d ,td) whose sum vanishes on the last (L - k) positions is roughly (5) where F is the number of nonzero Walsh coefficients. Thus the ML-decoding procedure for the obtained code of length M and dimension k succeeds as soon as kiM ~ C where C is the capacity of the transmission channel. In 302 the following, we assume that the M positions in C' are independent. Then, the transmission channel is a non-stationary binary symmetric channel whose cross-over probability is given by p = 1/2 - s, where e varies in a set E. IT /-Le is the proportion of transmitted bits for which the cross-over probability equals 1/2 - é, we have C = LeEt" /-LeC(~ - s), where C(p) is the capacity of the stationary binary symmetric channel with cross-over probability p, i.e., C(p) = 1 + plog2(p) + (1 - p) log2(1 - p). We use that, for any é < 1/2, 1 ) _ 1 22i 2i C ( 2 - e - ln(2) ~ (2i _ 1)2i e . (6) We first compute the capacity of the channel involved in our attack when d = 2. The M obtained equations can be split as follows: for any Wl, W2 E W, Wl ~ W2, we find MWl W2 equations derived from two vectors al and a2 such that l.r(f + CPal ) I = WI and l.r(f + CP(2) I = W2· The corresponding proportions are Thus, we derive from (4) that C (~_ WIW2) 2 22n+l For i = 1, Parseval's relation leads to LWEW Fww2 = 22n. Therefore, we deduce that C ::::21n(~)F2. Moreover, for any i ::::2, we have where equality holds if and only if .c(f) = ±2n, i.e., if f is an affine function. Therefore, the capacity of the transmission channel satisfies 1 1 1 1 2In(2)F2 ~ C < In(2)F2 ~ (2i - 1)2i = F2 when deg(f) > 1. Using Relation (5) for d = 2, we deduce that the minimum number Nminof known running-key bits required for the attack satisfies ;;:;;- c-:» ~ L-k V ~IC 2-2- < Nmin ~ 2V k In(2) 2-2- . (7) We obtain a similar result for all values of parameter d in the attack. 303 Theorem 1. For any balanced filtering function f such that deg(f) > 1, the capacity of the channel involved in the attack with parameter d satisfies 1 1 (8) 2In(2)Fd :$ C < Fd assuming that the M positions in C' are independent. Under this assumption, the minimum number of bits of the running-key required by the attack satisfies 1 L-k 1 u-:« (d!k)d 2" < Nmin:$ (2In(2)d!k)"d 2" . Most notably, this result points out that the Walsh spectrum of the filtering function and its number of variables has only a minor influence on the length of the running-key required by the attack. Note that the upper bound on Nmin is tight in most practical situations since the nonlinearity of the filtering function is usually high. But, it may happen that the M positions in C' are not independent. In that case, the transmission channel is not a memoryless channel anymore and the previous result on its capacity does not hold. However, simulations show that the attack still performs well and that the value of Nmin given in Theorem 1 still provides a good approximation of the required running-key length. 5 Computational complexity of the attack In the precomputation part, we have to find all d-tuples (quI,tI' .. · ,qUd,td) whose sum vanishes on the last (L - k) positions. Thus, the number of operations required by the precomputation is Tp = (NF)d-l / (d-l)!. We may also obtain a better time-memory trade-off if we use an algorithm based on a "birthday technique" as suggested in [7, Section 5]. The decoding complexity is of order M 2k• If the filtering function has a high nonlinearity, the capacity is roughly C := 21n(;)Fd. Since M :::' k/ C, we derive that the number of operations performed by the ML-decoding procedure is of order Td = 2In(2)k2k pd. Thus, for fixed values of d and k, the running-times of both precomputation and decoding parts increase with the number of nonzero Walsh coefficients. Now, we compare the performance of our attack with the Il.tt~rk proposed in [ti]. Both attacks are obviously similar when the filtering function has a three- valued extended Walsh spectrum, i.e., when all nonzero Walsh coefficients of f are equal to ±£(f). Let N(JJ) be the number of running-key bits required by the attack proposed in [6], which uses the extremal Walsh coefficients only. Then, we obtain (9) = £(f)2 Pr.(J) 2: 1 . ITwe compare the running times of both attacks, we have T(JJ) ( 22n ) d r,(JJ) ( 22n ) d-l ;'d = £(f)2 F s 1 and ;'p = £(f)2 F s1. 304 Then, our attack needs a smaller running-key subsequence than the attack proposed in [6], but its running-time is higher. Our attack provides a signifi- cant improvement especially when the proportion of extremal Walsh coefficients amongst all nonzero values is small. For example, for f = XIX2X3 + X2X3X4 + n-1 X2X3X5 + Xl + X2 + X3 + Li~3 X2iX2i+l, n odd, we have CU) = 3· 2(n+l)/2 and Fc(!) = 2n-5• Then, we deducefrom (9) that N(JJ)/N = 16/9. 6 Simulation results We present some simulation for a LFSR of length 40. We use d = 2 and k = 20. By applying (7) with these values, we obtain that the minimum length of the running-key required for the attack satisfies 6476 < Nmin ~ 7625, where the upper bound is tight when the filtering function has a high nonlinearity. Then, we try to recover the first 20 bits of the initialization of this generator for different balanced filtering functions of 5, 6 and 7 variables. We choose for "(a full positive difference set with "(1 = L. All success rates presented below have been computed over 500 trials on a DEC-alpha workstation at 500 MHz. N 11 M Iexpected M Iprecomp. time Idecoding time I success rate n= 5, f = XIX2X3 + XIX2X4 + XIX2X5 + XIX4 + X2X5 + X3 + X4 + X5 (I) N CU) = 12, F = 16, I-resilient and Fo= 16, Fs = 16 762511 7163 1 7097 I 1s I 24 s I 66.8 % 7000 It 6011 1 5981 1 1s 1 20 s I 50.4 % n = 5, f = X2X3X4X5 + XIX2X3 + X2X4 + X3X5 + X4 + X5 (11) N C(f) = 12, F = 28 and Fo = 4, F4 = 16, Fs = 12 76251122,1971 21,735 I 2s I 1.3 min I 66.4 % 70001118,730 I 18,318 I 2 s I 1.1 min I 49.8 % n = 5, f = X2X3X4X5 + X2X3 + Xl (Ill) N C(f) = 6, F = 16 and Fo = 16, F4 = 12, F12 = 3, F20 = 1 762511 7049 I 7097 1 1s l 25 s I 82.2 % 700011 5893 I 5981 I 1 s I 21 s 1 75.2 % n =5, f = XIX2X3 + X2X3X4 + X2X3X5 + Xl + X2 + X3 (IV) NC(f) = 4, F = 8 and Fo = 24, Fs = 7, F24 = 1 762511 1964 I 1774 1 1s 1 7s I 78.2 % 700011 1661 I 1495 I 1s I 6s I 51.8 % n = 6, f = XIX2X3 + X2X3X6 + XIX2 + X3X4 + X5X6 + X4 + X5 (V) NC(f) = 24, F = 40 and Fo = 24, Fs = 32, F16= 8 76251145, 006 I 44,358 I 4s I 2.6 min I 67.3 % 70001138,031 I 37,384 1 4s I 2.2 min I 52.8 % 305 N 11 M Iexpected M Iprecomp. time Idecoding time Isuccess rate n= 7, f (VI) N C(f) = 56, F = 64, 2-resilient and Fo = 64, Fl6 = 64 762511114,8461 113,556 I 8s I 6.5 min I 66.8 % 70001196,750 I 95,703 I 7s I 5.5 min I 48.8 % n = 7, f = XIX2X3 + X2X3X4 + X2X3X5 + Xl + X2 + X3 + X6X7 (VII) NC(f) = 40, F = 32 and Fo = 96, Fl6 = 28, F48 = 4 76251128, 526 I 28,389 I 3s I 1.6 min I 64.6 % 70001123, 954 I 23,926 I 3s 1 1.3 min 1 52.6 % All results presented in the above table confirm the validity of the previous approach. First, we observe that the approximation of Nmin derived from the assumption that the transmission channel is memoryless seems to be still accu- rate when the positions in C' are not independent. Moreover, when the attacker knows N consecutive bits of the running-key, where N is given by the upper bound in Formula (7), then the success rate of the attack is around 65 %. The required running-key length is almost independent of the number of variables of the filtering function. However, we observe that the success rate increases when the nonlinearity ofthe function is very small (Functions (III)-(IV)). The reason is that the upper bound in (7) uses an approximation for the capacity of the binary symmetric channel which is not accurate for small cross-over probabilities. References 1. A. Canteaut and M. Trabbia. Improved fast correlation attacks using parity-check equations of weight 4 and 5. In EUROCRYPT 2000, LNCS 1807, pages 573-588. Springer-Verlag, 2000. 2. V. Chepyshov, T. Johansson, and B. Smeets. A simple algorithm for fast correlation attacks on stream ciphers. In Fast Software Encryption 2000, LNCS 1978. Springer- Verlag, 2000. 3. J.Dj Golic, A. Clark, and E. Dawson. Generalized inversion attack on nonlinear filter generators. IEEE Trans. Computers, 49(10):1100-1109, 2000. 4. T. Johansson and F. Jönsson. Improved fast correlation attack on stream ciphers via convolutional codes. In EUROCRYPT'99, LNCS 1592, pages 347-362. Springer- Verla.g, 1999. 5. T. Johansson and F. Jönsson. Fast correlation attacks through reconstruction of linear polynomials. In CR YP TO '00, LNCS 1880, pages 300-315. Springer-Verlag, 2000. 6. F. Jönsson and T. Johansson. A fast correlation attack on LILI-128. Information Processing Letters, 81(3):127-132, February 2002. 7. W. Meier and O. Staffelbach. Fast correlation attack on certain stream ciphers. J. Cryptology, pages 159-176, 1989. 8. M. J. Mihaljevic, M. P.C. Fossorier, and H. Imai. A low-complexity and high perfor- mance algorithm for the fast correlation attack. In Fast Software Encryption 2000, LNCS 1978. Springer-Verlag, 2000. 9. T. Siegenthaler. Decrypting a class of stream ciphers using ciphertext only. IEEE Trans. Computers, C-34(1):81-84, 1985. 306 Upper bounds on the numbers of resilient functions and of bent functions Claude Carlet! and Andrew Klapper- 1INRIA projet CODES, B.P. 105, 78153 Le Chesnay Cedex - France. Claude.CarletCinria.fr 2 Dept. of Computer Science, 779A Anderson Hall, University of Kentucky, Lexington, KY, 40506-0046. klapperCcs.uky.edu Project sponsored by the NSF under grant #9980429. Abstract. We introduce an upper bound on the number of bent func- tions which shows they are much less numerous than the functions of degrees at most n/2 and we improve upon the known bounds on the number of m-resilient functions for m large. 1 Introduction Upper bounds on the numbers of bent and resilient functions can be directly derived from upper bounds on their algebraic degrees. But these bounds are weak. In this paper, we use characterizations of these functions by means of their Numerical Normal Forms to derive upper bounds on the numbers of m- resilient functions and of bent functions, which show that these numbers are exponentially (with respect to n) smaller than the numbers of Boolean functions of algebraic degrees smaller than or equal to n - m -1 and n/2 respectively. We improve upon Schneider's bound [13]for high orders resilient functions. We denote by EB(respectively, +) addition in F2 (respectively, in Z) and by EBiE... (respectively, l:iE ..J the corresponding multiple sum. Let n be any positive integer. Any Boolean function 1in n variables (i.e., any {O,I}-valued function defined on the set F2 n of all binary words of length n) admits (cf. [8]) a unique algebraic normal form (or ANF): 1(X1,·· . , xn) = EB IÇ{1, ... ,n} al lliEI z, = EBIÇ{1, ... ,n}alx , where the aI's are in F2 and xl = lliElxi. We call the I degree of the algebraic normal form of a Boolean function its algebraic degree. Any function 1also admits (cf. [4]) a unique numerical normal form (or NNF): 1(X1,' .. , xn) = l:IÇ{1, ... ,n} >"1 xl, where the >"!'S are in Z. We call the degree of the numerical normal form of a Boolean function its numerical degree. The ANF of 1being equal to its NNF mod 2, the algebraic degree of 1is always smaller than or equal to its numerical degree. The Hamming weight, WH(J), of a Boolean function 1in n variables is the size of its support, {x E Fï; l(x) = I}. The Hamming distance, dH(f,g), between two Boolean functions 1and g is the Hamming weight of their difference (i.e. of their sum modulo 2) 1EBg. The nonlinearity of 1is its minimum distance to 307 all affine functions. Functions used in stream or block ciphers must have high nonlinearities to resist certain attacks on these ciphers (correlation and linear attacks). A Boolean function is called bentif its nonlinearity equals 2n-I_2n/2-1 (which is the maximum possible value), where n is even. The distance from a bent function to every affine function equals 2n-1 ± 2n/2-1. This property can also be stated in terms of the Walsh (i.e., Hadamard) transform of f, defined as fes) = LXEF2n I(x) (_I)x'8, where X· s denotes the usual inner product X· s = ffi7=1 Xi si. But it is more easily stated in terms of the Walsh transform of the "sign" function x!(x) = (-I)!(x), equal to Xi(s) = LXEF2n(-I)!(x)E!lx.s. The function f is bent if and only if Xi(s) has constant magnitude 2n/2 (cf. [8,12]). Indeed, the distance dH(f, l) between f and the affine function lex) = S·X$€ (s E F2n; € E F2) and thenumber Xi(S) are related by: Xi(s) = (-IY(2n-2dH(f,l». Notice that Xi(s) = 2n-2Î(s) = if s 0 and Xi(s) -2Î(s) = otherwise. The NNF and the Walsh spectrum are related through the relations Î(s) = (_I)w(s) (1) lÇ{I,···,n} Isupp(s)Çl where supp(s) denotes the support {i; Si = I} of Si Î(x). (2) xEF2" 11Çsupp(x) The class of bent functions, whose complete determination is still an open problem, is relevant to several topics of information theory: cryptography, al- gebraic coding theory, sequences and design theory. More information on bent functions can be found in the survey paper [2]. A characterization of bent func- tions by means of their NNFs is given in [4] and is our main tool in deriving a bound on their number: a Boolean function f is bent if and only if for every I such that ~ < III < n (where III denotes the size of I), the coefficient >"1 is divisible by 2111-~, and if >"{l, ... ,n} == 2~-1 mod 2~ . Another important class of Boolean functions for cryptography is that of resilient functions. These functions play a central role in stream ciphers: in a common type of these ciphers (cf. [14]), the outputs of n linear feedback shift registers are the inputs to a Boolean function. The output of the function pro- duces the keystream, which is then bitwise XOR-ed with the message to produce the cipher. Several divide-and-conquer attacks exist on this method of encryp- tion and lead to criteria the combining function must satisfy. Two main criteria are the following: the combining function must be balanced (i.e. uniformly dis- tributed) and the probability distribution of its output must be unaltered when any m of its inputs are fixed [15], with m as large as possible. This property, called m-th order correlation-immunity [14], is characterized by the set of zero· values in the Walsh spectrum [17]: f is m-th order correlation-immune if and only if X!(u) =0, or, equivalently, Î(u) = 0 for all u E F:; such that 1 ~ WH(U) ~ m, where WH(U) denotes the Hamming weight of the n-bit vector u (the number of 308 its nonzero components). Balanced m-th order correlation-immune functions are called m-resilient functions and are characterized by the fact that Xt(u) = 0 for all u E F2n such that WH(U) ::; m. Characterizations of resilient functions and of correlation-immune functions by means of NNF are given in [5] and in [3] and are also our main tool in deriving bounds on their numbers: a Boolean function f is m-resilient if and only if for every I such that III ~ n - m, the coefficient ).1 of xl in the NNF of the function g(x) = f(x) EB Xl EB .•• EB Xn is null (i.e. if and only if the numerical degree of 9 is smaller than n - m). Moreover, f is m-th order correlation-immune if and only if, for every I such that III ~ n - m, we have: ).1 = (-2)III-n).{1, ...,n} = (_1)n (-2)III-nwH(f). 2 Upper Bounds on Degrees of Functions Rothaus' inequality states that any bent function has degree at most n/2 [12]. Thus, the number of bent functions is at most 2 1+ n + ... + (") ,,/2 = 2 2,,-1+ 2"1( ,./2" ) . We refer to this as the naive bound on (the number of) bent functions. However, we know that for n = 6 (the highest number of variables for which the number of bent functions is known), the number of bent functions is approximately equal to 232 (cf. [11]), which is much less than the naive bound 225+!(:) = 242. Also it has been checked experimentally that there is no hope of obtaining a bent function in 8 variables by picking a Boolean function of algebraic degree upper bounded by 4 at random. So a better upper bound is desirable. Siegenthaler's inequality [14] states that any m-th order correlation-immune function in n variables has algebraic degree at most n - m, that any m-resilient function (0 ::; m < n-l) has algebraic degree smaller than or equal to n-m-l, and that any (n - I)-resilient function has algebraic degree 1. This implies that the number of m-resilient functions is at most 21+n+···+(,._::'_1) if m < n - 1. This is also a weak bound that we refer to as the naive bound on (the number of) m-resilient functions. A bound on the number of fust order correlation-immune functions was found by Yang and Guo [16] and improved to L:~:~2e~-2)4 by Park, Lee, Sung and Kim [10]. The method of Park, Lee, Sung and Kim can be applied to bound the number of I-resilient functions. This gives a slightly smaller (but more complex) bound. Maitra and Sarkar [9] have also derived an upper bound for the num- ber of fust order correlation-immune functions and Jian-Zhou Zhang, Zhi-Sheng You and Zheng-Liang Li [18] have derived an upper bound for the number of m-th order correlation-immune functions. However, their results involve complex parameters which make them impractical for obtaining effective upper bounds. Moreover, a general and efficiently computed upper bound was earlier found by Schneider [13]. In the case of m-resilient functions, the upper bound he obtained . nn-m (2; )(";;;~~1) H· bound £or t he num ber f corre 1'·ation-immune func- IS j=l 2j-1 . IS 0 tions is more complex but comparable. In both cases, the bound when m = 1 is better than Park, Lee, Sung and Kim's bound. It seems difficult to improve it significantly for low orders. But Schneider's bound is weak for high orders. For 309 instance, the exact number of (n-3)-resilient functions has been computed [1]:it is equal to n(n-l)(3n-2)(n+ 1)/3, which is much less than n~=l (2J~1) (n;;-~~l), as we can see in Table 1. n Schneiderj'exact n Schneider/exact 5 3.9 x 10' 9 1.1 x 10" 6 8.6 X 102 10 5.7 x 10" 7 4.4 X 104 11 5.9 x 10'" 8 4.8 X lOb 12 1.3 x lOlls Table 1. (SCHNEIDER'S BOUND/EXACT NUMBER) OF (n - 3)-RESILIENT FUNCTIONS In this paper we derive a new bound which significantly improves upon Schneider's bound for high order correlation-immune and resilient functions. We denote by 8(n) the set of Boolean functions in n variables, by 8(k, n) the subset of those Boolean functions of algebraic degrees at most k, by V(k, n) the set of functions in 8(n) whose distances to affine functions are all divisi- ble by 2k and by C(k, n) the set of functions in 8(n) whose distances to affine functions are all congruent to 2k mod 2k+l. We also denote B(n) = 18(n)1 and B(k,n) = 18(k,n)l. Thus every bent function is in C(n/2 - l,n), every m-th order correlation immune function is in V(m, n), and every m-resilient function is in V(m + 1, nl. 3 Necessary Conditions on Functions with Walsh Spectrum Constraints A relation between the coefficients of the NNF and the coefficients of the ANF of any Boolean function f is shown in [4]: >"1 = L(-2)k-l (3) k=l {Il.···.Ik} 11 U"'UlJe=1 I where the indices 11,.•• ,h are all distinct and in indefinite order. We deduce necessary conditions for a function to be bent or resilient (see also [6,7]). Theorem 1. Let n and m be any positive integers. Let f be any Boolean func- tion on Fr. Let f(x) = EBIc;:;{l .....n} al xl be its ANF. Denote by g(x) the junction f(x) EB Xl EB ••• EBxn and let g(x) = EBIc;:;{l .....n} bI xl its ANF (i.e. bi = al EB 1 if III = 1; bt = al otherwise). Then 1. if f is bent (11. even) and 11. ~ 6, then for every multi-index I such that III ~ ~ + 2, we have that EB aJ ate = O. {J.K} IJuK=I 310 2. if f is m-th order correlation-immune with n > m 2: 2, then for every multi- index I such that III 2: n - m + 2, we have that aJ ate EB O. = {J,K} !JUK==I 3. if f is m-resilient with n > m 2: 2, then for every multi-index I such that III 2: n - m, we have that EB bJ bic = O. {J,K} IJUK==I Notice that if f is m-resilient and if III > n-m, then the condition JuK = I and the fact that f has algebraic degree at most n - m-I imply that J and K must have at least size 2; thus EB bs bic = aJ aK· EB {J,K} !JUK==I {J,K} IJUK==I 4 Dependence and Bounds In this section we use Theorem 1 to obtain bounds on the numbers of bent, resilient, and correlation-immune functions. Our strategy is to show that certain coefficients depend on other coefficients. In the cases of bent and correlation immune functions, we are trying to bound the size of a set E (d, n) of functions f(x) = I:IÇ{I,2, ... ,n} aIxI E B(d, n) such that for all I with III 2: d + 2, we have EB aJaK = O. (4) {J,K}:JUK==I In the case of resilient functions, we are trying to bound a similar set where the I are only constrained to have size at least d + 1. We obtain bounds by counting within certain subsets of B(d, nl. Specifically, if A( d, n) is the set of homogeneous polynomials of degree d in Xl, ... , xn, then we have B(d, n) = B(d-I, n) U(UhE.A(d,n)h+B(d-I, n». Fix hex) = I:III==d aIxI E A(d, nl. An element of E(d, n) n (h + B(d - 1, n) is determined by a choice of al for each Iof size less than or equal to d - 1 satisfying equation (4). Lemma 1. Let n, d and l be positive integers such that d ~ nand 1 ~ min(d- I,n - d). Denote by El(d,n) the set of functions f(x) = I:IÇ{I,2, ... ,n} aIxI E B(d, n) such that for all I with III 2: d + 1, we have EB{J,K}:JUK==I aJaK O. = Let f E El(d, n) have degree d and let J be a multi-index of cardinality d such that the coefficient aJ of xJ in the ANF of f equals 1. The coefficients ox with K n J = 0 and 1 ~ IKI ~ d - 1 in the ANF of f are then completely determined by the coefficients ai. with L n J #- 0. It follows that B(d -1,n) IEl(d, n) n (h + B(d - 1, n)1) ~ 2I:~~;(d-l.n-d) (n~d) . Summing over h we immediately obtain that B(d, n) - B(d - 1, n) IEI(d,n)1 ~ I:min(d-l.n-d) r-:- d) + B(d - I,n). 2 i=l ' 311 We can improve this bound when d:::; n - d (or, equivalently, d:::; n/2) by considering the coefficients ate with IKI = d. If J and K are two disjoint multi- indices with size d and I = JuK, then the equation corresponding to I is simply aJaK = o. That is, at least one of aJ and a« must be zero. Thus we need only count the sets £1 (d, n) n (h + B (d - 1, n) for h such that no two coefficients with disjoint multi-indices are both 1. Lemma 2. Let d :::;n/2. The number of homogeneous degree d functions h in n variables such that no two coefficients with disjoint multi-indices are both 1 is at most 2m-(n;td) (1 + to), where to E 1/2Ü«2n /n)1/2). Thus we have the following. Theorem 2. Let 1 be a positive integer smaller than min(d-l, n-d). Ifd :::;n/2, then B(d, n)(1 + to) IEI(d, n)l:::; 22::~=1 (n~d) + B(d - 1, n), where to E 1/2{}(2 /n)1/2). If d > n/2, then n 1£I,(d n)1 <_ B(d,2n-d_ n) - B(d - 1, n) + B(d - 1 n). ",'-1 (n-:-d) , 2 LJ.=o· Combining this with Theorem 1, we have the following bounds on the num- bers of bent, correlation immune, and resilient functions. Corollary 1. For n 2:: 6 even, the number of bent functions in n variables is at most B(n/2, n)(1 + to) +B(n/2-I n) = 22n-1+(nÎ2)/2-2n/2+n/2+l(I+tO)+22n-l_(nÎ2)/2 22"/2-n/2-1 ' , where to E I/20«2 /n)1/2). If 2 :::;n/2 :::;m < n, then the number of m-th order n correlation immune functions in n variables is at most 7n 2 +lB(n-m,n)(I+tO) B( _ -1 ) B'(n -m,m ) + TI. m "n, where to E 1/20«2" /n)1/2). If 2 :::; m < n/2, then the number of m-th order correlation immune functions in n variables is at most B(n-m,n)-B(n-m-I,n) B( 1 ) 22~-7n-l + n - m - ,n . If n/2 :::;m < n, then the number of (m -I)-resilient functions in n variables is at moat 2B(n-m,n)(I+tO) + B( n - m-I, n) , B( n-m,m ) where to E 1/20«2" /n)1/2). If 2:::; m < n/2, then the number of (m - I)-resilient functions in n variables is at most B(n-m,n)-B(n-m-I,n) B( 1) 22~-1 + n-m- ,n. 312 Acknowledgements The authors are grateful to Harald Niedereitter and the Institute for Mathernat- ical Sciences at the National University of Singapore for bringing them together and for allowing them to use the facilities of the Institute during the summer of 2001. References 1. P. Camion, C. Carlet, P. Charpin, and N. Sendrier, On correlation-immune func- tions, Advances in Cryptology: Crypto '91, Proceedings, Lecture Notes in Computer Science 576, (1991), pp. 86-100. 2. C. Carlet, Recent results on binary bent functions, International Conference on Combinatorics, Information Theory and Statistics; Journalof Combinatorics, In- formation and System Sciences 24, n" 3-4, (1999), pp. 275-291 3. C. Carlet, On the coset weight divisibility and nonlinearity of resilient and correlation-immune functions, to appear in the Proceedings of SETA 2001 (Se- quences and their Applications, Bergen, Norway, May 2001), published by Discrete Mathematics and Theoretical Computer Science Series, Springer-Verlag. 4. C. Carlet and P. Guillot, A new representation of Boolean functions, Proceedings of AAECC'13, Lecture Notes in Computer Science 1719, (1999), pp. 94-103. 5. C. Carlet and P. Guillot, Bent, resilient functions and the Numerical Normal Form, DIMACS Series in Discrete Mathematics and Theoretical Computer Science, 56, (2001), pp. 87-96. 6. X.D. Hou. On the coefficients of binary bent junctions, Proceedings of the American Mathematical Society, S 0002-9939(99)05146-1.Article electronically published on August 17, 1999. 7. X.D. Hou and and P. Langevin. Results on bent junctions, Journal of Combinatorial Theory, Series A, 80, 232-246 (1997). 8. F. J. Mac Williams and N. J. Sloane, The theory of error-correcting codes, Ams- terdam, North Holland, 1977. 9. S. Maitra et P. Sarkar, Enumeration of correlation-immune Boolean functions, ACISP, (1999), pp. 12-25. 10. S. M. Park, S. Lee, S. H. Sung et K. Kim, Improving bounds for the number of correlation-immune Boolean functions. Information Processing Letters 61, (1997), pp. 209-212. 11. B. Preneel, Analysis and Design of Cryptographic Hash FUnctions, Ph. D. Thesis, Katholieke Universiteit Leuven, K. Mercierlaan 94, 3001 Leuven, Belgium (1993). 12. O. S. Rothaus, On bent functions, J. Comb. Theory 20A, (1976), pp. 300-305. 13. M. Schneider, A note on the construction and upper bounds of correlation-immune functions, 6th IMA Conference, (1997), pp. 295-306. 14. T. Siegenthaler, Correlation-immunity of nonlinear combining functions for cryp- tographic applications, IEEE Transactions on Information theory IT-30, (1984), pp. 776-780. 15. T. Siegenthaler, Decrypting a Class of Stream Ciphers Using Ciphertext Only, IEEE Transactions on Computers C-34, n" 1, (1985), pp. 81-85. 16. Y. Yang and B. Guo, Further enumerating Boolean functions of cryptographic signifiance, Journalof Cryptology 8, (1995), pp. 115-122. 313 17. Xiao Guo-Zhen and J. L. Massey, A Spectral Characterization of Correlation- Immune Combining Functions, IEEE TI-ansactions on Information Theory 34, n" 3, (1988), pp. 569-571. 18. Jian-Zhou Zhang, Zhi-Sheng You, and Zheng-Liang Li, Enumeration of binary orthogonal arrays of strength 1, Discrete Mathematics, to appear. A Tables n n-m=3 n-m=4 n-m=5 n-m=6 n-m=7 6 6.3 x 10" 3.5 X 10lU 1.8 x 10'0 - - 7 2.5 X 104 1.1 X 1015 5.0 X 1027 1.7 X 1035 - 8 9.9 X 104 3.0 X 1020 3.6 X 1044 6.6 X 1063 2.8 X 1073 68 110 9 3.9 X 105 6.2 X 10 26 1.1 X 10 3.0 X 10 1.5 X 10138 10 1.6 X 106 1.0 X 1034 2.2 X 1099 5.3 X 10182 5.7 X 10250 11 6.3 X 106 1.4 X 1042 4.8 X 10139 3.9 X 10289 1 X 10438 12 2.5 x 107 1.5 X 10 51 1.8 X 10 190 4.1 X 10 441 4.2 X 10736 1195 13 1 x 108 1.3 X 10 61 1.8 X 10 252 6.7 X 10 650 1.2 X 10 14 4 x 108 8.8 X 1071 8.3 X 10326 6.1 X 10930 2.6 X 101875 15 1.6 x 109 4.9 X 1083 2.6 X 10415 3.4 X 101296 9.3 X 102854 Table 2. BOUNDS ON THE NUMBER OF m-RESILIENT FUNCTIONS, m LARGE n n-m=3 n-m=4 n-m=5 n-m=6 n-m=7 6 1.5 x 10'- 6.3 3.6 x 10 -L - - 7 3.7 X 103 1.9 X 102 2.9 X 10-1 7.2 X 10-2 - 8 1.8 X 105 6.6 X 104 8.4 X 10-1 2.6 X 10-3 1 X 10-2 9 1.7 X 107 5.6 X 108 5.4 x 10 1.7 X 10-5 3.2 X 10-6 10 3.3 X 109 2.3 X 10 14 9.3 X 105 5.6 X 10-8 4.2 X 10-13 11 1.3 X 1012 9 X 10 21 1 X 1014 1.5 X 10-9 7.2 X 10-25 12 9.9 x 1014 6.8 X 1031 3.5 X 1027 7.2 X 10-8 1 X 10-42 13 1.5 x 1018 2 X 1044 3.4 X 1048 2.7 x 10 1 X 10-64 14 4.7 x 1021 4.4 X 1059 1.9 X 1079 1.9 X 1022 8.8 X 10-95 15 2.9 x 1025 1.5 X 1078 2.3 X 10122 5.2 X 1062 2.8 X 10-119 Table 3. (SCHNEIDER'S BOUND jNEW BOUND) FOR m-RESILIENT FUNCTIONS 314 Related-Key and Slide Attacks: Analysis, Connections, and Improvements -Extended Abstract- Mathieu Ciet, Gilles Piret, and Jean-Jacques Quisquater Université catholique de Louvain, Crypto Group Place du Levant, 3 1348 Louvain-la-Neuve, Belgium {ciet, piret, jjq}~dice.ucl.ac.be - http://wwv.dice.ucl.ac.be/-crypto Abstract. In this paper we present the most important results devel- oped in key schedule cryptanalysis during the last ten years. Namely, we deal with related-key attacks, differential related-key attacks, and slide attacks. The related-key attack is presented in a more general framework than in the paper of Biham [1]. We give two improvements to the slide attacks. Finally, the link between these attacks is studied. 1 Introduetion The most well known attacks on block ciphers are those targeting at the ci- phering itself, for example the linear and differential cryptanalysis. In this paper we present attacks that are particular in the sense that they focus on the key scheduling. Firstly, the related key attack, introduced by Eli Biham in [1], sec- ondly a variant with differential related key attack and finally the slide attack developed by Alex Biryukov and David Wagner [5,6]. Biham's related-key attack is presented in a general framework. We also give two personal improvements to the slide attack. Finally, we emphasize on the strong link between these attacks. 2 Related-key Attacks 2.1 The chosen key attack The basic related-key attack that we refer as "chosen key attack" relies on an un- usual hypothesis: namely, encryption is performed using two unknown different keys that have a particular relationship known to the attacker. First we present the attack in a general framework; the first step is to describe the relationship that must be satisfied by the two keys K and K*, in order to be vulnerable to Biham's attack. Then we analyze what can be improved if we are dealing with the particular case of a Feistel cipher. 315 Mathieu Ciet, Gilles Piret, and Jean-Jacques Quisquater The general ease. We denote by n the block length, and by r the number of rounds of the cipher. We also write K -t (Kl,K2, ...,Kr-I,Kr) to signify that the key schedule derives the sequence of round keys (Kl, K2' ..., Kr-I, Kr) from the key K. Finally, we denote by F(x, k) the round function applied to the data x with round key k. To be vulnerable to Biham's attack, K and K* must obey the following link: if key K gives rise to a certain sequence of subkeys, then key K* must give rise to the sarne sequence, rotated by one round. Or more formally: This condition is very restrictive, as for most of the block ciphers the sequence of subkeys (K2, K3, ... , Kr' Kd simply cannot be derived from a key! It is however met by the two LOKI ciphers attacked in [1]. The reason for which this rela- tionship makes sense is the following: suppose that an attacker can identify two plaintexts P and P* such that P* = F(P, KI). Then the encryptions of P under key K and that of P* under key K* process the same way during n - 1 rounds; as a consequence, the ciphertexts verify the same property as the plaintexts: C* = F(C,Kd. Two such plaintexts are called a slid pair. Identifying such a pair is not evident, as the round key Kl is unknown to the attacker. Suppose we know 2n/2 plaintext-ciphertext pairs (P, C) encrypted with the key K, and 2n/2 plaintext-ciphertext pairs (P*, C*) encrypted with the key K*. For each pair «P, C); (P*, C*)) we try to solve the both equations: F(P, K') = P* and F(C, K') = C*, until we indeed find a key K' that verifies the system. With a high probability this K' is the subkey Kç: most of the time the equations F(P,K') = P* and F(C, K') = C* cannot both hold if Pand P* do not form a slid pair, because of the structure of the round function attacked. Thus when we effectively find a solution to the system there is a high probability that we are dealing with a slid pair, and that the solution K' we found is actually Kç, The probability for a random pair to be a slid pair is 2-n, so with 2 . 2n/2 plaintext- ciphertext pairs we may expect to find one. The function F must be weak enough to permit us to retrieve the key Kç . We call F a weak permutation if given the two equations F(xl> k) = YI and F(X2, k) = Y2 it is "easy" to extract the key k. The round function F must satisfy this definition in order to be vulnerable to the attack presented. Of course it is informal since the amount of easiness may vary from cipher to cipher. The complexity of this basic attack is O(2n) work, as there are O(2n) pairs to examine. The particular case of Feistel ciphers: Known plainte.xt attack. In the case of Feistel ciphers, the round function F( (L, R)) = (R, L ffi f(R)) modifies only one half of its input. Therefore, the condition F(x, k) = Y can be recognized by simply comparing the right half of x against the left half of y, without knowing anything about the round key k, This filtering condition eliminates all but 2-n/2 of the pairs. 316 This property can be used to improve the efficiency of the attack: indeed, (P, C) Related-Keyand SlideAttacks: Analysis,Connections,and Improvements and (P*, C*) form a slid pair if and only if F(P, Kr) = P* and F(C, Kr) C*. We have a n/2-bit filtering condition for each of these equalities, and thus globally a n-bit filtering condition. Therefore, potential slid pairs can be identified using two sorted lists with 2n/2 entries: we sort the texts (Pi, Ci) encrypted with key K based on the right half of Pi and Ci, and the texts (Pj*, C;) encrypted with key K* based on the left half of PI and C;. It is then easy to look for a match between the left halves of Pj* and C; and the right halves of ~ and c; (respectively). With this filtering technique, we expect to find no more than one false match along with one good slid pair. The false match(-es) can be easily eliminated in a second phase. While we still need about O(2.2n/2) slid pairs, the time complexity is now reduced to O(2n/2) ofHinework. The particular ease of Feistel ciphers: Chosen plaintext attack. In the previous section, the fact that the round function F((L,R)) = (R,L EBf(R)) modifies only one half of its input was used as a filtering condition. In the context of chosen plaintext attack, it can be used to select appropriate plaintexts. Suppose that we choose a pool of 2n/4 plaintexts Pi = (PLi, PR) (with PR constant) encrypted under the key K, and another pool of 2n/4 plaintexts Pj* = (PR, PRj) encrypted under the key K*. Now a pair of plaintexts (Pi; pn has probability 2-n/2 to be a slid pair, so we may hope to find one slid pair with only 2· 2n/4 chosen plaintexts rather than 2· 2n/2 known plaintexts; this slid pair can be recognized using the n/2-bits filtering condition on the ciphertexts. Note that such a chosen text attack can only be performed when we know something about the round function, as the structure of the set of plaintexts we chose depends on the particular structure of the round function. However the two attacks we presented previously are not restricted to Feistel ciphers. It is often possible to exploit the particular structure of a given round function (especially if the cipher is more or less Feistel-like). An attack on slightly more general key schedules, in the case of Feistel ciphers. It must be noted that the attack presented above works only if the key K* is derived from key K by a perfect rotation of the subkeys : We call this type of relationship between K and K* the strong assmnption. Suppose now that the relationship between K and K* is a bit weaker, i.e. that we only have: where Kr+l is not necessarily equal to Ki: This second type of relationship will be called weak assumption. For example, one can show that LOKI89 with 16 rounds satisfies the strong assumption, while if it is reduced to 11 rounds only the weak assumption is. Under the weak assumption hypothesis, the attack we presented does not work 317 Mathieu Ciet, Gilles Piret, and Jean-Jacques Quisquater anymore in the general case: indeed, a slid pair « P, C); (P* , C*)) would satisfy the two equations: F(P, Kt} = P* and F(C, Kr+l) = Co. For any pair (x; y) the equation F(x, k) = y has at least one solution. Therefore if Kl and KrH share few or no bits, it is not possible to identify slid pairs by simply trying to solve this system. However we have seen that in particular cases, such as Feistel ciphers, it is possible to use filtering conditions. The following attack is thus applicable. Suppose we know 2n/2 plaintext-ciphertext pairs (P, C) encrypted with the key K, and 2n/2 plaintext-ciphertext pairs (P*, C*) encrypted with the key K*. The texts (Pi, Ci) encrypted with key K, and the texts (Pj*, C;) encrypted with key K* are sorted based respectively on the right half of Pi and Ci, and on the left half of Pj* and C;. Then we look for a match between the left halves of Pj* and C; and the right halves of Pi and C, (respectively). Doing this, we filter the pairs «P,C), (P*,C*)) for which the distinguishing condition for F(P) = P* and F(C) = C* hold. For each of the pairs selected (we hope to find around one false alarm along with one slid pair), the two equations F(P, Kl} = P* and F(C,Kr+l) = C* are solved separately. Note that for certain round functions, we get many possibilities for Kl and Kr+l' But if Kl and Kr+l have several bits in common, the number of possibilities for (KI,Kr+l) is not too big. Finally, for each suggestion for (KI,Kr+d, we try to find the remaining key bits by exhaustive search, until we succeed. 2.2 The chosen plaintext attack The hypothesis we made in the previous section looks very restrictive. Never- theless this attack could be useful if combined with an attack on key-exchange protocols that do not guarantee key-integrity, or if bad key-update protocols are used. We are now going to use the related-key principle in a more classical context: namely, we have a certain number of chosen plaintext-ciphertext pairs encrypted under an unknown key K that we are searching for. First WA show how to deal with the case of a Feistel cipher. Then we analyze if this principle can be used for the non-Felstel ciphers. For a key K such that K _, (Kl, ..., Kr), we denote K* as being the key such that K* -+ (K2, K3, , Kr+d (for some Kr+l) and K. as being the key such that K* _, (Ko,KI' ,Kr) (for some KO)I. Also by P ~ C we denote the fact that the encryption of P under key K gives ciphertext C. The ease of Fëistel ciphers. The attack is as follows: - The following plaintext-ciphertext pairs are chosen: P = (PL, PR) !!.. C for some plaintext P, Va E {D, ...,2n/2 -l} : P;' = (PR,a)!!.. C~ and Va E {D, ... , 2n/2 - l} : P*a = (a, PL) !!.. CM 1 We emphasize on the fact that only some particular algorithms are such that for a given K the keys K· and K. exist; thus the attack we present is only applicable to 318 very specific algorithms. Related-Key and Slide Attacks: Analysis, Connections, and Improvements - Let.p be a set of keys such that .p U {k*lk E .p} U {k*lk E .p} covers all the key space. K' - For each key K' E .p: Compute P - C'. If C' = C we can guess that with a high probability K = K' and stop. Else compute F(P, KD, that equals P;, for some a' (in fact, we already did it when computing p!S C'), and also F-1 (P, Kó) = p.a". Finally compute one round backward and one round forward from the ciphertext C'. We obtain C'· = F(C/,K;+1) and C~ = F-1(C/,K;) (in fact, C~ was already computed). Thus, if C'· = C~" we can deduce that K = K'·. If C~ = C.a", we deduce that K = K~. The underlying philosophy is the following: instead of proceeding through all the possible keys, we only deal with a part of the whole key space. For each trial encryption we make, we get two more encryptions as a bonus, by computing only two more rounds (P.a" = P-I(P,Kó) and C'* = F(C/,K;+1)). Remark 1. It is not necessarily easy to construct a set .p, as small as possible, such that .p U {K· IK E .p} U {K. IK E .p} covers all the key space, and such that the elements of .p are easy to characterize. Ideally, the size of .p would be one third of the size of the key space; in his attack on LOKI, Biham obtained a size of 3/8 of the key space. Remark 2. This attack uses the same kind of approach that those based on com- plementation properties. Indeed, it is based on two equivalencies: P !S C' {:} F(P,KD I£: P(C/,K;+1) and p!S C' {::> F-l(p,Kó) ~ F-1(C',K;). Corn- plementation attacks are also based on equivalencies. For example, the compIe- K'- -K' mentation property of DES may be written as: P - C {::> P - C. Furthermore, these attacks (related key and complementation) can be combined, as Biham did in the case of LOK!. Note that the weak assumption is sufficient for this attack. The general case. At first view, it might appear that the fact we are dealing with a Feistel cipher plays no role in the previous attack. Simply, the set {P;}a is de- fined in a general framework as: {F( P, k) hERK, where P is a given plaintext and RK is the set of all possible round keys; and the set {P.a}a is {F-1(P, k)hERK. However the attack is not useful if the sets of pairs {P;} a and {P.a} a that are needed for the attack cover all the codebook, because then it is not really interesting to discover the key, as we have a list of all plaintext-ciphertext pairs. It is generally the case with substitution-permutation structures. Moreover if the cardinality of {P';}a U {P*a}a approaches the size of the key space, it is easier to perform an exhaustive key search. Thus the attack is always possible, but makes sense only if the following two inequalities #[{P;}a U {p.a}a] < 2n and #[{P;}a U {P.a}a] «2nk are met, where n represents the block size, nk represents the key size, and #[.] is the cardinality of a set. 319 Mathieu Ciet, Gilles Piret, and Jean-JacquesQuisquater 2.3 Summary The following table summarizes our discussions. Hyp. on the Algorithm Chosen key attack Classical attack Key Sch. .#[{P';}a U {P.a}a] General '" 2n/2+l P jC pairs +1 PjC pairs Strong Case '" 2n offline work • At best, 2nk j3 keys to explore Impossible, except if Kl Weak and Kr+l share a suffi cient number of key bits .#[{P';}a U {P.a}a] '" 2n/2+1 P jC pairs +1 PjC pairs Feistel Strong '" n/2 ·2n/2 ofHinework • At best, 2nk j3 keys to explore '" 2n;:Hl P jC pairs Weak '" n/2 . 2n/2 ofHinework 3 Differential Related-key Attacks The basic idea of differential cryptanalysis is to perform the encryption of pairs of plaintexts, say (P, P EBLl), with Ll a chosen difference. After a large number of rounds (typically r - 2 or r - 3), we hope to observe another given difference, say L1',with a "high" probability. The idea of differential related-key attack is not very different: simply we allow the two plaintexts P and P EBL1to be encrypted with different keys, say K and K EBL1K: C = F(P, K) and C' = F(P EBL1,K EBLlK). L1K must be chosen carefully, so as to obtain the desired difference in the subkeys. This allows much more freedom for the attacker, as he can act on the key dif- ference too. This way he can find attacks that are not possible otherwise. Note however that the basic hypothesis are not the same as those of differential crypt- analysis, as we assume we get an access to encryption under two (or more) related keys. 4 Slide Attacks The slide attack was developed by Alex Biryukov and David Wagner in [5], [6]. In some sense it may be viewed as a particular case of related-key attack, but tends to be more powerful than this last, as it applies in a more classical context. 320 However, it is applicable to a smaller range of algorithms. Related-Key and Slide Attacks: Analysis, Connections, and Improvements 4.1 Basic principle Consider a block cipher that may be decomposed into r identical permutations Xj = F(Xj-1, k), where Xj denotes the intermediate value of the block after j permutations. Note that F does not necessarily correspond to one single round of the cipher; it might include several rounds. For simplicity purpose, in the remaining of this paper we speak about one round to designate the function F. The idea of the attack is to "slide" a copy of the encryption process against another copy of the encryption process, so that both processes are one round out of phase. As in the case of related key attack, we obtain two equations P' = F(P, k) and C' = F(C, k). The only difference with related key attack is that the two encryptions have been computed under the same key. If the function F is weak enough, these two equations permit us to retrieve the key k. However identifying slid pairs is not trivial, as we cannot get the value F(Xo, k). Nevertheless most of the time the equations P' = F(P, k) and C' = F(C, k) simply cannot hold both for some key if P and P' do not form a slid pair; this gives us a criterion to recognize slid pairs. The attack proceeds as follows: we obtain 2n/2 known texts (Pi, Ci) (n denotes the block size), and we look for slid pairs. By the birthday paradox, we hope to find about one slid pair, thanks to which we can recover key material. In general, we expect one slid pair to disclose n key bits. If needed, we can search for a few more slid pairs or use exhaustive search to recover the rest of the key. The time complexity of the attack is O(2n), as there are O(2n) pairs to examine. The condition for a block cipher to be vulnerable to the related key attack was that the sliding of all subkeys derived from a given key by one round (or eventually more) give rise to a sequence or subkeys that can be derived from another key. The slide attack may thus be viewed as a kind of" auto-related-key attack", as the algorithms vulnerable to it are those for which the sliding of the subkeys gives rise to the same sequence of subkeys! 4.2 Advanced slide techniques for Feistel ciphers The following definition provides us with a good classification of the block ciphers with regard to their suitability for slide attacks: a p-round-self-similar cipher is a cipher whose key schedule is periodic with period p. The basic slide attack generally deals with I-round-self-similar ciphers (except if F includes several rounds). The goal of advanced attacks is to be able to attack p- round-self-similar ciphers, with p > 1. Various advanced techniques are proposed in [6], that work only in the case of Feistel ciphers. We present one of them, that we have slightly improved: the sliding with a twist. This attack applies to 2-round-self-similar Feistel ciphers. We slide a decryption process against an encryption process by one round (see Fig.I}. If the data after the first round of the encryption are the same as those after the decryption process, then the data after the encryption process are the same as those after the first round of the decryption process. The slid equations are thus: (M', N') = (L EBf(Ko EBR), R) and (L',R') = (MEBf(KoEBN),N). 321 L R M' N' Encryption Decryption Fig. 1: Sliding with a Twist These give us a n-bit filtering condition on slid pairs (namely N' = Rand R' = N). Thus given 2n/2 known texts, a slid pair can be found easily with a sorted list and 2n/2 work. The subkey Ko may be easily deduced. The method proposed in [6) in order to find the other subkey K, is a bit complicated: it relies on using a conventional sliding, and encrypt ciphertexts partially using Ko. The method we propose is both simpler and slightly faster: simply, we suggest to slide the decryption process in the other direction (see Fig.2)! Theslidequations arenow: (L,R) = (M',N'ffi!(KlffiM') and (M,N) = (L', R' ffi !(KI ffi L'). Thus the n-bit filtering condition becomes L = M' and L' = M. This time it is the subkey Kl that can be deduced. M' N' L Decryption Encryption Fig. 2: Sliding with a Twist with other direction 322 Related-Key and Slide Attacks: Analysis, Connections, and Improvements 4.3 How to Deal with Stronger Functions? In [6], methods to deal with functions F that need more than two pairs (Xl, Yd and (X2,Y2) with F(Xl) = Yl, F(X2) = Y2 in order to be broken are presented. One approach was suggested that uses differential analysis. Suppose that the round function F has a non-trivial differential characteristic LlX ~ LlY that holds with probability p. Then if we find a slid pair (P; PI) with F( P) = PI, the pair (P EBLlX; P' EBLlY) will be a slid pair too with probability p. They exploit this principle in a chosen plaintext attack, by generating a set of 3 . 2n/2p-l/2 chosen plaintexts such that for plaintext P in the chosen set the plaintexts P EBLlX and P EBLlY are also in the set. Then it may be expected to see one pair P, P' satisfying both the slide and the differential patterns. However the number of plaintexts needed can be improved by choosing structures of four plaintexts of the form (P, P EBLlX, P EBLlY, P EBLlX EBLlY). It is easy to verify that for any plaintext P in the chosen set, P EBLlX and P EBLlY are also in the set. In such a set with only 2n/2p-l/2 plaintexts, we may hope to find p-l slid pairs and one pair satisfying both the slide and the differential patterns. If we are dealing with a set of known plaintexts, once a slid pair has been found, it is possible to develop strategies on the order we check the other pairs, based on the probability of the different characteristics LlX ---> LlY. 5 Link Between The Attacks Presented Slide attack and differential cryptanalysis have in common that we try to find pairs of plaintext that have a certain relationship, so that there is some link between their encryption process. The only difference between differential cryptanalysis and differential related-key attacks, is that in the second one, the pairs of plaintext are encrypted using two different keys. On the one side, it makes the attack more powerful, in the sense that it permits to find better characteristics on a larger number of rounds. On the other side, it must be noted that it relies on a more restrictive hypothesis. Exactly in the same way, the slide attack and Biham's related-key attack dis- tinguish by the fact that the first one deals with a single key, while the second one attacks a pair of keys. And once again, using related-key attack allows to attack a wider range of algorithms, as the key schedule do not longer need to be periodic in order to be vulnerable, but only to have a weaker property. We could wonder if other known attacks can be turned into a related-key version. First, it must be noted that it is only applicable for attacks that deal with pairs (or bigger groups) of plaintexts. Thus linear cryptanalysis, for example, does not fit. On the contrary, there is a related-key counterpart to the differential-linear cryptanalysis. Moreover in [9], it was pointed out another example of this kind of counterpart: namely, a related-key version of the integral attack (although it is not realistic). We have seen that Biham's related key principle can be used to reduce the complexity of an exhaustive key search. The question is: is it possible to reduce the complexity of exhaustive search using the differential related key princiM_3 10 Mathieu Ciet, Gilles Piret, and Jean-Jacques Quisquater For a given block cipher, suppose we can find differences LlP, LlC and 11K such that for randomly chosen plaintext P and key K, P ~ C implies P(f)LlP K~K C (f)11C with a "high" probability p. An improved key search algorithm would be: - Let (P, C) and (P(f)11P, C*) be two plaintext-ciphertext pairs obtained under the unknown key K. K' - For each trial key K', compute P ~ C'. If C' = C, we conclude that K = K' else if C' = C* (f)11C, we conclude that with a probability p, K = K' (f)11K. Assuming p > 2nk (nk being the number of key bits), K' (f) 11K can be consideredas a favorite key candidate. We check immediately if it is the right key by computing the encryption of P under K' (f).:1K. If it is not the right one, we insert it in a sorted list of already tried keys. At first glance, this algorithm looks fine, but consider the complexity analysis: - If P K~K C* (f)11C, the key search is reduced by about half of the encryp- tions (provided we try K (f)11K before K). Knowing that P (f)LlP ~ C*, it happens with probability p. Thus the average gain is p . 2nk -2 encryptions. - The drawback is that for each trial key it is necessary to do one comparison (namely, check if C' = C* (f)LlC during the first half of the key search; then for each key check if it has not been already tried 2). The time needed to build the sorted list of already tried keys may be considered as negligible. The average gain of our algorithm is thus P: 2nk-2 encryptions, while the draw- back is 2nk comparisons. Thus for our algorithm to make sense, the ratio between the time for one comparison and the one for one encryption must be no more than p/4. But as p is most of the time very small, it is usually not the case. The conclusion is that it is the fundamentally probabiIistic nature of the differ- ential related key attack that makes it (almost) impossible to use in order to improve exhaustive key search. 6 Conclusion We discussed the conditions that a key schedule algorithm must satisfy in order to be vulnerable to Biham's related key attack, for a general algorithm as well as for a Feistel cipher. We then presented the slide attack, that is showed to have a strong relationship with Biham's attack. Two improvements on variants of it are presented. We also presented another related-key attack, namely differential related-key, and discussed under which conditions a related-key counterpart could be found for other attacks. Finally, we discussed whether these various related-key attacks can be used in reducing the complexity of exhaustive key search. 2 We assume here that the key search begins with exploring one half of the key space, 324 say Wl (with #Wl = 2nk-1), such that \:IK' E Wl : K' EB6.K fÎ. Wl. Related-Key and Slide Attacks: Analysis, Connections, and Improvements 11 7 Acknowledgements The authors are grateful to Orr Dunkelman for valuable comments. Mathieu Ciet and Gilles Piret were supported by the European Commission through the 1ST Programme respectively under Contracts IST-1999-12324 and IST-1999-1l159. References 1. E. Biham, New Type of Cryptanalytic Attacks Using Related Key. In T. Helleseth, editor, Advances in Cryptology - EUROCRYPT'93, volume 765 of Lecture Notes in Computer Science, pages 229-246. Springer, 1994. 2. E. Biham and A. Shamir. Differential Cryptanalysis of DES-like Cryptosystem. Journalof Cryptol09Y, 4(1):3-72, 1991. 3. E. Biham and A. Shamir. Differential Cryptanalysis of Snefru, Khafre, REDOC-U, LOKI and LUCIFER (extended abstract). In J. Feigenbaum, editor, Advances in Cryptology - Proceedings of CRYPTO'91, volume 576 of Lecture Notes in Computer Science, pages 156-171. Springer, 1991. 4. E. Biham and A. Shamir. Differential Cryptanalysis of Data Encryption Standard. Springer Verlag. 1993. 5. A. Biryukov and D. Wagner. Slide Attacks. In L.R. Knudsen, editor, Advances in Cryptology - Proceedings of FSE'99, volume 1636 of Lecture Notes in Computer Science, pages 245-259. Springer, 1999. 6. A. Biryukov and D. Wagner. Advanced Slide Attacks. In B. Preneel, editor, Ad- vances in Cryptology - Proceedings of EUROCRYPT 2000, volume 1807 of Lecture Notes in Computer Science, pages 589-606. Springer, 2000. 7. L. Brown and J. Seberry. Key Scheduling in DES Type Cryptosystems. In J. Seberry and J. Pieprzyk, editors, Advances in Cryptology - Proceedings of AUSCRYPT'90, volume 453 of Lecture Notes in Computer Science, pages 221- 228. Springer, 1990. 8. M. Ciet, G. Piret, and J.-J. Quisquater. A survey of key schedule cryptanalysis. Technical Report CG-2002jl, Université catholique de Louvain, Crypto Group, Available at: http://www.dice.ucl.ac .bel crypto/techreports .html, 2002. 9. J. Nakahara Jr, P. S.L.M. Barreto, B. Preneel, J. Vandewalle, and H.Y. Kim. SQUARE Attacks on Reduced-Round PES and IDEA Block Ciphers. Technical report. Available at http://eprint.iacr.org/complete/ . 10. J. Kelsey, B. Schneier, and D. Wagner. Key-Schedule Cryptanalysis of IDEA, G- DES, GaST, SAFER, and Triple-DES. In N. Koblitz, editor, Advances in Cryp- tology - Proceedings of CRYPTO'96, volume 1109, pages 237-251. Springer, 1996. Lecture Notes in Computer Science. 11. J. Kelsey, B. Schneier, and D. Wagner. Related-Key Cryptanalysis of 3-WAY, Biham-DES, CAST, DES-X, NewDES, RC2, and TEA. In Y. Han, T. Okamoto, and S. Qing, editors, Advances in Cryptology - ICICS'97, volume 1334 of Lecture Notes in Computer Science, pages 233-246. Springer, 1997. 12. L. Knudsen. Cryptanalysis of LOK!. In H. Imai, R.L. Rivest, and T. Matsumoto, editors, Advances in Cryptology - Proceedings of ASIACRYPT'92, volume 739 of Lecture Notes in Computer Science, pages 22-35. Springer, 1992. 13. L. Knudsen. Cryptanalysis of LOKI91. In J. Seberry and Y. Zheng, editors, Ad- vances in Cryptology - ASIACRYPT'92, volume 718 of Lecture Notes in Computer Science, pages 196-208. Springer, 1993. 325 Invited Talks 327 The Hamming space viewed as an association scheme Philippe Delsarte Dept. Computing Science and Engineering, Université catholique de Louvain delsarte@info.ucl.ac.be Abstract Block codes of length n over a q-ary alphabet are living in the Hamming space H(n, q), which has the combinatorial structure of an association scheme. The Hamming schemes enjoy some remarkable properties: (i) they are P-polynomial and Q-polynomialj (ii) they can be viewed as translation schemes, with respect to a suitable group. The paper gives a comprehensive survey of those parts of association scheme theory that are especially relevant to coding problems. Thus, it deals with codes in P-polynomial schemes, designs in Q-polynomial schemes, and codes (or designs) in translation schemes. Special emphasis is put on several forms of duality inherent in the theory. The paper also con- tains some new results concerning the notions of completely regular codes and completely graded designs, which are dual of each other. 1 Introd uction Hamming spaces are the ambient spaces of error-correcting block codes. They are defined as metric spaces. This structure is of an obvious importance from the application viewpoint, since the minimum Hamming distance of a code charac- terizes its error correction capability (to a certain extent). For some good reasons, the main part of algebraic coding theory is concerned with linear codes, over a field alphabet. This explains why a Hamming space often receives the structure of a vector space. As the Hamming distance is invariant with respect to trans- lation in the. vector space, the definition results in a nice "metric linear space" . Let us emphasize that the translation structure is not inherent in the Hamming space; it is superimposed on the metric structure. The distance relations of a Hamming space enjoy strong regularity properties, which can be stated as follows. For two points x and y, the number of points located at given distances from x and y depends only on the distance between x and y. It does not depend on x and y themselves. In technical terms, the distance relations are said to form an association scheme. Thus, we obtain a well-defined combinatorial structure, called the Hamming (association) scheme. In general, an n-class association scheme (X, R) consists of a nonempty finite set X and a collection R = (~, ... ,Rn) of n + 1 binary relations R; on X having regularity properties analogous to those mentioned above for the Hamming scheme [7], [10], [26]. Not surprisingly, it proves useful to approach several subjects of coding the- ory in the framework of Hamming schemes [12], [17], [24]. One of the most striking phenomena is this. We are interested in the eigenvalues of the distance 329 matrices, and we discover that these numbers coincide with the coefficients of the MacWilliams transform. This cannot be accidental! The eigenvalues in question can be expressed in terms of a well-defined family of orthogonal polynomials, called the Krawtchouk polynomials [34]. Interesting results have been obtained in coding theory with the help of the "Krawtchouk-MacWilliams transform". The main reason lies in the fact that the transform of the distance distribution of any code is non-negative [15], [17]. This leads to an efficient method for finding an upper bound on the size of a code with a specified minimum distance. The theory can be extended to any association scheme (X, R), as follows. Let Y be a nonempty subset of the point set X. Depending on the context, we call Y a code or a design. For each relation ~, define Ai(Y) as the number of ordered code (or design) pairs (Yl, Y2) belonging to ~. Using the normalizing factor IYI-I, we set ai(Y) := 1Y1-1Ai(Y). The (n + l)-tuple (ao(Y),"', an(Y)) is called the inner distribution of Y, with respect to R. In the case of a Hamming space, the inner distribution is the usual distance distribution; it is equal to the weight distribution when Y is a linear code. The efficiency of the association scheme approach in code and design theory is crucially based on the following result. The Q-transform of the inner distribution of any code (or design) is non- negative [17]. Here, Q denotes a well-defined matrix of order n + 1 that can be determined from the eigenvalues of the characteristic matrices of the relations ~. An association scheme is said to be P-polynomial when the (k + l j-st eigen- value of the (i + 1)-st relation matrix can be expressed as a polynomial of degree k in a variable depending only on i. This technical definition has a simple com- binatorial interpretation. Roughly speaking, a P-polynomial scheme is formed by the distance relations of a well-defined directed graph having strong reg- ularity properties [10]. The Hamming schemes belong to this family, and the corresponding polynomials are the Krawtchouk polynomials alluded to above. , A rich notion of duality is present in association scheme theory, all over the place [6], [17]. In particular, along this idea, Q-polynomial schemes are intro- duced, in a natural manner, as formal duals of P-polynomial schemes. From the properties of Krawtchouk polynomials it follows that the Hamming schemes are Q-polynomial. Other interesting association schemes enjoy this remarkable and quite exceptional property of being both P-polynomial and Q-polynomial. An example is provided by the Johnson schemes, which are the ambient spaces of constant weight binary codes [17]. As far as codes and designs are concerned, polynomial schemes form an im- portant part of association scheme theory. Let us especially emphasize the ques- tions of codes with a given minimum distance, in a P-polynomial scheme, and designs with a given maximum strength, in a Q-polynomial scheme. For these problems, the linear programming method uses the "polynomial structure" in an efficient manner so as to produce some upper bounds on the code size, in the first case, and some lower bounds on the design size, in the second case [24], [36]. The theory is especially suited for characterizing codes and designs having certain well-defined regularity properties. In that respect, let us mention the no- 330 tion of completely regular codes in a P-polynomial scheme [17] and its dual, the notion of completely graded designs in a Q-polynomial scheme, introduced and investigated in the present paper. Hamming spaces can receive an additional structure, of an algebraic nature, superimposed on the association scheme structure. This simply is the translation structure afforded by an Abelian group (X, +) that permutes the points regularly while preserving each distance relation. In the case of a field alphabet, the vector space structure plays the job. However, it is interesting to observe that a given association scheme may have several translation structures. In particular, this remark applies to binary Hamming schemes and sheds some light on the subject of binary Z4-additive codes [28]. The general concept of a translation scheme combines the association scheme structure and the Abelian group structure. With such a definition, there is one binary Hamming scheme (of a given length) but there are several binary Hamming translation schemes. With a given translation scheme (X, +, R) there corresponds a dual transla- tion scheme (X', R', +), with the same class number [17], [50]. For each additive code (or design) Y in the former we define its annihilator design (or code) yo in the latter. In this restricted context, the formal duality of association scheme theory has a striking combinatorial interpretation [17]: the Q-transform of the inner distribution of the code Y is proportional to the inner distribution of the design Y". Furthermore, it can be shown that a completely graded design is the annihilator of a completely regular code [14], and that the subscheme induced by the former is the dual of the coset scheme defined by the latter [17]. The present paper has two main objectives. First, to give a self-contained introduetion to Hamming schemes, viewed as the ambient spaces of error cor- recting codes and of related combinatorial designs such as orthogonal arrays. Duality is a central theme. A guiding principle is this: each notion and each result should have a "dual". The reader will find illustrative examples, a few proofs that are simpler than the original ones, and comments on the whole ma- chinery. The second objective is to fill in some small gaps in the theory. Let us especially refer to the duality between completely regular codes and completely graded designs. The paper is organized in two parts. Section 1 is concerned with association theory itself (the ambient structure), and section 2 deals with codes and designs in association schemes (the applications of interest). 2 Association schemes 2.1 Combinatorial definition We shall denote by [a,b] the integer interval {a,·· . ,b}, for any a, bEN with a ::; b. Let X := {O,I}n be the nth Cartesian power of the binary alphabet {O,I}. The Hamming distance function OH : X2 -> [0, n] is given by OH (X, y) := l{j E [1, n]1 Xj =I- Yj}l, with X = (Xl, ... , Xn) E X and y = (Yl,· .. ,Yn) E X. More generally, the same definition holds in the case X := F'", where F is any finite alphabet with IFI 2: 2. 331 The set X equipped with the Hamming distance OH is called the Hamming (metric) space and is denoted by H(n, q), where q := IFI. The Hamming space can be endowed with some additional structure, of an algebraic nature. In the binary case, q = 2, if we identify the alphabet {O,I} with the two element field lF2, we give X the structure of an n-dimensional vector space over lF2. The same observation applies in the more general situation where q is a prime power, so that F can be viewed as the field lFq with q elements. This allows us to introduce the definition of a linear code, which simply is a subspace of the vector space X (the set of n-tuples over the field lFq). In certain applications, we may content ourselves with a weaker structure. It is always possible to view the alphabet F as an Abelian group. Then the Cartesian power X := F" itself becomes an Abelian group, and we are able to define group codes of length n over F as subgroups of the group X. This is interesting in the context of the Hamming metric space (X, OH), because the distance function is invariant under translation: OH(X + Z, y + z) = OH(X, V), for all x, y, zE X. We shall go back to that type of algebraic structure in Section 2.8. The author apologizes for mentioning this subject at the beginning, just to emphasize that it is not the central theme of the paper. In fact, we are mainly interested in a certain combinatorial structure of the Hamming space, called an association scheme. As explained below, the combinatorics can be described in algebraic terms, but the resulting algebraic structure is completely different from the vector space or Abelian group structure alluded to above. For each i E [0, n], the distance relation R; on the set X contains the ordered pairs of n-tuples over F that are at distance i apart. The formal definition is R; := {(x, y) E X2IoH(x, y) = i}. It is an easy exercise to verify that the (n + 1)-set {Ra,···, Rn} satisfies the conditions of an association scheme that we now state in axiomatic terms. Definition 1 Let X be a nonempty finite set of points. For an integer n 2: 0, consider a set R = {Ro,'" ,Rn} of nonempty relations R; on X (i.e., R; C X2 for each i E [0, n]), forming a partition of X2. The pair (X, R) is said to be an n-class association scheme if the following three conditions are satisfied. (p.) The relation Bo is the identity LLzthat 1~Ro = L1 := f (~, .;r) I x E X}. Cb) For each '[,E lU,nJ, tlie conver"Serli := HX,y) I (y,x) é 1Li ~ 0'IR1, belongs to a R. This induces pai"iing i f-+ iU over rO nl, defined by Ra - RT. (c) There exist mtegers Pi,j' called intersectioH numbers, with £1,j :!o Pj,i' such that, for each pair (x, y) E Rk, the number of points z E X with (x, y) E R; and (z,y) E Rj is equal to the constant pf,j (for all i,j,k E [O,n]). The number Vi := p~ ia is the valency of the directed graph (X, R;). It counts the points Z E X such that (x, z) E R;, for any fixed point x E X. We see that 332 p?,j = ° if j i- ia. Furthermore, Via = Vi and L~=oVi = lXI. Note the "symmetry ·" re Iation k VkPij = VjPiak· ,..j We shall refer to the Hamming space H(n, q) endowed with its association scheme structure as the Hamming scheme, and denote it also by H (n, q). For the binary Hamming scheme H(n, 2), the valencies and the intersection numbers are given, in terms of binomial coefficients (m) r r. m(m - 1) ... (m - r + 1), := ~ by the formulas k ( k )( n-k ) Pi,j= ~(i-j+k) ~(i+j-k)· The second expression makes sense only when i + j and k are of the same parity. Otherwise, pf,j = 0. Note that the q-ary Hamming scheme H(n, q) has Vi = (7)(q _l)i. Since OH(X,y) = OH(y,X), all relations R; ofthe Hamming scheme are sym- metric. In other words, H(n, q) has a trivial pairing: ia = i for all i. In general, an association scheme is said to be symmetric when it has a trivial pairing. Restricting to the symmetric case amounts to replacing condition (b) by the following: (b)* u; = Rf, for all iE [0, nl. Note that the symmetric closure (X, RS) of any association scheme (X, R) is a symmetric scheme. By definition, if R = {Ho, ... , Rn} then R S := {~U R'[ I i E [O,n]}. 2.2 Bose-Mesner algebra We shall use matrix algebra to describe a scheme (X, R). Let C(X2) denote the set of square complex matrices of order lXI. The rows and columns of a matrix A in qx2) are labelled with the points of X, and the (x, y)-entry of A is written as A(x, y). The directed graph (X, Ri) is classically represented by its adjacency matrix Di E qX2}, defined by lwhen (x,y) E «; Di(X, y) := { ° when (x, y) X \ n; E 2 Let (X, R) be an n-class association scheme, with R = {Ro,···, Rn}. Its Bose- Mestier algebra, denoted by A, is the complex vector space generated by the adjacency matrices Di of the directed graphs (X, ~), that is A:= {coDo + clDI + ... + cnDn I CO,CI,···, en E C}. From condition (a) and from the fact that R is a partition of X2 it follows that A contains the unit matrix I and the all-one matrix J, for Do = I and Do+DI + ... + Dn = J. Furthermore, since the relations R; are non-empty and disjoint, it is clear that the matrices Di are linearly independent. Condition (b) says that 333 A is closed under matrix transposition (A r-+ AT), for D[ = Di". In addition, as Di is real, it is invariant under complex conjugation (A r-+ A). Therefore, A is invariant under conjugate transposition (A r-+ A* := AT). Condition (c) says that A is closed under matrix multiplication, and that multiplication in A is commutative, for n p.t», = LP7,jDk = u.»; k=O Therefore, the (n + 1)-dimensional vector space A generated by Do, Dl, ... , Dn has the structure of a commutative algebra over C. As indicated above, it is usually referred to as the Bose-Mesner algebra ofthe association scheme (X, R). A symmetric scheme satisfies D[ = Di for all i E [0,nl. In this case, we can define the Bose-Mesner algebra over the real numbers instead of the complex numbers, i.e., A := {coDa + ... + cnDn I Co, ... ,en E R}. The Bose-Mesner algebra A is semi-simple. This means that there exists a unitary matrix D E ia on the set [0, n] such that Di" = D'[. In terms of the relations R;" this means that R'[ = R;,,, E R, for each i E [0, nl. Note that A is self- conjugate, in the sense that A = A. This follows from the fact that A admits a basis of real matrices. Next, assume that A is a double algebra. This implies that A contains the unit matrix J. Clearly, Jo J = J. As a consequence, J can be expressed as a sum of certain matrices Di (which form the basis of irreducible idempotents of (A, 0)). In other words, the identity relation L1:= {(x,x) Ix E X} is the union of some of the relations R; in R. If L1= Rt, for a certain t, then A is said to be homogeneous. Since A is closed under matrix multiplication, there exist complex num- bers pf,j such that DiDj = L~=o pf,jDk, for all i, j E [0, nl· In fact, pf,j is a nonnegative integer; it counts the points zERk such that (x, z) E R;, and 335 (z, y) E Rj, for any (x, y) E Rk' Finally, assume that A is a Higman algebra, i.e., a globally symmetric double algebra. By matrix transposition, we obtain Dj"Di" = L.~=oP~,jDk'" which yields P~j = Pj:,i" for all i,j, k E [0, nl. By definition, a Bose-Mesner algebra is a commutative Higman algebra. To show consistency with our first use of this term, one has to verify that any Bose- Mesner algebra is homogeneous. This is proved in [29]. As a result, Bose-Mesner algebras are nothing but adjacency algebras of association schemes (Definition 1). More generally, the Higman algebras appear as the adjacency algebras of well-defined combinatorial structures (X, R), called coherent configurations [29]. This notion is obtained by relaxing Definition 1 as follows. First; instead of (a) it is required that the identity relation L1 be a union of some relations in R. Second, the requirement P~,j = Pj,i in (c) is omitted. 2.3 Eigenvalues The eigenvalues of the adjacency matrices play a major role in the theory. For the applications we are interested in, they are more directly useful than the intersection numbers. We shall examine the subject in some detail. Definition 2 The P-numbers of an n-class association scheme (X, R) are the complex numbers Pi(k), with k, i E [0, n], defined from the expansion of the adjacency matrices Di in the basis of the irreducible idempotents Ek of the Bose-Mesner algebra, that is n Di = L Pi(k)Ek, for iE [0, nl· k=O Similarly, the Q-numbers of (X, R) are the complex numbers Qk(i) defined from the inverse expansion, within the normalization factor IX I, that is n IXIEk = LQk(i)Di, for k E [O,n]. i=O Clearly, DiEk = Pi(k)Ek. This means that the P-number Pi(k) is the eigen- value of Di relative to the mk-dimensional eigenspace of A spanned by the columns of Ei; In particular, Pi(O) = Vi, the valency of ~. As to the Q-number Qk(i), it is equal to the entry of the matrix IXIEk in each position (x, y) belong- ing to the relation ~. Note that Qk(O) = mk, the rank of Ek (i.e., the index k multiplicity). Ifthe association scheme (X, R) is symmetric, then the P-numbers and the Q-numbers are real. For a Hamming scheme, the P-numbers and the Q-numbers are the sastie. They eau be expressed in terms of certain Krawtchouk polynomials [15], [54]. In the binary case, the definition is as follows. For each k E [0, n], the Krawichouk polynomial Hk(z) is given by k Hdz) := f;( -l)j (;) (~=;). 336 It is easily seen that H k (z) is a polynomial of degree k in the indeterminate z. An equivalent expression is Hk(Z) = L~=o( -2)j G=D (j). The Hamming scheme H(n,2) has Piek) = Hi(k) and Qk(i) = Hk(i), for all i, k E [0, nl. Note that mk = G) = Vk· To compute the values Piek) and Qk(i) it is useful to apply the well-known recurrence relation on binary Krawtchouk polynomials: (k + I)Hk+I(Z) = (n - 2z)Hk(Z) - (n - k + I)Hk-I(Z), with H_I(z) = 0, Ho(z) = 1. The (n + 1)-tuple (Hk(i))k=O admits a simple generating function, that is (1 - W)i(1 + w)n-i = L~=o Hk(i)Wk, for all i E [0, nl. Note the symmetry relation Hk(n - z) = (-ll Hk(z) As an example, consider again the case n = 3. Let P denote the 4 x 4 matrix having Piek) as its (k, i) entry, for k, i E [0,3]. With a similar definition for the matrix Q, we have 1 1 3 1 -13 -1 11 P = Q= [ 1 -1 -1 1 -3 3-1 1 . Hence, the irreducible idempotents are expressed in terms of the adjacency matrices by Eo = ~(Do + Dl + D2 + D3), El = ~(3Do + Dl - D2 - 3D3), E2 = ~(3Do - Dl - D2 + 3D3) and E3 = ~(Do - Dl + D2 - D3). For instance, this gives 3 1 1 -1 1 -1 -1 -3 1 3 -1 1 -1 1 -3-1 1 -1 3 1 -1 -3 1 -1 1 -1 1 1 3 -3 -1 -1 1 El =- 8 1 -1 -1 -3 3 1 1 -1 -1 1 -3-1 1 3 -1 1 -1-3 1 -1 1 -1 3 1 -3 -1 -1 1 -1 1 1 3 allowing us to check that D2EI = -Eb which is correct since P2(1) = -1. By definition, the matrices P := (Pi(k))O<5.k,i<5.n and Q := (Qk(i))O<5.i, k<5.nare inverse of each other, within scaling: PQ = lXII and QP = lXII. We now give the well-known orthogonality relations of association scheme theory. Theorem 1 The P-number vectors (Pi(k))k=O are pairwise orthogonal with re- spect to the multiplicities mk, and the Q-number vectors (Qk(i))~o are pairwise orthogonal with respect to the valencies Vi. More precisely, n n L mk Piek) Pj(k) = IXIViói,j, LVi Qk(i) Ql(i) = IXlmkók,l· k=O i=O 337 Proof Expressing EkEz = ók,zEk in the basis of the adjacency matrices Di one obtains n n L LPi,jQk(i)Qz(j) = IXIQk(S)Ók,Z, for all k, Z, sE [0, nl· i=O j=O The case s = 0 yields the second orthogonality formula. The second one then follows from the relation QP = lXII between P-numbers and Q-numbers. D Equivalently, Theorem 1 expresses the fact that the conjugate transpose of P is equal to Q within left and right diagonal transformations: mkPi(k) = viQdi). 2.4 Krein parameters As pointed out at the end of Section 2.2, the Bose-Mesner algebra A is closed not only under matrix multiplication (Ar, A2) f---+ Al . A2' but also under pointwise (or Hadamard) multiplication (AI,A2) f---+ Al oA2' defined by (AI oA2)(x,y):= AI(x,y)A2(x,y). This follows from the fact that the adjacency matrices Di are idempotent and pairwise orthogonal with respect to pointwise product: The formal operation that permutes the matrix product and the pointwise prod- uct is one of the main themes of association scheme theory. This duality per- mutes the roles of the adjacency matrices Di and the irreducible idempotents Ek. Analogously to some relations given in Section 2.2, we have Eo = IXI-I J, Eo + El + ... + En = I, Ek = Ek, and ET = EkT, where k f---+ F is a well- defined pairing on the set [0, nl. For a symmetric scheme, the pairing T is trivial: ET = Ek for all k. Note also the equation IXI(Ek 0 Di) = Qk(i)Di, dual of DiEk = Pi(k)Ek. An essential feature of the Bose-Mesner algebra is the relation DiDj = L~=opi,jDs, where the pi,j are the intersection numbers. Let us examine its dual, that is n IXI(Ek 0 Ez) = L qtzEt, t=O with some complex numbers qk z' called the Krein parameters of the associa- tion scheme (X, R). In particul~r, q~ kT = mk and q~ z = 0 when Z #- F. The Krein parameters qk z, the multiplicities tru; and the Q-numbers Qk(i) are the duals of the intersectien numbers p.f,j' the valencies V·i and the P-numbers Pi(k), respectively. In general, the Krein parameters are not integers (as are the intersection numbers). However, they enjoy the important property of being real and non- negative. This follows from the fact that the idempotents Ek are Hermitian and nonnegative definite, since their eigenvalues are 0 and 1. Clearly, the pointwise product Ek 0 E, is a principal submatrix of the Kronecker product Ek 0 El. As 338 ° the latter is nonnegative definite, so is the former, and this implies qk,l 2: for all t. This argument is borrowed from [9] and [27]. By use of the definitions we readily deduce that the intersection numbers pi,j and the Krein parameters qk,l are the linearization factors relative to the P-numbers Piek) and the Q-numbers QkCi), in the sense that n n Pi(k)Pj(k) = LP'f,jPs(k), Qk(i)Ql(i) =L qk,lQt(i). 8=0 t=O The relations above allow us to determine the intersection numbers and the Krein parameters from the P-numbers and the Q-numbers, respectively. Let us also indicate how the converse operation can be performed. For each i E [0, n], define the intersection matrix L, := (Pi,j)oSc8,jScn. We readily obtain This shows that the P-numbers Piek) are the eigenvalues of the intersection matrix Li, Similarly, the Q-numbers Qk(i) are the eigenvalues ofthe Krein matrix (qk ,l)O j + 1. In other terms, the index-one intersection matrix rp := L, = (pf)o::;s,j::;n is an irreducible tridiagonal matrix. For example, in the Hamming scheme H(3, 2) we have I: = P~'O 1 P~,l 1 P~,2 1 P~'31 1 Pl,O Pl,l Pl,2 Pl,3 = [0 3 ° °1 1020 .'[1 [ pî,o pî,l pb Pî,3 n n n n " U~ U1 pf ,0 pL, pf ,2 pf ,3 ° ° 0 3 This characterizes the distance structure in a clear manner. Similarly, a criterion for the Q-polynomial property is qi-;zl i= 0 and qL = 0 for t > I + 1. Thus, the index-one Krein matrix rq := (qi,l )o::;t, l:5n is an irreducible tridiagonal matrix. 340 The number of independent parameters of an n-class P-polynomial or Q- polynomial scheme is equal to 2n - l. By contrast, Leonard has proved that all parameters of a P-and Q-polynomial scheme can be determined from only five independent numbers [33]. The same author [32] has shown that the polynomials tPi(z) and l}ik(Z) relative to P-and Q-polynomial schemes belong to a well-defined 5- parameter class of orthogonal polynomials of the generalized hypergeometrie type, known as the Askey-Wilson polynomials [3]. His result produces closed form expressions for the P-numbers and the Q-numbers. Furthermore, it char- acterizes the Askey- Wilson polynomials as those orthogonal polynomials having "duals". The theory of P-and Q-polynomial schemes has been developed considerably by Terwilliger, who introduced the notion of a Leonard pair, defined as follows [52], [53]. Let V denote a nontrivial finite dimensional vector space over a field. A Leonard pair on V is an ordered pair (.c, .c') formed byendomorphisms (linear transformations) .c : V ~ V and E' : V ~ V satisfying the following two conditions. (a) In a suitable basis of V, the endomorphisms .c and .c' are represented by a diagonal matrix and an irreducible tridiagonal matrix, respectively. (b) In a suitable basis of V, the endomorphisms .c and E' are represented by an irreducible tridiagonal matrix and a diagonal matrix, respectively. Let us see how certain Leonard pairs on the real (n + 1)-dimensional vector space V := JRn+l occur in polynomial scheme theory. From a symmetric n-class association scheme (X, R) define the index-one intersection matrix Fp and the index-one Krein matrix Fq as above. By the results of Section 2.4, we know that where L1p := diag(P1(O),···, Pl(n)) and L1q := diag(Ql(O),···, Ql(n)). Let .cp be the endomorphism of V represented by Fp in the canonical basis, and let .cq be the endomorphism of V represented by L1q in the same basis. Let e denote the basis of V formed by the columns of Q. The equations Q-l FpQ = L1p and Q-l iJ.qQ = Fq mean that the endomorphisms .cp and .cq are represented in the basis e by the matrices L1p and Fq. Recall that Fp and Fq are irreducible tridi- agonal if and only if (X, R) is P-polynomial and Q-polynomial, respectively. As a result, since L1p and L1q are diagonal, (X, R) is a P-and Q-polynomial scheme if and only if (.cp, .cq) is a Leonard pair on V. For example, in the Hamming scheme H(3, 2) we have Fq = Fp as above, and L1q = L1p = diag(3, 1,-1, -3). Terwilliger has completely classified Leonard pairs, and has shown the con- nection with Leonard's classification of P-and Q-polynomial schemes [53]. Several interesting families of P-and/or Q-polynomial schemes are met in the environment of coding theory. In addition to the Hamming schemes, let us es- pecially mention the Johnson schemes, which provide an appropriate framework for the study of constant weight binary codes [17]. The definition is as follows. Let X be the set of binary v-tuples of a fixed weight n, with 1 :::;n :::;Lv/2 J. More precisely, X := {x E {O, I} I WH(X) = n}, where WH(X) is the Hamming weight of 341 x (the number of its nonzero components). For each iE [0, n], define the relation I4 := {(x, y) E X218H(x, y) = 2i}. Let R := {Ro, Rl,···, Rn}. Then (X, R) is a symmetric n-class association scheme, called the Johnson scheme and denoted by J (v, n). It is the restrietion of the binary Hamming scheme H (v, 2) to the set X. The Johnson scheme is Q-polynomial with respect to the numbers 'TJi := i, and it is P-polynomial with respect to the numbers Çk = k(v + 1 - k). The corresponding orthogonal polynomials l[rk(Z) and V(g) is a representation of the group C, in the usual sense that V'(L) = I and V(gh) = V(g)V(h) for all g, h « C. Note that (V(g))T = (V(g))-l = V(g-l). Define r as the subspace of CC X2) generated by all matrices V (g) with 9 E C. Since V is a representation of C, it appears that r is a subalgebra of gk(X) := I:X'EX' (x, XI). k Then gk(X) is constant over each block Xi. The P-numbers and the Q-numbers of (X, R) are given by Piek) = fi(XI) for z' E Xk, Qk(i) = gk(X) for x E Xi. 347 Since duality permutes the functions fi and gk, this shows that the P-numbers of (X', R') are the Q-numbers of (X, R) and conversely. In matrix terms, P' = Q and Q' = P. Hence, duality implies formal duality. 2.8 Translation schemes Theorem 2 is concerned with association schemes that are translation invariant. For future use, we now introduce the appropriate concept, in precise terms. Definition 4 Let (X, +) be a finite Abelian group, and let (X, R) be an n- class association scheme. Assume that (X, R) is invariant under that group, in the sense that if (x, y) E R; then (x + z, y + z) E R;, for all z E X and all i E [0,nl. Then (X, +, R) is said to be a translation scheme with respect to the group (X, +). From a group theoretic viewpoint, translation schemes can be presented as follows. Let Aut(X, R) denote the automorphism group of a given association scheme (X, R). By definition, the elements of Aut(X, R) are the permutations g : X --+ X : x ~ xg having the property that (x, y) ER; implies (xg, yg) ER;, for each i E [0,nl. Assume that Aut(X, R) contains an Abelian subgroup U which is regular on X, in the sense that U is transitive on X and has order lXI. This provides the point set X with the structure of an Abelian group (X, +), isomorphic to U, through the definition xö + xû := xöv, for all u, v E U, where Xo is a fixed point in X. It is clear that (X, +, R) is a translation scheme with respect to (X, +). In fact, the different "translation structures" of (X, R) correspond exactly to the different regular Abelian subgroups of Aut(X, R). The notion of a dual scheme has been introduced in the preceding section, by use of duality for finite Abelian groups. We have obtained the following result. Theorem 3 If (X, +, R) is an n-class translation scheme with respect to the Abelian group (X, +), then it admits a dual (X', +, R') which is an n-class translation scheme with respect to the dual Abelian group (X', +). If (X, +, R) is a P-polynomial translation scheme, then its dual (X', +, R') is a Q-polynomial translation scheme, and conversely. This is obvious since P' = Q and Q' = P. Consider the binary Hamming scheme H(n, 2). As explained in Section 2.6, its automorphism group is the monomial group Mn of degree n. We shall see that if n 2: 2 then Mn contains several regular Abelian subgroups. For n = 2, the monomial group M2' of order 8, is the symmetry group of the square {I,-IF. It contains an operation A of order 4 that cyclically permutes the 4 vertices (±1, ±I), namely A:= [0 -1] 1 0 . 348 In effect, if ço := [lIJ then 6 := çoA = [1 - 1], 6 := 6A = l -1 - 1], 6 := 6A = [-1 1], and ço = 6A. In terms ofthe usual binary alphabet {O,I}, this induces the cyclic permutation (xo, Xl, X2, X3) of the binary ordered pairs, with Xo := (0,0), XI:= (0, I), X2:= (I, I), X3:= (I,O). As a conclusion, M2 contains two regular Abelian subgroups: not only the ele- mentary Abelian gTOUpZ2 x Z2 (consisting of the diagonal matrices), but also the cyclic group Z4 generated by A. Note that the cyclic permutation above cor- responds to the Gray map between Z2 x Z2 and Z4, that is (0,0) t-+ 0, (0,1) t-+ I, (1,1) t-+ 2, (1,0) t-+ 3. We now turn to the general case of H(n,2) with n 2: 2. By considering partitions of the n coordinate positions in blocks of size 1 or 2, we obtain a whole class of regular Abelian subgroups U of Mn, of the form U ~ Z:[' X Z~-2m, with 0:::; m:::; Ln/2J. Each group U provides H(n,2) with a translation scheme structure, and gives rise to what we call a Hamming translation scheme. This translation scheme is self-dual. Let C(n) denote the number of groups U in question.Tt is equal to the number of pairings of n points. Therefore, the sequence (C(n))~=o can be determined from the recurrence C(n+ 1) = C(n) +nC(n-l), with C(O) = 1 and C(I) = l. Closed form expressions are =,,",n(n-l) ... (n-2k+l)=,,",(-n) (l-n) 2k C(n) L 2kk! L 2 2 k!' k20 k20 k k in terms of the Pochhammer symbol (ah := a(a + 1)'" (a + k - 1). As explained in Section 2.6, the Hamming scheme belongs to the group type. We now describe a general setting for translation schemes induced by a permu- tation group. Let X be a finite group, not necessarily commutative. Consider a subgroup H of the automorphism group of X, with the property that all inner automorphisms of X belong to H. We denote by Xo,'" ,Xn the orbits of H in X. In particular, Xo := {I}, where 1 is the unit of X. With each orbit X; let us associate the relation R; := {(x, y) E X2 y-Ix E Xd. Since H contains the 1 inner automorphisms of X, the elements xy and yx of X belong to the same orbit. This follows from the identity yx = x-l(xy)x. As a consequence, R; is translation invariant to the right and to the left: if (x, y) E R; and z E X then (xz, yz) E R; and (zx, zy) E f4. Let R := {Ro,"" Rn}. We have a strong result. Theorem 4 The combinatorial structure (X, R) is an association scheme. Proof The main part of the argument consists in verifying that (X, R) is a homogeneous coherent configuration of the group type (see Section 2.6). To that end, it suffices to find out an appropriate group G. A moment of thought shows 349 that we may take the semidirect product G := X . H, a well-defined subgroup of the holomorph of X. By definition, the elements (a, h) of G act on X as follows: x(a,h) := ax", with a E X and h E H. It remains to show that the intersection numbers pf,j enjoy the commutativity property pf,j = PJ,i· For a pair (x, y) E Rk, i.e, for y-1x E Xk, define the integer We know that Pi,j(X, y) = pf,j' a constant independent of x and y. By definition, Pj,i(X,y) = I{z E Xly-lz E Xi, z-lx E Xj}!. Using the change of variable z t-+ W := xz-1y, for the given points x and y, we then obtain Pj,i(x,y)=I{w EX I (y-lY)(W-1x) E x; (x-1w)(y-1x) E Xj}1 1 =I{ wE X lw-lX E Xi, y- w E Xj}1 = Pi,j(X, y), since (x-1W)(y-1x) E Xj is equivalent to (y-1X)(X-1w) E Xj, i.e., to y-1w E Xj. The conclusion is that Pj,i = pf,j' and the theorem is proved. D Application to the binary Hamming scheme is straightforward. The relevant group X is the elementary Abelian group Zï of order 2n. It has a large auto- morphism group, of order (2n - 1)(2n - 2)·· . (2n - 2n-l). Of course, there is no nontrivial inner automorphism. The weight preserving automorphisms form the symmetric group Sn. With X := Zï and H := Sn, the construction above produces the Hamming scheme H(n, 2). More precisely, it produces the transla- tion scheme structure of H(n, 2) corresponding to the standard Abelian group U := Zï. The structures involving the cyclic group Z4 are not obtained in that manner. 3 Codes and designs 3.1 Inner and outer distributions The Hamming scheme is a natural framework for coding theory. We extend the notion of a code as follows. Consider an rz-class association scheme (X, R). A code in this scheme is a nonempty subset Y of the point set X, structured by the relations R; E R. In certain applications, Y is called a design in (X, R) rather than a code. We now introduce the concept of the inner distribution of a code, which plays a central role in the theory. Definition 5 The inner distribution of a code Y in (X, R) is the rational (n+ 1)- tuple (aa,·· ., an) where IYlai counts the pairs of points in Y that belong to Rs, Formally, 350 Immediate consequences are ai = 1, ai" = ai, and 2::~o ai = IYI. A code Y in the Hamming scheme H(n, q) is a q-ary code of length n, in the usual sense. In this case, the number IYlai counts the pairs of codewords Yl,Y2 E Y with aH(Yl, Y2) = i. Therefore, the inner distribution of Y is the distance distribution of the code. Consider, for a while, the familiar situation where Y is a linear code of length n over the field lFq. Then ai(Y) counts the codewords of weight i, so that the inner distribution of Y coincides with its weight distribution. Recall that the orihoqonal code of Y is defined by v+ := {x E lF~ I x . Y = O}. The weight distributions of Y and v- are related by the Mac Williams identities. These are well-defined linear relations involving the Krawtchouk polynomials. As a result, the "Krawtchouk-MacWilliams transform" of the distance distribution of a linear code Y produces nonnegative real numbers, which can be interpreted as the components ak (y.L) of the distance distribution of v-. This nonnegativity result remains valid for arbitrary codes in a Hamming space, in spite of the absence of the orthogonal code concept. Moreover, as shown below, the result extends to codes in any association scheme [17]. Theorem 5 For a code Y in an association scheme (X, R), the inner distribu- tion (ai(Y))f=o of Y satisfies the MacWilliams inequality n L ai(Y)Qk(i) 2: 0, for all k E [0, n], i=O where the coefficients Qk(i) are the Q-numbers of (X, R), i.e., the coordinates of the matrices IXIEk with respect to the basis (Di)~O of the Bose-Mesner algebra. Proof Let u denote the characteristic vector of Y as a subset of X. It is the element of lR.(X) given by u(x) := 1 when x E Y and u(x) := 0 when x E X \ Y. By definition, IYlai(Y) = uT DiU. Using IXIEk = I:~o Qk(i)Di we then obtain n n i=O i=O As the idempotent matrices Ek are non-negative definite, they satisfy uT Ek u 2: 0, and this proves the MacWilliams inequality. 0 Coding theorists often are interested in a code having a specified set of ad- missible distances. (Usually, they require a code with a given designed minimum distance.) In the general framework of association schemes, this notion extends as follows. Definition 6 Let D be a subset of [1, nl. A code Y in (X, R) is called aD-code if all pairs of distinct points in Y belong to the admissible relation UiED R;_. In terms of the inner distribution, the requirement becomes ai (Y) = 0 for each iE [1,n] \D. 351 With any complex (n+ 1)-tuple (ai)~O we associate its Q-transform (bk)k=O defined in terms of the Q-numbers by bk := L:~o aiQk(i), for each k E [0, nl. Theorem 5 says that the Q-transform of an inner distribution is non-negative. For a given code Y, let (bk(Y))k=O denote the Q-transform ofthe inner distribution (ai(Y))~O. It is quite natural to introduce the following concept, which is the dual of the D-code concept. Definition 7 Let T be a subset of [1, nl. A code Y in (X, R) is called aT-design if the Q-transform of its inner distribution satisfies bk(Y) = ° for each kET. In the Hamming scheme H(n, q), a [1,t] design Y is an orthogonal array of strength t. This means that the restrietion of Y to any set of t coordinate positions shows all t-tuples of' alphabet symbols appearing the same number of times. Orthogonal arrays are closely related to resilient functions and to correla- tion immune functions which occur in some cryptography applications [8], [13], [35]. In the Johnson scheme J(v,n), a [1,t]-design is a combinatorial t-design. This is a collection of blocks of size n, out of a point set of size v, having the property that all t-subsets of the v-set are included in the same number of blocks. There is a close connection between design theory and coding theory [4], [5]. The general notions ofT-designs in the Johnson scheme J(v,n) and in the Hamming scheme H(n,q), with an arbitrary subset T of [1,n], are investigated in [ll] and [22], respectively. Definitions 6 and 7 directly give the following necessary condition. Let QD,T denote the submatrix of Q formed by the entries Qk(i) with i E D and kET. If there exists a subset Y of X that is both a D-code and a T-design then the row space of QD,T contains the ITI-tuple m-r- := (mk)kET. The argument is this. The relation aQ = b, with a:= (ai(Y))i'=o and b := (bk(Y))k=O' can be written as This yields fiT = -aDQD,T, meaning that fiT belongs to the row space of QD,T. By use of bP = IXia we obtain a dual necessary condition. Let D' .== [1, n] \ D and T' := [1,n] \ T. The same argument shows that the (n -IDI)-tuple VD' := (Vi)iED' belongs to the row space of the submatrix PT',D' of P formed by the entries Pi (k) with k E T' and i E D'. Let us denote by Ek,Y the restrietion of the irreducible idem potent matrix e; to the subset y2 of X2. Thus, Ek,Y E C(y2) with Ek,Y(Yl,Y2):= Ek(Yl,Y2) for all Yl, Y2 E Y. The following technical result will be useful in T-design theory: n where tr denotes the trace, i.e., the sum of diagonal entries. To prove the claim, we start from Ek oEI = IXI-1 L:7=oik,IEj (Section 2.4). By the argument used 352 in the proof of Theorem 5, this yields uT(Ek 0 Ez)u = IYIIXI-2 'L,]=o qJ_,zbj(Y). It then suffices to apply the relation uT (Ek 0 El)U = tr(Ek,y E[y), which is proved by straightforward computation. The inner distribution of a code is concerned with the mutual relations be- tween code points. We now introduce a concept that involves the relations be- tween a code and the whole ambient space [17]. Definition 8 The outer distribution of a code Y in an n-class association scheme (X, R) is the lXI x (n + 1') integer matrix M = (Mi(x))XEX,iE[O,n] where the (x, i) entry Mi (x) is the number of code points y E Y such that (x, y) ER.;. It is easily seen that MT M can be expressed linearly in terms of the inner distribution. Let us give the Q-transform version of this result, with a simple proof (by comparison with the original [17]). Consider the Q-transform of each row M(x) of the outer distribution M. This produces the matrix MQ, with Q := (Qk(i))i,kE[O,n]. Theorem 6 For any code Y, the Q-transform MQ of the outer distribution of Y is related to the Q-transform (bk)k=O of the inner distribution of Y by Q* MT MQ = IXIIYI diag(bo,···, bn). Proof First, (MT M)i,j = IYI 'L,;=opf",j as. By the last equation in Section 2.3, we obtain n n n n T (Q* M MQ)k,l = IYI Las L LPt,jQk(i)Qz(j) = IXIIYI (h,l L asQk(S), s=o i=O j=O s=o owing to the relation Qk(i) = Qk(i U ). Since 'L,;=o asQk(s) = bk, this is the desired result. 0 As a consequence, the rank of M is equal to the number of integers k E [0, n] such that bk i- 0. Note also that Y is a T-design (Definition 7) if and only if its outer distribution M satisfies 'L,7=0 Mi(x)Qk(i) ° = for each x E X and each k FT. Let us briefly examine two "trivial cases". First, for the set Y := X itself we have ai = Vi, bk = IXlok,O, and all rows of the outer distribution are equal to (vo,···, vn). Second, for a one-element subset Y := {xo} we have ai = Oi,O, bk = mk, and the rows of the outer distribution are the vectors (Oi,k)k=O of the canonical basis of JRn+l. More precisely, the vector of index i occurs Vi times in the matrix. 3.2 Linear progrrunming method Theorem 5 suggests using linear programming to find bounds on the size of a code characterized by some linear constraints on its inner distribution [15], 353 [17]. In particular, this method leads to upper bounds for D-codes and to lower bounds for T-designs. We assume here that (X, R) is a symmetric scheme, which implies that the P-numbers and Q-numbers are real. This entails no loss of gener- ality, because, as far as the bound problems are concerned, the given association scheme can be replaced by its symmetric closure. We shall apply the dual form ofthe linear programming problem, and use the same setting as in Theorem 5.10 of [23]. Our first result is the linear programming bound for Ir-codes (Definition 6). Theorem 7 Let a : z 1-+ a(z) be a real valued function defined on the in- teger interval [0, n], and let ao,' .. ,an denote the coefficients occurring in its Q- expansion, that is n a(z) = L akQk(z), with ak E IR for all k E [0, nl· k=O Assume that ao > 0, ak :2: 0 for each k E [1, n], and a(i) ::::;0 for each i E D. Then the size of any D-code in the symmetric scheme (X, R) is bounded from above by IYI ::::;a(O)jao. Proof Consider the real number

0, f3i :::::0 for each iE [1, n], and f3(k) ::; 0 for each k E [1, n]\T. Then the size of any T-design in the symmetric scheme (X, R) is bounded from below by IYI:::::IXIf3o/f3(O). An interesting application is the design-codesign inequality [20], dual of the clique-coclique inequality given above. The result is this. If Y is a T-design and if W is a ([1, n] \ T)-design, then IWI . IYI :::::lXI· Furthermore, IWI· IYI = lXI if and only if ai (W) . ai (Y) = 0 for all i E [1,nl. The proof is left to the reader . • Comment and exercice For the Hamming scheme, the linear programming problems relative to D-codes and T-designs are exactly the same (with T = [1, n] \ D), since this scheme is self-dual. As a down to earth introduction to the method, let us explain the details of the machinery for codes of length n := 3. We are especially interested in the code r, of size 4 and minimum distance 2, formed by the even weight binary triples. The vertices of the Hamming cube 355 can be identified with the integers 0,1, ... ,7, in the usual manner. This gives r = {O,3, 5, 6}. With the vertex v we associate the variable Xv. A given code Y, of size IYI = K, in the Hamming scheme H(3,2), is represented by numerical values given to these variables, as follows: lifVEY Xv:= { 0 if v ti Y For example, r can be defined by Xo = X3 = X5 = X6 = i and Xl = X2 = X4 = X7 = O. Note the identity 2:~=0Xv = 1, for any code Y. Next, let us introduce the vertex function (distance 0), the edge function (distance 1), the square-diagonal function (distance 2), and the cube-diagonal function (distance 3). They are quadratic forms defined by fa := x6 + xi + ... + x~ + x?, [: := 2(XOXI + XOX2 + ... + X5X7 + X6X7), 12 := 2(XOX3 + XOX5 + ... + X4X7 + X5X6), is > 2(XOX7 + XlX6 + X2X5 + X3X4). In particular, for the code r, we compute fa = i, I: = 0, 12 = £, is = O. The general definition of the quadratic forms fi (for any length n) is Ie= L XuXv, for each iE [0, nl· 8H(u,v)=i The value of fa is immediate. In effect, for a code Y of size K in H(n,2) we have fa = 2:~:~1X; = K/ K = 1/ K. Furthermore, it is clear that the minimum 2 distance of Y is at least equal to a given integer d E [1, n] if and only if h + ... + fd-l = 0 (or, equivalently, h = 0,···, fd-l = 0). The connection with the distance distribution is obvious: As a result, the "main problem of coding theory" can be presented as follows. For given values of nand d, to maximize the size K, i.e., to minimize fa (equal to 1/ K) under the constraints 2:v>o Xv = 1 and [: + ... + fd-l = O. Each variable Xv can assume only two values. More precisely, Xv = 0 or Xv = c, where c is a positive constant (independent of v). It is easily seen that the condition Xv E {O,c} is equivalent to x., 2': O. This means that our optimization problem can be stated as follows: (1) minimize fa under the constraints Xv 2': 0, 2:xv = 1, and h + ... + fd-l = O. Let Al denote the minimum value of fa for this problem. The size of any code with designed distance d satisfies K ::S I/Al' This bound is sharp, in the sense that the maximal size of the codes under consideration is equal to I/Al' The real difficulty of our optimization problem (1) lies in the constraints x; 2': O. We 356 decide to replace them by the weaker constraints Ji 2: O. Here is the resulting problem: (2) minimize Jo under the constraints LXv = 1, and Ji 2: 0, h = 0,'" ,Jd-l = 0. Let Az denote the minimum value of Jo for the relaxed problem (2). Since Az :::; Al we obtain the upper bound K :::;I/Az for the size K of every code with designed distance d. Problem (2) has 2n variables and involves quadratic constraints. We shall see that it reduces to a linear programming problem in n variables. Let us introduce the normalized functions ai := Ji/ Jo, for i E [0, nl. This gives ao = 1. The constraints of the problem imply ~ 2: °and al = ... = ad-l = 0. Within the normalizing factor Jo, the functions ai are quadratic forms in the variables Xv. It can be shown that ·there exist n + 1 well-defined linearly independent nonnegative definite quadratic Jorms Jobo, ... ,Jobn that are linear combinations of the quadratic forms Joao,' ", Joan. In the case n = 3, they are given by bo := ao + al + az + a3, b: := 3ao + al - a2 - 3a3, bz := 3ao - al - a2 + 3a3, b3 := ao - al + a2 - a3· In particular, Jobo = (xo + ... + X7)2 = 1. Straightforward computation shows that JObl=(xo - Xl + X2 - X3 + X4 - X5 + X6 - X7)2 +(xo + Xl - X2 - X3 + X4 + X5 - X6 - X7)2 +(xo + Xl + X2 + X3 - X4 - X5 - X6 - X7)2. Hence, JObl is non-negative definite. There exist similar formulas for b2 and b3. In general, the relevant linear combinations are given by the Q-transJorm, i.e., in the present situation, by the Krawtchouk transform (see Section 3.1). This means that bk = LZ:oaiQk(i), for each k E [O,n]. In particular, bo = L~=oai. Our analysis leads us to a third optimization problem, of the standard linear programming type: (3) maximize bo under the constraints ao = 1, ai 2: 0, al = ... = ad-l = 0, and bk 2: 0. Let B be the maximum value of bo for the linear programming problem (3). Since bo = I/Jo, we obtain 1/ B :::;A2' whence K :::;B for any code of size K and minimum distance d. More precisely, we have 1/ B = A2. This is due to the fact that any feasible program for problem (3) yields a feasible program for problem (2). The linear programming problem (3) is the primal form of the problem treated in the beginning of this section, concerning the case of [d, n]-codes in the Hamming scheme H(n,2). This means that B is equal to the minimum value of a(O)/ao in the situation of Theorem 7. A detailed verification of the 357 preceding statements is left to the reader. The required technical information can be found in Sections 2.2 and 2.3. See also [19]. Let us complete our example, in which n = 3 and d = 2. The linear program- ming problem (3), in the variables a2 and a3, is quite simple: maximize bo := 1 + a2 + a3 under the constraints a2 2: 0, a3 2: 0; and bl := 3 - a2 - 3a3 2: 0, bz := 3 - a2 + 3a3 2: 0, bs := 1 + a2 - a3 2: 0. There is a unique maximal solution, given bya2 = 3 and a3 = 0. As expected, the result is K :::;4, which proves optimality of the code r. The Krawtchouk trans- form ofthe four-tuple (aO,al,a2,a3) = (1,0,3,0) is found to be (bo,bl,b2,b3) = (4,0,0,4). Simple computation shows that exactly two eight-tuples (xo, ... ,X7) are consistent with the numbers bk in question. They correspond to the even weight code r = {O,3, 5, 6} and to its complement, the odd weight code r = {I, 2, 4, 7}. Let us stress the fact that such a situation is quite exceptional. In general, the relaxed problem (2) in the variables Xv admits an infinite set of optimal solutions. The best one can hope is that this set contain at least a non- ° negative program (xv 2: for all v), so that the linear programming bound of problem 3 (and Theorem 7) is actually achieved by a code. This is far from being always true. In our example where n = 3 and d = 2, i.e., D = {2,3}, the dual linear programming problem of Theorem 7 has an infinite number of optimal solutions, with the normalization ao = 1. They are given by the polynomials with ~ :::;al :::;1. Note the properties a3 = ° and a(2) = 0, resulting from b3 =1= ° and a2 =1= o. 3.3 Codes in a P-polynomial scheme Les us introduce some notation. For an (n+ 1)-tuple c = (eo,···, cn) E JR.n+l, the integers u(c) and w(c), which might be called the strength of c and the weight of c, are given by u(c) := largest jE [0, n] with Cl = ... = Cj = 0, w(c) := I{i E [0, n]1 Ci =1= O]]. We consider an n-class P-polynomial scheme (X, R). It corresponds to a well-defined distance function 8: X2 f-+ [0, n] in such a way that R; = {(x, y) E X21 8(x, y) = i} for each i E [0, nl. Let Y be a code in (X, R). From the inner distribution a = (ao,··· ,an) of Y and its Q-transform b := aQ = (bo,· '., bn) we define two important parameters [16], [17]. Definition 9 (1) The minimum distance of Y is d := u(a) + 1. It is equal to the largest integer i E [1, n + 1] such that al = ... = ai-l = 0. (2) The dual degree of Y is r := w(b) - 1. It is equal to the number of integers k E [1, n] such that bk =1= 0. 358 The minimum distance is the smallest value of 8(Yl, Y2) for distinct code points Yl, Y2 E Y. As shown by Theorem 6, the dual degree plus one equals the rank of the outer distribution. Recall two classical notions. The packing radius of Y is e := L (d - 1)/2 J. The covering radius ofY is p := max{8(x, Y) I x E X}, with 8(x, Y) := min{8(x, y) lyE Y}. Clearly, e ::;p. Equality e = p holds if and only if Y is a perfect code. This means that the spheres {x E XIO::; 8(x,y)::; e} of radius e centered at the code points Y E Y form a partition of X. By use of the P-polynomial assumption we can prove the following inequality: w(cQ) ~ 1 + Lu(c)/2J, for all cE JRn+l with Co #- 0. This is slightly stronger than Theorem 5.5 in [17], but the proof is essentially the same. As an application, we obtain e ::;r . It can be shown that e = r if and only if Y is a perfect code. Furthermore, any code Y with parameters d and r satisfies e r i=O i=O The left inequality is the sphere packing bound. If either the upper bound or the lower bound is achieved, then so is the other. This happens if and only if Y is a perfect code [17]. Interesting information on a code Y is provided by its P-minimal polynomial, defined by where (bo,· .. ,bn) is the Q-transform of the inner distribution, and where the numbers f.k are those occurring in Definition 3. Let M = [Mo ... Mn] denote the outer distribution of Y (Definition 8). The last n - r columns of M can be determined from the first r columns, in terms of the inner distribution. More precisely, each column of M is a linear combination of the all-one vector j and the columns Mo,· .. ,Mr-l' with coefficients computable from the P-minimal poly- nomial. In particular, M; can be obtained as follows. Consider the P-expansion .e; B(z) = 2:::;=0 /3ii(Z), with /30,··· ER Then we have Since f3r #- 0, this expresses M; as a well-defined linear combination of j, Mo,···,Mr-l· A remarkable consequence is the upper bound p ::; r on the covering radius p, in terms of the dual degree r (see [16], [17]). The same method allows us to obtain an interesting result about completely regular codes, defined as follows. 359 Definition 10 A code Y in a P-polynomial scheme is said to be completely regular if the rows of its outer distribution depend only on the distance between x and Y, for all x EX. As an illustration, consider the set Y consisting of all binary (2m)-tuples of weight m. The outer distribution of Y with respect to the Hamming scheme is given by Mi(x) = pf,m for each x E {O, 1}2m such that WH(X) = k. In this case, OH(X, Y) = Im-kl. We see that pf m = p;r;:.-k. Therefore, the row M(x) depends only on the distance OH(X, Y). A~ a conclusion, Y is a completely regular code in the Hamming scheme H(2m, 2). To prove that a code Y of dual degree r is completely regular, it suffices to show that the r-tuple (Mo(x),···, Mr-1(x)) depends only on the distance o(x, Y). As a consequence, if d ~ 2r -1 then Y is completely regular [17]. The result applies to perfect codes, since they are characterized by d = 2r + 1. In this case, the P-minimal polynomial simply is the sum 2::=0 q>i(Z). Thus, all coefficients fJi in the P-expansion are equal to 1. This is the Lloyd theorem for perfect codes in a P -polynomial scheme. It is a special case of the following result [17]. If d - 1 ~ r then fJo = ... = fJd-1-r = l. Note that if Y is completely regular then its covering radius p is equal to its dual degree r. Let M denote the "reduced outer distribution", consisting of the distinct rows of the outer distribution M. If Y is a completely regular code of dual degree r , then M contains r + 1 rows. Furthermore, t.he square submatrix of M built on the first r + 1 columns is a nonsingular upper triangular matrix (for an appropriate numbering of the rows). This property exactly characterizes what we have called complete regularity. As an example, consider the binary Golay code Y. It is a linear code of length n = 23, dimension 12 (size IYI = 212) and minimum distance d = 7. The orthogonal code Y j_ has three nonzero weights, which are 8, 12 and 16. Hence, r = 3. Since e = 3, this shows that Y is perfect. Hence, Y is completely regular. The P-minimal polynomial and its Krawtchouk expansion are B(z) := 2 11 (1 - ~) (1 - t2) (1 - 1 6) = Ho(z) + Hl (z) + H (z) + H (z). Z 2 3 From these data we can compute the whole outer distribution M of Y. The following table gives the entries Mi(X) for i E [0,11] and x E X := lF~3. The column labelled # contains the occurrence numbers of the different rows. OH(X, Y) 0123 4 5 6 7 8 9 10 11 # 0 1 253506 1288 1 1 1 77 176 176 330 616 672 23 2 1 21 fin 11? ?40 400 546 672 253 3 15 1648120240400560 658 1771 The columns of indices i E [12,23] can be obtained by symmetry: Mi(x) = M23-i(X). Next, let us examine the expurgated binary Golay code Yo, containing the even weight codewords in Y. We know that Yo = v-. The main parameters 360 are do = 8 and ro = 7, In effect, the orthogonal code Yl= Y has seven nonzero weights, 7,8,11,12,15,16 and 23, As a result, the covering radius of Yo is bounded by Po :::; 7, In fact, it is easily seen that the bound is sharp, Le., Po = 7. The following table gives the entries Mo,i(x) of the outer distribution Mo of Yo for i E [0,11J and X E lF~3. The last column contains the occurrence numbers. BH(x, Yo) 012345 6 7 8 9 10 11 # 0 1 506 1 1 1 176 330 672 23 2 1 56 240 546 253 3 1 16 120 400 658 1771 4 5 48 240 560 1771 5 21 112 400 672 253 6 77 176 616 23 7 253 1288 1 No extra computation is required. In fact, M« can be deduced from M by a splitting operation that separates the even weight and odd weight contributions. Conversely, M results from Mo by folding it along the horizontal mid line ..This can be deduced from the even/odd coset decomposition Y = YoU(Y\Yo). Details are omitted. The result can be checked (partially) as follows. Using the relation /3o,oMo + ... + /30,7M7 = j allows us to determine the columns MO,6 and Mo,7 of Mo from the preceding columns. The required coefficients /30,i are obtained from the Krawtchouk expansion of the P-minimal polynomial Bo(z), that is 7 3 Nil' This gives /30,0 = I, /30,1 = 2 3' /30,2 = 1 1' /30,3 = 2 /30,4 = 3 :5' /30,5 = 1i~l' /30,6 = A, /30,7 = 2~3' We observe that Yo is completely regular, although do = 8 < 13 = 2ro - 1. The sufficient condition d 2: 2r - 1 for complete regularity can be weakened slightly, under an appropriate assumption, in the following manner. Theorem 9 Let Y be a code of dual degree r in a P-polynomial scheme such that p;rr-=-21= O. If the minimum distance of Y is d = 2r - 2 and if ad+1 (Y) = 0 (i.e., if'y is a {d,d+ 2,'" ,n}-code), then Y is completely regular. Proof We use the outer distribution M of Y. Let xo, Xl and X2 be any elements of X such that B(xo, Y) = r - 2, B(X1, Y) = r - 1 and B(X2, Y) = r . From d = 2r - 2 it follows that Mr-2(xo) = 1 and Mr-1(xo) = O. Next, we verify that Mr(xd = O. Suppose this is false, i.e., B(yo, Xl) = r for a certain Yo E Y. Since B( Xl, Y) = r - 1, there exists a point Y1 E Y such that B( Xl, Y1) = r - 1. Hence, by the triangle inequality, 1 :::;B(yo, Y1) :::;r + (r - 1) = 2r - 1. As p;rr-=-21= 0 and d = 2r - 2, the only possibility is B(yo, Y1) = 2r - I, which contradiets our 361 assumption a2r-l(Y) = O. As a result, the "critical submatrix" MC of M built on the rows xo, Xl, X2 and the columns r - 2, r - 1, r isthe following: Consider the P-minimal polynomial B(z) and its Krawtchouk expansion B(z) = L~=o.8i"kEk,y = 0, for some >"0,"', >"s E JR, and define the polynomial G(z) := 2::~=0 >"kl]ik(Z). We have VG = 0, i.e., 2::~=0 G('T}i)Di,y = 0. Hence, G(T/i) = 0 for the s + 1 indices i with Di,Y i= O. Since rl~e; GC,) ::::s, this implies G(z) = O. As a consequence, >"0 = ... = >"s = 0, which proves the claim. Let A(z) be the Q-minimal polynomial of the design Y. Consider its Q- expansion, that is A(z) = L~=o akl]idz), with ao,"', as E R We obtain VA = IXI2::~=o akEk,y. Since VA = L~o A(T/i)Di,y = A(O)Do,y = Wil, the conclusion is aoEo,y + alEl,y + ... + asEs,y = WIIXI-l I, This can be viewed as a dual of the relation 2:::"=0 {3iMi = j in Section 3.3. Finally, we introduce the notion of a completely graded design, which occurs as the formal dual of the notion of a completely regular code (Definition 10). Let us denote by Ry the set consisting of the s + 1 nonempty relations R; n y2 (those with ai(Y) i= 0). The pair (Y, Ry) is called the restrietion of (X, R) to Y. 364 Definition 12 A design Y in a Q-polynomial scheme (X, R) is said to be com- pletely graded if the restrietion (Y, Ry) is a Q-polynomial scheme with respect to the numbers 'T}i such that ai(Y) i=- 0, in the sense of Definition 3. Assuming that Y is completely graded, let Qy denote the Q matrix of the "induced subscheme" (Y, Ry). There exists an upper triangular matrix U, with nonzero diagonal entries, such that Qy = Q>-',JLU, where Q>-',JL is the square submatrix of Q built on the rows i E [0, n] such that ai(Y) i=- 0 and on the columns k E [0, s]. Recall that the presence of an upper triangular matrix also characterizes a completely regular code. This is a first indication of the duality alluded to above. The question of induced subschemes (X, Ry) of a translation scheme is examined in Section 3.6. A good reason for considering completely regular codes and completely graded designs as dual notions is explained in Section 3.7. Here is a simple example, important from a theoretical viewpoint. For integers m and n, with 1 ::; m ::::;ln/2 J, define Y as the set of binary n-tuples of weight m. Then Y is a completely graded design in the Hamming scheme H(n, 2); it induces the Johnson scheme J(n, m). The Q polynomials relative to this scheme are certain Hahn polynomials. By definition, the entries of the matrix U mentioned above are the coefficients occurring in the Krawtchouk expansion of these Hahn polynomials. The coefficients in question are non-negative, and this has some interesting consequences [21]. It can be shown that if t 2: 2s - 2 then (Y, Ry) is a completely graded design [17]. This is a dual of a result mentioned in Section 3.3 about completely regular codes in a P-polynomial scheme. A complement is provided by the following result, which is the exact dual of Theorem 9. The proof is similar to but more subtle than that of Theorem 5.25 and Corollary 5.26 in [17]. See also Theorem 7.4 in [23]. Theorem 11 Let Y be a design of degree s in a Q-polynomial scheme such that = O. If the maximum strength of Y is t = 2s - 3 and if bt+2(Y) = 0 (i.e, q;ss-=..21 if'y is a {I, ... , t, t + 2}-design), then Y is completely graded. Proof We shall prove that the vector space Ay := {Ay IA E A} is closed under matrix multiplication, which implies that Y induces a subscheme of (X, R), having Ay as its Bose-Mesner algebra (see Section 2.2). Consider the matrices Ek,y E Ay, obtained by restricting the irreducible idempotents Ek of A to the set y2. As shown in [17], the t-design property can be expressed by the equations Since t = 2s - 3, this implies that the matrices Eo,y,"', ES-2,y generate a multiplicatively closed (s - 1)-dimensional subspace of Ay. More precisely, (IXIIYI-1 Ek,y )~:~ is a basis of mutually orthogonal idempotents for this sub- space. To obtain the full dimension, we need to extend the basis by two additional terms. The first one will be ES-l,y, We have seen that Ek,yEs-1,y = 0 for all 365 k E [0,8 - 2]. Our next objective is to prove that Es-1,y is proportional to an idempotent matrix. Applying a formula given in Section 3.1, we have 2s-1 tr(Es,y ES-1,y) = IYIIXI-2 L q~,S-1 bdY) = 0, k=1 = 0 and bk(Y) = 0 for all k E {1,···, 28 - in view of the assumptions q;ss·::_21 3,28 - I}. Since Es,y and Es':'1,y are nonnegative definite symmetric matrices, this implies Es,yEs-1,y = O. (Details are left to the reader.) Next, we use the relation s-1 asEs,y = IYIIXI-1 1- L akEk,Y. k=O Multiplying to the right by ES-1,y gives 0 = asEs,yEs-1,y = IYIIXI-1 Es-1,y- aS-1E;_1,y, 1 whence E;_1,Y = a_;-":11Y1IXI-ES-1,Y. This proves the claim. We have exhibited an s-tuple (Ey,o,·· ., EY,s-1) of nonzero pairwise orthog- onal idempotent matrices belonging to Ay, with the definition EY,k := IXIIYI-1 Ek,y for k E [0,8- 2], Let us complement this s-tuple by the matrix By,s := I - L~:~ EY,k. Note first that Ey,s I- o. Indeed, in the opposite situation, i.e, L~:~ EY,k = I, rnultipli- cation to the left by Es,y would give 0 = Es,y, which is false. Next, we obtain Ey,sEY,k = EY,k - EY,k = 0 for all k E [0,8 - 1], whence E'{-,s = Ey,s. As a conclusion, the 8 + 1 matrices Ey,o,·· ., Ey,s form a basis of pairwise orthogonal idempotents of the space Ay. Therefore, Ay is closed under multiplication, so that (Y, Ry) is an s-class association scheme. In addition, the argument shows that the induced subscheme (Y, Ry) is Q- polynomial with respect to the 8 + 1 numbers 7]i such that Di,y I- 0 (i.e., ai(Y) I- 0). The appropriate polynomials !lty,k(Z) are given by !lty,k(Z) = !ltk(z) for k E [0,8 - 2], !lty,s-1(Z) = as-1!lts-1(Z), and !lty,s(z) = A(z) - L~::::'~!Jik(Z) - us-1!lts-1(Z). This completes the proof. D It is known that ao = ... = Qs-3 = 1. Therefore, !lty,s(z) = as!lts(z)+(as-2- 1)!lts_2(z). This allows us to write the triangular relation between Qy and Q)..,I-' in the simple form Q = Q. IS-2 1 0 as-2 -1 1 . y )..,1-' 0 OIs~1 0 [ o 0 as There is a perfect correspondence with the critical matrix MC in the proof of Theorem 9. The roles of the P-minimal and Q-minimal polynomials are simply interchanged. In the case of translation schemes, the duality is fully explained by Theorem 16 below. 366 A Q-polynomial scheme will be said to be Q-even when its Krein parameters satisfy qJ. I = 0 for al! k, l, j such that k + 1 - j is odd. A sufficient condition is l1i,j= 0 for al! j. The assumption q;:s-=..21 in Theorem 11 is always true in the even case. In particular, the binary Hamming scheme H(n, 2) is Q-even. As an application, consider a Kerdock code K, in the wide sense, i.e, a formal dual of a Preparata code (see [28]). The parameters are t = 5 and s = 4. Theorem 11 applies and shows that K is completely graded. 3.5 Additive codes in a translation scheme Recal! that a translation scheme (X, +, R) is an association scheme (X, R) for which the point set X has a given Abelian group structure (X, +), with the property that al! relations ft; in R are invariant under that group (Definition 4). As an extension of the usual notion of a linear code over a finite field, in a Hamming scheme, we introduce additive codes in a translation scheme [17], [21]. Definition 13 A code Y in a translation scheme (X, +, R) is said to be additive if Y is a subgroup of the underlying Abelian group (X, +). Let (ai)i'=O be the inner distribution of an additive code Y (Definition 5). Since ft; = {(x, Y) E X2 I x - Y E Xi}, we see that ai counts the code points belonging to the block X; in the partition IJ. Formally, ai = ai(Y) = IY n Xii, for iE [0, nl· Next, we extend the notion of the orthogonal code of a linear code in a Hamming scheme, using the term "annihilator code" borrowed from linear space theory. Definition 14 Let Y be an additive code in a translation scheme (X, +, R). The annihilator of Y is the code yo in the dual translation scheme (X', +, R') defined by yo := {x' EX'I (X,X') = 1 for all xE Y}. The character group Y' of Y is related to the annihilator yo by Y' = X' IYo (the group of coset codes x' + yo with x' E X'). This implies IYI IYol = lXI. As a consequence of the orthogonality relation on group characters we obtain a useful result: """' I { IYI if x' E v- ~ (x, x ) =- 0 if x' E X' \ yo xEY When Y is a linear code of length n over IFq, the annihilator of Y with respect to the natural group structure (IF~,+) is the usual orthogonal code Y +. More generally, the notation yo might be replaced by Y _l in the case of a selfdual translation scheme. The next result produces a clear interpretation of Theorem 5 in the restricted framework of additive codes [17], [21]. It is a generalization of the Mac Williams identities. 367 Theorem 12 The inner distribution (a~(yo ))/~=o of v-, with a~ (YO) := lYo n X~ I, is proportional to the Q-transform of the inner distribution (ai (Y) )~o of Y. More precisely, For an additive code Y, the outer distribution M reduces to the collection of coset distributions with respect to the partition IJ = {Xo,'" ,Xn}. This means that Mi(x) = I(x + Y) n Xii, for x E X and iE [0, nl. We are now in a position to compute the Q-transform of the outer distribution, thus giving a new insight on the result of Theorem 6, in the special case of additive codes. Theorem 13 The Q-transform of a coset distribution is given by the formula n / LMi(x)Qdi) = IYI L (x,x ), with x E X and k E [O,n]. i=O Proof Let us compute the sum O"k(X) := I:yEY I:x'EX~ (x + y, x'). First, n / L (x + y,x ) i=O yEY, x+yEXi x'EX~ n n =L i=O yEY, x+yEXi i=O We have used I:X'EX' (z, x') = Qk(i) for zE X, (end of Section 2.7). Next, apply not. This yields k (x + y, x') = (x, X/)(y, x') and I:yEY(y, x') = IYI or ° according as x' E yo or O"k(X)= L (x,x/)L(y,x/)=IYI L (X,X/). x'EX~ yEY Equating both expressions and using Mi(X) = l(x+Y)nXil we obtain the result. D There is a dual version of Theorem 13. For the annihilator code yo c X' we define the coset distribution, relative to a given character x' E X', as the (n+ 1)- tuple M'(X') := (MÓ(X/),···, Mn(x/)) where Mk(x/) := I(-x' + ye) nX~I. Thus, M'(X') is the x'-row of the outer distribution M' of ye. The P-transform of a coset distribution of yo is given by n LMk(X/)Pi(k)=lYol L (x,x/), withx/EX'andiE[O,n]. k=O xEYnXi Note also that Theorem 12 is a special case of Theorem 13. In effect, if x E Y then Mi(x) = ai(Y) and I:x'EYOnX~ (x, x') = lYo n X~I = a~(Y°). 368 3.6 Induced subschemcs and quotient schemes Consider an additive code Y in a translation scheme (X, +, R). With respect to the partition IJ = {Xo,···, Xn} of X, define the set Yi := Y n Xi, for each i E [0, nl. Let us denote by io, il,· .. , is the distinct indices i such that Yi i- 0. The integer s is called the degree of Y (as in Definition 11). We are interested in the structure (Y, +, Ry) obtained by restricting the relations 14 to Y. This means that Ry := {y2 n 140, ••. , y2 n 14s}. Note that y2 n 14 = 14,y := {(Yb Y2) E y2 I Yl - Y2 E Yi}. Our main interest is to discover the conditions under which (Y, +, Ry) is a translation scheme and, in this case, to describe the dual scheme (see Theorem 3). We shall use the following terminology. Definition 15 If (Y, Ry) is an s-class association scheme, then the correspond- ing translation scheme (Y, +, Ry), with respect to the subgroup (Y, +) of (X, +), is called the subscheme of (X, +, R) induced by Y. The solution to the main problem is provided by the next theorem [17]. It involves the outer distribution M' = (M~(x'))x'Ex',kE[O,nl of the annihilator code ye. Theorem 14 If Y is an additive code of degree s in a translation scheme, then (1) the number of distinct rows of the outer distribution M' is at least equal to s + 1, and it is equal to s + 1 if and only if Y induces a subscheme; (2) if (Y, +, Ry) is a translation scheme, then the dual scheme (Y', +, R*), with R * = {Rü, ... , R;}, is obtained as follows: a coset pair (x~ + Y", x; + Y") belongs to a given relation Rj if and only the difference coset x~- x; +yo has a fixed distribution M' (x~ - x;), among the s + 1 distinct coset distributions. Proof We apply the dual version of Theorem 13. In the formula, a character x' can be replaced by any element of its coset x' + Y". In other words, we can interpret x' as an element of the quotient group X' IYo = Y' (the dual of Y). This allows us to write n LM~(-y')Pi(k) = lYolfi(Y'), where h(y'):= L (-y,y'), k=O yEYi as in Section 2.7. Equivalently, IYI MH -y') = L~=oh(y')Qdi). Note that h(y') = 0 if i fj {io,· .. , is}. As a result, there is a bijeetion between the dis- tinct (s + 1)-tuples feY') := Uio(y'),···, li.(y')) and the distinct rows M'(y') = (Mó(y'),···, M~(y')) of the outer distribution M'. Hence, statement (1) follows from Theorem 2. In view of Theorem 3, to prove statement (2) it suffices to observe that the fibers of the function f : Y' t----> Cs+! : y' t----> feY') exactly are the classes of characters y' E Y' giving a fixed coset distribution M' (-y'). The connection with the dual relations Rj is as follows. Let ej denote a coset distribution, 369 corresponding to the fiber Yj = {yl E yl I MI(yl) = Cj} of f. Then (x~ + Y", x; + ye) ER; if and only if MI(X~ - x;) = Cj. D In view of Theorem 6, the first part of Theorem 14 can be stated as follows. (1) * The code Y induces a su bscheme if and only if the distinct rows of the outer distribution MI of yo are linearly independent. The second part asserts the existence of the translation scheme (XI jYo, +, R*), with some well-defined relations R;. By duality, there is a similar result for the quotient group XjY, instead of XI [Y", Let us examine the details. Clearly, the row M (x) = (Mo (x), ... , Mn (x)) of the outer distribution of Y depends only on the coset [xl := x + Y that contains x. For a given [xl E XjY we shall use the notation M([x]) := M(x), where x is any element of [xl. Let Co,"', cp denote the different coset distributions. Thus, M([x]) E {co,, .. ,cp}, for each [xl E XjY. In particular, Co = M(Y) = M([O]) = a, the inner distribution of Y. Consider the partition tt of XjY defined by the coset distributions, that is IJ .- {~ o __ ~o, ••• ~ } ,~p, _ with e, := {[xl E XjY I M([x]) = c.}. From it we construct the partition ft := {Ro," " Rp} of (XjY)2 formed by the translation invariant relations k, := {([x], [y]) E (Xjy)2 I [xl- [yl E Ej}. This leads us directly to the concept of a coset scheme. Definition 16 Let Y be an additive code in the translation scheme (X, +, R). If the combinatorial structure (XjY, R) is an association scheme, then the trans- lation scheme (XjY, +, R) is called the coset scheme of Yin X. Theorem 14 says that the notion of a coset scheme is dual to that of an induced subscheme, in some sense. More precisely, if the annihilator yo of Y in- duces an r-class subscheme of (XI, RI), then (XjY, R) is an r-class coset scheme, and the translation schemes (Y", +, R'yo) and (XjY, +, ft) are dual of each other. By definition, the class number r is the degree of Y". Theorem 12 shows that r equals the dual degree of Y, i.e, the number of indices k E [1,nl such that b» =1=° (see Definition 9). Our next objective is to determine the Q matrix of the coset scheme. As we shall see, this matrix is proportional to the Q-transform of the outer distribution, roughly speaking. In other words, it is proportional to the Q matrix of the ambient scheme (X, R) filtered by the outer distribution of Y. Theorem 15 Assume that the number of distinct coset distributions of Y is equal to r + 1, where r is the dual degree of Y, implying that (XjY, ft) is an r-class association scheme. The Q-numbers CJk(j) of this coset scheme, labelled with the integers j E [0, rl and t.he integers k E [0,nl such that bk(Y) =1= 0, are given by n Qk(j) = 1Y1-1 L Mi([x])Qk(i), for any [xl E XjY with M([x]) = Cj. i=O 370 Proof In the formula of Theorem 13, we can replace each point x by the element [x] := x + Y of the quotient group S := XjY. Since yo = S', this allows us to write n L Mi([x])Qk(i) = IYI L ([x], ('), for all [x] ES, where S~ := S' n X~. i=O Note that IS~I= a~(YO) = IYI-1bk(Y). Let CO,'" ,Cr denote the different coset distributions M([x]). As shown in Section 2.7, the Q-numbers Qk(j) ofthe coset scheme are given by Qk(j) = Lç/E'=:~ ([x], ('), with [x] E e., i.e., M([x]) = Cj. Here we assume S~ of. 0, which means that bk(Y) of. O. This proves the theorem. D Let us now derive an explicit formula for the corresponding P matrix, denoted by F. The equation in Theorem 15 can be written as [Q Or+1,n-r] = 1Y1-1 MQ, where M consists of the r + 1 distinct rows of M, and Q is obtained from Q by column permutation. The first r + 1 columns of Q are the columns Qk of Q such that bk of. O. Multiply this equation to the left by F and to the right by P (deduced from P by row permutation). The result is [Ir+1 Or+1,n-r]P = FM. Let Ms denote any nonsingular square submatrix of order r + 1 of M, and let P-y,ó be the square submatrix of P built on the first r + 1 rows and on the r + 1 columns with the same labels as in Mó. We obtain the formula - -1 whence P = P-y,ó Mó . 3.7 Completely regular codes and completely graded designs Consider a P-polynomial translation scheme (X, +, R). Let Y be an additive code in this scheme. We assume that Y is completely regular (Definition 10). This implies that the distinct rows of the outer distribution are in echelon form. Hence, they are linearly independent. From the dual version of Theorem 14 it then follows that the annihilator de- sign yo of Y induces an r-class subscheme of the Q-polynomial scheme (X', R'). As we know, the dual of this subscheme is the r-class coset scheme (XjY, ft). Now, such a coset scheme is P-polynomial, with respect to the numbers ~k such that bk of. 0 (see Definition 3). This is a consequence of the last result in Section 3.6. We argue as follows. Let Mó denote the square submatrix of order r + 1 of the "reduced outer distribution" M. It appears that Mó is upper triangular, with nonzero diagonal entries. The inverse matrix M,51 has the same property. This allows us to write for each i E [0, r] and each k E [0, n] such that bk of. O. Here, ÀO,i,"', Ài,i are well-defined real numbers, with Ài,i of. O. This proves the claim. The fact that the coset scheme (XjY, R) is P-polynomial is also obtainable as a consequence of Theorem 11.1.6 by Brouwer, Cohen and Neumaier [10]. 371 The result can be understood as follows. Let 8 denote the distance function underlying the P-polynomial scheme (X, R). Define the function ä : (Xjy)2 --+ [O,n] by ä([XI], [X2]):= min 8(XI + YI, X2 + Y2), with [Xi] := Xi + Y. Yl,Y2EY Clearly, ä([XI], [X2]) = 8(XI - X2, Y), the minimum distance between Xl - X2 and the code Y. Simple verification shows that ä is a distance function. More precisely, it can be shown that ä is the shortest path distance in a well-defined graph. This implies that the relations k, of the coeet scheme are k, = {([Xl], [X2]) E (Xjy)2 I 8(XI - X2, Y) = j}, for all jE [0, r]. Therefore, (XjY, R) is P-polynomial (see Section 2.5). Note that we have further information: the coset scheme is P-polynomial with respect to the r + 1 numbers Çk such that bk i=- o. Conversely, assume that, for a given additive code Y of degree r , the coset structure (XjY, R) is an r-class P-polynomial scheme with respect to the num- bers Çk in question. Then Y is completely regular [10]. This can be deduced from the formula P'"'f,Ö = P Mö, by the following argument. Let P'"'f,Ö be the square submatrix of order r + 1 of P built on the rows of indices k E [0, n] with bk i=- ° and on the columns of indices i E [0, r]. Our assumption concerning Y implies the existence of a matrix relation of the form where ka = 0, kl," " k; are the row indices in question. This shows that the matrix Mö := p-Ip'"'f,Ö is upper-triangular and has nonzero diagonal entries. By definition, Mö is the square submatrix of M formed by its first r + 1 columns. As a conclusion, the code Y is completely regular. We are now in a position to show that completely regular codes and com- pletely graded designs correspond to each other by duality, in the sense of trans- lation scheme theory. The following result is given by Camion, Courteau and Montpetit [14]. Theorem 16 An additive code Y in a P-polynomial translation scheme is com- pletely regular if and only if its annihilator design yo is completely graded. The coset scheme (XjY, +, ft) and the induced subscheme (Y", +, R~o) are dual of each other. Proof Assume first that Y is completely regular. Then the number of distinct rows of the outer distribution is equal to the dual degree. This means that yo induces a subscheme of (X', R'). It is the dual of the coset scheme (XjY, R). Since the latter is P-polynomial with respect to the numbers Çk such that bk i=- 0, 372 the induced subscheme (Y", R'yo) is Q-polynomial with respect to the same numbers. As bk(Y) is proportional to a~(YO), this implies that the design yo is completely graded (see Definition 12). Conversely, assume that yo is completely graded. By duality, (XjY, ft) is an r-class P-polynomial scheme with respect to the numbers ~k such that bk #- o. Therefore, Y is completely regular. 0 There is a dual version of Theorem 16, stated as follows. An additive design Y in a Q-polynomial translation scheme is completely graded if and only if its annihilator code yo is completely regular. The induced subscheme (Y, +, Ry) and the coset scheme (X' [Y'", +, R*) are dual of each other. Recall that these association schemes are Q-polynomial and P-polynomial, respectively. Let us again examine the perfect binary Golay code Y (see Section 3.3). Its four parameters are d = 7, r = 3, s = 7, t = 7. The annihilator design yo is the orthogonal code y..L, i.e., the expurgated Golay code. We know that Y is completely regular. The P matrix and the Q matrix of the coset scheme (XjY, ft) are 1 23 253 17711 1 506 1288 2531 1 7 13 -21 - 1 154 -56 -99 Q = 1 26 -56 29 [ 1 -1 -11 11 [ 1 -9 29 -21 1 -6 8-3 As a verification, we observe that the first row of Q gives the weight distribution er v-. Next, consider the code y..L instead of Y. Its parameters are d' = 8, r' = 7, s' = 3, t' = 6. We know that v- is completely regular. Therefore, (XjY..L, ft) is a 7-class P-polynomial scheme. Details about this coset scheme are given in [10]. Note that it is a P-even scheme (end of Section 3.4). The Golay code Y is completely graded in the Hamming scheme H(23,2); it induces a 7-class Q- polynomial subscheme with respect to the numbers 0,7,8,11,12,15,16,23. The P matrix and the Q matrix of the coset scheme are 1 23 253 1771 1771 253 23 1 253 506 1288 1288 506 253 1 9 29 21 -21 -29 -9 -1 1 99 154 56 -56 -154 -99 -1 1 7 -13 -21 -21 13 7 1 1 29 26 -56 -56 26 29 1 -11 -11 11 11 -1 -1 3 -6 -8 8 6 -3 -1 F= -1 -11 11 11 -11 -1 -1 Q= -3 -6 8 8 -6 -3 1 1 -7 13 21 -21 -13 7 -1 -29 26 56 -56 -26 29 -1 -9 29 -21 -21 29 -9 1 -99 154 -56 -56 154 -99 -23 253 1771 1771 -253 23 -1 1 -253 506 -1288 1288 -506 253 -1 We have computed F as the product F = p-y,oM-;I. Here, P-y,o is given in terms of the Krawtchouk polynomials Hi(z) of "length" 23 by P-y,o = (Hi(k))k,i with i E [0,7] and k E {O,7, 8,11,12,15,16, 23}. As to the matrix M-;I, it is available 373 from the second example in Section 3.3. The result is 1 16 1 -23 56 1 -77 16 104 M-Ó 1_ _ 1 -21 - 579 1 48 5 1 -385 16 21 -759 1 77 1 253 Thus, we have obtained the expansion of the P-polynomials Fi(z) in the basis formed by the Krawtchouk polynomials. For instance, - 1 ~ 00 P6(Z) = 77 H6(z) - 385 H4(z) - 77 H2(z). Consider the two-element code Y := {[O],[IJ} in the P-polynomial coset scheme (X/Y, R) relative to the last example (where Y is the expurgated Golay code). Here [0] and [1] denote the cosets modulo Y that contain the all-zero and the all-one binary 23-tuples. It is easily seen that Y is a perfect code, with parameters d = 7 and r = 3. As Y is an additive code in the translation scheme (X/Y, +, R), it admits an annihilator design yo in the dual translation scheme (Y", +, R'yo). This is nothing but the expurgated Golay code itself, i.e., yo = Y. The inner distribution of Y is the 8-tuple ä = (1,0,0,0,0,0,0,1). Its Q-transform is b = äQ = 2 . (1,0,506,0,1288,0,253,0). This agrees with the fact that the inner distribution of yo in the scheme (Y", R'yo) is equal to ~ b. In effect, Y consists of 23-tuples of weights 0, 8, 12 and 16, with occurrence numbers 1, 506, 1288 and 253. 3.8 Binary codes in a Hamming translation scheme and their duals In Section 2.8, we have seen that the binary Hamming scheme H(n,2) can be made a translation scheme in several ineqnivalent manners. Consider a regular Abelian subgroup U ~ &:-T X &:-~-2m of the monomial group Mn. The group U is identified with X through the bijeetion u t-+ xö, where Xo is the zero element of X. It induces a well-defined translation scheme (X, +, R) on the set X := {O, I}", where R consists of the Hamming distance relations. We call it a (binary) Hamming translation scheme and denote it by H(n, 2, U), or simply by H(n,2,m). The classical situation corresponds to m = 0, i.e., U = &:-2. In this case, additive codes are nothing but linear codes over the field lF2, and the annihilator of an additive code is the usual orthogonal code. This follows from the fact that (x, x') = (_l)x.x' where x· x' := x1xi + ... + xnx~. At the other extreme, we have n = 2m, i.e., U ~ zT. Additive codes in the Hamming translation scheme H(2m, 2, m), called &:-4-linear codes, have recently received considerable attention. We mainly refer to a landmark paper by Ham- mons, Kumar, Calderbank, Sloane, and Solé [28]. If Y is an additive code in 374 H(2m, 2, m), then its annihilator yo can be identified with the orthogonal code y i_ defined in a natural manner. - Let us now consider the general "hybrid" situation of the Hamming trans- lation scheme H(n,2,m), where m is an integer such that 0 S m S ln/2J. Additive codes Y in H(n, 2, m) have been studied by Rifà and Pujol, under the name of additive propelinear codes [44]. Our goal is quite modest: to describe the annihilator of such a code Y. By use of the Gray map, let us represent any binary n-tuple X in the form X = ((XI,"" Xm I Xm+l,'" ,xn-m)), with XI,"', Xm E 24 and Xm+l,'" ,xn-m E 22. For given X E X and y EX, we then define the element X • Y of the ring 24 by X . y := XIYI + ... + XmYm + 2(Xm+IYm+1 + ... + xn-mYn-m), where the components Xj and Yj correspond to the representation above. The mapping (x, y) 1---+ X . y, from X2 to 24, is symmetric, X . Y = Y . x, and biadditive, x· (y + z) = X . Y + x· Y and (x + y) . Z = x· Z + y. z, with respect to the group U. For this reason, we shall refer to X . Y as the inner product of X and y. By use of the inner product, we introduce the notion of the orthogonal code, in the obvious manner. Definition 17 For a given additive code Y in the Hamming translation scheme H(n, 2, U), the orthogonal code y1. of Y is the set of binary n-tuples given by v+ := {z E X I x· Z = 0 for all xE Y}. It is easily seen that v- is an additive code in H(n, 2, U). Our objective is to show that Y 1. coincides with the annihilator yo of Y, defined by means of group characters (see Section 3.5). Identifying the dual group of U with U itself, we can write (x, z) = (Xl, Zl) ... (xn-m, zn-m), for all x, zE X. The first m components Xj and Zj belong to the group 24; the last n - 2m components belong to the group 22. Note that (Xj, Zj) = iXjZj in the first case and (Xj, Zj) = (-1)xjZj in the second case. This leads us to the desired conclusion, stated as follows. Theorem 17 If Y is an additive code in a Hamming translation scheme, then yo = y1.. Proof Let X E X and zE X. In terms ofthe representations X = ((Xl,'" 'xn-m)) and Z = ((Zl,"', zn-m)) induced by the Gray map, we obtain (x, Z)~XIZ1 +···+X77l.Zm. . (-1 )X +lZ77l.+1 Tn +"·+Xn-rn.Zn-m. =iX1Z1 +···+x",z",+2(X"'+lZ"'+1 +",+xn-=zn_=) = iX·z. Therefore, (x, z) = 1 if and only if x· Z == 0 (mod 4). This proves the theorem. 0 The binary Hamming weight WH(Z) of an element Z = ((1,"', (n) E {O,l}n is the number of its nonzero components, i.e., the number of indices k such that 375 (k = 1. In terms ofthe Gray map representation Z = ((ZI,"', Zm I Zm+l,' .. ,zn-m) it can be expressed by WH(Z) '= wL(z) + WR(Z), where the left contribution WL(Z) is the Lee weight of the m-tuple (ZI'" " zm) over Z4, and the right con- tribution WR(Z) is the Hamming weight of the (n - 2m)-tuple (Zm+l" ", zn-m) over Z2. Thus, wL(z) = Wl(Z) + 2W2(Z) + W3(Z), where Wk(Z) counts the indices j E [1,m) such that Zj = h, for h = 1,2,3. The weight distribution of an additive code in any Hamming translation scheme H(n, 2, U) is the integer (n + 1)-tuple a(Y) = (ao(Y),' ", an(Y)) defined by ai(Y) := I{y E Y I wHey) = i}l, for all iE [0, nl· In other terms, ai(Y) = IY n Xii where X; := {x E X IWH(X) = i} (see Section 3.5). It is important to observe that a(Y) depends only on the code Y, although it can be computed from the group U that produces the additive structure. In fact, the weight distribution of Y is equal to its inner distribution with respect to the Hamming scheme H(n, 2). We then obtain the following result about duality. Theorem 18 The weight distribution of the orthogonal code Y .L of an addi- tive code in any Hamming translation scheme is the Krawtchouk-MacWilliams transform of the weight distribution of Y. More precisely, n ak(yj_) = 1Y1-1 L ai(Y)Hk(i), i=O Proof We know from Theorem 12 that a(YO) = 1Y1-1a(Y)Q, where Q = (Hdi))i,k' Since yj_ = YO (Theorem 17), this proves the theorem. D As a simple illustration, consider the case n := 5 and m := 2, with the group U := Z4 X Z4 X Z2. We define the additive code Y from the generator matrix This means that Y is the smallest additive code containing 91 and g2, in the Gray map representation. Note that 291 = ((2,0 I0)) = 292. The codewords Y E Yare given by Y = >'191+ >'2g2 with >'1 E Z4 and >'2 E Z2. In binary notation, they form the columns of the following array: 00111001 01100011 Y= 00001111 00001111 01011010 This code is rather peculiar, since it is not only additive, with respect to U, but also linear, in the usual sense. This means that Y is additive with respect to the group U' := Z~. The orthogonal code yj_ relative to U is the same as 376 ° the orthogonal code in the usual sense. Its elements are ((0, 10)), ((2, 11)), ° ((0,210)) and ((2,211)). The weight distributions are a(Y) = (1,0,4,0,3,0) and a(Y.l) = (1,0,1,1,0,1). One of the most interesting applications of the theory is provided by the Z4-linear Kerdock codes K and their orthogonals, the Z4-linear Preparate codes P, as described in [28]. They are defined as additive codes in the Hamming translation scheme H(2m, 2, m), with respect to the group U := Zr. We have seen that P is completely regular and, equivalently, that K is completely graded (Theorems 9, 11 and 18). . References 1. A. Ashikhmin, A. Barg, and S. Litsyn, "Estimates of the distance distribution of codes and designs", IEEE Trans. Inform. Theory, vol. 47, pp. 1050-1061,2001. 2. A. Ashikhmin and S. Litsyn, "Upper bounds on the size of quantum codes" , IEEE Trans. Inform. Theory, vol. 45, pp. 1206-1215, 1999. 3. R. Askey and J. Wilson, "A set of orthogonal polynomials that generalize the Racah coefficients or 6 - j symbols", SIAM J. Math. Anal., vol. 10, pp. 1008- 1016, 1979. 4. E.F. Assmus, Jr. and J.D. Key, Designs and Their Codes. Cambridge: Cambridge University Press, 1992. 5. E.F. Assmus, Jr. and H.F. Mattson, Jr., "Coding and combinatorics", SIAM Review, vol. 16, pp. 349-388, 1974. 6. E. Bannai, "Tannaka-Krein duality for association schemes", Linear Algebra Appl., vol. 46, pp. 83-90, 1982. 7. E. Bannai and T. Ito, Algebraic Combinatorics I. Association Schemes. Menlo Park, CA: Benjamin/Cummings, 1984. 8. J. Bierbrauer, K. Gopalakrishnan, and D.R. Stinson, "Bounds for resilient func- tions and orthogonal arrays", in Advances in Cryptology-CRYPTO'94, Lecture Notes in Computer Science No. 839, Y.G. Desmedt, Ed. New York: Springer- Verlag, 1994, pp. 247-256. 9. N. Biggs, "Automorphic graphs and the Krein condition", Geom. Dedicate; vol. 5, pp. 117-127, 1976. 10. A.E. Brouwer, A.M. Cohen, and A. Neumaier, Distance-Regular Graphs. Berlin: Springer-Verlag, 1989. 11. A.R. Calderbank and P. Delsarte, "Extending the t-design concept", Trans. Amer. Math. Soc., vol. 338, pp. 941-952, 1993. 12. P. Camion, "Codes and association schemes", in Handbook of Coding Theory, V. Pless and W.C. Huffman, Eds. Amsterdam: Elsevier, 1998. 13. P. Camion, C. Carlet, P. Charpin, and N. Sendrier, "On correlation-immune func- tions", in Advances in Cryptology-CRYPTO'91, Lecture Notes in Computer Sci- ence No. 676, J. Feigenbaum, Ed. New York: Springer-Verlag, 1991, pp. 86-100. 14. P. Camion, B. Courteau, and A. Montpetit, "Metric coset schemes revisited", Ann. Inst. Fourier, Grenoble, vol. 49, pp. 829-859, 1998. 377 15. P. Delsarte, "Bounds for unrestricted codes, by linear programming" , Philips Res. Repts, vol. 27, pp. 272-289, 1972. 16. P. Delsarte, "Four fundamental parameters of a code and their combinatorial significance", Inform. Contr., vol. 23, pp. 407-438, 1973. 17. P. Delsarte, "An algebraic approach to the association schemes of coding theory", Philips Res. Repts Suppl., vol. 10, 1973. 18. P. Delsarte, "Association schemes and t-designs in regular semilattices", J. Corn- bin. Theory Ser. A, vol. 20, pp. 230-243, 1976. 19. P. Delsarte, "Distance distribution of functions over Hamming spaces", Philips Res. Repts, vol. 30, pp. 1-8, 1975. 20. P. Delsarte, "Pairs of vectors in the space of an association scheme" , Philips Res. Repts, vol. 32, pp. 373-411, 1977. 21. P. Delsarte, "Application and generalization of the MacWilliams transform in coding theory", in Proc. 15th Symp. Information Theory in the Benelux, Louvain- la-Neuve, Belgium, 1994, pp. 9-44. 22. P. Delsarte, "Beyond the orthogonal array concept" , in preparation. 23. P. Delsarte, J.-M. Goethals, and J.J. Seidel, "Spherical codes and designs", Geom. Dedicata, vol. 6, pp. 363-388, 1977. 24. P. Delsarte and V. Levenshtein, "Association schemes and coding theory", IEEE Trans. Inform. Theory, vol. 44, pp. 2477-2504, 1998. 25. LA. Faradzev, A.A. Ivanov, and M.H. Klin, "Galois correspondence between per- mutation groups and cellular rings (association schemes)", Graphs and Combina- torics, vol. 6, pp. 303-332, 1990. 26. C.D. Godsil, Algebraic Combinatorics. New York: Chapman & Hall, 1993. 27. J.-M. Goethals, "Association schemes", in Algebraic Coding Theory and Applica- tions, CISM Courses and Lectures No. 258, G. Longo, Ed. New York: Springer- Verlag, 1979, pp. 243-283. 28. A.R. Hammons, Jr., P.V. Kumar, A.R. Calderbank, N.J.A. Sloane, and P. Solé, "The Z4-linearity of Kerdock, Preparata, Goethals, and related codes", IEEE Trans. Inform. Theory, vol. 40, pp. 301-319, 1994. 29. D.G. Higman, "Coherent configurations. Part I: Ordinary representation theory", Geom. Dedicata, vol. 4, pp. 1-32, 1975. 30. G.A. Kabatjansky and V.I. Levenshtein, "Bounds for packings on a sphere and in space" (in Russian), Probl. Inform. Transm., vol. 14, no. 1, pp. 1-17, 1978. 31. H.W. Lenstra, Jr., "Two theorems on perfect codes", Discr. Math., vol. 3, pp. 125-132, 1972. 32. D.A. Leonard, "Orthogonal polynomials, duality and association schemes", SIAM J. Math. Anal., vol. 13, pp. 656--663, 1982. "Metric, co-metric association schemes", in Combinatorics, Graph 33. D.A. Leonard, Theory and Computing, Proc. 15th Southeast. Conf., La. State Univ., Congr. Numerantium 44, 1984, pp. 277-282. 34. V.I. Levenshtein, "Krawtchouk polynomials and universal bounds for codes and designs in Hamming spaces" , IEEE Trans. Inform. Theory, vol. 41, pp. 1303-1321, 1995. 378 35. V.I. Levenshtein, "Split orthogonal arrays and maximum independent resilient systems of functions", Designs, Codes and Cryptography, vol. 12, pp. 131-160, 1997. 36. V.I. Levenshtein, "Universal bounds for codes and designs", in Handbook of Cod- ing Theory, V. Pless and W.C. Huffrnan, Eds. Amsterdam: Elsevier, 1998. 37. V.I. Levenshtein, "Equivalence of Delsarte's bounds for codes and designs in sym- metric association schemes and some applications", Discr. Math., vol. 197/198, pp. 515-536, 1999. 38. S. Litsyn, P. Solé, and R. Struik, "On the covering radius of an unrestricted code as a function of the rate and dual distance", Discr. Appl. Math., vol. 82, pp. 177-192, 1998. 39. R.J. MeElieee, E.R. Rodemich, H. Rumsey, .Ir., and L.R. Welch, "New upper bounds on the rate of a code via the Delsarte-MacWilliams inequalities", IEEE Trans. Inform. Theory, vol. 23, pp. 157-166, 1977. 40. A. Neumaier, "Distances, graphs and designs", Europ, J. Combinatorics, vol. 1, pp. 163-174, 1980. 41. A. Neumaier, "Combinatorial configurations in terms of distances", Memorandum 81-09 (Wiskunde), Eindhoven Univ. Technol., 1980. 42. E.M. Rains, "Quantum shadow enumerators", IEEE Trans. Inform. Theory, vol. 45, pp. 2361-2366, 1999. 43. D.K. Ray-Chaudhuri and R.M. Wilson, "On t-designs", Osaka J. Math., vol. 12, pp. 737-744, 1975. 44. J. Rifà and J. Pujol, "Translation-invariant propelinear codes", IEEE Trans. In- form. Theory, vol. 43, pp. 590-598, 1997. 45. E.R. Rodemich, "An inequality in coding theory", Amer. Math. Soc. Notices, 773-05-39, p. 15, 1979. 46. A. Samorodnitsky, "On the optimum of Delsarte's linear program", J. Comb. Theory Ser. A, vol. 96, pp. 261-287, 2001. 47. N.J.A. Sloane, "Recent bounds for. codes, sphere packings and related problems obtained by linear programming and other methods", Contemp. Math., vol. 9, pp. 153-185, 1982. 48. D. Stanton, "Orthogonal polynomials and Chevalley groups", in Special Func- tions: Group Theoretical Aspects and Applications, R.A. Askey, Ed. Dordrecht: Reidel, 1984, pp. 87-128. 49. G. Szegö, Orthoqonal Polynomials. New York: Amer. Math. Soc., 1959. 50. O. Tamaschke, "Zur Theorie der Permutationsgruppen mit regulärer Untergruppe I", Math. Z., vol. 80, pp. 328-354, 1963. 51. P. Terwilliger, "A characterization of P- and Q-polynomial association schemes", J. Combin. Theory Ser. A, vol. 45, pp. 8-26, 1987. 52. P. Terwilliger, "Two relations that generalize the q-Serre relations and the Dolan- Grady relations", in Physics and Combinatorics, Proc. Nagoya 1999 Intern. Work- shop, A.N. Kirillov, A. Tsuchiya, and H. Umemura, Eds. Singapore: World Sci- entific, 1999, pp. 377-398. 53. P. Terwilliger, "Two linear transformations each tridiagonal with respect to an eigenbasis of the other", Linear Algebra Appl., vol. 330, pp. 149-203, 2001. 379 Recent Progress on Self-dual Codes and Orthogonal Neil J. A. Sloane Information Sciences Research Center AT &T Labs, Florham Park, NJ, USA This talk will report on recent work (1) with E. Rains and G. Nebe on generalizations of self-dual codes to other rings, and (2) with E. Rains and J. Stufken on the classification of orthogonal arrays. The first part will discuss generalizations of Gleason's theorem to multiple weight enumerators of self-dual codes over rings and modules. The collection of orthogonal arrays of strength 2 with a specified number of runs (with unspecified levels) forms a lattice, and the second part of the talk will discuss the properties of this lattice. 381 Information- Hiding Games Pierre Moulin Department of Electrical and Computer Engineering Beekman Institute, University of Illinois at Urbana-Champaign, USA An information-theoretic analysis of information hiding is presented in this talk. In these applications, information is hidden within a host data set and is to be reliably communicated to a receiver. The host data set is intentionally corrupted, but in a covert way, designed to be imperceptible to a casual analysis. Next, an attacker may seek to destroy this hidden information, and for this purpose, introduce additional distortion to the data set. Cryptographic keys may be available to the information hider and to the decoder. This talk surveys recent research in this area and focuses on two information- hiding problems. The first one is the evaluation of the hiding capacity, which upper-bounds the rates of reliable transmission and quantifies the fundamental tradeoff between three quantities: the achievable information-hiding rates and the allowed distortion levels for the information hider and the attacker. The hiding capacity is the value of a game between the information hider and the attacker. The second problem is the construction of information-hiding codes that approach capacity. Applications to image watermarking will be presented. 382 List decoding algorithms: A survey Madhu Sudan Deparment of Computer Science, MrT USA A number of algorithms have been developed over the past five years decod- ing some well-studied error-correcting codes far beyond their" error-correcting radii". These algorithms, usually termed as list-decoding algorithms, originated with a list-decoder for Reed-Solomon codes and were soon extended to decoders for Algebraic Geometry codes SW,GuSu and as also some number-theoretic codes. In addition to their enhanced decoding capability, these algorithms enjoy the benefit of being conceptually simple, fairly general and are capable of ex- ploiting soft-decision information in algebraic decoding. This talk surveys these algorithms and highlights some of their features. 383 Combinatorics, Quantum Computing and Cellular Phone Robert Calderbank Internet and Network System Research AT&T Labs, Florham Park, NJ, USA This talk explores the connection between quantum error correction and Wireless systems that employ multiple antennas at the base station and the mobile terminal. The two topics have a common mathematical foundation, in- volving orthogonal geometry - the combinatorics of binary quadratic forms. We explain these connections, and describe how the wireless industry is making use of a mathematical framework developed by Radon and Hurwitz about a hundred years ago. This article was processed using the I¥JEX macro package with LLNCS style 384