Twenty-sixth Symposium on Information Theory in the , s p--- , Benelux , Brussels, Belgium May 19 & 20,2005· Twenty-sixth Symposium on Information Theory in the Benelux Brussels, Belgium, May 19-20 2005. The 26th Symposium on Information Theory in the Benelux was organized in Brussels, Belgium, by: Jean Cardinal*, Nicolas Cerf*, Olivier Delgrange? and Olivier Markowitch* From the Université Libre de Bruxelles (*) and the Université de Mons- Hainaut (0), on behalf of the Werkegemeenschap voor Informatie- en Commu- nicatietheorie and the IEEE Benelux Chapter on Information Theory. Financial support from the FNRS (Belgium) is gratefully acknowledged. Twenty-sixth Symposium on Information Theory in the Benelux J. Cardinal, N. Cerf, O. Delgrange and O. Markowitch Werkgemeenschap Informatie- en Communicatietheorie (WIC) ISBN: 90-71048-21-7 ii Preface The Symposium on Information Theory in the Benelux has been held since 1980. During 25 years, numerous significant results in Shannon theory, source and channel coding, cryptography, communication theory and signal and image processing have been produced by members of the community and their col- laborators. They have been recently compiled in a volume titled "Information Theory in the Benelux: An overview of WIC symposia" published by the WIC. It is a great pleasure for us to further contribute by hosting the twenty-sixth issue of the Symposium in Brussels. We hope that this meeting will foster new scientific collaborations, especially involving members of the universities of the french community in Belgium. We thank all the authors for their high-quality submissions. We also wish to thank Ludo Tolhuizen for his valuable help, as well as Pascaline Browaeys, Véronique Bastin and Marie-Dominique Mathurin for their assistance during the organization process. J. Cardinal, N. Cerf, O. Delgrange and o. Markowitch, Brussels, May 2005. lil Table of Contents Cryptography and Security I " Analysis of an anonymous fair exchange e-comrnerce protocol" M. Bechlaghem, V. Rijmen 1 "Security scheme for electronic patient's records incorporating full privacy" K. Kapis, J. C. A. van der Lubbe, K. Cartrysse, B. Gedrojc 9 "The security of PSEC-KEM versus ECIES-KEM" D. Galindo, S. Martin, J. Villar 17 Biometrics "Robustness, reliability and security of biometrie key distillation in the in- formation theoretical setting" M. Van Dijk, P. Tuyls 29 "One-to-template and one-to-one verification in the single- and multi-user case" R. Veldhuis, A. Bazen 39 "Real-time face detection using a cascade of neural networks ensembles" F. Zuo, P. H. N. de With 47 Wireless Communications " Achieving higher reactive handover performance in mobile networks" J. Levendovszky, P. Boros, E. C. van der Meulen 55 "Enhancement of code performance for Doppler-induced ICI in DVB-T" S. Andari Husen, S. Baggen, A. Filippi, M. Stassen 65 "Performance of Multiple Input Multiple Output (MIMO) wireless systems" D. Zarbouti, G. Tsoulos, D. 1. Kaklamani 73 Source Coding "On the bit distribution in asymmetrie multiple-description coding" J. Ostergaard, R. Heusdens, J. Jensen 81 v "Construction of prefix codes using linear forms of numerical sequences" A. V. Anisimov, Y. A. Reznik 85 "Low-complexity coding for the CEO problem with many encoders" G. Maierbacher, J. Barros 97 "Modular data compression to optimally locate regular segments in sequences. Applications to DNA sequence analysis" O. Delgrange, E. Rivals 105 Video and Image Coding "Turbo-code based Wyner-Ziv video compression" R. P. Westerlaken, R. Klein Gunnewiek, R. L. Lagendijk 113 "Coding of depth-maps using piecewise linear functions" Y. Morvan, D. Farin, P. H. N. de With 121 "Scalable multiple description video for fair streaming to many clients" J. R. Taal, R. L. Lagendijk 129 » Adaptive decoding of MPEG-4 sprites for memory-constrained embedded systems" M. Pastrnak, D. Farm, P. H. N. de With 137 Classical and Quantum Error-Correcting Codes "Coding for reliability and security over wire tap channel systems" A. Thangaraj, S. Dihidar, R. Calderbank, S. McLaughlin 145 "Interleaved serial concatenation of quantum convolutional codes: gate irn- plementation and iterative error estima.Lionalgorithm" H. Ollivier , J.-P. Tillich 149 "Stopping and dead-end set enumerators for binary hamming codes" J. H. Weber, K. A. S. Abdel-Ghaffar 165 Quantum Information and Quantum Cryptography "One-dimensional and multi-dimensional reconciliation using turbo codes for quantum key distribution" K.-C. Nguyen, G. Van Assche, N. J. Cerf. 173 VI "Quantum information theoretical analysis of various constructions for quan- tum secret sharing" K. Rietjens, B. Schoenmakers, P. Tuyls 181 "Generic security proof of quantum key exchange using squeezed states" K. Poeis, P. Tuyls, B. Schoenmakers 189 "Simulating quantum correlations with classical resources" J. Degorre, J. Roland 197 Communication Channels "Direct message coding for multiple-access channels" P. Vanroose 205 "Parallel channels with cribbing encoders" E. C. van der Meulen, A. R. Ghazaryan 213 "Nwnerical computation of the capacity of continuous memoryless channels" J. Dauwels 221 " Aerial entropy and capacity of an MEA EM source" A. Kalis, M. J. Catras 229 Communication Theory "Signal constellations for multilevel coded modulation with sparse graph codes" H. S. Cronie 237 "Impulse noise modelling in the upstream path of HFCjCATV networks" V. Tamgnoue, S. Bette, V. Moeyaert, M. Blondel, P. Mégret 245 "Spatial bandwidth: a heuristic calculation with applications" A. Martinez 253 Cryptography and Security II "Efficient implementation of recent stream ciphers on reconfigurable hard- ware devices" P. Léglise, F.-X. Standaert, G. Rouvroy, J.-J. Quisquater 261 vii "Condensed white-box implementations" B. Wyseur, B. Preneel 269 "Partitions of polynomials: stream ciphers based on jumping shift registers" C. J. A. Jansen 277 "Classification of cubic boolean functions in 7 variables" A. Braeken. S. Nikova, Y. Borissov 285 Image Processing "Maximum likelihood amplitude scale estimation in secure quantization- based watermarking" I. D. Shterev, R. L. Lagendijk 293 "Reconstructing virtual rooms from panoramic images" D. Farin, P. H. N. de With 295 " Automatic tracking method for sports video analysis" J. Han, D. Farin, P. H. N. de With, W. Lao 309 Invited Presentations Dieter Oollmann (TU Hamburg-Harburg): "Protocol analysis beyond the Dolev-Yao model" 317 Paul Vitanyi (CWI and University of Amsterdam): "Distortion-ra.te theory for individual data" 319 Andreas Winter (University of Bristol): "Quantum resources in information theory" 321 Vlll Author Index Abdel-Ghaffar, K. A. S 165 Ollivier, H. . 149 Andari Husen, S 65 Ostergaard, J 81 Anisimov, A. V 85 Pastrnak, M. . 137 Baggen, S 65 Poels, K. 189 Barros, J. . 97 Preneel, B. . 269 Bazen, A 39 Quisquater, J.-J 261 Bechlaghem, M 1 Reznik, Y. A 85 Bette, S 245 Riet jens, K 181 Blondel, M 245 Rijmen, V _ 1 Borissov, Y 285 Rivals, E. . 105 Boros, P 55 Roland, J 197 Braeken, A 285 Rouvroy, G. . 261 Calderbank, R. 145 Schoenmakers, B. . 181, 189 Carras, M. J 229 Shterev, 1. D 293 Cartrysse, K 9 Standaert, F.-X 261 Cerf, N. J. . 173 Stassen, A 65 Cronie, H. S 237 Taal, J. R 129 Dauwels, J 221 Tamgnoue, V. . 245 Degorre, J 197 Thangaraj, A 145 Delgrange, O 105 Tillich, J.-P 149 de With, P. H. N .. 295,309, 47, 121, 137 Tsoulos, G 73 Dihidar, S 145 Thyls, P 29, 181, 189 Farin, D 121, 137, 295, 309 Van Assche, G 173- Filippi, A. . 65 van der Lubbe, J. C. A 9 Galindo, D 17 van der Meulen, E. C 213, 55 Gedrojc, B. . 9 Van Dijk, M 29 Ghazaryan, A. R 213 Vamoose, P. . 205 Hall, J. . 309 Veldhuis, R 39 Heusdens, R 81 Villar, J 17 Jansen, C. J. A. . 277 Weber, J. H 165 Jensen, J 81 Westerlaken, R. P. . 113 Kaklamani, D. 1. 73 Wyseur, B. . 269 Kalis, A 229 Zarbouti, D 73 Kapis, K 9 Zuo, F - 47 Klein Gunnewiek, R. 113 Lagendijk, R. L 113, 129, 293 Lao, W 309 Levendovszky, J. . 55 Léglise, P. . 261 Maierbacher, G 97 Martin, S 17 Martinez, A. . 253 McLaughlin, S. . 145 Moeyaert, V 245 Morvan, Y 121 Mégret, P. . 245 Nguyen, K.-C 173 Nikova, S _ 285 ix ANALYSIS OF AN ANONYMOUS FAIR EXCHANGE E-COMMERCE PROTOCOLl Malek Bechlaghem and Vincent Rijmen Cryptomathic NV, Interleuvenlaan 62/19, B-3001 Leuven {malek.bechlaghem,vincent.rijmen}@cryptomathic.com We analyze a recentlsj proposed protocol for anonymous fair exchange e- commerce. The protocol is meant to be a demonstratien of the iheorç of cross validation. We show that the cross validation system is ineffective. We reformulate the goals of an anonymous fair exchange e-commerce pro- tocol and present a new primitive that can be used in order to achieve them. INTRODUCTION In ideal fair eichanqe protocols, all the parties involved in the protocol achieve their goals, or none do. In the context of e-commerce, the goals are products or money. The term 'fair exchange' is also used in a weaker sense: dur- ing the execution of the protocol all parties gather enough evidence so that in case one or more parties behave unfairly and still achieve their goods, the remaining parties can rWI a dispute resolution protocol with a trusted party and obtain their goods. In optimistic protocols, the role of the trusted party in the protocol is small, unless dispute resolution is required. Ray and Ray introduce in [2] an additional requirement for fair exchange e-commerce protocols: assuring each party that the item he is about to receive is indeed the correct one. They propose a protocol that uses the theory of cross validation in order to achieve this goal [2, 3]. Firstly, we will show that the cross validation system is ineffective in the described setting. Secondly, we argue that the described goal can't be achieved. We restrict the claimed properties of the system to a set of proper ties that can realistically be achieved. Finally, we present an alternative meeting the restricted requirements. I This work was support.ed by the funding of IWT Flanders, project: "ITEA 02011 SATURN: Security applications and technologies for universal inforrnation networks." CROSS VALIDATION THEORY It is well-know that under some assumptions, modular exponentlation can be used to encrypt a message m to a ciphertext c: c = m" mod n. (1) Decryption is done by exponentiation with an exponent d defined such that de = lmod 'P(n), where 'PO denotes Euler's totient function. These operations are used in the RSA public-key encryption system. In the following, e, d and n will be used to encrypt and decrypt data in the expected way, but all of the values will be kept secret. The theory of cross validation is based on the following observation. Let nI, n2 be two coprime numbers, where each number is the product of distinct primes. Let e be coprime to 'P(nl) and to 'P(n2. Then, for all m < nl, n2: (2) The idea now is to use two compatible sets of keys (e, dl, nl) and (e, d12,nl n2). For such keys, (2) implies that the encryptions of m under two compatible keys result in related ciphertexts. In the proposed e-commerce system, m is the product desired by the customer. One key lies with the trusted party, and the other key is 'sold' by the merchant to the customer in order to decrypt the product. Equation (2) is used to detect cheating merchants. THE E-COMMERCE PROTOCOL We describe here a simplified version of the protocol, omitting the steps that have to be taken if anonymity is desired. Secondly, we assume that a PKI is already in place allowing all parties to obtain certified public keys of the other parties. Thirdly, we leave out the messages rela.ted to the 'high-security' variant described in [2]. The protocol counts five different parties: the customer C, the merchant 111,the customer bank CB, the merchant bank 111B and the trusted party TP. Prelude M registers his product m with T P as follows. He sends the product to T P together with a key kl = (e,dl,nl). TP encrypts the product with kl and 2 makes the ciphertext Cl = me mod nl publicly available. If C is interested in this product, he downloads the corresponding ciphertext Cl and starts the protocol with M. Protocol 1. C composes a purchase order PO, signs it, and sends the signed PO to M. 2. M returns the following information: his signature over PO, a ciphertext C2 which is produced as follows C2 = me mod nln2, a signature over C?, signed and eucrypted account information of iVI (where encryption is done with the public key of M B). 3. C validates C2 (see next section). If the validation is successful, C sends an encrypted money transfer instruction to his bank. 4. CB creates a payment token, signs it, and sends it encrypted to C. 5. C decrypts the payment token, encrypts it again and forwards it to ]1.1. 6. M forwards the token to MB. 7. MB verifies the validity of the token and reports the result to M. 8. If M received the notification that the payment succeeded, he sends k2 to C. FLAWED VALIDATION The purpose of the product validation step is to allow C to ensure that the product m he is about to receive from ]0.1, is the same as the one he ordered. We describe the flaw for the basic version of the validation system. The same flaw is present in the extended version. In order to do the validation, C compares Cl, which he obtained from TP, with C2, which was sent to him by jI,IJ. If TP and M follow the protocol, then it follows from (2) that Cl = C2 mod nl must hold. Product validation simply consists of checking whether this equality holds. Obviously, C needs to know nl in order to perform the validation. However, Cl is public and it is trivial for any party and even for an outsider to generate values z such that Cl = z mod nl. Each of these values z will pass the validation. Consequently, the validation procedure doesn't give any assurance to C about the product he is going to receive. Stronger, because any party could have created a z value passing the test, the message containing value C2 can't even be used in the dispute resolution protocol. 3 Note however that the protocol specifies that the message should also contain the purchase order PO, signed by M. This signature can be used in a dispute resolution. Hence one can argue that the protocol is not broken, but the use of the cross validation theory definitely hasn't been demonstrated. ADDITIONAL OBSERVATIONS It appears that the first analysis of the protocol was made in [1]. We present several additional observations on the protocol description and on the protocol itself. 1. The players use each one asymmetrie key pair to perform both encryp- tion/decryption and signing/verifying operations. In general, digital sig- nature algorithms can't be used to encrypt or decrypt messages and vice versa. For the cases where it is possible to sign and decrypt with the same algorithm, it is not recommended to use the same key for both operations. 2. The protocol doesn't describe in enough detail which values of the (e, d, n)- triplets are made known to C at what stages of the protocol. In part.icular, C needs to know n] in order to perform the product validation. The security of encryption baset! on modular exponentration depends on which of the parameters are known. If both e and n are known, then n needs to be of a special form (containing at least two different large prime factors). The protocol doesn't describe whether C and T P need to verify if nl and nln2 are of the proper form. 3. The validation can only be performed if the product is fully encrypted with the modular exponentiation technique. TIns would be a very computation intensive eperation. In practice, large messages are encrypted with a block cipher, e.g. AES, under a randomly selected session key, which is then encrypted by means of modular exponentiation. A NEW MODEL In order to demonstrate the usefulness of the validation theory, the protocol should be streamlined. In the current description, there are so many digitally signed messages that the security of the validation theory based system is irrele- vant. We try to present here a model for what a validation system could be made to achieve. 4 Assuring the customer that the item he is about to receive, is indeed the correct one, as is required by Ray and Ray, seems to be a very ambitious goal. A more realistic goal is to ensure that each party can collect enough evidence such that it will be able to obtain the desired item. This goal can be achieved by means of a simple commitment, which can be implemented by means of a one-way function H. Hence, we propose a model based on two primitives: 1. An arbitrary encryption function E, and 2. A one-way function H. The merchant generates a key, encrypts the product to a ciphertext c, computes the commitment v = H(c) and sends it to the trusted party. During the protocol, the merchant reveals c to the customer. After receipt of payment, he reveals the key. A customer who can show both c and a proof of payment, can convince the TP that he followed the protocol. In the following sections, we describe briefly the adapted e-commerce proto- col. Prelude IvI generates a random key k and computes c = E,,(m). Subsequently, IvI uses a one-way function H to compute the commitment v = H(c). M sends the product m together with v to T P. T P makes v publicly available. If C is interested in the product, he downloads v and starts the protocol with 111. Protocol The new protocol can be summarized as follows: 1. C sends a signed purchase order to 111. 2. M returns the ciphertext c = Ek(m). 3. C verifies whether H(c) = v. If the validation succeeds, C sends the money transfer instruction to CB. 4. CB creates a signed payment token and sends it to C. 5. C forwards the payment token to 111. 6. M forwards the token to MB. 7. MB verifies the validity of the token and reports the result to IvI. 8. If 111received the notification that the payment succeeded, he sends k to C. 5 Assurance The use of the one-way function ensures that a valid value c can only be produced by M: Hence, if C has performed a successful validation, he can use c to prove that M agreed to the transaction. Together with the payment token, this is enough evidence to obtain m from T P. CONCLUSIONS We think that the goals of the optimistic fair exchange e-commerce protocol described in [2], are too ambitious. Indeed it seems impossible to allow a cus- tomer to verify that he is about to receive the product he is paying fOT. What is achievable, is to assure the user that he has collected enough evidence to convince the trusted party to send him the desired product. No matter what protocol is used, the customer has no guarantee that he will receive the decryption key from the merchant after the payment has been submitted. In that case the customer needs to be able to obtain the product from the trusted party, which means that the customer needs to be able to convince the trusted party The most obvious way to implement a system with the desired property, is to let the merchant make a signature over a product order. No further cryptography is needed. In this paper, we described the shortcomings of the construction based on the theory of cross validation and we proposed an alternative. Other applications of cross validation theory have been proposed in the lit- erature. For example, in [4], a multicasting system is proposed. It remains to be investigated whether the theory is effective in these applications. REFERENCES [1] Adam Barth and Andrew Tappert, "Analysis of an anonymous fair exchange protocol," manuscript. [2] Indrakshi Ray and Indrajit Ray, "An anonymous fair exchange e-commerce protocol," Proceedings of the First International Workshop on Internet Com- puting and E-Commerce, San Francisco, CA, April 200l. [3] Indrakshi Ray and Indrajit Ray, "An optimistic fair exchange E-commerce protocol with automated dispute resolution," K. Bauknecht, S.K. Madria, G. Pernul (Eds.), Electronic Commerce and Web Technologies, First Inter- national Conference, EC-Web 2000, London, UK, September 4-6, 2000, Pro- ceeclings, Lecture Notes in Computer Science 1875, Springer 2000, pp. 84-93. 6 [4] Indrakshi Ray and Indrajit Ray, "Using Compatible Keys for Secure Multi- casting in E-Commerce," Proceedings of the Second International Workshop on Internet Computing and E-Cornmerce, Fort Lauderdale, FL, April 2002. 7 SECURITY SCHEME FOR ELECTRONIC PATIENT'S RECORDS INCORPORATING FULL PRIVACY Kosmas Kapis, Jan C.A. van der Lubbe, Kathy Cartrysse, Bartek Gedrojc {KKapis; J.C.A.vanderLubbe; KCartrysse; B.Gedrojc}@ewi.tudelft.nl DELFT UNIVERSITY OF TECHNOLOGY This paper presents an electronic patient record (EPR) security scheme that covers the privar:y of patients and health care practitioners (H'Cl?«). The scheme is designed such that it prooides Il Cl'?s privacy towards another H'Cl? but revealable in disputes. Forward signature and encrijptioti schemes are used to provide EPR integrity and confidentiality respectively. Further- more, forward qroup siqnaiures are used to provide privacy between H'Cl?«. INTRODUCTION Currently, most of the patient's medical records are stored in digital form in the storages called Electronic Patient Record (EPR). An EPR can be defined as a collection of a patient 's medical information in electronic form that is ac- cessible online from many separate, inter-operable automated systems within an electronic network [3]. In these electronic networks large amounts of inforrnation are processed. This poses a threat to the patient's privacy especially, in the cur- rent situation where the availability of electronic medical record is well enhanced and the records are fully owned by hospitals and their respective health care practitioners (HCPs). In the existing running of health care services, only HCPs own EPRs and control their access. In a way, patients are deprived of their right to control their privacy. The patient's accountability to his medical records is realized in a few situations. For example, when a conscious patient is advised to take a medication that might be life threatening. In such cases a patient is required to give his consent in writ- ing before accepting the medication. This calls for the need for patients to control their privacy and shared responsibility of EPRs handling. Hence sharing EPR access accountability. This paper shows an EPR security scheme that ensures that a patient remains himself the part-owner of and the jointly responsible of his own EPR. The scheme protects the privacy between HCPs and incorporates the capabilities to hold either the patient or the HCP accountable in situations where disputes can occur. The achievement of this goal is based on the way the 9 parties participating in the functionality of the scheme are registered. For the scheme to work the following requirements have to be met: the proteetion of EPR confidentiality and integrity, and patient's consent; provision of HCP's privacy towards another HCP (i.e. eliminatien of control between HCPs); registration of patients and HCPs must be done via their respective hospital; and provision of shared EPR accountability between patients and HCPs. RELATED WORK In the Iiterature, few studies have been done on schemes for protecting the privacy of patients and HCPs. The first approach to reduce the privacy vul- nerabilities was addressed in [1]. In this scheme the patient is conscious and able to communicate. The privacy and confidentiality of the patient and HCP is secured by using ordinary digital signatures (ODS) and gTOUpsignatures (CS). The scheme uses one show credentials for ODS and CS to protect patient's and HCP's identities respectively, leaving the EPR in a clear text. An emergency case, when the patient is unconscious is considered in [5]. This scheme is based on a forward signature scheme [4]. It bypasses patient's consent and allows access to the patient's EPR. in emergency situations, and has a capability of restoring EPR consent after the patient gains consciousness and ability to communicat.e. A scheme for protecting privacy of patients and HCPs in normal and emergency situations was considered previously; in particular, [2] proposed a system using nameless patients' identities called anonymous credentials to provide patients and HCPs privacy. This scheme requires the patients to create and distribute the emergency record access tokens to several authorized entities immediately after registration. The medical record is stored in plain text readable by anyone with a token. This again increases vulnerability of compromising patient's confiden- tiality and invalidates the need for patient's consent. We show a scheme that protects the patient's and HCP's privacy when a patient can communicate and guarantees the EPR access in emergency situations. The scheme can be used to demonstrate evidence where disputes may arise between the patients and HCPs. THE PRIVACY PROTECTION SCHEME To meet the defined requirements, some assurnptions are made. Firstly, sev- eral entities participate in the scheme(see figure 1), namely Trusted Third Party, (TTP),hospital owner (HO), the patient Uj, the HCP vi', and the storage of EPR 10 access keys and EPRs called (EPRHost), (j and j' represent the numerical po- sition of the patient and Hep respectively). Secondly, each Hep is a part of the group. Thirdly, patients and Heps use smartcards provided by the TTP as means of identification and access to the EPR. Finally, for facilitation of the healthcare services mobility, smart gateways are introduced. They include a mobile gateway Go. and hospital gateway GH. The mobile gateway is part of the TTP while the hospital gateway belongs to the hospital. It is also assumed that, the TTP has a public key Pttp, private key SttP and an identifier Ittp and, the HO has a valid hospital Iicense and other crcdentials. The TTP is legal entrusted party that is responsible for registering patients, Heps, hospitals and creating smartcards for patients and Heps. It also receives and checks HO's credentials, creates and distributes keys to all entities except the HO, whose role is to generate temporary transport keys. These keys are physi- cally submitted to the TTP and are used initialize the registration process only. The function of the scheme is such that, when a patient is conscious and phys- ically able to communicate, the Hep Vj' and a patient Uj are both needed to sign the same newly entered medical record, lVI. They sign M using forward signatures. These are signatures which when used are such that, if the current signing is couipromised, signatures in the past remain valid. In this case, M is signed by the patient and Hep using forward ODS key SUj,t [4] and forward CS key SVj"tll [6] respectively. Moreover, for efficiency enhancement purposes, NI has to be hashed before being signed. In order to provide confidentiality, the pa- tient encrypts M using his symmetric encryption key. Where t and til represent time instants for forward ODS and forward CS respectively. The function of this scheme is based on the availability of the smartcard and involves; the registration of entities, EPR access, and update of patient's secret keys. In this case we focus on the registration of entities, and show how the set requirements are met. The registration process starts by the HO submitting all required information to the TTP. If documents are approved, the TTP registers the hospital and the group of Heps. Every Heps must be a part of the group for privacy reasons. When executing tasks, Heps have to identify themselves by their group. Next, the Hep and patient register with the TTP via their hospital. The TTP creates smartcards and sends them to the hospital, ready for collection. At this stage, the Hep has to register first with the hospital EPRHost, followed by the patient. The patient's registration with the hospital EPRHost is such that, for the pa- tient to be registered with the hospital EPRHost, his permission must first be 11 obtained. The patient's registration with the hospital EPRHost results in the creation of an EPR, which requires the HCP's and patients involvement. This ensures that the patient remains a cc-owner and responsible for his EPR. The registration protocols are described in the next section. Interactions Protocols Registration protocols are shown infigure 1. Firstly, the hospital H, and the group of HCPs are registered with the TTP by the hospital owner HO (I). Sec- ondly, HCPs are registered with the TTP (II) and EPRHost (Ill). And finally, patients are also registered with TTP (IV) and EPRHost (V). The registration of HCPs and patients with the TTP is done via the hospital. Protocol (V) shows how the patient and HCP together create the EPR while ensuring EPR confi- dentiality and integrity, and HCP's privacy. It also shows that, for the patient to be registered with the hospital EPRHost, his consent must first be obtained. Following is a description of the protocols. Hospital Figure 1: Part.icipating Entities and Registration Protocols 1. Hospital and HCPs Group Registration with TTP. Using the hospital EPRHost computer system, the HO generates and stores symmetric shared se- cret keys KHo,and KH02. The HO submits KHO" J(H02 and his credentials to the TTP. The TTP checks the HO credentials and the hospital license, and then generates the hospital H keys (PH, SH, IH) and HCPs' group public key Fv. The TTP uses a message authentication code (MAC) together with keys K HO" KH02 to transport keys from the TTP to the hospital EPRHost. The MAC is used to guarantee message authenticity and confidentiality of the keys transportod from the TTP to the hospital EPRHost. The registration protocol of the hospital and the HCP group is as follows; l. TTP -; EPRHost : Tl (A random challenge) 12 2. EPRHost ---4 TTP : eKHo2(rl, r2), hK/'/OI (eJ(Ho2(rl, r2)) Where hKHOI is a MAC computed using secret key J(HOI 3. TTP -> EPRHost: eKHo2(Fv,Pttp,Ittp,Prt,Srt,Irt,T2), hKHOI (ef(Ho2(Fv, Pttp, Ittp, Prt, s-; Irt, 1'2)) 11. HCP Registration with TTP. The HCP Vj' physically submits his creden- tials to the hospital authority to be checked. If credential are valid, the hospital securely sends an application form for the HCP's smartcard AFvj, to the TTP. The TTP assigns a smartcard with a card number NCvj' and generates all keys necessary for the HCP to interact with other entities. The TTP creates the smartcard and assigns the HCP's personal identification number PIN, 7rVj" Then the TTP securely mails the created smartcard and 7rVj' separately to the hospi- tal. Finally, the HCP is informed that the card and 7rVj' are ready for collection. Following are the HCPs' registration steps with the TTP. 1. The HCP physically contacts the Hospital and submits his credentials (Cer- tificates, Identity, license, insurance). 2. The Hospital checks HCP's credentials and sends ePttp(AFvj" Irt) to the TTP. 3. The TTP assigns to the HCP's smartcard, a forward individual's group sig- nature key 5"j' ,t", public and private keys pair Pv;" SV;i" identification Iv;, and card number NCv;,. 4. The TTP creates a smartcard for the HCP. Using the smartcard and TTP system, the TTP selects 7rv:i,' Upon interaction between TTP system and the smartcardv vr.ç, is converted into h(7rv) using a hash function h. The TTP tem- porarily keeps h( tt Vi') = I< "";' and uses it as an encryption key. The TTP stores in smartcard h(h(7rv)) = h(I<,,";,), eK",vj' (5";,,t'"Sv;" Ivj,). It also stores in the smartcard HCP's public key Prt and Card number NCv;'" 5. The TTP sends ePH(PVj" NCvj" IVj" Ittp) to the hospital EPRHost. 6. The TTP securely mails the smartcard and a protected HCP's 7rvi' separately to the hospital. Themail containing the PIN is secured in such a way that once 7rVj' security seal is damaged it cannot be repaired(e.g. prepaid phone cards). ««. .1 can be disclosed only by the owner. 7. The hospital receives the mails and informs the HCP. 8. The HCP receives the two mails at the hospital after showing credentials prov- ing that the two sealed mails belong to him. Ill. HCP Registration with EPRHost. The goal of this stage is to enable the HCP be recognized by the EPR-Host during the provision of medical care services to patients. Having registered, it should be possible to confirm that the 13 Hep claiming to be an employee of the hospital is one who claims to be. In this stage the Hep's and EPR-Host's information previously distributed by TTP to Hep and EPRHost is used to approve the Hep's registration with the EPR-Host. This registration is done once. The identity authentication protocol is used and two different challenges are used to prevent a replay attack. The Hep uses his "TrVj' and smartcard to log into the hospital system to register with EPR-Host. Then the registration procedure continues as follows; 1. HCP EPRHost: lVj" NCvJ' -+ 2. EPRHost -+ HCP : Tl 3. HCP -+ EPRHost: signSVj,(Td,Tl 4. EPRHost -+ HCP : signSH('r2), T2 5. HCP -+ EPRHost : Yes/No. The Hep receives the second challenge T2, and registers if confirmed using verification key PH (stored in his smartcard), that the challenge is indeed from the EPRHost. In this protocol, challenges are signed using the private keys to prevent an attack of a man in the middle. IV. Patient's Registration with TTP. The patient Uj, physically submits his credentials to the hospital authority for approval. If credentials are valid, the hospital securely sends an application form for the patient's smartcard AFuj to the TTP. The TTP assigns the smartcard with a card number NCuj and gen- erates the patient's forward signature key pairs (SUj,t, PUj), (SUj,t', Puj), identifier lu:;, and the patient's mobile symmetric key Kn.uj' Kn.uj is used to facilitate EPR. emergency access. Where PUj' P:-j are patient 's verification and master keys respectively. The two keys are also used for decryption hence must be kept secret. The TTP then assigns the patient's personal identification number PIN, "TrUj and creates the patient's smartcard. Thereafter, the TTP securely mails the card and PIN separately to the hospital. Finally, the patient is informed that the card and 11""j are ready for collection. Following are the steps used by the hospital to register the patient with the TTP. 1. Steps 1,2 in protocol IJ are first repeated (use AFuj), then the TTP as- signs to the patient's smartcard; pairs of forward signature and encryption keys (Su;,t, PUj), SUj,t', P:j, an identifier t.; and a smartcard number NCu;. The TTP assigns also K n,Uj' 2. The TTP creates a smartcard for the patient. Using the smartcard and its com- puter system, the TTP selects the patient 's PIN, "Tr Uj' Upon interaction between TTP system and the smartcard, "TrUj is converted into h("TruJ. The TTP temporar- 14 ily keeps h('lruJ = K"uj and uses it as an encryption key. Then the TTP per- manently stores h(h('lruj)) in the smartcard for integrity check purposes. Where, K",uj is a patient's symmetric encryption key. The TTP sends to the smartcard; the card number Neuj, signed patient identifier signSuj,t(IUj)' encrypted master key eKn,uj(Puj),eK",uj(P:j) , encrypted generation key eJ(",Uj(SUj,t'), and en- crypted patient's identifier eK",uj (Iuj)' It also enters in the smartcard h(P"J for the master key integrity check. The key SUj,t' is used to generate EPR encryption keys. 3. The TTP stores in its records the patient's; Ne"j' credentials, Signature key SUj,!' identifier IUj' and symmetric mobile encryption key Kn,uj' 4. The TTP sends to the mobile gateway the patient's; public key PUj' identifier IUj' Cardnumber Neuj, and mobile symmetric key Ko.,uj' Finally, steps 6,7,8 in protocol II are repeated. V. Patient's Registration with EPRHost. Having registered with the TTP, a patient is required to prove to the hospital that he is the one registered with the TTP and is entitled to get medical care services from a given hospital. It only after such verification, the HCP can facilitate the creation of electronic patient record in the EPR-Host. The registration procedure is as follows; 1. The patient firstly physically interacts with HCP and then is requested to insert his smartcard into the HCP's system followed by keying in his PIN 'Iru)' 2. The HCP's system retrieves from the patient's smartcard; Neuj, signS",;,t(IUj) and assigns a file number N F to be used as a reference number of the EPR to be created. The HCP system sends these parameters to the mobile gate- way 90. through the hospital gateway 9'H. The hospital gateway extracts NF and stores it. The remaining parameters are passed to the mobile gateway where the patient's identification IUj is verified using the patient's public key, verPuj(signSuj_t(Iuj)); and the card number Neuj is authenticated. 3. The mobile gateway confirms the existence of such a patient and sends to the HCP a message permitting the creation of an EPR. The HCP sends the N F to the EPRHost. The EPRHost creates an EPR form for a given patient. 4, If there are records entered, the HCP the system facilitates the signing of the record using HCP's private group signature key Svj"t" and the patient's key SUj,t'. The system enables encryption of the medical records using the patient's EPR encryption key and stores the records in the EPR-Host. 5, The HCP's system compresses (takes a hash of) the entered patient's the med- ical record and sends the h(Mi) = O'M; to the hospital gateway for future medical 15 record integrity check purposes. CONCLUSION This paper has shown the scheme that insures privacy of patients and HCPs. This is based on the fact that, for the patient to be registered with the hospital EPRHost, his consent (PIN) must first be obtained. The patient's registration with the hospital EPRHost results in the creation of an EPR, which requires the HCP's and patients involvement. The HCP can create the patient's EPR only with the patient's consent availability. This ensures that the patient remains a eo-owner and responsible for his EPR. The need for both HCPs and patient to sign the EPR ensures the sharing of accountability between them. These signatures are put on the message digest of the EPR which also guarantees the EPR integrity and efficiency of the scheme. This scheme can also be used in an emergency situation [5J. REFERENCES [1J M.S. Bleumer. Privacy oriented clearing for the germa.n health care system. In Personal Information Sec'u'f'ity, EnginecT'ing and Ethics. Springer-Verlag, 1997. [2J B. de Meideiros, G. Ateniese, and R. Cutrnola. Medical infortnation privacy assurance: Cryptographic and system aspects. In SCN02, Third Conference on SecuT'ity in Communication Networks. Springer, 2002. [3J D. Gordon. What is an electronic patient record? In Arner"ican Medical Informaties Association Annual Symposium. AMIA, 1998. [4J Gene Itkis and Leonid Reyzin. Forward-secure signatures with optimal signing and verifying. Advances in Cryptology, LNCS, 2139:332-354, 2001. [5J Kosmas Kapis, Jan C.A.vander Lubbe, and Kathy Cartrysse. Cryptographic approach to patient records privacy proteetion in emergency situations. In Twenty-fifth Symposium on Information Theo'r1Jin the Benelux, pages 177- 184, June 2004. [6J Dawn Xiaodong Song. Practical forward secure group signature schemes. In ACM2001, 8th ACM Conference on Computer and Commumicaiion Securitç, pages 225-234, 2001. 16 THE SECURITY OF PSEC-KEM VERSUS ECiES-KEM David Galindo", Sebastià Martfn2 and Jorge L. Villar2 1 Dep. Matemàtica Aplicada IV. Universitat Politècnica de Cat.alunya Campus Nord , clJordi Girona, 1-3, 08034 Barcelona e-mail: {sebasm, jvillar }@ma4.upc. edu 2 Institute for Computing and Information Sciences. Radboud University Nijmegen P.O.Box 9010 G500 GL, Nijmegen, The Netherlands e-mail: d.galindo~cs.ru.nl The KEM-DEM methodology for designing hybrid encryption is being used in several projects aimed at evaluating or eventually standardizing crypto- graphic primitives. In this uiork we revisit one of the elliptic curve based KEMs studied to become standards, namely PSEC-KEM. Its security is based on different assumptions related to the elliptic curve discrete loga- rithm problem. First of all, we point out that PSEC-KEM has a non-tight security reduction to the Computational Diffie-Hellman (ECDH) problem. This obvious fact has been surprisingly ignored in the literature, OT even contradicted. This remark has a direct consequence: the securitu of PSEC- KEM with the current 160 key bits length fOT elliptic curve cryptography is not guaranteed using only the reduction to ECDH. Fortunately, we show that previous security proofs fOT PSEC-KEM can be straightforward modi- fied to obtain a tight rednietion to the so-called Gap-ECDH problem. This seems to be the first time that such a redsictien has been released into the public domain. Finally, we raise some doubts on the widespread opinion that ECIES-KEM offers less security guarantees than PSEC-KEM. Keywords: standardization, public-key cryptography, prova.ble security, key en- capsulation mechanisms, efficient reductions. INTRODUCTION A key encapsulation mechanism (KEM) is a. probabilistic algorithm that pro- duces a random symmetric key and an asymmetrie encryption of that key. Using this random key in a suitable encryption scheme (referred to as a data encapsula- tion mechanism-DEM), a secure hybrid encryption of arbitrary long messages is 17 obtained. The problem of designing secure DEMs in the standard model is effi- ciently solved using well-known cryptographic techniques (cf. [CS03]). Therefore, designing secme hybrid encryption schemes within the KEM-DEM methodology is reduced to designing secure KEMs. Three elliptic curve based KEMs have been under scrutiny for eventual standardization (for instance in [Sho04, NES03a, CRY03]), namely, ACE-KEM, ECIES-KEM and PSEC-KEM. Their security relies on different problems related to the elliptic curve discrete logarithm (ECDL). PSEC-KEM use the Random Oracle (RO) heuristic [BR93] in its security proof; while ACE-KEM and ECIES- KEM can be proven secure either in the RO model or the standard model. These schemes were first proposed as KEMs in [Sho01], the ISO standard draft for public key encryption by Victor Shoup, while in their original form they were submitted by IBM, Certicom and NTT corporations, respectively. From a practical point of view, it is agreed that using a 160 bit key size in these KEMs suffices to meet the current demanded security level. Thus, this parameter does not allow to difference between them. Therefore, comparisons take into account the underlying hard problem used in their security proofs, their computational cost or their resistance against physical attacks (cf. [NES03a]). Regarding PSEC-KEM and ECIES-KEM, the literature mostly considers PSEC- KEM maTe secure than ECIES-KEM. The main reason argued is that, in the RO model, the latter reduces to a stronger hardness assumption than the former. Our contribution. In the first place, we find out that there is no evidence in the literature supporting that PSEC-KEM with a 160 bits key size results in a sec me implementation for the current security level. This is because its security reduction to the ECDH is not efficient enough. In fact, we show that using the existing security reduction, a key size providing security guarantees should be of roughly 280 bits. Surprisingly, one even finds in the literature claims stating that PSEC-KEM has a tight security reduction to ECDH (for instance in [Shi01, MenOI]). Our next goal, then, is to find some reasonable security argument for using a 160 bit key length. In second place, we show that the security proofs for PSEC-KEM can be straightforward modified to obtain a tight reduction to an easier but still conjec- tured hard problem, namely, the Gap-ECDH problem. The new reduction does not appear in the previous literature and enables the use of the short key size with security guarantees. 18 Finally, we review the security comparison between ECIES-KEM and PSEC- KEM at the light of these new considerations. It is generally agreed that PSEC- KEM offers better security guarantees than ECIES-KEM. The main reason ar- gued to support this (see [MenOl, ShiOl, Den02, NES03b) is that the security of ECIES-KEM in the RO model is reduced to the Gap-ECDH problem, while PSEC-KEM is reduced to the potentially harder ECDH problem. However, the only practical reduction known for PSEC-KEM is the one we present, and that means using the tight reduction to the Gap-ECDH problem. On the other hand, security arguments in the standard model are known for ECIES-KEM, but not for PSEC-KEM. Our point of view is that we can not claim that one of the schemes is more secure than the other from a provable security point of view with the iuformation currently available. The rest of this work is organized as follows. In Section 2, the key ingredi- ents about PSEC-KEM and ECIES-KEM are summarized as well as their main security properties found in the Iiterature. In Section 3, a secure key size for PSEC-KEM is computed using the inefficient security reduction to the ECDH problem. Since the key size obtained is longer than desired, in Section 4 we show the reduction of PSEC-KEM to the Gap-ECDH problem, which provides secu- rity guarantees in the Random Oracle model for this KEM with a short key size. Finally, we end in Section 5 with some remarks about the security comparison between PSEC-KEM and ECIES-KEM. PSEC AND ECIES SECURITY PROPERTIES AVAILABLE IN THE LITERA- TURE We first summarize some notation. If p is a positive integer, then Ipl denotes the length of its binary representation. If A is a non-empty set, then x, y +- A denotes that x, y have been uniformly and independently chosen from A. On the other hand, if A is a probabilistic polynomial time (PPT) algorithm, then x +- A denotes that x is the output of A. Hash and 1 3. For finite fields with characteristic 2 or 3, the equation defining an elliptic curve takes different forms [Men93]. Let Gp = (P) be a cyclic group of prime order p, where P E Ea,b(IFq). Then: - The discrete logarithm (ECDL) is the problem of finding v, when given (P, 'uP), where u +- Zp- - The computational Diffie-Hellman problem (ECDH) is the problem of find- ing uvP when given (P, u.P, vP), where u, v +- Zp, - The decisional Diffie-Hellman problem (ECDDH) is the problem of distin- guishing (P, uP, vP, uvP) from (P, u.P, vP, wP), where u, v, w +- Zp. - The Gap Diffie-Hellman problem (Gap-ECDH) is the problem of finding uvP when given (P, uP, vP) and an oracle 0 that correctly solves the de- cisional Diffie-Hellman problem, where u, v, w +- Zp, - The Oracle Diffie-Hellman problem (ODH) is the problem of distinguishing (P,uP,vP,H(uvP)) from (P,uP,vP,I<), where H: {O,l}' ---> {O,1}hle11. is 20 a suitable hash function, u, v +- Zp, K +- {O, l}hlen , and an oracle 1-iv which answers H(zvP) when queried with z P is available. The query u.P is not allowed. It is assumed that u, v, w +- IF'q. Notice that all three KEMs are intended to be performed on random elliptic curves [BSS99], so all these problems are assumed to be intractable. All of them are well established, except for the gap- ECDH problem, which was formally introduced in [OPOl]. It is an open problem to establish all the relations between them. In fact, we rigorously know little more than the obvious reductions, which are ECDDH infeasible =? ECDH infeasible =? ECDL infeasible; Gap-ECDH infeasible =? ECDH infeasible and ODH infeasible =? ECDH infeasible. Thus, the best way known to attack these problems in a general elliptic curve is to solve ECDL. The fastest method for solving ECDL on a random elliptic curve is the Pollar (] method [Pol7S], which runs in exponential time v;qri for a group with q elements. It is unknown whether there exist groups for which the ECDH problem is substantially easier than the ECDL prob- lem, while the ECDDH problem appears to be easier than the ECDH problem in general. We refer the reader interested in the state of the art to [MWOO]. Criterion 2 (Concrete security) The efficiency of a reduciion is the relation- ship between an attacker who breaks the cryp/'osystem with probability at least I': in time t, doing less than qD calls to a decryption oracle, and less than qic calls to an oracle for a hash or a K D F function; and the implied (t', 1':') sol ver against the corresponding trusted cryptographic assumption. Such an attacker is referred as a (t, 1':, ao, qoJ attacker [or short. Following the usual terminology, the security reduction is tight if f, :::;~, and not tight if f, > qD~. The tiqhter is the redsic- iion, the smuller is the gap between the computational efforts needed to break the scheme and to solve the underlying problem. The optimal tightness is achieved with very tight reduciions. Criterion 3 (Security level) To be consistent with the time units commonly used in the literaiure, we use the sentence a problem P has a 2t security level to say that, an attacker against P, running in time less than 2t 3-DES encryptions (cf. [LVOl]), has a negligible success probability. The current demanded security level is 280. 21 Previous security claims A schematic description of these algorithms can be found in Table 1. The first step of the key generation algorithm in the schemes studied is to build a suitable curve E, together with a point P that generates a secure cyclic subgroup Gp of E, with prime order p. Moreover, p is of sizeé', where é is the security parameter. So we will assume that the key generation algorithm takes the group parameters (E, P, p, e) as input. ECIES -KEM (pk,sk) <- qE,p,p,e) (I(, C) <- £(pk) I( <-'D(C,sk) 1.s<-Z; 1.r<-Z~ 1. Q:- sC 2. W:=sP 2. C:=,.P 2. If Q = 0 :1. pk:= (E,P,p, W,e) 3. Set x the output .L and halt 4. sk := (s, pk) x-coordinate of ,.W 3. Set x x-coord. of,.W 5. Output (pk.sk) 4. K = KDF(Cllx) 4. J( = KDF(Cllx) 5. Output (I(, C) Output, J( PSEC - KEM (pk,sk) <- qE,p,p,e) (I<, C) <- £(pk) K <- 'D(C, sk) l.Sf-Z; 1. '1' ~ {O, 1)' 1. ParseCas(C1,C2) 2. W:= sP 2. H:= I O. A pair- (G, J) is called ()-mbust if, for all x, y, z E M, ij d(y, x) :S () ~ G(y, J(x; kj) = k and ii] d(z, x) > ()~ G(z, J(x)) =7. 31 Definition 2 Let b, Ea, Ee :::::O. A joint distribuium lp'x,y,z on M3 is called (b, Ea, Ee) -reliable if it satisfies i) Prob( deY, X) > b) :::;Ea and ii] probe d( Z, X) :::; b) :::;Ee. The probabiliiies are ouer the joint distriinüion lP'x,Y,z· Notice that if (G, I) is b-robust and if lP'x,y,Z is (b, Ea, Ee)-reliable, then we obtain Prob(G(Y, ux, K)) = K) :::::1 - Ea and Prob(G(Z, nx, K)) =?) ::::: 1 - Ee, which expresses that FRR and FAR are at most Ea. and e; respectively. The next definition [LT03] models the information theoretic security of a single key. Definition 3 (Single) The pair (G, I) is called injormation theoreiicallsj t;-sccure or e-non-reoeclinç urri to lP'X,Y,Z,K if I(K; Ji X: K), Z) :::;E. The next lemma states the security of an ensemble of keys with each of the keys corresponding to a different biometrie template. Its proof follows imme- diately from the assumed statistical independenee of the different key-biometric pairs. Lemma 1 (Multiple) Let (G, I) be injormation theoretically e-secure wrllP'x, ...·,Z,K. D",fine 1'( {Xi};=l; {kJ£=l) = {l(x;, ki)}{=l and G'( {Yi}f=l; {r;};=1) = {G(Yi' Ti)H=l' Then (G', I') is injormation theoretically iqe )-secuTe wrllP'x',Y' ,Z',K' = (lP'X,Y,Z,K)q. It is desirable to renew the key corresponding to a single biumetric x. This implies that the adversary obtains multiple lex; kil from the database which increases his knowledge abuut x and possibly each of the k;'s. The next lemma shows that there is an upper bound on the number of times an s-secure key can be renewed. Lemma 2 (Multiple) FOT q > 0, define l'(x; {ki}?=l) = {lex; ki)};=l and G'(y,{riH=l) = {G(y,Ti)};=l' Then, given a joint distributionlP'x,Y,Z XlP'K, the pair (G', I') is not informaiion theoreticallsj E-seCUTe urrt to lP'X,Y,Z,K' = lP'x,Y,Z X (lP'K)q for E < qH(K) - H(XIZ). Equivalently, if (G', I') is c-secure, then q, the number of securelsj distilled keys, is bounded by «< (H(XIZ) + E)/H(K). Proof: Define K' = {K;};=l' hence, lP'X,Y,Z,K' = lP'X,Y,ZrU=llP'Ki' By using H({Ki}f=l) = qH(I<) and G(X, rix, Ki)) = tc.. Lemma 2 follows from H( {Kd;=ll{ iix, Ki)}i=l, Z) < H( {K;};=l> XI{l(X; Ki)};=l' Z) H(XI{J(X; K;m=l' Z) < H(XIZ) 32 and I( {Ki}l=l; {J(X; Ki)}£=l, Z) H( {Ki}{=l) - H( {Ki}{=ll{J(X; Ki)}{=l, Z) ;::- qH(K) - H(XIZ). Robustness implies that, given the information in z ~ Z about X, both K = G(X, J(X; K)) and J(X; K) always reveal extra unconditional information about X to the adversary [LT03]; X has only partial privacy. 3 Fuzzy Extractors Secure sketches and fuzzy extractors are introduced and defined by Dodis et al. in [DRS04] and can be used to obtain robust and secure pairs. Their approach uses the min-entropies Hoo(A) = = log max, Prob(A = a) and Hoo(AIE) = - log Ebf-B max; Prob(A = alE = b), which measure the uncertainty about ran- dom variable A without and with knowledge of random variable E. Definition 4 Let M be a metric space with distance junction d. An (M, m, m', t)- secure sketch is a randomized map SS: M --+ {O,I}' such that ij there exists a deterministic recovery function Ree such that, for all x, y E M, if d(y, x) ::; t then Rec(y, SS(x)) = x, and, iiJ for all random variables X over M, if Hoo(X) ;::-m then Hoo(XISS(X)) ;::-m'. Definition 5 An (M, m, I, t, e) fuzzy extractor has two procedures Gen and Rep such that: ij Gen is a probabilistic generation procedure, which on input x E M outputs an extracted string k E {O, l}l and a public string w. For any random variable X over M with Hoo(X) ;::-m, if (K, W) ~ Gen(X) then the L1 distance? IIIP'K,W-lP'u,wlh = L IProb(K = k, W = w) - ProbîU = k, W = w)1 ::; 2ê, k,w where U is a statistically independent uniform random variable over {O, 1 Jl. ii] Rep is a deterministic reproduetion procedure such that, for all x, y E M and (le, w) ~ Gen(x), if d(y, x) ::; t then Rep(y, w) = le. 3The statistical or variational distance equals half the L, distance. 33 The main contribution in [DRS04] is that a (M, m, m', tl-secure sketch can be used in combination with a pairwise independent hash function [NZ96] (which implements privacy amplification) to construct a (M, m, i, t, s ) fuzzy extractor with i = m' - 2Iog(l/é). In this construction the public string iu is equal to the randomness r used to select a pairwise independent hash function together with SS(x); ui = (SS(x), r}. We notice that the extracted string k can be used to share a (predetermined) arbitrary secret key. We simply include the xor of k and the biometrie x in the public string ui (the L1 distance remains the same if the secret key is uniformly distributed). The following theorem shows how an information theoretically secure and strongly robust pair (G, J) is constructed from a fuzzy exrtractor. We first present a technical lemma. Lemma 3 Let E be a two valued random variable. If Probi B = false) ::; e, then IH(A) - H(AIB = true) I ::; 1*) + IAlé, uihere h(x) = -(1- x) log(l - x) - x logx is the binary entropy function. Proof: From the definition of the conditional entropy we deduce H(AIE) = H(AIB = truc) + Prob(R = false)(H(AIB = false) - H(AIB = true)). Hence, IH(AIB) - H(AIB = true)1 ::; élAI· By tbe definition of mutual information, l(A; E) ::; H(B) ::; h(é). We conclude IH(A) - H(AIB = true)1 ::; I(A; B) + IH(AIB) - H(AIB = true) I ::; h(,;:) + IAlé. Theorem 1 Suppose that there exists a (M, m, l, 8, e ::; 1/4) fuzzy extractor with generation and reproduetion procedures Gen and Rep construcied by using a se- cure sketch and with K uniformly distributed over {O,I}' statistically independent from (X, Y, Z). Then, there exists a o-robust pair (G, J) which is information the- oretically T)-seCUTe,with T) = h(2é) + 2é(IGen(X)1 + IKI) + h(ée) + éelKI, uiri (8, ca 2: 0, Ce 2: D)-reliable probability distributions lP'x,v,z over M3 satisfying4 Probz<--z[Hoo(Xz) 2: m]2: 1- 2c, (1) 4Suppose that i) Prob(X = xlZ = z) = p(d(x, z)) for some non-increasing function p(.) and that ii) Prob(d(X, Z) = tlZ = z) is independent of z . Then, by i), Prob(X = x, d(X, Z) > ólZ = z) is equal to p(d(x, z)) if d(x, z) > ó and equal to 0 if d(x, z) ~ Ó. Since p(.) is assumed to be non-increasing, Prob(X = x, d(X,Z) > ólZ = z) ~ p(Ó). lfJJ>x,Y,z is (Ó,é:a,é:e)- reliable, then, by ii), Prob(d(X, Z) > ÓIZ = z) = Prob(d(X, Z) > Ó) ~ 1 - é:e. This proves 34 where X, = [XIZ = z, d(Z, X) > 0]. Proof: Let Gen and Rep be the generation and reproduetion procedures of the fuzzy extractor. If the fuzzy extractor is constructed by using a secure sketch, then the procedure Rep(z, w) embeds Rec. The recovery function Ree reconstructs x if d(z, x) :::::0. W.I.o.g. we assume that if Ree reconstructs x then Rep compares x and z and outputs x if and only if d(z,x) :::; 0. Define J(x;k) = w by (k,w) +- Gen(x) and define G(y,w) = Rep(y,w). Then the second part of the definition of a fuzzy extractor implies condition i) of o-robustness. Since Rep(z, w) only outputs k if d(z, x) :::; 0, condition ii) of ó-robustness holds. In order to prove information theoretical security we use the first part of the definition of a fuzzy extractor; if Hoo(Xz) 2': m and" (K, Wz) +- Gen(Xz), then IIIP'K,W, -lP'u,wzlll :::::2E. By definition, the number of bits to represent (K, Wz) is equal to I(K, Wz)1 = IGen(Xz)1 = IGen(X)I· See [CT91], since the L1 distance between IP'K,W, and lP'u,w, is smaller than 1/2, IH(K, Wz) - H(U, Wz)1 < IIIP'K,W, -lP'u,w, Ih(IGen(X)I-log IIIP'K,W, - lP'u,w, Ill) :::; h(IIIP'K,w, -lP'u,wzlh) + IIIP'K,W, -lP'u,wzlllIGen(X)I· Hence, IH(K, Wz) -H(U, Wz)1 < h(2E)+2EIGen(X)I, or equivalently, IH(KIWz)- H(UIWz)1 :::; h(2é) + 2EIGen(X)I. Since U and Wz are statistically independent and U is, like K, uniformly distributed over {O, 1}1, H(UIWz) = H(U) = H(K). Hence, H(K) - H(KIWz) = IH(KIWz) - H(UIWz)1 :::::h(2E) + 2éIGen(X)I. Since (K, WJ +- Gen(Xz), Wz = J(Xz; K) = [J(X; K)IZ = z , d(X, Z) > 0] and we obtain H(K) - H(KIJ(X; K), Z = z, d(X, Z) > 0) :::; h(2é) + 2EIGen(X)I. (2) Prob(X = xlZ = z,d(X,Z) > ó) = Prob(X = x,d(X,Z) > ólZ = z)/ Prob(d(X,Z) > ólZ = z) :S: p(Ó)/(I - ée) and we conclude Hoo(Xzl = log max, Prob(X = xlZ = z,d(X, Z) > ó) 2 = -Iogfp(ó)/(I- ée)]. See condition (1), Probz<--z[Hoo(Xz) 2 m] = 1 for p(ó)/(I - ée) :S: 2-m (notice that p(ó) is at most ée and is in general orders of magnitude smaller than ée). 5Since K is uniformly distributed and statistically independent from (X, Y, Z), we do not need to index K by using a subscript z. In particular, H(K) = H(KIZ = z,d(X, Z) > ó). 35 This holds for all z with Hoo(X.) 2: m. See (I), the probability that z is such that Hoo(Xz) < m is at most 2é, in which case we bound the left hand of inequality (2) by H(K) ::; IKI. Hence, H(K) - H(KIJ(X; K), Z, d(X, Z) > b) ::; h(2é) + 2éIGen(X)1 + 2é1KI. (3) Let B = [d(X, Z) > b). Since lP'xy,Z is (b, éa, ée)-reliable, Prob(B = false) ::; e.. Lemma 3 yields IH(KIJ(X; K), Z) - H(KIJ(X; K), Z, d(X, Z) > b)1 ::; h(ée) + éelKI. (4) Inequalities (3) and (4) conclude the proof (notice that H(KIZ) = H(K)); I(K; J(X; K)IZ) = H(K) - H(KIJ(X; K), Z) ::; h(2é) + 2dIGen(X)1 + IK!) + h(ée) + éelKl· Theorem 1 shows the strength of fuzzy extractors; they achieve information theoretical secure and robust pairs (G, J) wrt a large class of distributions lp'x,y,z. Corollary 1 Let M = {O, I} n and let d. be the Hamming distance. If there exists a [n,k,2b + 1) code C, then there exists a b-robust pair (G,J) with i) H(K) = m - (n - k) - 2co logn and which ii) is information theoretically ïl : secure, 'f} = h(2n- ) + 6n- + + h(n- ) + n- +', wrt (b,2: 0, n-q )-reliable CO co 1 C1 C1 probability disiributions lp'x,y,z over {O,I}" x {O,I}" x {O,I}n satisfying (1). Proof: Lemma 3.1 and 4.1 in IDRS04) show that, given a In, k, 2b + 1) code C, there exists a (M = {O,I}n,m,l (n - k) - 210g(I/ë),6,ë = m - = n-CC) fuzzy extractor constructed by using a secure sketch with IGen(X) I ::; 2n and H(K) = IKI = l ::; n. The proof follows from Theorem l. We infer from Definition 2 that the adversary knows less about X for increas- ing Cl. While keeping "I fixed, Co decreases for increasing Cl· Decreasing Co lead to a larger key size H(K). So, Corollary 1 corresponds to our intuition that if an adversary knows less about X then the secure key can be larger. 4 Conclusion In this contribution we model the security, robustness, and reliability of biometrie key distillation schemes. Dodis et al. [DRS04) introduced fuzzy extractors. Their 36 main motivation is that a fuzzy extractor can be used to construct a biometrie key distillation scheme which is secure and robust wrt all distributions selected from a large class of reliable distributions (each of which describes biometrie templates used for reference information, measured biometrie templates, and adverserial side information). In this contribution we use our model to make this universal property explicit. REFERENCES [AC93] R. Ahlswede and I. Csiszár, Common Randomness in Information Theory and Cryptography - Part I: Secret Sharing, IEEE Transac- tions on Information Theory, 39(4):1121-1132, 1993. [CT91] T.M. Cover and J.A. Thomas, Elements of Information Theory, Wiley, 1991. [DFM] G.I. Davida, Y. Frankel, and B.J. Matt, On enabling secure appli- cation through off-line biometrie identification, In IEEE 1998 Sym- posium on Research in Security and Privacy, 1998. [DRS04] Y. Dodis, L. Reyzin, A. Smith, Fuzzy Extractors: How to generate strong secret keys from biometrics and other noisy data, In Advances in Cryptology - Eurocrypt'04, LNCS 3027, 523-540, 2004. [LT03] J.-P. Linnartz and P. Tuyls, New shielding functions to enhance pri- vacy and prevent misuse of biometrietemplates, 4th International Conference on Audio- and Video-Based Biometrie Per-son Authenti- cation, 2003. [M93] U. Maurer, Secret Key Agreement by Public Discussion from Common Information, IEEE Transactions on Information Theory, 39(4):733-742,1993. [NZ96] N. Nissan and D. Zuckerman, Randomness is Linear in Space, Jour- nal for Computer- and System Sciences (JCSS), 52(1):43-52, 1996. [SRS+98] C. Soutar, D. Roberge, S.A. Stojanov, R. Gilroy and B.V.K. Vijaya Kumar, Biometrie Encryption-Enrollment and Verification Proce- dures, Proc. of SPIE, Vol. 3386, 24-35, April 1998. [UPP+04] U. Uludag, S. Pankanti, S. Prabhakar, and A.K. Jain, Biometrie Cryptosystems: Issues and Challenges, In Proceedings of the IEEE, Vol. 92, 6, June 2004. 37 ONE- TO- TEMPLATE AND ONE-TO-ONE VERIFICATION IN THE SINGLE- AND MULTI-USER CASE Raymond Veldhuis, Asker Bazen University of Twente, Fac. EEMCS P.O. Box 217, 7500 AE Enschede, The Netherlands R.N.J.VeldhuisQutwente.nl This paper studies likelihood-ratio-based veri cation with an estim.ated, thus random, template. In particular; we have studied the case that N ~ 1feature vectors are available for template construction. The resulting, optimal, veri er is compared with two versions ofthe standard likelihood-ratio veri er: one with the expected feature vector J-t as 'pararneter; and one with p. replaced by an. estimate itN. INTRODUCTION Biometrie veri cation can often be interpreted as determining the similarity be- tween a feature vector measured from a body characteristic and a prototype feature vector, called a template. In practice, the template is estimated when the user is en- rolled. In the case, among others, of likelihood-ratio-based veri cation on Gaussian data, the template is tbe expectation of the feature vector. An estimate can then be obtained by averaging a number of independent enrolment examples. Often, how- ever, collecting a number of examples during enrolment is impractical or considered to be user unfriendly and single feature vector is taken as the template. This raises the question how the veri cation performance is affected by replacing the template by an estimate, in particular if this is a single feature vector. In [I] it is demonstrated for n- gerprint veri cation that the equal-error rate decreases when the number of examples averaged for template construction increases. This paper studies likelihood-ratio-based veri cation with an estimated, thus ran- dom, template. A veri er based on thresholding the likelihood ratio is optimal in the sense that it minimizes the false-acceptance rate (FAR) Cl! at a given false-reject rate (FRR) (3 and vice versa. Goseling et al [3] derived a likelihood-ratio veri er for the case that the template is a single feature vector and compared it with correlation-based and Euclidian-distance-based veri ers. We extend this result to the case that N ~ 1 feature vectors are available for template construction. The resulting, optimal, veri er 39 is compared with two versions of the standard likelihood-ratio veri er: one based on the expected feature vector M, and one wi th M replaced by an esti mate fl N. The results are summarized as follows. The expression for the new veri er is of the same form as that for the standard likelibood-ratio veri er , with N and the average flN appearing as parameters. With increasing N its receiver operating characteristic converges rapidly to that of the likelihood-ratio veri er with known M. For one user, the new veri er is equivalent to the standard likelihood-ratio veri er with M replaced by flN. In the multi-user case, this is not true, but the optimal veri er is only marginally better. OPTIMAL ONE-TO-MANY VERIFICATION We derive an expression for the likelihood ratio L( u, VI, ... , V N), which discri m- inates between two cases: HI The measurements u and VI, ... , VN have been drawn independently from the same probability density function (PDF) pw(uiC), with class C unknown. The subscript W stands for 'Within class'. HO The measurement u has been drawn from a PDF pw(uiC') and the measure- ments ·VI, ... , VN have been drawn independently from a PDF pw(viC). The classes C' and C are both unknown. We assume that pw(xiC) is normal and that the elements of x are independent: with E{xiC} = MandE{x~iC} = ?,."i' i = L, ... ,m. We alsoassumethattheelements of a feature vector x, randomly drawn from the observation space, are independent and identically distributed and have a normal PDF PT( u) with zero mean and unit variance. The subscript T stands for 'Total'. A class is characterized by its expectation, or center, M, which is an unknown stochastic vector with a PDF PB(M). The subscript B stands for 'Between class'. The class center M has zero mean and independent elements with var{J.Ld = ~,i = 1- ?"'.i.]n practice, these conditions can be met by applying a linear transferm that sirnultaneously whitens the observation space and uncorrelates the genuine feature vector [2]. Because all the elements of the feature vectors and class centers are independent, we have that m L(u, VI,···, VN) = IT L('Ui, VI,i,···, VN,i). (1) i=l 40 In order to keep the notation simple, we, therefore, focus on one factor of this prod- uct and consider scalar stochastic variables 'U, Vl, ... , VN, and u, The within-class, between-class, and total PDFs are denoted as pW(lLlj.L), PB (j.L), and PT( 1L), respectively. As said, j.L is unknown, but independent examples VI, ... ,VN drawn from the class with center j.L are available. The veri cation question is then: 'Does the observation 1L belong to the same class as Vl, ... ,V" (H 1) or not (HO)?'. If Hl is true, we have that 1L = j.L + Xo and Vj = j.L + Xj, j = 1, ... ,N, for some u, The Xj are zero-mean stochastic variables with variance ~. If HO is true, we have that 'u = u' + Xo and Vj = j.L + Xj, j = 1, ... ,N, for some j.L' and u, We can write the likelihood ratio as L('U,Vl, ... ,VN) = Jpw ('ulj.L')pB (j.L')dj.L' J pW(Vl, ... , VNIj.L)PB(j.L)dj.L J PW(lLlj.L) TIi Pw (Vi 1j.L)PB(j.L)dj.L (2) PT(lL) I TIiPW(Vilj.L)PB(p,)(p.)dj.L· lhe numerator at (2) can be expanded as . (__g__)~ I (",2+ 2:, t})-~(u.+ 2::1 1)j)2 / ( pw 1LIp,) IT Pw(vilj.L)Ps (p,)df.< = N+l+e 2 ~ - e 2 O"~ (3) 'i (2 w) 2 with 2 2 der W W f2 = -2 = --2-' (4) B 1- w The number f2 is an indicator of how well a class can be veri ed. A f2 « 1 indicates a good veri cation performance, The denominator of (2) can be expanded as (5) and (_L)~ I I>J~NT.(L:iVj)2 j , ITPw(vilj.L)PB(j.L)(j.L)dj.L i = N+:; -ft e-2 (2 w) 2 q~ (6) For the log-likelihood ratio l( u, VI, ... ,VN) ~ 10g(L( U, VI, ... ,VN)) it then follows after some manipulation that 41 with , f.iN=-~Vj. 1 '" (8) N j An estimate flN for f.i appears in (7). Note that this has not been imposed in any way, but it could have been predicted because of the Gaussian assumptions. For f.i known, the log-likelihood ratio is (9) Note that (7) and (9) are of the same form and differ only in constants. In fact, for nite e, (JO) with the limit taken in mean-square sense. The case N = 1 deserves some more attention, because this represents the case that one example of a biometrie is taken as a template. For N = 1 we have fl = V and L(u, VI,···, VN) = ZCtL, V), with (1J) For a class with good veri cation performance, i.e. e « 1, we have 1 2 1(U,-V)2 t£2 L(u,v) ~ -210g(2 w) - 2 2 2 + 2' (12) w For a small within-class variance and '!f small enough, this is the likelihood of the difference u - v, given that u and V are within the same class. Indeed, a straightforward test whether or not u, and u are drawn from the same distribution would be to test whether their difference is small enough. PERFORMANCE The veri cation performance is characterized by the receiver operating charac- teristic (ROC): a plot of pairs (a(t), (J(t)), with aCt) and (J(t) the FAR and the FRR at threshold t for some similarity measure. In this paper the similarity measure is Z(u, Vl, ... , VN) in (7), L(u; f.i) in (9), orL(u; flN). The latter is a suboptimal version of l(u; J.t) with J.t replaced by an estimate flN. Often, and also here, the equal-error rate 42 (EER) is used as a single quanti er of performance. The EER is the FAR, or FRR, at the point te at which a(te) = (J(tc). Figure I illustrates that the ROes obtained with l(U,VI, ... ,VN) (dashed lines) approach the ROe obtained with l(tt; f.L) (solid line), for increasing N. The parameters are (! = 0.1, f.L = 0.2. The ROes obtained with l( u, VI, ... ,VN) are the averages of 100 independent draws of VI, ... , VN. cr: cr: LL 101 L- ~ ~~~~~~~~~~ 1 10 10° FAR Figure 1: ROe obtained with l(v.; jJ,) for known class mean. f.L(solid line) and ROes obtained withLiu; VI, ... ,VN) for N = 1,2,5,10 (dashed lines). Parameters: (! = 0.1, f.L = 0.2. The ROes obtained wiihliu, VI,···, VN) are averages of 100 independent draws of VI, ... , VNo A veri er based on thresholding the log-likelihood ratio l( u, VI, ... ,VN) in (7) is optimal in the sense that it minimizes the FAR a al a given FRR (J and vice versa. The question can be asked. therefore, how good it is compared with a veri er based on l('u.; (lN), such as, for instance, used in [1]. A rst experiment had as a, somewhat striking, result that for given Vb' .. , VN the ROes of both veri ers were precisely on lop of each other. lndeed, a simple analysis shows that , N+1+{! l(U;f.LN)= N l(U,VI,· .. ,VN) (13) 1 (1 + (!) ,2 1 N + 1 + {! I (N + 1 + (!) 11 + o 1 ( -'2 (N + {!)f.LN + '2 N og N + (2 + og ~). '2--;::;- This means that for given VI, ... , VN the veri ers based on thresholding l (u, VI, ... , VN ) 43 and l( tL; JLN) are equivalent, albeit that identical points (ex, (3) on their ROes cor- respond to different thresholds. If the expected performance is measured for ran- dom draws of VI,' .. ,VN, it is no longer true that the performances obtained with l(u,vl, ... ,VN) and l(u;itN) are the same. After all, l(u,vl, ... ,VN) is optimal for that case. This is con rmed by Figure 2, which shows ROes for Q = 1, obtained with the optimal log-likelihood ratio l(u, v) (solid line) and with l(u; v) (dashed line), av- eraged over 100 independent draws of v. The ROe obtained with l( u, v), however, is only marginally below the ROe obtained with l(u; v). A lower value of Q or a higher value of N would have resulted in ROes that were even closer. 0.5 ··T· \ . \ . 0.4 . 0.3 cr: cr: IJ.. 0.2· 0.1 0 0.2 0.4 0.6 0.8 FAR Figure 2: ROes based on the optimal log-likelihood ratio l( u, VI, ... ,VN) (solid line) and on l(u; it) (dashed line). Parameters: Q = 1, N = 1. We investigated whether a higher dimensionality would lead to a larger difference between the ROes obtained with l(u, v) and with l(u; v). This was done with a fea- ture set obtained with a system for hand-geometry recognition described in [5]. In [5], this set is known as the reference set. The feature vectors consist of 30 geometrical fea- tures, such as lengths and widths of ngers, that are commonly used in hand-geometry recogni tion. The data set contains 10 to 20 feature vectors derived from the right hand of each of 51 subjects. It contains a total of about 850 images. The veri cation sys- tem in [5] performs a dimensionality reduction prior to veri cation. This is based on a principal component analysis (peA) on a training set retaining 26 principal compo- nents. Subsequently a linear discriminant analysis is performed retaining d ~ 26 most discriminative dimensions. In the experiment the dimensionality d was varied between 44 6 and 26. The similarity measure was l(u; v). The experiment was called exclusive one-to-one testing, in which in each trail a random selection of 75% of the classes (i.e. 38 classes) were used for training and the other 25% (i.e. 13) for testing. This means that there were about 3276 genuine attempts and 83758 imposter attempts per trial. With 20 trials this amounts to a total of 65520 genuine and 1675160 imposter at- tempts. The experiment was repeated. In each trial both l(u; v) and l(u, v) were used as similarity measures. The EER was taken as the measure of performance. It was estimated for each similarity measure from two grand sets containing all the genuine and imposter matching scores, respectively, that were measured in the 20 experimental trials. The results are shown in Figure 3. The solid line shows the EERs obtained with l(u, v). The dashed line shows the EERs obtained with l(u; v). The EERs obtained 0.01 cr: 0.008 UJ UJ 0.006. 0.004 0.002 OL-----~----~----~----~-----J 5 10 15 20 25 30 DIM Figure 3: Equal-error rates asfunction of dimensionality d of a veri er based on the optimal log-likelihood ratio [(u, v) (solid line) and on l(u; v) (dashed line).for hand- geometry data. with l(u, v) are slightly below those obtained with l(u; v), but the difference remains marginal. Moreover, the differences ate below the level of the natural uctuations of estimated EERs. CONCLUSION This paper studied likelihood-ratio-based veri cation with an estimated, thus ran- dom, template. In particular, we studied the case that N 2:: 1 feature vectors are avail- able for template construction. The resulting, optimal, veri er was compared with two 45 versions of the standard likelihood-ratio veri er: one based on the expected feature vector 1-£, and one with 1-£ replaced by an estimate {LN. The results are summarized as follows. The expression for the new veri er is of the same form as that for the likelihood-ratio veri er with known 1-£, but N and the average {LN appear as parameters. With increasing N its receiver operating character- istic converges to that of the likelihood-ratio veri er with known 1-£. For one user, the new veri er is equivalent to the standard likelihood-ratio veri er with 1-£ replaced by {LN. In the multi-user case, this is not true, but the optimal veri er is only marginally better and the improvement is less than the natural uctuations that occur in measured equal-error rates. One main conclusion of this paper is that using more than one example for tem- plate construction improves the recognition performance. This has already been ob- served in, for instance, [I] and [4]. Another main conclusion is that there is, under Gaussian assumptions, an optimal similarity measure for veri cation based on esti- mated templates, but that it gives only marginally better results than what can be obtained by plugging in estimated means into a standard log-likelihood ratio based veri er . REFERENCES [I] A.M. Bazen and R.N.]. Veldhuis. Likelihood-ratio-based biometrie veri cation. IEEE Transactions on Circuits and Systems for Video Technology ; ]4(1):86-94, January 2004. [2] K. Fukunaga. Introduetion to Statistical Pattern. Recognition. Morgan Kaufmann, San Diego, second edition, 1990. [3] Jasper Goseling, Stan Baggen, and Ton Akkermans. Veri cation using partially known biometrics. In Proceedings of the 24th Symposium. on lnformatiori Theory in the Benelux, pages J l 7-124, Veldhoven, The Netherlands, May 2003. [4] R. Sanchez-ReiIJo, C. Sanchez-Avila, and A. Gonzalez-Marcos. Biometrie identi- cation through hand geometry measurements. IEEE Trans. Pattern Analysis and Machine Intelligence, 22(10): 1168-1171, October 2000. [5] R.N.J. Veldhuis, A.M. Bazen, W. Booij, and A.J. Hendrikse. Hand-geometry recognition based on contour parameters. In Proceedings of SPIE Biometrie Tech- nology for Human [den ti cation /I, pages 344-353, Orlando, FL, USA, March 2005. 46 REAL-TIME FACE DETECTION USING A CASCADE OF NEURAL NETWORK ENSEMBLES F. Zuoa and P. H. N. de Withab aEindhoven University of Technology, LG 0.10, P.O. Box 513, 5600MB Eindhoven bLogicaCMG, TSE-2, P.O.Box 7089, 5605JB Eindhoven F.Zuo~tue.nl We propose a [near] real-time face detector using a cascade of parallel neu- ral network (NN) ensembles for enhanced detection accumcy and efficiency. First, we form a coordinated NN ensemble by sequentially training a set of neural networks with the same topology. The tmining implicitly partitions the face space into a number of disjoint regions, and each NN is specialized in a specific sub-teqion. Second, to r-educe the total computation cost for- the face detection, a series of NN ensembles ar-e cascaded such that the com- plexits] of base netuiorks increases. Our proposed approach achieves up to 94% detection rate (CMU+MIT test set) and 3-4% frames/sec. detection speed on a normal PC (P-IV, 3.0GHz). 1. INTRODUCTION Face detection has been advocated as an essential part within facial analy- sis and recognition. Furthermore, research results in face detection can widely facilitate generaJ object detection in visual scenes. Although tremendous effort has been spent on designing face detection techniques in the past decade, the performance trade-off still exists between two conflicting aspects: the detection accuracy (robustness) and the operation efficiency. Fast face detectors utilizing direct knowledge about faciaJ characteristics, such as calor and feature geometry, are often insufficient for the accurate discrimination between faces and non-faces. On the other hand, robust face detectors based on advanced learning techniques (e.g. Support Vector Machines (SVM) [1], Neural Networks (NN) [2)) often in- volve high processing complexity, which can be too costly for consumer use. Among the robust face detectors mentioned above, the neural-network based face detector by Rowley et al. [2] is presently one of the best-performing tech- niques. The system achieves good detection performance even with a difficult test-set composed of low-quality scanned images. However, the primary draw- back of the technique is the computation complexity (a reported example with 47 Component neural Component neural Component neural classifier "'1 classifier h~ classifier h", Figure 1: The architecture of a neural network ensemble. two networks of the same architecture on 320 x 240 pixels requires up to 383 seconds [2]). We proposed in [4] a cascaded face detector, utilizing a color-based detector and a geometry-based detector 8.'3 preprocessors to an NN-based detector, which effectively reduces the total computation cost. In this paper, we propose a homogeneous approach for face detection using a cascade of neural network en- sembles, which yields improved robustness in detection with similar computation cost to [4]. Furthermore, the proposed technique is highly efficient at the training stage. The design of the proposed detector involves the following two aspects: (1) construction of R coordinated ensemble of NNs for improved detection accuracy, and (2) construction of a cascade of NN ensembles for improved efficiency. This is illustrated in more details in the following sections. 2. CASCADE COMPONENT: A NEURAL NETWORK ENSEMBLE For complex real-world classification problems such as face detection, the use of a single classifier may not be sufficient to capture the complex decision boundary between different image patterns. In this section, we propose a novel technique that trains an ensemble of neural networks in a specific order to boost the detection performance. As shown in Fig. 1, our proposed classifier ensemble consists of two distinct layers: a set of se<.juentially trained component neural classifiers {hk 11 ::; k ::;M}, and a decision network g. Each hk is a multi-layer back-propagation neural network with fixed topology, and 9 is an independent neural network, which is trained to produce a nonlinear composite output from all component classifiers. The training of each component classifier hk depends on the behavior of its previous classifiers. Given training face set F, hk is only trained on a subset F.: (Fk C F), where Fk contains only face samples misclassified by its previous component classifiers. In this way, Fis im.plicitly partitioned into several disjoint 48 Face detection rate Face detection rate ::t~·~~~;~· 0.8 0.75 ~'/ pr '{ Ensemble Ensemble classifier with boostJ'ng classifier with bagging 0.7 ISJ1 0.65 'M ~ 0.6 0.6 ..__~-~~-~~-~~-~~--' o 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 OAS 0.5 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 OA 0.4$ 0.5 False ccccprcrce rate False acceptance rate Figure 2: Left: ROC curves of NN ensembles W.r.t. different M. Right: ROC curves of NN ensembles using clifferent training strategies (all tested on VJ and V,,). subsets, and each component classifier is trained specifically over a sub-region of the face space. In this way, more difficult samples are reinforced during the training process. During the training of each hk, we adopt the bootstrapping technique from [2], which iteratively adds new false positives to the current non- face training set. To verify the detection performance of an ensemble of NN classifiers, we train an NN ensemble with relatively simple base network topology. The trained ensemble will be used as the first-layer pruner in the final detection cascade (see the next section). The training face set :F consists of 6,304 highly variable face images, all cropped to the size of 24 x 24 pixels. We further build up a non-face repository with an initial set of 4,548 non-faces and 2,000 additional non-face scenery images for use in the bootstrapping procedure. For validation purposes, we use a separate test face set VJ consisting of 488 faces and a test non-face set Vn consisting of 23,573 non-faces. Each sample image is preprocessed to zero mean and one standard deviation to reduce the interference of global illumination, The base component network (denoted as FNET-A) is a three-layer network with locally connected neurons. It accepts a down-sampled 8 x 8 sample grid as its input, where each input element is an averaged value of a neighboring 3 x 3 block in the original 24 x 24 image. Each hidden unit in FNET-A is connected to a neighboring 4 x 4 block from the input layer. We depict on the left of Fig. 2 the ROC (Receiver Operating Characteristics) curves of ensembles with different number of cornponents. We can see that the detection performance of FNET-A ensembles consistently improves by up to three components, while adding more 49 Figure 3: A pruning cascade of neural ensembles. components does not yield significant improvements. Since using more classifiers inevitably increases the total computation cost, for a given network topology, we can select M with the best trade-off between the detection performance allel the computation efficiency. We also compare our proposed classifier ensemble with two other popular ensemble techniques, bagging and boosting [5], and the results are shown on the right of Fig. 2. It can be seen that our proposed approach produces the best results. 3. MULTI-NET CASCADE FOR FAST FACE DETECTION Formulation of a pruning cascade In this section, we apply the cascading scheme to the neural classifier ensemble to optimize the detection efficiency. A pruning face detection cascade is basically a degenerated decision tree, with classifiers arranged by increasing complexity (see Fig. 3). Simpler ensemble classifiers are used at earlier stages in the cascade, which are able to reject a majority of non-face patterns, therefore boosting the overall detection efficiency. Let us now suppose L classifier ensembles with increasing component corn- plexity. The behavior of each gi can be characterized by face detection rate f;(o.i) and non-face acceptance rate di(o.i), where o.i, is the output threshold for the deci- sion network. We need to choose a set of values for o.i, such that the performance of the cascaded classifier ç = {gi 11 ::; i ::; L} is optimized. Suppose we have a detection task with a total of T - F + N observations, where P denotes the true number of faces and N is the true number of non-faces. Initially, all observations are assumed to be faces. At the i-th stage of the cascade, Fi-1 observations need to be classified, among which F;, observations are classified as faces and Ni observations are rejected as non-faces. Note that Po = Tand Fi-1 = Pi + Ni (for 1 < i ::; L) (see Fig. 3). Furthermore, it is easy to see that (1) 50 where f;(Ctl, Ct2, ... , Cti) and di(Ctl, Ct2, ... , Cti) represent the detection rate and false acceptance rate, respectively, of the sub-cascade formed by the I-st to i-th en- sembles. An optimal cascade should achieve both high detection accuracy and operatien efficiency. Detection accuracy. To ensure good detection accuracy for an L-layer cas- cade, the following cost function should be maximized Cp(al, 02, ... , OL) = max{/L(al, 02, ... , OL)} subject to dd al, Ct2, ... , CtL) < Td, (2) where Td is a threshold for the final false acceptance rate. Operation efficiency. Suppose the classification of one observation by ensemble classifier 9i takes ti time. To classify T = F + N observations by cascade ç, we need a total amount of time (efficiency is expressed by time) L L Ce(Ctl, Ct2, ... , ilL) = L Fit; = LC/";(Ctl, 02, ... ai)F + di(al, 02, ... ai)N)ti, (3) i=l i=l where Jo = 1 and do = 1. One possible combined optimization goal based 011 both Eq. (2) and Eq. (3) can be formulated as a weighted summation, hence By adjusting w, the relative importance of desired accuracy and efficiency can be controlled. The direct optimization of Eq. (4) is computationally prohibitive, especially when L is large. In the following subsection, we will give a heuristic sub- optimal search for a trade-off between detection accuracy and operation efficiency. Implementation of a cascaded face detector We build a five-layer cascade of classifiers with increasing order of topology complexity, which are summarized in Table 1. We depict on the left of Fig. 4 the ROe curves for individual neural ensemble classifiers for face detection. Now we select the best set of parameters (ai, a:i, ..., oL) for bath high detec- tion accuracy and computation efficiency. Since the cascaded face detection rate 51 Network Structure FNET-A see Section 2. FNET-B 3 layers, 225 connections, with extended hidden neurons (6 x 1 and 2 x 3) compared with FNET-A, each of which looks at a 2 x 1 (or 4 x 3) block from its lower layer. FNET-C 4 layers, 447 connections, 24 x 24 pixels as inputs, two hidden layers (2 x 2 and 8 x 8 neurons), each unit locally connected to a sub-block from its adjacent lower layer. FNET-D 4 layers, 2039 connections, enhanced version of FNET-B and FNET- C, extra hidden neurons arranged in horizonta.J & vertical stripes. FNET-E 4 layers, 3459 connections, enhanced version of FNET-D allowing overlapping uf locally connected blocks. Table 1: A summary of the network topology employed in the detection cascade. !L(al, 002, ... , aL) is upper-bounded by fdad, we adopt an efficient sequential backward selection approach as shown in Table 2, which yields a sub-optimal solution to the parameter selection. The ROe curve of the resulting cascade is depicted on the right of Fig. 4, and the performance of the L-th ensemble classi- fier (individual performance) is also depicted for comparison. We can see that for false acceptance rate below 5 x 10-4, which is normally required for real-life ap- plications, the cascaded detector keeps almost the sarne f:J.coP detection rate as the most complex L-th stage classifier. However, the computation time drastically drops to less than 5%, as compared to using the L-th stage classifier alone. 4. APPLICATION TO REAL- WORLD FACE DETECTION In this section, we apply the obtained cascaded face detector in real-world applications with arbitrary images (video sequences) as input. For a given image (or video frame), the detector needs to search for possible faces at every location and scale. This is similar to the image pyramid structure in [2], with a scaling factor of 1.2. Furthermore, to facilitate fast illumination correction, we use a pair Algorithm Parameter selection fOT the face detection cascade Input: F test face patterns and N test non-face patterns. A cascade ç of L neural ensemble classifiers. Maximally allowed false acceptance rate d. Output: A set of selected parameters (ai, Q2' ..., aiJ· 1. Select aL = argma.xoLh(ad, subject to dL(aL) :::; d. 2. for k = L - 1 to 1 3. Table 2: Backward parameter selection algorithm for the face detection cascade. 52 Face detection rate Face detection rate 0.95 r---,---,-----,--..,---,...----,----, 0.9 0.85 0.8 0.75 07 The L-th ensemble classifier 0.65 0.6 0.55 0.5 '---~-~-~--~--'--~----' o I x IO-~ 3 x 1O-~ 5 X 10-4 7 X 10-4 False acceptance rate False acceptance rate Figure 4: Left: ROC curves of individual NN ensembles. Right: Comparison between the L-th ensemble classifier and the cascaded classifier (all tested on VJ and Vnl. of auxiliary integral images [3] for fast processing of mean and variance of an image window. To evaluate the detection accuracy, we first applied our detector on the well- known CMU+MIT test sets and compared our results with reported results! in Table 3. It can be seen that our approach is the best performing technique with a low number of false positives. '0/c also evaluaLe the efficiency gain when using a cascade of neural classifier ensembles. For the CMU+MIT test sets, the five ensembles in the cascade reject 77.2%,15.5%,6.2%,1.1% and 0.09% of all the background windows, respectively. For an image of size 320 x 240, using a cascade can significantly reduce the total computation of the final neural classifier ensemble by 99.4% (from several minutes to sub-second level). When applied for a live-video based face recognition system, we achieve 3-4 frames/sec. detection speed on a Pentium IV PG Another advantage of our approach is the training efficiency. Normally less than 1 hour is required to train a complete detector cascade (including the parameter selection). 5. CONCLUSIONS In this paper, we have presented a (near) real-time face detector using a cas- cade of neuralnetwork ensembles, with two advantages. First, we used a parallel ensemble technique within one component for improved detection accuracy. Ex- periments show that the proposed NN ensemble significantly outperforms a single JTechniques 3, 4, 7, and 8 use a subset of the test sets excluding hand-drawn faces and cartoon faces (483 faces). We reported our results on 479 faces excluding further 4 faces with face masks or of poor low resolution. 53 Detector Det. rate Num. of false pos. Single neural network [2] 90.9% 738 Multiple neural networks [2] 84.4% 79 Bayes statistics [6] 94.4% 65 SNoW [7] 94.8% 78 AdaBoost [3] 88.4% 31 SVM [1] 89.9% 75 Our approach 94.4% 61 Table 3: Comparison of different face detectors on CMU+MIT data set. network in accuracy (e.g. by up to 12%). Second, to reduce the total computation cost, a series of NN ensembles are cascaded into a chain by increasing complexity of base networks. A special backward parameter selection algorithm is applied to generate a (sub )-optimal tuning of the cascade, so that both high detection accuracy and operation efficiency are obtained simultaneously. We have applied the proposed approach to real-world applications. Both high detection accuracy (94% detection rate on CMU+MIT sets) and efficiency (3-4 frames/sec. on video seqs.) are confirmed. REFERENCES [1] B. Hcisele, T. Poggio, and M. Pontil. Face detection in still gray imaqes, AI Memo 1687, MrT, 2000. [2] H. Rowley, S. Baluja and T. Kanade, Neural network-based face detection, IEEE Trans. PAMI, vol 20(1), pp. 23-28, 1998. [3] P. Viola and M. Jones, Rapid object detection using a boosted cascade of simple features, Proc. Int. Conf. CVPR, vol 1, pp. 511-518, 2001. [4] F. Zuo and P.H.N. de With, Fast human face detection using successive face de- tectors with incremenial detection capability, Electrome Imaging (VCIP'03) Proc. SPIE, 5022, pp. 831-841, 2003. [5] R. Duda, P. Hart, and D. Stork, Pattern classification, 2nd Ed., Wiley interscience, ISBN: 0-471-05669-3, 2001. [6] H. Schneiderman and T. Kanade, A statistical model [or 3D object detection applied to faces and cars, Proc. Int. Conf. CVPR, vol 1, pp. 746-751,2000. [7] D. Roth, M.-H. Yang and N. Ahuja, A SNoW-based face detector, Adv. in NIPS, vol 12, pp. 855-861, MrT Press, 2000. 54 ACHIEVING HIGHER REACTIVE HANDOVER PERFORMANCE IN MOBILE NETWORKS J. Levendovszky, P. Bores", E.C. van der Meulen i This paper develops a statistical framewor-k to optimize the impact of a lar-ge number of simultaneous reactive handover-s on the access network per-for- mance. In mobile communication the huge load of simchronous handover-s can cause serious QoS degradation. To circumvent this effect wc develop optimal stochastic timer- distributions to spread the luindouer requests in time r-esulting in a much mor-e balanced networ-k load. To investigate the effect of the random delays on the handouer mechanisms we have created a queueing model where the queues are or-ganised into a tr-ee topology. In this model single queues repreeent the per-formance of various system corn- ponents, while the load which is caused by a handover r-equest is modeled by a single packet. This packet is fed into one of the queues on the lowest level and then traverses the tr-eeup to the mat node. The QoS parameter-s of the handover ar-ethen calculated by evaluating the r-esulting packet loss and av- erage delay in all the queues along the packet's mute. The main challenge is to optimize the random delay mechanism (and to develop the optimal distribution of the corresponding stochastic timer), in or-der to maximize the QoS. In this way, a more robust reactive haruiaoer mechanisms can be cr-eated which is essential in low quality radio environment. INTRODUCTION The rapidly growing bandwidth demand in mobile applications accelerated the development of novel mobile communication technologies leading to the con- cept of Beyond-3G Networks (B3G). This concept is fully based on the Internet Protocol (lP) and is not restricted to any specific access technology or mobility. protocol. Therefore, the most important properties of the B3G networks are mo- bility support, high throughput, and Quality of Service (QoS) provisions. [2,3,4] • Budapest University of Teclmology and Economics, Department of Telecommunications, Mag- yar tudosok korutja 2, H-11l7 Budapest, Hungary, {borosp, levendov}@hit.bme.hu t Katholieke Universiteit Leuven, Department of Mathematics, Celestijnenlaan 200B, B-3001 Leuven (Heverlee), Belgium, edward. vandermeulen@wis.kuleuven.ac.be 55 To ensure QoS communication in this paper we address a problem of han- dover management and develop a stochastic timer mechanism to optimize its performance. Upon handover request the mobile nodes sample a stochastic timer and handover is initiated only after the sample expires. In this way, the handover requests are spread in time so that each one can be processed accordingly and the radio link will not be congested at all. As a consequence, QoS can be maintained and more effective resource utilization becomes possible. Iu the paper, the opt.imal timer distributions are derived for modeling handovers by single and multi-queue networks. The optimization is performed under the QoS constraints, i.e. packet loss probability and mean packet delay should re- main bellow some predefined thresholds. For timer p.d.f. the truncated expo- nential and radial basis function were used and the optimization was carried out by using exhaustive search. After obtaining the optimal parameters a detailed performance analysis demonstrated that the superiority of the new method over the traditional protocols (higher network utilization and small queueing delays). THE MODEL Based on the general properties of the B3G networks a queueing network model is constructed to find an optimal handover st.rategy. This model takes the additional processing load which is generated by a handover which appears at different levels of network hierarchy into account. As a result, the stochastic timer described by a p.d.f. will determine the input distribution of a hierarchical queueing network. Our analysis aims at deriving the QoS parameters (Packet Loss Probability and Mean Packet Delay) based on the stationary distribution of this queueing network. In this way, the analytical relationship between the timer p.d.f. and QoS measures can be revealed and the parameters of the timer p.d.f. can be subject to optimization for guaranteeing smooth handover in terms of optimal QoS parameters. The p.d.f. of the stochastic timer introduced to avoid large load caused by si- multaneous handovers is denoted by f(t). Users initiating handover sample this stochastic timer and the handover will commence if the random time provided by the stochastic timer has elapsed. [7, 5, 6) 56 Modeling the timer p.d.f. Our first p.d.f. for tbe mobile node's (MN) waiting time is the truncated expo- nential function: j(W) (t) = Àe ÀI; (1) Jt.Àe À"Ud-u' wbere W =.À. Based on tbe parameter .À tbe truncated exponential distribu- tion can be used to model instant movement or even long delays and the optimal jet) can be found by optimizing .À. A more complex p.d.f. can be constructed by using radial basis functions: (2) wbere the optimal jet) is specified by optimizing W = [A, E, 7J, J. Modeling the input process generated by the handover Let Pk = .I~~k+l f (t) dt denote tbe probability that tbe sampled timer expires in the time interval in the [tk; tk+ll. Tbe input process generated by tbe bandover is denoted by Y(k) bas tbe following distribution P (Y (k) = nlN (k) = m) = ( : ) Pk (1 pS" n (3) wbere Handover processing in queueing scenarios - the single queue approach A GjDjl queueing model can be used to represent tbe hand over process, wbere tbe queue lengtb fulfils the following stochastic differential equation: (5) 57 Here q (k) stands for the number of waiting requests in the queue with a length of L packets and Y (k) denotes the number of arriving requests at time k. Y (k) is a stochastic variable. The stationary distribution of the queue length 'if can be calculated by solving the equation 'if = P'if. Based on 'if the QoS parameters (cell loss probability and the mean cell delay) can be calculated as (6) and L E (q) = I:. knk. (7) k=i We assume that no packets are waiting at time 0: nek) = [no(k), ni(k), ... , nL(k)] = [1,0, ... ,0]. [1) Thus, n(l) can be written as n(1) = 'if(O)P(O), (8) and consequently, k 1 nek) = 'if(0) IT }J(k). (9) j=O Our goal is to find an optimal stochastic timer distribution f~~~) (t) for which min f:;) (t) : (Pceliloss(k), E(q) (k)) , \Ik E [0, ... ,J]. (10) w We seek the optimal timer distribution in the family of truncated exponential and a Radial Basis functions, which yield a one- or multi-dimensional optimization problem, respectively. Handling handovers III a hierarchical network structure Queues are connected according to a tree topology. In the following example a two-level queueing system is described (see figure 1) where two G/D/1/L queues are connected to a third one. A hand over request can enter the system on the lower level and it is considered to be successful if it leaves the upper and lower buffer with minimal delay. 58 ('JOIlIL v,-I I I I I 0 GffilllL qP;) ~I GlDIIIL I I I 0- v,-I I I I O~ Q(k, '1,(k) Figure 1: A two-level queueing system fJI(k + 1) = rqI(k) 11+ + YI(k + 1) (11) q2(k + 1) = q2(k) r 11+ + Y2(k + 1) . (12) Q(k + 1) = rQ(k) 11+ + U(k + 1) (13) 2ifqI(k)fOUq2(k)fO U(k) = 1 if qI(k) = 0 U q2(k) f 0 IqI(k) f 0 U q2(k) = 0 (14) { o if qI(k) = 0 U q2(k) = 0 Considering that YI and Y2 are independent, it can be written: P(U(k) = 1) = (1 7r~I»)7r~2) + (1 7r~2»)7r~I) (16) P(U(k) = 0) = 7r~I)7r~2) (17) Our goal is to find the optimal fZ) stochastic timer distributions so that (w) .. min fopt (z}: W (Pcellloss(k), E (k)), ' (3) n=O where Srn is the transmitted symbol at m-th subcarrier, nm is the noise sample after the FFT at m-th subcarrier, and N-l = ~m,n = _1_ N2f '"""(k _ !:::,.)e:i21r(11-m)k/N ~ (4) S k=O is an element ofax ed spreading matrix, N is the number of subcarriers, I, is the subcarrier spacing, and zx corresponds to the middle of the OFDM symbol. Note that the second term of the right hand side of (3) models the lCI. The channel frequency response H has the following correlation function for a x ed time [8] E[HmH~] = . 1( ) . . (5) 1+ J21f'T,·ms m - n is Using the time derivative of (2), it can be further shown that the correlation function of H' for a x ed time in the frequency domain equals E[H' H"] = (27r fd)2 . 1 . (6) m. 11 2 1+j27r'Trms(m-n)fs Note that the coherence bandwidth [8] of H' is the same as the coherence bandwidth ofH. 2.2 PROPERTIES OF ICI Let's denote the lCI at subcarrier m as 'Um, i.e. N-l Urn = 2..= :t. '2m,nH sn. (7) n=O The correlation of the ICI at two different subcarriers is derived as follows N-l N-l E[UmUk] = E[2..= 3m,nH~8n 2..= 3k H;' s:] ,i n=O i=O N-l 2..= 3m,113;;,nE[H;,H~']E[sns:,] n=O (8) 67 The derivation uses the fact that H and the transmitted symbols are independent and E[snsil=O, for n =I- i. From (8), we obtain the second moment of the ICI ,a}j, ( 27r!d a u2 = --2-- ) 2 "''''I~ N-l N-l *] , 1 L_.. L_.. '::'m,n 2 ESnSn .N m=û [ 11.=0 1 (9) and depict it in Fig. 2. Because E[HrnHk*] = 0, for all m, k [5], it can be shown that the -15 -16 -17 -18 -19 iD -20 .. ... :!2. -21 . ~..... -255'=-0 ----!6o=---::':7oc-~8:L0 --9::':0--1,...00:---1,-'-10:---1,-'-20:---1,-'-30:---1..L40:------,-J150 Maximum Doppler Frequency [Hz1 Figure 2: Average ICI power as a function of Maximum Doppler Frequency Id wanted signal Hrnsm at subcarrier m and the ICI Uk at subcarrier k, are uncorrelated, for all k, m. For a given channel realization, the correlation of the ICI becomes N-l E[umu~IH'] = L 2m,n2k,nIH~12E[sns~], (JO) n=O and, of partienlar interest, the second moment of lCI becomes N-l a~:m(H') = L 12m,nI2IH~12E[sns~], (11 ) n=O where H' = (H~, ... , H~_l)T. Since 12m,n12 decays fast as 1771 - nl increases, only nearby subcarriers will contribute substantially to the ICI in any given subcarrier. If 12m.n12 decays much faster than the coherence bandwidth, the ICI will varyaccording to H'. Therefore, if H' is frequency selective, so will the ICI be, as for instance, is depicted in Fig. 1. 68 3 LOG-LIKELIHOOD RATIO FOR FREQUENCY SELECTIVE ICI CHANNEL 3.1 LOG-LIKELIHOOD RATIO COMPUTATION The binary convolutional code of the DVB-T system is decoded using a Yiterbi decoder. Optimal performance of such a Maximum Likelihood (ML) decoder is ob- tained by feeding (quanrized) soft decisions for the detected bits to its input [9]. It is known that the Log-Likelihood Ratios (LLR 's) of the received bits form a suf cient statistic that can be used by a Viterbi decoder to nd the best paths in the trellis. As an example, we consider BPSK modulation on a stationary (at) fading channel, av- erage received energy per symbol Es, AWGN having 2-sided noise spectral density No/2, and channel transfer function H (assumed to be known at the receiver). The transmitted signal s can be ±.JES. A zero-forcing estimate of s is made by setting s=- A Y (12) H The sign of s determines the hard-decision value of the transmitted bit. The LLR of the bit corresponding to S is computed as [7] LLR .JES Re{H*·Y} = 4--IHI = 4", .JES 2 . s.A (13) HO No In the case of DYB- T in the presence of Doppler, H depends on the subcarrier index m and varies over time. The ICI due to Doppler can be viewed as an additive frequency and time-dependent disturbance of the signal. Since Urn is uncorrelated to the wanted received signal Hksk, for all k, as shown in Section 2.2, the total disturbance Urn. + nm having power !7~:m + No is also uncorrelated to the Hksk. This property is important for the proper operation of the Viterbi decoder. A Viterbi decoder also requires dis- turbance samples to be independent. We assume the interleaver to break suf ciently the correlation between neighboring ICI samples within the decoding constraint length of the decoder (similarly as it is assumed to break the correlation between neighbor- ing H realizations). Continuing our example, we then would compute the LLR of a BPSK-modulated bit at subcarrier m (assuming Um + n", to be Gaussian distributed) as: LLR =4 v;: Re{H~· Ym} = 4 V;:IHm.12 . Sm, (14) where Nm.= !7~;m + No. Following a similar argument, one can also modify the LLR computations in case of other signal constellations like 4-PSK, 16-QAM and 64-QAM. 3.2 ESTIMATION OF ICI POWER The calculation of local l'Cl power !7~:m for all m as given in (1 I) has complexity of O( N2). In the case of 12m,n 12 decaying much faster than the coherence bandwidth, (11) can be approximated as follows 69 N-l (]"~:m ~ IH:n12 L ISm.n12 (15) n=O Equation (15) approximates (11) well except when H' is in deep fade. However, because the ICI level is relatively weak in this case, this corresponds to the situation of large LLR 's, which tend to fall in the same extreme quantization intervaJ, and therefore it will hardly in uence the performance. 4 NUMERICAL STUDY In this section we discuss the performance improvement due to applying the re- ned LLR calculation on the 8K mode DYB-T system. In order to obtain a quasi- error-free condition after the Reed-Solomon (RS) decoder, an error rate of no more than 2 . 10-4 at the output of the Yiterbi decoder is required. The receiver is assumed to acquire a perfect synchronization, and the channel parameters are assumed to be known. The transmitted bits are generated randomly, encoded with the convolutional encoder R = 0.5, interleaved accordingly, and 64-QAM modulated. The transmitted signal is convolved with a channel impulse response with T"ms = lj.ts and maximum delay spread Tmax = 10j.ts. White Gaussian noise (SNR = Es/No = 30 dB, unless men- tioned otherwise) is added to the received signal. At the receiver, the data estimates are obtained from the received signal in frequency domain and de-interleaved. The LLR's are then calculated and quantized to 5 bits. Fig. 3 compares the BER after decoding when average ICI power (9) and local ICI power (15) are used as the input to the LLR calculation. By exploiting the knowl- edge of frequency selectivity of local K'I power, the BER decreases by a factor of 10, enabling the receiver to operate at 30 Hz higher Doppler frequency. Fig. 4 compares the BER as a function of Id. after the Yiterbi decoder for different SNR vaJues. We observe that at an SNR of 20 dB, the receiver can cope with a Doppler frequency up to 85 Hz (BER~ 2.10-4). Increasing the SNR extends the operability of the receiver to about 120 Hz. However, if the SNR is further increased. the operability of the receiver does not extend as much as before because already at 30 dB of SNR, the receiver performance is mainly limited by the ICL We also found that at low SNR region, e.g. 15 dB. for low Doppler frequency, the noise is more dominant than the ICI and therefore the performance does not depend so much on the Doppler frequency. interestingly, for the same SINR (Signal-to-lnterference-plus-Noise Ratio) value for both noise-limited and interference-limited cases, the interference-limited case gives a better performance. 5 CONCLUSIONS In this paper. we show that at a given OFDM symbol, the ICI will be frequency selective within the bandwidth of interest if the channel is frequency selective. The local ICI power at a subcarrier can be estimated in a simple way if H:" is known. It is 70 120 125 130 135 Maximum Doppler Frequency [Hz] Figure 3: Bit Error Rate after decoding with average ICI power and with local ICI power shown from simulations that including the knowledge of the local IC] power into the Log-Likelihood Ratio can reduce the Bit Error Rate signi cantly . REFERENCES [1] J.A.C. Bingham. Multicarrier modulation for data transmission: An idea whose time has come. IEEE Communications Magazine, 28(5):7-15, May 1990. [2] B. Le Floch et al. Coded Orthogonal Frequency Division Multiplex. Proceeding of the IEEE, Vol 83(6):587-592, June 1986. [3] Digital Video Broadcasting (DVB); Framing structure, channel coding and modu- lation for digital terrestrial television, Jan 2001. ETSI EN 300744. [4] S.A.Husen, S.Baggen, M.Stassen, and H.Y.Tsang. Simple Doppler Compensation for DVB-T. In Proceedings of the Twenty. fth Symposium on lnformatiori Theory in the Benelux, pages 225 - 232, June 2 - 4. Kerkrade, The Netherlands. [5] Alexei Gorokhov and Jean-Paul Linnartz. Robust OFDM Receivers for Dispersive Time-Varying Channels: Equalization and Channel Acquisition. In Proceedings ICC'02, page 1453, 2002. New York, April 28 - May 2. [6] Stefano Tomasin, Alexei Gorokhov, Haibing Yang, and Jean-Paul Linnartz. Re- duced Complexity Doppler Compensation for Mobile DVB-T. In Proceedings PIRMC 2002, volume 5, pages 2077-2081, 2002. Sept 15-18. 71 ffi 10~~ ID __ SNR=20dB -e- SNR=25dB -e- SNR= 30 dB 10-' L__ :i:--__ ~--~:_-____:_'_:_--~--~-'=--,.-==SN:IR~=::6:::0=d=B=_! 70 80 90 100 110 120 130 140 150 Maximum Doppler Frequency [Hz] Figure 4: Bit Error Rate after decoding for different SNR [7] Joachim Hagenauer, Elke Offer, and Lutz Papke. Iterative decoding of binary block and convolutional codes. IEEE Transactions on lnformation Theory, IT- 42(2):429-445, March 1996. [8] John G. Proakis. Digital Communications. McGraw-HilI, fourth edition, 2001. [9] Andrew J. Viterbi and Jim K. Omura. Principles of Digital Communication and Coding. McGraw-HiII, 1979. 72 PERFORMANCE OF MULTIPLE INPUT MULTIPLE OUTPUT (MIMO) WIRELESS SYSTEMS D. Zarbouti, G. Tsoulos, D. 1. Kaklamani National Technical University of Athens Departement of Electrical and Computer Engineering 9, Iroon Polytechniou Str.,155-73, Athens Greece TEL:+30-210-7722291 Abstmct-MIMO wireless systems are studied in this paper with particular emphasis on the achieved performance in terms of achieved capacity, in diJJ'e1-entoperational environments. First, the definition of a MIMO system is presented along with the performance advantages. Then, Shannon's ex- tended capacity formula is discussed and a simplified expression is derived by applying linear transformations. The paper concentrates on the capacity of Rayleigh channel but also studies the case where the signals are submitted to fading correlaiion. Finally, the stochastic quantities used to describe the capacity performance and detailed simulation results are presented. INTRODUCTION The MIMO channel is simply defined as the combination of a transmitter, a receiver and a wireless channel which appears to have multiple inputs and multiple outputs, as illustrated in Fig. 1. Practically, such a system is implemented with multiple antennas both at the transn-utter and the receiver end. The innovation introduced by MIMO systems is that they take advantage of the multipath induced by the radio Ch31111el,while all the technologies developed up to now had as a goal the diminution of the multipath. Based on this concept, MIMO systems offer two great advantages: First, they provide the wireless link with great capacity, and then they improve the quality of the link by decreasing the average symbol error rate (A-SER). Due to the fact that wideband applications are increasingly demanded by a growing number of users, MIMO systems present a solution to the problem of effective exploitation of frequency spectrum, which is crucial for all telecommu- nication systems. 73 coding modulation weightingldemapping weighting/mapping demodulation decoding Figure 1: A MIMO system with NIT transmitting antennas and MR receiving antennas. CAPACITY OF A MIMO CHANNEL We consider the MIMO channel illustrated in Fig 1. In order to study the capacity we represent the channel with a MR x MT matrix hl,I(7, t) h1,2(7, t) h1,Mr(7, t) h2.1(7, t) h2,2( 7, t) h2,lv[r(7, t) H= (1) hMIl,I(7, t) hMn,2(7, t) hMR,Mr(7, t) The matrix elements are complex numbers that represent the attenuation and the phase shift of the signal that arrives to the receiver with a delay of 7 sec. In that case the MIMO system may be described in matrix notation as y = H0s(t) where s(t) = [SI (t)S2(t) ... SMr(t)]T is a MT x 1 vector which represents the signals transmitted from the MT transmit antennas and y(t) = [Yl(t)Y2(t) ... YNIi,(t)jT is an !vIR x 1 vector which represents the signals received from the !vIR receive antennas. The MIMO channel capacity is given by Shannon's extended formula as (2) its proof could be found in [2]. In equation (2) the matrix HH is the transpose conjugate of the channel matrix H, Rss is the covariance matrix of the transmitted signal vector s(t) and p is the maximum normalized average transmit power. 74 Simplified capacity formula As we mentioned earlier, we consider a linear MIMO system. As a result, by means of a linear transformation, the MIMO channel can be transformed into n = rank(H) uncorrelated single input single output (SISO) subchannels. This transformation leads to a simplified formula for capacity which is presented in equation (3), n :L log2(l + Pké~) (3) k=l with the power restrietion ~~=l Pk :::; p. In equation (3) the values é~ are the eigenvalues of the HHH matrix and Pk is the power allocated to each subchannel. The transformations involved that leads to (3) can be found in [3). Equation (3) inclicates that the achieved capacity depends on the distribution of é~ and on the allocated power Pk. As a result, the MIMO system capacity depends on the algorithm that is used for allocating power to the transnutter's elements Shannon's capacity formula without channel knowledge at the trans- mitter All the theoretical analysis considers the Channel State Inforrnation (CSI) [1) known to the receiver. This consideration stands as the receiver usually performs tracking methods in order to obtain the CS!, while it does not stand for the transmitter case. In case the channel is not known at the transmitter, the signals to be transmitted are equi-powered at the transmit antennas. Referring to Fig.l the power allocated to each of the MT elements is Pk = -tfr. In that case the Rss matrix of equation (2) equals the identity matrix (Rss = I). We use the above equations to equations (2) and (3). The capacity expres- sions that are derived are shown in equations (4), (5). (4) (5) Equation (5) indicates that the capacity of a MIMO channel can be expressed by the sum of the capacities of n = rank(H) SISO channels, each having power gain ék and transmit power pjMT· 75 In cases where the CSI is known to transmitter, the power allocation to transmitter elements can be performed based on the waterfiling algorithm [4]. CAPACITY OF RAYLEIGH CHANNEL In this section we present the capacity formula of Rayleigh channel. It should be mentioned that throughout the following analysis the channel is not known at the transmitter and as a result equations (4) and (5) are used for the channel capacity. When the wireless environment is characterized by strong multipath, the envelope of the received signal follows the Rayleigh distribution. However, the Rayleigh model can not be applied in three cases. First, when the limited number of paths between the transmitter and the receiver prohibit the use of the central limit theorem. Then, in cases that the location of buildings leads to the waveguide phenomenon and finally, in areas near the base station where a line of sight (LOS) component may dominate. For the last case the envelope of the received signal follows the Ricean distribution. Channel matrix in case of Rayleigh model The channel matrix H in equation (1) depends on the the channel model. Specifi- cally, when the conditions of the environment permit the use of a Rayleigh model and the antennas of the transmitter and the receiver are sufficiently separated, the elements of the channel matrix H can be modeled as zero mean circularly symmetric complex Gaussian (ZMCSCG) random variables, with unit variance. The resulting matrix is symbolized Hw and is referred as spatially white matrix. The capacity formula under the assumptions of Rayleigh channel and equal power allocation is: (6) Equation (6) is used in the final section for the simulations concerning the Rayleigh channel. Channel matrix in case of spatial fading correlation The Rayleigh channel assumes flat fading in the space, time and frequency do- main. However, the signal components arriving at the receiver may experience 76 correlation due to the limited distance of the antenna elements. In that case, the use of Hw as the channel matrix is inappropriate. The model used in order to take under consideration the aforementioned correlation is described by the equation: vec(H) = Rhec(Hw) where vec(H) denotes a vector 1 made by the columns of Hand R is the !VIR/vIr x l\1RMT covariance matrix of the channel. In order to simplify that model, we assume that the reception correlation matrix, RR' is independent of the transmitting element. Tbe same assumption is made for the transmission correlation matrix.Rj-, In this case the channel matrix is given by equation (7). (7) Correlation matrices RT, RR can be calculated using several models. The model that will be used in the following simulations calculates these matrices as a function of the distance,d, between the receiving/transmitting elements and is described in detail in [5]. CAPACITY OF STOCHASTIC CHANNELS Rayleigh channel is stochastic channel and as a result, the capacity of this channel is a random variable. In order to study the capacity of stochastic channels we use two statistical quantities. The eryodic capacity of a MIMO channel is the ensemble average of the information rate over the distribution of the elements of the channel matrix H[6]. In case of no CS! at the transmitter, the ergodie capacity is given by (8) Figure 2 illustrates the ergodie capacity for different antenna configurations as a function of the SNR, when the channel is unknown at the transmitter. As ex- pected, the ergodie capacity increases with SNR. In addition, the ergodie capacity of a single input multiple output (SIMO) channel MR x 1 appears to be greater than the ergodic capacity of a multiple input single output (MISO) 1 x MT. The reason for that is discussed in the following section. llf H = [h1h2 ... hM7"J is !vIR. x !vIT then vec(H) = [h[hr. .. h.rJrJ is !vIR.!vIT x 1. 77 Figure 2: Ergodie capacity for different antenna configurations. The label of each plot line represents the channel (MR x MT). The outage capacity quantifies the level of capacity performance guaranteed with a certain level of reliability. For example, q% outage capacity, Cout,(1l indi- cates that the system can achieve minimum capacity level Cout,q with probability (lOO-q)%. SIMULATIONS Rayleigh channel without spatial fading correlation In this case the channel matrix that it is used for capacity calculations is Hw. This matrix is full-ranked as its elements are independent variables that follow the ZMCSCG distribution. As a result the MIMO channel is transformed into exactly n = rankl Hu-] = min(MR, MT) SISO subchannels. Figure 3(30) indicates that increasing the number of antenna elements leads to a capacity increase. Es- pecially, we notice that the a large capacity increase involves array antennas at both the transmitter and the receiver. For example, an (8,1) MIMO channel supports lower capacity gain than the (2,2) MIMO channel. This is justified through the MIMO system transformation concept mentioned earlier. Specifi- cally, the (8,1) channel gives 17,=1, while the (2,2) give;; n=2, considering now thc fact that the independent SISO subcharmels that are created are responsible for the information transfer we can justify the result. Finally, Figure 3(30) indicates that the presence of an arrayantenna at the receiver is more important than the presence of the same array antenna at the transmitter. For example we can notice that the channel (4,1) presents better capacity behaviour in comparison with the channel (1,4). The explanation for this lies in the assumption that the transmitter does not have CSI and as a result 78 it 'equi-powers' the elements regardless of the channel. On the contrary, the receiver is considered to possess this information and as a result it may use its arrayantenna for optimum combining based on CS!. Rayleigh channel with spatial fading correlation In this case the channel matrix that it is used for capacity calculations is given by equation (7). Figure 3(b) illustrates the CDFs of capaci ty for different antennas configurations and uses as a parameter the interelement spacing, d. First, we can COF -Corralale ° denotes the number of descriptions. The trivial case K = 1 leads to a single-description system, consisting only of the central quantizer. A source X is quantized to a code word Àc by the central quantizer Ac. Hereafter follows an index assignment (mapping), which uniquely maps Àe to a codeword Ài in each of the side quantizers Ai' The codeword Ài from the ith side quantizer is trans- mitred' on the ith channel. At the receiving side the source X is estimated based on the received codewords. If no descriptions are received X is estimated by its statistical mean, hence the distortion (per dimension) is equal to E[lIXI12]. The index assign- ment map is designed such that it is an invertible map in case all J( descriptions are available, hence it is possible to obtain Àe from the J{ -tuple (Ào, ... , À[( -1). Using standard high-resolution assumptions for lattice vector quantizers [19J, the expected central distortion can be expressed as (2) where G(Ac) is the dimensionless normalized second moment of inertia [20J of the central quantizer. The minimum entropy Re needed to achieve the central distortion dc is given by [19J 1 Rc ~ h(X) - L ]og2(1/), (3) where h(X) is the component-wise differential entropy of the source. The side en- tropies are given by [12J (4) I Quantization is followed by entropy coding and it is of course the index obtained from the entropy coder which is transmitted and not the codeword Ài' 83 There are in general several ways of receiving K, out of J{ descriptions. Let L denote an index set consisting of all possible K, combinations out of {O, ... , J{ - I} so that ILl = (~} We denote an element of L by I = {lo,·.·, l"-l}' The complement le of I denotes the J{ - K, indices not in I, i.e. le = {O, ... ,I< - I} \ {I}. We will use the notation L, to indicate the set of all lEL that contains the index i, i.e., L, = {l : lEL and iEL} and similar Li,j = {l : lEL and i, j E l}. Furthermore, let P'i be the packet-loss probability for the ith description and consequently let f.'i = 1 - Pi be the probability that the ith description is received. Finally, let pel) = DiEl f.'i DjElc Pj, p(L) = ~l"C p(l), p(Li) = I:lECip(l) and p(Li,j) = ~lELi,i p(l). For example for J{ = 3 and K, = 2 we have L = {{O, I}, {O, 2}, {l, 2}} and hence peL) = f.'Of.'lP2 + f.'Of.'2Pl + f.'1f.'2PO· Let peL) = I:~"=lpeL) and /l = ~:=l f3 where f3 depends on J( and K, and is given by f3 = K,~ ï:~ i=Oj=i+l (P(L;)~(Lj) ( ) - P(L,;,j)) . The total expected distortion is then, under high-resolution assumptions, given by [12] K-l da ~ C(Ac)22(h(X)-Rc)p(L)+'Ij;2/L /lC(S d22(h(X)-Rc)2 J~~I (Rc--kRT) +E[lIX IT Pi, 112] i=O (5) where C(Sd is the dimensionless norrnalized second moment of an L-sphere and 'ij; depends only on the number of descriptions I< and the vector dimension L. The optimal values of v is given by [12] 1/ = 2L(h(X)--kRT) 'ij;2/L_1_C(SL) J{ - 1 G(/\.e) peL) _j_) LiK-I) 2J{ , (6) and by letting R, = aiRT it can be shown [12] that L(K-J) N. = 2ft(1-ai)RT G(/\. e_l2_ 'ij;-2/L(I< _ L) __ ) '(L)) =ur: - , ( G(SL) /l it follows from (3) and (4) that R; :2: aiRT so that ai ::; Rei RT. In addition, since the rates must be positive, we obtain the following inequality o < aiRT ::; Re, i = 0, ... , I< - 1. (7) From (5) we see that the expected distortion depends only on Rr and not the speci c R; values. Hence, the individual side entropies R, = aiRT can be arbitrarily chosen as Jong as ai satisfy (7) and I:i a; = 1. 84 OPTIMAL BIT DISTRIBUTION In this section we consider minimization of an economical cost while maintaining minimum expected distortion subject to a maximum bit budget and we also consider the related problem of minimizing the expected distortion subject to a maximum eco- nomical cost. Other related problems like the duals of the previous mentioned prob- lems are also easily solved with the methods presented in this section. I) Minimizing expected distortion and economical cost: Consider lP-telephony applications which with the recent spread of broadband networks are being used ex- tensively throughout the world today. Let us assume, for ease of presentation", that a user has access to two different channels both based on the unreliable user data- gram protocol [21]. Channel 0 is a non priority-based channel whereas channel 1 is a priority-based channel or they are both priority-based channels but of different priori- ties. The priority-based channel favors packets witb higher priority and the packet-loss probability PIon channel 1 is therefore lower than that of channel 0, i.e. PI < Po. As- sume the Internet telepbony service provider (lTSP) in question charges a xed amount of say $1 ($2) per bit transmitted via channel 0 (channel I) and moreover assume that the total bit budget is limited to e.g, 6 bits (set by either the user, the application or the ITSP). The user is economically minded and wants the best quality that can be achieved while paying the least amount of money. It is tempting to transmit all the bits through channel I since it offers better quality than channel O. However, as shown in [11], it is usually bene cial to make use of both channels. The importance of exploiting two channels is illustrated in Table I for the example given above for a total bit budget of 6 bits and packet-loss probabilities Po = 5% and PI = 2%. The last column of Table I describes the expected distortion occurring when quantizing a Gaussian source. For further details on the exact setup of this experiment we refer the reader to [11]. Notice the peculiarity that since the total bit budget is limited to 6 bits then even if the user is willing to pay more than $8 the performance would be no better than what can be achieved when paying exactly $8. 2) Minimizing expected distortion subject to maximum economical cost: Let us assume that we have access to K different channels with packet-loss probabilities Pi, i = 0, ... , K - 1. Furthermore, assume that there is an economical cost associ- ated with the available bandwidth of the individual channels so that channel i costs C, dollars per bit/sec. Hence, if one decides to transmit at R, bit/sec. it costs RCi dollars. For example let us assume that K = 3 and that Co = 2, Cl = 4 and C2 = 6. 2With the n-channel scheme presented in [12] it is straightforward to extend the example to the case of ]( > 2 channels. 85 Network ~ Rl Price Quality Expected distortion Single-channel 6 0 $6 Poor -12.98 dB Single-channel 0 6 $12 Good -16.91 dB Two-channel 2 4 $10 Optimal -22.20 dB Two-channel 4 2 $8 Optimal -22.20dB Table 1: A total bit budget of 6 bits is spent in four different ways. The bottom row shows the cheapest way of buying the 6 bits and still achieve optimal performance. Let the packet-loss probabilities be Po = 0.2, PI = 0.1 and P2 = 0.3. In the situation where we limit our nancial budget CT = 2: C, to e.g. CT = 50, it is clear that by using only channel 0 we can transmit at a rate of no = 25 bit/sec., with a loss rate of 20%, whereas if we concentrate on channel 1 we can only transmit at half that rate i.e. RI = 12.5 bit/sec. but the loss rateis also halved. It is intriguing to ask the question, How do we obtain the best performance that money can buy? , or in other words, how should the CT dollars be spent such that the expected distortion is minimized. Since we allow CT to be arbitrari ly split among any J(' out of the J( channels a brute-force combinatorial approach is impossible", unless we limit the number of feasible solutions (i.e. the number of triplets (Co, Cl, C2) to a nite number. How- ever, by doing so it is possible that the optimal solution is excluded from the set of feasible solutions. Instead we give a very simple solution to this problem by using the fact that given a total target entropy RT, the bits can be arbitrarily split among J(' descriptions, without performance loss, as long as the inequality (7) is satis ed for all i = 0, ... , J(' - 1 and that 2: ai = 1. It is also true that, for a xed set of channels, a greater RT leads to a lower expected distortion. Therefore, maximizing RT for some K' channels will in fact minimize the expected distortion for these 1-(' channels. In order to maximize RT we should spend as much money as possible on the cheapest channels without violating (7). This should be done for all the 2K - 1 non-trivial sub- sets of the K channels, after which the optimal solution is easily found from that subset which yields the minimum expected distortion. We now continue the example given above. The cheapest channels, i.e. channel 0 and I should be given the greatest amount of bits possible, hence Ro = RI = Rc. For a given RT the optimal v is given by (6) which when inserting in (3) leads to 3Define the set of feasible solutions as e = {(Co,.·., Cl< -1) : I:C; = CT and (CT / C;) / RT = a..;} where C, E JR(+ , RT = I:CT / C, and ai satisfies (7) and notice that le I = 00. 86 (8) Assuming optimal scalar quantizers and a unit-variance Gaussian source, it can be shown that G(Sd/G(Ae) = 1, 'Ij; = 1.1547, h(X) = 2.0471,,B = 0.0551 andp(.c) = 0.9940 so that Rc = 1/3(Ra + RI + R2) + 1.5862. Since Rc = Ra = RI we have that Ra = 1/3RT + 1.5862 =;. Ra = R2 + 1.5862. It is also true that (9) from which we nd the optimal bit-rates to be Ra = RI = 6.5460 bit/sec. and R2 = 1.7874 bit/sec. This gives a total bit-rate of RT = 14.8793 bit/sec. and the expected dis- tortion when inserted in (5) i~ da = -21.8801 [dB]. At this point we still need to evalu- ate the six remaining subsets ofthe J( channels, i.e. {{a}, {I}, {2}, {a, I}, {a, 2}, {I, 2}} in order to nd the optimal solution. This is done in Table 2 from which we conclude that, for this particular example, it is in fact optimal to make use of all three channels". Notice that the best performance is not obtained when the total transmission rate is maximized, i.e. RT = 25 bit/dim. but is in fact obtained for RT = 14.8793 bit/dim. Channels: {a} {I} {2} {0,1} {0,2} {1,2} {O,1,2} Ra [bit/sec.] 25 0 0 9.72 7.53 0 6.55 Rl [bit/sec.] 0 12.5 0 7.64 0 6.24 6.55 R2 [bit/sec.] 0 0 8.33 0 5.82 4.18 1.79 RT [bit/sec.] 25 12.5 8.33 17.36 13.35 10.41 14.88 Exp. dist. [dB] -6.99 -10.00 -5.23 -16.98 -12.21 -15.06 -21.88 Table 2: A total amount of $50 is spent in various ways (see text for details). REFERENCES [1] L. Ozarow. On a source-coding problem with two channels and three receivers. Bell System Technical Journal, 59: 1909 1921, December 1980. [2] A. A. El Gamal and T. M. Cover. Achievable rates for multiple descriptions. IEEE Trans. Inform. Th., JT-28(6):851 857, November 1982. [3] S. D. Servetto, V. A. Vaishampayan, and N. J. A. Sloane. Multiple description lattice vector quantization. In Proc. Data Compr. COI~f, pages 13 22, 1999. [4] V. A. Vaishampayan, N. J. A. Sloane, and S. D. Servetto. Multiple-description vector quantization with lattice codebooks: Design and analysis. IEEE Trans. Inform. Th., 47(5): 1718 1734, July 2001. 'For 1< = 2 we have 'IjJ = 1 and for 1< = 1 the expected distortion is simply given by that of a single-description system, i.e. da '" G(Ac)22(h(X)-R)(1 - p) + p. 87 [5] S. N. Diggavi, N. J. A. Sloane, and V. A. Vaishampayan. Design of asymmetrie multiple description lattice vector quantizers. In Proc. Data Compr. Conf., pages 490 499, March 2000. [6] S. N. Diggavi, N. J. A. Sloane, and V. A. Vaishampayan. Asymmetrie multiple description lattice vector quantizers. IEEE Trans. Inform. Th, 48(1): 174 191, January 2002. [7] J. A. Kelner, V. K. Goyal, and J. Kovacevic. Multiple description lattice vector quantization: Variations and extensions. In Proc. Data Compr. Conf., pages 480 489, March 2000. [8] V. K. Goyal, r. A. Kelner, and J. Kovacevic. Multiple dcscription vector quanti- zation with a coarse lattice. IEEE Trans. Inform. Th, 48(3):781 788,2002. [9] J. stergaard, J. Jensen, and R. Heusdens. Entropy constrained multiple descrip- tion lattice vector quantization. In Proc. IEEE Int. COI~f Acoust., Speech, and Signal Proc., volume 4, pages 601 604, May 2004. [JO] J. stergaard, J. Jensen. and R. Heusdens. n-channel symmetric multiple- description lattice vector quantization. In Proc. Data Compr. Conf., pages 378 387, March 2005. [11] J. stergaard, J. Jensen, and R. Heusdens. Two-channel lattice vector quantiza- tion. Submitted to IEEE Trans. Inform. Th. [12] J. stergaard, R. Heusdens, and J. lensen. n-channel asymmetrie multiple- description lattice vector quantization. Submitted to IEEE Int. Symp. on Inform. Th. [13] S.S. Pradhan, R. Puri, and K. Ramchandran. (n, k) source-channel erasure codes: Can parity bits also re ne quality? In Conference on lnformation Sciences and Systems, March 2001. [14] S.S. Pradhan, R. Puri, and K. Ramcbandran. MDS source-channel codes. In Proc. IEEE Int. Symp. on Inform. Th., June 2001. [15] R. Puri, S.S. Pradhan, and K. Ramchandran. n-channel multiple descriptions: Theory and constructions. In Proc. Data Compr. Conf, March 2002. [16] R. Puri, S.S. Pradhan, and K. Ramchandran. n-channel symmetric multiple de- scriptions: New rate regions. In Proc. IEEE Int. Sym.p. on Inform.. Th., page 93, June 2002. [17] S. S. Pradhan, R. Puri, and K. Ramchandran. n-channel symmetric multiple descriptions part I: (n, k) source-channel erasure codes. IEEE Trans. Inform. Th.,50(1):47 61, January 2004. [18] V. A. Vaishampayan. Design of multiple description scalar quantizers. IEEE Trans. Inform. Th, 39(3):821 834, May 1993. [19] Robert M. Gray. Source Coding Theory. Kluwer Academic Publishers, 1990. [20] J. H. Conway and N. J. A. Sloane. Sphere packings, Lattices and Groups. Springer, 3rd edition, 1999. [21] User datagram protocol: RFC-768. http://www.rfc-editor.org. 88 CONSTRUCTION OF PREFIX CODES USING LINEAR FORMS OF NUMERICAL SEQUENCES Anatoly V. Anisimov Yuriy A. Reznik Kiev National T. Schevchenko University RealNetworks, Inc. 2 Glushkov Ave, 03680 Kiev, Ukraine 2601 Elliott Ave, Seattle, WA 98121 Email: availlrni.unicyb.kiev.ua Email: yreznikillreal.com We study properties of representations of integers hy linear forms a Un-l + bUn, where Un-l and u.; are adjacent members of some basic sequence of natural numbers, and show how such a representation can be used for con- struction of prefix codes. Our proposed codes have similar asymptotic prop- erties to the well-known Levenstein and Elias-ui codes, but can be tailored to outperform them in certain r-egions or sub-sequences of numbers. INTRODUCTION The problem of prefix encoding of natural numbers is well known, well stud- ied, and its existing solutions, such as Levenstein [1], Elias-w [2], or Bentley- Yao [3] codes are much appreciated in the practical worlds of data compression and information retrieval [4, 5, 6]. In essence, given a natural number x of unknown magnitude the goal is to construct an instantaneous (and consequently, uniquely decodable [4]) code f(x) E {O, 1}*, such that its length If(x)1 is approaching log2x. The difference RU, x) = If(x)1 -log2 x, (1) is called pointwise redundancu of a code f (.T). The code is called asymptotically optimal when its pointwise redundancy has the slowest possible rate of growth with x --) oo [1]. The first asymptotically optimal prefix code for natural numbers is due to V. I. Levenstein [1]. A very similar code, dubbed w-code, has later been discov- ered by P. Elias [2], who has also introduced a variety of other monotonic codes with faster growth rates. Other codes with similar or slightly improved proper- ties have been proposed by J. Bentley and A. Yao [3], S. Even and M. Rodeh [7], Q. F. Stout [8], H. Yamarnoto [9], and others. A recent survey and detailed anal- ysis of these codes can be found in R. F. Ahlswede et al. [6]. 89 In this abstract we present a novel and very flexible technique for construction of prefix codes, utilizing properties of representations of natural numbers by linear forms aUn-1 + bUn, where Un-l and Un are adjacent members of some basic sequence (e.g. any sub-sequence of prime numbers, Fibonacci or Lucas numbers, etc). We show that codes based on such decompositions attain similar asymptotic properties as Levenstein or Elias-w codes, but can be adjusted to outperform them in certain regions by choosing different basic sequences. In passing, we shall mention that one particular type of linear forms - one that is employing Fibonacci numbers as a basic sequence, has recently received considerable interest in connection with the problem of efficient computation of modular exponents arising in public-key cryptography [l l]. Thus, in [14, 15, 16] it was shown, that by using decomposition xY mod z = X'LF"-I+bF,. mod z = (xF"-l r (xFk)b mod z, the computation of exponents can be effectively paral- lelized. Moreover, by finding linear forms with small coefficients a and b, the main complexity can be moved to the operations of raising to the powers of Fibonacci numbers, which, in turn, can be computed very efficiently [12, 17]. Our main result, showing that linear forms do not affect asymptotic efficiency of prefix encoding of natural numbers, offers yet another possible application of such decompositions in practice. DEFINITIONS AND MAIN RESULTS Let U = {uo, UI, ... } be a basic sequence of natural numbers. Definition 1 A sequence U is called proper if it is monotonically increasing ttn ~ Un-I, n ~ 1, and all its adjacent numbers are coprime. Definition 2 A sequence U is said to be of bounded growth if there exists a limit lil11n~oo ..::: I = Q < CXl. A linear form of a sequence U is understood to be an expression of the form aU1l.-1 + bUn, (2) where a and b are integers. The value of an index n in (2) is called the rank of a linear form. Definition 3 A linear form (2) is called positive definite if a ~ 0 and b > O. 90 Definition 4 A positive definite linear form (2) is called canonical if additionally a < Un. Our first result establishes existence of representations of natural numbers by canonicaJ linear forms of proper sequences, and outlines basic properties of parameters of such representations. Theorem 1 Let U = {uo, UI, ... } be a proper sequence of natural number-s, and let x be an integer such that x ) UoUI' Then there exists a unique represeniation of x by a canonical linear form of maximal rank: (3) This represeniaiion has the following properties: 0 ~ a < Un, (4) 0 < b < Un+l, (5) 0 < a+b . ( Un + Un,+l, --- 'UnUn+l) , (6) < mln Un-l X < UnUn+l. (7) Moreover, if U is of bounded growth, then ther-e exist a constant Ca ) 0', such that: 0 < b < vc;.,;x , (8) 0 < a+b < Vc:I ,;x, (9) c2 ab < ...!:!x (10) 4 yX < vc;.un,. (11) Definition 5 Given a natural number x, the maximal rank of its represeniatum by a canonical linear form (3) is called a linear logarithm of x with respect to the sequence U, and is denoted by linj, x. Theorem 2 If U is proper- and of bounded qrouiih, then: . 1 ~ !in u x ) - loge x + loge --. (12) 2 0 UI 0 91 Based on these results, we can conclude that the maximal rank of a linear form representation of x behaves similarly to the logarithm ofjX, and that the resulting quantities a and b require approximately twice less the number of bits than native binary representation of x. These facts explain the effectiveness of linear forms for partitioning/ paral- lelizing operations with large numbers. Moreover, as our Theorem 1 suggests, the precision of such decompositions can be tuned by selecting sequences with different rates of growth. Examples of such sequences with nice recursive proper- ties, include Fibonacci numbers and their generalizations (Lucas, Pell, Jacobsthal numbers, and others). We now turn our attention to the problem of construction of prefix codes. Our main result is given by the following theorem. Theorem 3 Let U be a proper sequence, and let x = a Un-l + b Un be a maximum rank canonical linear form decomposition of an input number x. Then, there exists a prefix code Cu(x) ;= C,,(n) Ca1n(a) Cbl,,(b), where Cn(n), Ca1n(a), and Cbl,,(b) are component codes for the parameters 11" a and b correspondingly, such that its combined redundancy R(Cu,x) = ICu(x)I-Iog2x satisfies: uihere A(z) ~ log2 z+log210g2 z+ ... +Iog" a+ 1 'is the length function of Leoeustein codes (Sj. Moreover, if sequence U is of bounded growth, then: R(Cu, x) :( A (linu x) + log2 c; + 2 < log21og2 X + log210g210g2 X + ... + log, Iog2 c; + 2 + 0 (-] \ ) (14) Co og X In other words, we can conclude that our codes have almost the same asymp- totic behavior as Levenstein codes. Based on our expansion (14) the difference 2 between them is bounded by a constant log2 -1og2C Ca C) + 1 plus vanishing terms. It is of interest to point out that this constant is minimal when Co = ..jë. In order to construct a code Cu(x) it is sufficient to use Levenstein code to transmit rank of linear form Cn(n) ;= Lev(n), and use balanced binary trees with u.n and U.n.+l - 1 leaves as codes Ca1n(a) and Cb1n(b) correspondingly. As obvious, 92 in this case: llog2'unJ :Ç ICa1n(a)1 :Ç pog2'unl and llog2(un+l - l)J :Ç ICbln(b)1 :Ç flog2(un+] - l j]. Even more tight codes can be constructed by making component codes Cb1n,a(b) dependent on previously transmitted values a. In this case properties (6) and (9) can be utilized. Examples of such codes constructed using Fibonacci linear forms will be presented in the last section. PROOFS Lemma 1 Let x, u, and v be positive integer numbers, such that gcd(u, 1J) = 1, and x)! uv. Then, there exists a represeniation x = au + bu, uihere 0 :Ç a < v, and b > O. Proof: We first notice that x = au + bv is a linear Diophantine equation, which by the fact that gcd(u, v) = 1 must have a solution for any integer x (see e.g. Andrews [10, Theorem 2-4]). Moreover, if a pair (aa, ba) is a solution of this equation, so are all pairs (aa + iv, ba - i'u), i E Z. It is clear, that by properly choosing i we can make 0 :Ç a < v. However, if the resulting coefficient b :Ç 0, then x = au + bv :Ç au < vu, which contradiets our initial condition x ~ uv. Hence, we must have b > O. • Consider now a sequence of naturalnumbers U = {ua, u], ... }. From Lemma 1 we know, that in order for a linear form representation x = aUn-1 + bUn to exist, we must ensure that gcd( Un-I, ttn) = 1. If our basic sequence U is proper, this requirement is automatically fulfilled for any index n. By picking n such that x ~ Un-I Un we can ensure that the resulting linear form is positive definite (a ~ 0, b » 0) and canonical (a < 'un)' Lemma 2 Let x be a positive integer, and let x = aUn-1 + bu.; be its maximal rank canonical linea?' form. based on a proper sequence U. Then: x < u., Un+l, (15) b < Un+l, (16) a+b < un Un+l (17) Un-! Proof: The inequality (15) follows directly hom Lemma 1. The inequality (16) follows from a chain b u., :Ç aUn-1 + b iu; = X < unun+]. Similarly (17) follows from (a + b) Un-l :Ç a Un-I + b u.; = X < Un Un+l' • 93 We are now in a position to prove Theorem 1. We assume that basic sequence U is proper. The existence of maximum rank canonical linear form (3) and its properties (4--7) follow from Lemmas 1 and 2. When our basic sequence U is also of bounded growth, we mush have limn~oo U~:, = ct < 00. This means, that there exist a constant Ca, such that for all n ;:, 1: u~:, ~ Ca' Then, by expanding inequality (15) we have: (18) This immediately leads to (11). Next, from bUn ~ aUn-I + b u.; = ::c and (18) we have: b ~ :" < ~Un..JX = ..;c;;..JX, which proves (8). Similarly, from (a + b) Un-I ~ aUn-I+ bUn = x and (18) we have: a + b ~ < ~Un-' ..JX = ____2i_ 'Un-I 'Un._1 -JCrJX, which proves (9). Finally, in order to prove (9) we consider inequality: 2 x = aUn-I + bUn> 2..Ja bUn-I Un, where by using (18) we have: ab < 4 u n : , Un = 2 __ X_Un+l.T 4UT/'U1l+1 u.,-•.-l < s"x. 4 This completes the proof of Theorem 1. In order to prove Theorem 2, we simply notice that: (19) Hence: (20) The statement of Theorem 3 follows directly from construction procedure outlined in the text. CONSTRUCTION OF PREFIX CODES USING FIBONACCI LINEAR FORMS Let x be a natural number. Below we use the following notation: Bin, (X) denotes a binary representation of e least significa.nt digits of x. Bin'(x) is a record of x with removed most. significant bit: Bin' (x) := BinllogxJ (x). Recall, that Levenstein code Lev(x) is constructed by outputting Bin'(x) and a.dding a recursive set of prefixes specifying lengths of the subsequent corn- ponents [1]: Lev(x) := 1 ... 10 Bin'(j log ... [log xJ ... J) ... Bin' Wog xJ) Bin'(x). (21) '-v--" ...____.., log'x log'x-I 94 .. 2 Here log' x is the height of a shortest tower 22 whose value is greater than x, e.g. tag' 1 = 1, log' 2 = 2, log' 4 = 3, log' 16 = 4, log'(216) = 5, and so on. By convention log' 0 := O. When the range of a number x is known, e.g. 0:::;: x < m, the closest to log2 m-bit representation is achieved by the following code (essentially, a Huffman code for a uniform distribution [5J): UF(x m) = { Bine (:17) , ifx < k, , Bine+! (x + k) , if x;:" k. where: fI. = [log rn], and k = 2rlogml - m, Now, in order to construct a prefix code for x we first find its maximal rank Fibonacci linear form: x = Fn-l a + Fn b, (22) where additionally, we require that x ;:" Fn-lFn, and then output codes for its parameters n, a and b: (23) where C,,(n) := Lev(n - 2), Ca1n.(a) := U F(a, Fn), and Cbln.a(b) := U F(b - bruin, bmax - bmin), bmin = max(Fn_l - a, 1), brnax = min (F~:;,- a, Fn+1). Such codes constructed for the first 22 natural numbers are presented in the following table. Codewords Cn(n),Ca1n(a),and Cb1n,a(b) are separated by commas. x Lev(x -1) (n,a,b) GF(X) x Lev(x - 1) (n,a,b) GF(X) 1 (2,0,1) 0, , 12 11101011 (4,0,4) 1100,0,11 2 ° 10 (3,0,1) 10,0,0 13 11101100 (4,2,3) 1100,11,10 3 1100 (3,1,1) 10,1,0 14 11101101 (4,1,4) 1100,10,11 4 1101 (3,0,2) 10,0,1 15 11101110. (5,0,3) 1101,00,00 5 1110000 (3,1,2) 10,1,1 16 11101111 (5,2,2) 1101,10,010 6 1110001 (4.,0,2) 1100,0, ° 17 111100000000 (5,4,1) 1101,111,00 7 1110010 (4.,2,1) 1100,11,00 18 111100000001 (5,1,3) 1101, oi, Ol 8 1110011 (4.,1,2) 1100,10, Ol 19 111100000010 (5,3,2) 1101,110,010 9 11101000 (4,0,3) 1100,0,10 20 111100000011 (5,0,4.) 1101,00,01 10 11101001 (4.,2,2) 1100,11, Ol 21 111100000100 (5,2,3) 1101,10,011 11 11101010 (4.,1,3) 1100,10,10 22 111100000101 (5,4.,2) 1101,111,010 95 REFERENCES [1] V. I. Levenshtein, Redundancy and delay of recoverable coding of natural numbers, Probl. Gybem., 20, 173-179 (1968). (in Russian) [2] P. Elias, Universal Codeword Sets and Representations of the Integers, IEEE Trans. Inform. Theory, 21 (2) 194-203 (1975). [3] J. L. Bentley and A. C. Yao, An almost optimal algorithm for unbounded searching, Inform. Processinq Lett., 5 (3) 82-87 (1976). [4] T. M. Cover and J. M. Thomas, Elements of Informaiion Theory, (John Wiley & Sons, New York, 1991). [5] R. Krichevsky, Universal Compression and Retrieval, (Kluwer, Boston, 1993). [6] R. F. Ahlswede, T. S. Han, and K. Kobayashi, Universal coding of integers and unbounded search trees, IEEE Trans. Info. Theory, 43, 669 - 682 (1997). [7] S. Even, M. Rodeh, Economical encoding of comma between strings, Comm. AGM, 21 (4) 315 - 317 (1978). [8] Q. F. Stout, Improved prefix encodings of the natural numbers, IEEE Trans. Info. Theory, 26, 607 - 609 (1980). [9] H. Yamamoto, A new recursive universal code of the positive integers, IEEE Trans. Inform. Theory, 46, 717 - 723 (2000). [10] G. E. Andrews, Number Theory (Dover, New York, 1994). [11] R. L. Rivest, A. Shamir, L. A. Adleman, A method for obtaining digital signatures and public-key cryptosystems, Comm. ACM, 21, 120-126 (1978). [12] R. W. Floyd and D. E. Knuth, Addition machines, SIAM J. Comput., 2, 329-340 (1970). [13] D. Knuth, The Art of Computer Pmgmmming. Vols. 1-3 (Addison-Wesley, Reading MA, 1973). [14] A. V. Anisimov, Ya. P. Ryndin, and S. Ye. Redko, Inverse Fibonacci trans- formation, Cybem. Syst. Anal., 3, 9-11 (1982). [1.5] Ä. V. Anisimov, Fibonacci linear forms and parallel arithmetic algorithms for large numbers, Cybem. Syst. Anal., 3, 106-115 (1995). [16] A. V. Anisimov, Linear Fibonacci forms and parallel algorithms for high dimension Lecture Notes Comput. Sci., 964, 16-20 (1995). arithmetic, [17] A. V. Anisimov, Algorithmic Theory of Large Numbers, (Akademperiodika, Kyiv, 2001) (in Ukrainian). [18] A. V. Anisimov, Da.ta Coding by Linea.r Forms of Numerical Sequences, Cybem. Syst. Anal., 5, 3-15 (2003). 96 LOW-COMPLEXITY CODING FOR THE CEO PROBLEM WITH MANY ENCODERS Gerhard Maierbacher and Joào Barros Department of Computer Science University of Porto, Portugal UR.L: http://www . dcc. fc. up.ptrbarros Motivated by a sensor networking application, we consider the eEO prob- lem, in uiliich. noisy observations of a common source process are separately encoded and sent to a joint receiver. The goal of the decoder is to produce the best possible reconstruction of the source subject to some distortion crite- rion. Focusing on the quadratic Gaussian case, for which the rate-distortion function has recently been determined, we present practical coding schemes that are feasible for a very large number of distributed encoders, allowing a desirable trade-off between rate-distortion performance and algorithmic complexity. 1 INTRODUCTION 1.1 The quadratic Gaussian CEO Problem Consider the following multiterminal source coding problem proposed in [7]. A CEO (Chief Executive 0 eer) is interested in some data Ua, which is not di- rectely accessible. Therefore the CEO employs a team of M agents, who observe independently corrupted versions of Ua. Because the estima.tion of Ua is only one among many pressing matters to which the CEO must attend, the combined rate at which the agents may communicate information about their observation to the CEO is limited, say to RL. bits per second. The agents are not allowed to convene. The CEO's task is to estimate Ua with the smallest possible average distortion D. The described setup 0 ers a reasonable model for sensor networks, in which physical data is collected and encoded independently by a large number of geo- graphically separated sensor nodes, possibly observing di erent characteristics of 97 the same source (e.g., multispectral imaging). The encoded data must then be sent over a channel of limited capacity to a remote station for data fusion and further processing. We speak of the quadratic Gaussian CEO problem (see Fig. I), when the distortion measure is the mean square error, and both the targeted data Ua and the additive observation noises Nm, i = 1, ... ,lVI. are Gaussian distributed [2]. Figure 1: Problem setup for the quadratic Gaussian eEO problem. M separate en- coders observe different versions Ui = 1£0 + ni of the Gaussian source Ua corrupted by Gaussian noises ni, i = 1 ... !vI. The decoder must produce the reconstruction ûa based on the received messages W) ... WM. The (sum) rate-distortion function for this relevant special case, was studied ill [3], which presents an upper bound found to be tight for noise processes with identical variance. However, the proof thereof is non-constructive and design of practical codes for this problem is still at an infant stage. Seeking to develop low-complexity coding methods for the quadratic Gaussian CEO problem with a very large number(i.e. M > 100) of parallel observations, we make the following contributions: • a feasible decoder that relies on a factor graph description [4, 1] of the source statistics, the noisy observations and the received messages; both its computational and its space complexity grow linearly with the number of encoders; • a low-complexity encoding stage based on scalar quantization and optimized index assignments that exploit the statistical dependencies of the data to provide a wide range of achievable rate-distortion points and very low coding delay; 98 • two di erent methods to obtain appropriate index-assignments: (i) gener- alized index-reuse [8] and (ii) random puncturing . • analytic and numerical performance results that underline the e ectiveness and e ciency of our low-complexity coding strategies. This rest of the paper is organized as follows: In Section 2 we introduce our nota- tion and provide a formal statement of the problem. Then, Section 3 explains our decoding procedure based on the sum-product algorithm, as well as the design of the index-assignment stage for the distributed scalar quantizers. Finally, Section 4 presents SOme numerical results. 2 PROBLEM SETUP 2.1 Notation We begin by introducing some notation: Random variables are denoted by capi- talized letters, e.g. A, with the corresponding lowercase symbol a, representing a possible realization. Vectors are denoted with small bold symbols a, whereas cap- ital bold letters A are used for matrices. Calligraphic letters, e.g. A, denote sets, representing for instance the alphabet of a random variable or a. set of functions. The covariance is de ned by Cov{a, b} = E{abT}E{a}E{b}T, where E{-} is the expectation operator. An N-dimensional random variable with realizations a E JR(N is Gaussian distributed with mean I-' = E{ a} and covariance matrix 1": = Cov{ a, a}, when its probability density function (PDF) pea) is given by 1 (1 pea) = (2 1~l)l/2 exp -2(a - 1-') 1": T -le a - 1-')). (1) Such a PDF is denoted as N(I-', ~). 2.2 System Description Our basic system model is illustrated in Figure 1. Let uo(t) be the output of a continous-valued Gaussian source Ui, at time instant t. For m = 1,2, ... , NI let um(t) denote noisy observations of uo(t), which are corrupted by additive noise, i.e. um(t) = uo(t) + nm(t). The noise samples nm.(t) are generated by Gaussian noise processes Nm, statistically independent over m. For simplicity, we drop the time variable t and consider only one time step. Thus Um = Uo + nm, where the probability density functions (PDF's) of Uo and nm can be described 99 by one-dimensional Gaussian distributions, Vrn E {I, 2, ... , lIi}. We assume, that 'Ua is distributed by N(so, ö) with mean So and variance 5, n m is distributed by NOm, À~,) with mean l-« and variance À;' .' The encoders are "cheap" devices consisting of a scalar quantizer and a map- ping stage. Each encoder rn converts its scalar observation 'Urn to a quantization- index im. ELm = {I, 2, ... , Lm}, corresponding to Lm. reconstruction values üm.(im) E IR. The quantization indices of al! encoders are represented by the vector i = [il,'" ,iMf· The mapping-stage is used to assign the quantizer-outputs im. to codewords indexed by Wm E Wrn = {I, 2, ... , Km}. We refer to this mapping procedure as an index assignment. The codeword-indices of all encoders are rep- resented by the vector w = [Wl," . ,wMf. In the later part of this paper, we will have need for the binary representation of the codewords at encoder rn, denoted as b.; = [bm,l ... bm,Q"J, bm,i E {a, I} with Qm = f!og2(I{m)l Tbe decoder uses the received codewords of all encoders w to form an estimate ûa of the current source sample Ua. lts performance is evaluated by a quadratic distortion measure. Since all encoders gather data about the same source process, the encoder observations bave to be necessarily correlated. This correlation can be used to improve the decoding result at a given transmission rate for each encoder rn. Generally speaking, we can exploit the correlations prior transmission by elimi- nating redundancy within the encoder data (Slepian- Wolf coding, lfil) or at the decoder side by using the joint statistics of the source and all observations to improve the estimates delity. Both strategies are applied within our system, to optimize the overall rate/distortion performance. Notice, that the index assign- ment stage is capable of performing a simple form of Slepian- Wolf coding, by chosing appropriate index assignments, where Km < L,«. 3 CODE CONSTRUCTION 3.1 Decoding Stage The key aspect that renders the eEO problem more tractable than other mul- titerminal source coding problems is the fact that all noisy sensor observations U = (UI, ... , UM) are statistically independent given the source-process Uo. The special structure of the problem leads to a Markov chain property of the form Wk - h - Uk - Uo - Ut - It - Wl, V k,l E {1, ... , M}, where k =1= I. This induces 100 a natural factorization of the joint probability function according to NI p(uo, w) = p(uo) . p(wluo) = p(uo) . IT p(Wmluo), (2) 1n=1 which can be represented by a factor-graph [4].The main advantage of this graph- ical representation is that we can use the sum-product algorithm [4] to obtain de- coding estimates that minimize the mean squared error (MMSE) E{(uo - ÛO)2}. It is well known that the optimal decoder in this case is the conditional mean estnnatorjö] given by +00 û~Pt(w) = E{Uolw} = 1 uo=-oo UO' p(uolw) duo (3) To ease the decoding computations, we approximate this integral by the sum Lo ûo(w) = L uo(io) . p(iolw), (4) io=l where we use a xed number of reconstruction values of the source Uo denoted by uo(io) and indexed by io E Io = {I, ... , Lo}. Exploiting further the one-to-one mapping of the indices 'io to the reconstruction values uo, the factorization in (2) can be modi ed to yield the decoding rule Lo-1 NI ûo(w) = c(w) . L uo(io) . p(io) IT p(wmlio), (5) io=O m=l where c(w) = I/p(w) is the normalization constant. The probabilities p(wmlio) can be determined numerically in a one-time procedure prior to decoding. It is possible to show that the algorithmic complexity of the proposed de- coding scheme scales according to O(MLo). The space complexity (in terms of memory requirement for the a-priori inforrnation) grows O(1l1f K Lo). In other words both types of decoding complexity grow linearly in the number of sensors. 3.2 Index Assignment Strategies The index assignment stage, which is represented by a mapping function Jm such as Wm. = Im. (im), Vm E {I,··· ,IvI}, is able to eliminate the available redun- dancy by taking Km < Lm codewords (i.e. less than the number of quantization 101 levels thus reducing the coding rate). In the following, we propose two conceptu- ally di erent methods - index reuse and random puncturing. The proposed index reuse method is inspired by [8], originally devised for two correlated sources. The basic idea is to reduce the number of possible output codewords in an iterative fashion, computing in every step the resulting end-to- end distortion. Starting with a one-to-one mapping between the indices i111. and the codewords 11.1111., i.e . .frn = i111., 'r/m. E {1, ... ,.I\!J}, the algorithm subsequently modi es the mapping functions l-« of all encoders m., by merging two codewords (or, equivalently, the quantization cells) to a single new codeword. This is done repeatedly until the targeted number of codewords Km is reached. In each step, the algorithm choses the merging possibility that yields the minimum possible average distortion. We note that the search algorithm is not optimal due to the single-step nature of the optimization. A detailed formulation of the whole procedure can be found in Algorithm 1, which assumes L111. = L and Km = K, 'r/ m. E {I, ..., M}. We de ne a merging function .f;, = gUm, a, b), where i::'. denotes the resulting mapping function. To obtain i;, from im, where a < b, the following assignment has to be performed for I = 1, ... ,Lm,: ,for i111.(I) = a or .fm(l) =b ,for .fm(l) >b (6) , otherwise. In each step the distortion can be approximated according to u. D = L LP(io, w) . (üo(io) - ÛO(W))2, (7) \;lw io=l where ûo(w) is obtained by (5). Due to the cornplexity of this computation, the algorithm is only feasible for a small number of encoders. A straightforward way to decrease the computational complexity is to form clusters of encoders and optimize each cluster separately, as exempli ed in the next section. Alternatively, we propose a very simple method to reduce the coding rate: ommit (i.e. puncture) some of the bits of the binary codewords bm, according to a xed, randomly chosen puncturing pattern known both to the encoders and to the decoder. The result is an equivalent index assignment, which can be easily incorporated in the decoding algorithm described in Section 3.1. 102 Algorithm 1 Optimization Algorithm for m encoders Initialization • start with one-to-one mapping Im ~ [I,· .. ,LJ, If rn E {J, .., M} • set init.lal nr. of codewords k~L Main Loop repeat for m = 1 to A1 do • set distortion to maximurn D~I for a = 1 to (k - I) and b = a to k do • merge cell a and cell b within 1m I,:, = gUm, a, b) • calculate resulting overall distortion D' = D(:F\,,,, I;,l if (D' < D) then • remember mapping and distortion D~D' I,n ~ I,;, end if end for end for • cells are merged and new mappings F found :::::> nr. of codewords is reduced by one k ~k-I until k = Hj i.e. targeted nr. of codewords reached 4 RESULTS The end-to-end distortion of the proposed schemes can be determined analyt- ically up to a numerical integration of the Gaussian distribution. We now present numerical results for a scenario of AI = 128 encoders, where identical quantizers and identical transmission rates are considered. The source process is Gaussian distributed with variance Ö = 1 and mean So = 0, the noise processes are Gaus- sian distributed with variance À~,. = À2 and mean 1111. = 0, Vm E {1, ... , A1}. All scalar quantizers are Lloyd-Max optimized to minimize the mean squared error within the observations. The decoder uses a discrete source model of precision Lo = 64 based on uniform quantization, which is optimized for the source statis- tics. The sum-product algorithm is used for decoding, where the probabilities p(io) and p(imlio) were determined using Monte Carlo simulation. In the case of index reuse, the optimization algorithm is run over a subset of four encoders. Thus, we obtain four index assignments, which were repeatedly assigned to all encoders (symmetric scenario). Notice, that the index assignment yielding the best possible performance was chosen for the e:>..rperiments (e.g. K = 2 codewords may be obtained from quantizers of L = 4 or L = 16). The bit puncturing ap- proach builds on standard Gray mappings. Again, we took the scheme yielding the best possible performance. Opting for N = 10000 samples we computed the 103 Low-Noise: 0"0=1.>'-0.1 High-Noise: 0"0=1,>'=0.5 Quantizer Q [bit] 1 2 3 4 1 2 3 4 SNRruDTdBf 29.75 30.78 31.00 31.06 22.79 23.81 24.03 24.08 SNRDec[dBj 10.14 19.80 26.63 28.74 15.61 22.10 23.45 23.59 SNR]R[dBj 22.89 27.58 28.61 28.74 19.59 22.32 23.37 23.59 SNRBP[dB[ 24.51 27.26 28.28 28.75 17.58 20.87 22.50 23.57 Table 1: Numerical results for NI = 128 encoders for low-noise (left) and high- noise (right) scenario. output signal-to-noise ratio SNR = 10 10glO~ to quantify the overall delity. The results are summarized in Table 1, which includes the theoretically optimal value SNRR/D as given by the sum-rate distortion function in [3]. SNRDec is the output SNR of the system without index assignments, i.e. deterrniued by thc decoder alone, where SNRIR and SNRBP is the output SNR when index reuse (IR) or bit puncturing (BP) is applied. Our experiments reveal that when the observation noise level exceeds a certain threshold the index-reuse method can outperform the random puncturing scheme. As expected, for high rates both methods approach the theoretical rate-distortion limit. REFERENCES [1] J. Barros and M. Tüchler. Scalable decoding on factor graphs: a. practical solution for sensor networks. To appear in the IEEE Transactions on Corn- munications , 2005. [2] Harish Viswanathan, Toby Berger. The quadratic Caussian CEO problem. IEEE Trans. Inform. Theory, 43:1549-1559,1997. [3] Jun Chen, Xin Zhang, Toby Berger, Stephen B. Wicker. An upper bound on the sum-rate distortion function and its corresponding rate allocation schemes for the CEO problem. Special Issue of JSA C, On Fundamental Performance of Wireless Sensor Networks, 2004. [4] F. R. Kschischang, B. Frey, and H.-A. Loeliger. Factor graphs and the sum- product algorithm. IEEE Trans. on Inform. Theoru, 47(2):498-519, 200l. [5) H. V. Poor. An Iniroductioti to Signal Detection and Estimation. Springer- Verlag, 1994. [6) D. Slepian and J. K. Wolf. Noiseless Coding of Correlated Inforrnation Sources. IEEE Trans. Inform. Theory, IT-19(4):471-480, 1973. [7) T. Berger, Z. Zhang and H. Viswa.nathan. The CEO problem. IEEE Trans. Inform. Ttieoru, 42:887-902, 1996. [8] Thomas J. Flynn, Robert M. Gray. Encoding of correlated observations. IEEE Trans. Inform. Theory, IT-33:773-787, 1987. 104 MODULAR DATA COMPRESSION TO OPTIMALL Y LOCATE REGULAR SEGMENTS IN SEQUENCES. APPLICATION TO DNA SEQUENCE ANALYSIS Olivier Delgrange Éric Rivals Université de Mons-Hainaut, LlRMM Service d'lnformatique Théorique CNRS UMR 5506 Avenue du champ de mars, 6 Rue Ada, 161 7000 Mons - Belgium 34392 Montpellier Cedex 5 - France Olivier. Delgrange @umh.ac.be rivals@lirmm.fr Abstract - A new location methodfor regular segments in sequences is presented. It uses the Minimum Description Length (MDL) criterion. If a lossless compressor achieves size reduction by exploiting a regularity. our algorithm. TurboOptLift locates very quickly the segments where the regularity is probably present and those where if is not. The loca- tion is optimal from a MDL viewpoint. We apply the method to the problem of locating approximate tandem repeats in DNA sequences. INTRODUCTION The usual goal of lossless data compression is to save storage space or time trans- mission over a network. In this paper, we use it to anaJyze a nite sequence of symbols, say s, following the Minimum Description Length (MDL) principle [11, 9J. MDL prin- ciple states that [8J: "given an hypothesis space H to describe sequence s, one has to select the hypothesis H such that the length of the shortest encoding of s together with hypothesis H is minimal". Such an encoding is a compressed version of s. The shortest encoding of a sequence quanti es the 'absolute' information of s. This quantity is called its Kolmogorov complexity and is denoted by K(s). Unfortunately, it is uncomputable [8J. Therefore, practical compressors approximate K(s). A compressor C exploits a kind of regularity P supposed to be present in the se- quence s. If C achieves a size reduction, one can conclude that P is really present in the sequence. It is said that sis P-regular. The shortest the compressed sequence C(s), the more adequate the regularity for s. The same coding scheme is generally applied along the whole sequence s. There- fore, some segments are shortened while others may be lengthened. The idea of the modular optimization is to break off the usual coding scheme where it is not pro table: some segments of the input sequence must be copied as they are instead of being com- pressed. However, additional informations about the copied segments must be coded to allow a faithful reconstruction of s by the decompression program. These inforrnations cost 8(Jog f!) additional bits, f! being the length of the copied segment. Therefore, the 105 problem consisting of decomposing the sequence into alternaring compressed segments and copied segments, in order to maximize the global compression. gain, is intricate. We present the algorithm TurboOptLift which, under speci c hypotheses, computes an op- timal decomposition in time O(n logn) where n is the length of the sequence. Suppose that the compressor C exploits a regularity P. Then, the optimal decomposition leads to an optimal location of P-regular segments, and this from an informational viewpoint. The paper is organized as follows. First, we introduce notations and de nitions. Second section de nes what a modular compressor is and how it can be improved. Third section states the optimization problem that is solved by our algorithm TurboOptLift, which is presented in the fourth section. lts application to locate Approximate Tandem Repeats in DNA sequences is sketched in the last section. PRELIMINARIES Notions about sequences, lossless compression and codes are rst presented. A sequence (or word) s is a sequel of symbols of an alphabet A = {CtI, Q'2,· .. ,az}. The set of all sequences made of symbols of A is denoted A *. Lel [s] denote the length of s and Si denotes the ith symbol of s. Afactor of s is made of consecutive letters of s: Si ..j = SiSi+l ... Sj, with ° :S i :S j :S [s]. The factor SLi is the pre x of length i of s. Given an input sequence s, a lossless compression method C (more simply a com- pressor) computes the compressed sequence Si = C (s) such that the entire sequence s can be reconstructed from Si. In practice, the output alphabet, on which Si is written, is the binary alphabet S = {a, I}. A code c : E -> S* enables us to write items from a set E over the alphabet S. The word c(w), with wEE, is called the codeword of ui. For example, if N = {a, c, g, t} denotes the alphabet of DNA sequences, let Nuc be the code that maps each symbol of N to a 2-bit codeword as follows: a f-> 00, Cf-> O l , 9 f-> 10, t f-> 11. Theglobal compression gain, de ned as 9 = Isl-IC(s)l. measures the length reduc- tion. To be consistent with this de nition, both sequences sand C (s) have to be written over the same alphabet. Therefore, the correct computation of the compression gain 9 must take into account a coding of all symbols of s to codewords of S* before counting its length. For example, if S is a DNA sequence, the natural way to rewrite s over S is to use Nuc because, without any assumption about the symbol frequencies, it uses the same and minimal number of bits foreach symbol [6]: 9 = INuc(s)I-IC(s)1 = 2Isl-IC(s)l. Therefore, from now on, we only consider binary input sequences. If the global compression gain 9 > 0, the compression C is said to be effective for the whole sequence S otherwise, it is said not to be. 106 A code is a pre x-code if no codeword is pre x of another codeword. It allows codewords that are written one after the other to be decoded instantaneously from left to right. A compressed sequence is a series of codewords of a pre x-code. A compressed sequence contains many codings of integer numbers. There are mainly two ways of coding integer numbers x E N using a pre x-code: i) using FL(x, f), the usual x ed length binary representation using f bits (leading Os are added to reach length £). The pre x-code FL is well suited for bounded integers x < 2e that are equally probable. ii) using a variable-length pre x-code. It is required for encoding unbounded integers [I, 8]. In this paper, we consider the Fibonacci code, introduced in [I]. It is de ned as follow. Let Fj denote the Fibonacci number of rank j for j > O. That is F; = 1, F2 = 2 and Fj+2 = F, + Fj+1 for j 2: 1. Let x E N, with .7; > 0, and let k be the rank of the largest Fibonacci number Fk :::::x. Then x has a unique binary representation R(x) = d1d2· .. dk with di E Band dk = 1 such that x = 2:7=1 d.F; and any two consecutive coef cients di and di+1 cannot be both equal to 1 [7]. For example R(7) = 0101. By concatenating a trailing 1 at the end of the code R(x), we obtain a pre x-code in which the rst 11 marks the end of the codeword. To enable the coding of O. we de ne the pre x-code Fibo(x) = R(x + 1)1 for z 2: O. For example, Fibo(6) = 01011. With Fibo, the larger the integer, the longer its codeword. This code is a good code candidate for compression because it is a universal code, i.e., lFibo(x)I E B(logx) [I]. MODULAR COMPRESSION AND RUPTURES This section presents the notion of modular compression methods that can be im- proved per segments. This section states how to break the coding scheme and presents the fCl, property that will be needed later to optimize the compression. Usually, a compressor performs its work in two steps: the analysis step and the coding step. During the analysis step, informations about the presence of a speci c kind of regularity in the sequence are collected. Then, the compressed sequence is constructed thanks to a coding scheme. This is a set of rules which state how to code the input sequence using the detected regularities. The compressor C has a modular coding scheme, or more simply C is a modular compression method, if each compressed sequence s' = C(s) can be decomposed into independent factors that are the codings of corresponding factors of the initial sequence s [5]. That is to say, if [s] = n, s = S1..11. = S1..i) Si) +1..i2 ... Sik+l..n S' = I code (Sl..i) )code(si) +1 ..i2) ... code(si,.+1..n) 107 for some positions 0 < 'il < iz < ... < ik < n. The pre x I of s' is the coding of the initial inforrnations needed by the coding scheme. Each codeword cocle(sij+l.:ij" I) is the factor of s' resulting from the compression of the cortesponding factor s';j+1. .:i:;+l' Let 5 = {O, il, i2, ... ik, n} be the set of all possible separating positions for the compression of s using C. The modularity property allows some manipulations of the compressed sequence. For example, one can switch to an other coding scheme along a factor S';;+1..ij+1 of s. Of course, the decompression program must be aware of this coding switch. Therefore, an additional ag must be coded in the compressed sequence before the coding switch (see below). A modular compression method C is probably nut effective over the whole sequence s. There may be factors of S that are lengthened by C instead of being shortened. To explain this phenomenon, let us de ne thepartial compression gain f : 5 -+ Z. For a separating position i E 5, the value f(i) is the reduction in size obtained by C on the pre x S1..;. The de nition of f is clearly inconsistent if C is not modular. Fig. I represents the partial compression gain f for a compressor C applied to a sequence s, with [s] = n = 1000. This curve is called the compression curve. Increasing segment: factor of the sequence that is shortened by C. .20<) Decreasing segment: factor that is ~ jj lengthened by C. £ -sec Horizontal segment: factor that .<0<) is neither shortened nor length- ened by C. Fig. 1. Partial compression gain f for a compressor C, with Isl = 1000. This cornpression is clearly not effective: the global compression gain is highly negative. However, the curve highlights a factor, between separating positions x and y, for which the compression is very good. This factor has to be automatically located. It is easy to notice that the cornpression can be improved. Firstly for the partial corn- pression of the factor S1..x and secondly for the partial compression of Sy+1..n' Consider the factor Sy+1..n' Having f(n) - f(y) < 0 means that the factor is lengthened by the compressor: ISy+l..nl < Icocle(sY+l ..in)··· cocle(s·;k+ r n)l. The regularity exploited by the compressor is insuf ciently present in this factor! Therefore, it is preferable to copy 108 the factor 8y+l..n as it is, instead of trying to compress it. It would replace the decreasing segment [y + 1, n] of the curve by an horizontal segment. The same improvement can be done for the factor 81..x' Thus, at rst sight, any compression curve can be improved by replacing all de- creasing segments (between separating positions) by horizontalones. This replacement is called a lifting because the right part of the curve is lifted up. In practice, the problem is more intricate. Suppose that it has been decided to copy the factor 8i,,+1..ij between two separating positions ik and ij. In fact, the coding of the factor will be CtR. Fiboii., - ik) 8il>'+1..'iF The codeword a'R. is the rupture (J g: it tells to the decompressor that the usual coding scheme has been broken here (we speak about a rupture of the coding scheme). The codeword CtR. must be an unused codeword of the coding scheme. Whatever the separating position starting the rupture, the same ag CtR. will be used. The second term, Fibo(ij - ih), codes the length of the rupture. The decompressor needs this information to reactivate the usual coding scheme just after the factor copy. The choice of Fibo for the coding of the rupture length is essential. It is trivial that the choosen code has to be a pre x one. Fibo is a variable-length univer- Moreover sal code, then fewer bits will be sacri eed for shorter ruptures. Finally, Fibo ful Is a new characteristic: Fibo is ICL (Increasing Concave and Limited), that is to say that it satis es the three following properties. 1. Increasingness: For a, bEN: a < b =;. IFibo(a)1 :S IFibo(b)l. 2. Concavity: For all codeword lengths ti; 12 such that 11 < 12, at least the same number of integers can be encoded over 12 bits than over 11 bits: #{i : IFibo(i)1 = h} :S #{i : IFibo(i)1 = l2}. 3. Stepwise increasing length: The length of the codewords increases by at most one from one integer e to the next one e + 1: IFibo(e + 1)1 :S IFibo(e)1 + 1. The ICL property is noteworthy: it will speed up our optimization algorithm. A few bits are then lost before the beginning of the factor copy.lee] + I Fibo(£) I bits, where £ = ij - ih being the rupture length. Let us de ne the basic rupture curve R: N -> .z such that R(£) = -(lORI + IFibo(£)I). Since Fibo is ICL and IFibo(£)I E B(Jog £), R is the opposite of a discrete, stair-like, logarithmic curve with a step height of 1 and increasing step's width for successive steps [6] (see g. 3). The copy of 8ih+1..iJ in the compressed sequence replaces the segment rih + 1, ij] of the compression curve by a translation of the leftmost part, of width C, of the basic rupture curve R. Let Ri" denote the potential rupture curve starting at position i" + 1. It is a translation of the basic rupture curve R. For our example, the application of the 109 two ruptures Ro on [1, z] and Ry on [y + 1, nl produces the curve of g. 2. These two improvements make the compression effective. Because of the peculiar decreasing shape of the basic rupture curve, the undiscern- ing application of ruptures on aU decreasing segments is not suitable. A more clever algorithm is needed to improve the compression. ~r-----~----~~~~----~~---' I x x 1---- Crossing point ~~. ----- .wL- ~ ~ ~ ~~--~ o Fig. 2. Improvement of the curve of g. 1. Fig.3. Crossing rupture curves. OPTIMIZATION PROBLEM The precise optimization problem can now be stated. Given i) a modular compression method C whose coding scheme provides a rupture ag an ii) an input sequence s, with [s] = 'IL, which has been compressed by C producing a set of separating S as well as the partial compression positions gain function f iii) a x ed basic rupture curve R de ned as R(e) = -laRFibo(e)l. The optimization problem is the computation of an optimal decomposition of s into factors that must be compressed by C and factors that must be copied as they are (rupture segments) in order to maximize the global corn- pression gain. It is a complex problem: the number of possible decompositions is an exponential function of n [4]. Thanks to the MDL criterion [11,9,8], the optimal decomposition is probably the best one. The compression method C takes advantage of the présence of a speci c kind of regularity P in s to reduce its size. Thus the optimal decomposition identi es factors of s for which the compression is pro table, that is to say that the regularity P is prob- ably present for them, and factors for which P is probably not present. Therefore, from an informational viewpoint the decomposition is probably an optimal decomposition into P-regular and P-irregular factors. 110 TurboOptLiff ALGORITHM The optimization algorithm is very technical and is complicated to prove. We sketch here its principles, but interested readers may nd more details in [6] or [4]. TurboOptLift process the compression curve from left to right. Step i optimizes the curve over the interval [0, ij. A List of Potentlal Rupture curves (LPR), which can improve the curve at step i or later, is maintained. It contains the starting positions JES, with j < i of such potential ruptures Rj. Since Fibo is lCL and since Fibo(e) E B(log e), it can be proved [6] that the greatest potenrial rupture at position i, which is the potential rupture Rm., with m E LP R such that R", (i) 2 Rj (i) for all j E LP R, can be selected in time O(logn). Intuitively. it is worth noting that the ICL property of Fibo de nes a single crossing point of two potential rupture curves Rq and Rj (see g. 3). At the right of their crossing point x, the potential rupture being below the other will never be the greatest one for positions y > x. Therefore, it can be removed from LPR at step x. Thus #LPR E O(logn). If the greatest rupture at position i improves the curve on [0, ij, it is applied. In fact, when a rupture is applied, the corresponding Lifting is formally made: we only have to store the starting position and the length of the rupture. Thus, the application of a rupture is done in 0(1) time. Since there are at most n steps (one step for each separating position), the time complexity of TurboOptLift is O(nlogn). It can be prooved [4) that TurboOptLift algorithm provides the unique optimal de- composition, minimal in ruptures among all optimal decompositions I, in time Oen logn). LOCATION OF APPROXIMATE TANDEM REPEATS IN DNA SEQUENCES This section presents an application of TurboOptLift in the framework of DNA sequence analysis: the location of approximate tandem repeats of a given pattern. DNA molecules are the support of genetic informations of living organisms. A DNA sequence is a segment of a DNA molecule. From an informational viewpoint, a DNA sequence is a word over the alphabet N = {a, c, 9, t}. Approximate Tandem Repeats (ATR) in DNA sequences consist in approximate and adjacent repeats of a shorter DNA word m. For example, act act aCt act acTt ct is an ATR of act. This is an Exact Tandem Repeat (ETR) of m which has been subject to mutations. ATRs have proven useful in genome cartography, forensic, population genetics, etc [6]. Therefore, the location of such repeats is a well studied problem lit is the only one for which the number of points that are on rupture curves is minimal. 111 [3, 10, 2]. We present a new method able to optimally locate all ATRs of a precise pattern m in a DNA sequence s. The location is optimal in the sense that its exploitation leads to an optimal modular compression. The method consists of the following steps. I. The compression of s by exploiting the fact that it is a huge ATR of m. Of course this fact is seldom true, thus the global compression gain would be strongly negative. This step requires the design of a dedicated compression method to exploit tbe regularity P == "be an ATR of m". The compressed sequence is the coding of m followed by the coding of all mutations between s and an ETR of m. 2. The optimization of the compression result using TurboOptLift algorithm. This step out" puts an optimal location of P-regular factors. The resulting software, called star [6], can be used on the web". It is able to locate "real" ATRs of a short pattern in a million long DNA sequence in a few seconds. REFERENCES [1] A. Apostolico and A.S. Fraenkel. Robust transmission of unbounded strings using Fibonacci representations. IEEE Trans. Inform. Theory, 33(2):238-245,1987. [2] G. Benson. Tandem Repeats Finder: a Program to Analyze DNA Sequences. Nucleic Acid Research, 27(2):573-80, 1999. [3] E. Coward and F. Drables. Detecting periodic patterns in biological sequences. Bioinformatics, 14(6):498-507, 1998. [4] O. Delgrange. Un algorithme rapide pour un.e compression modulaire optimale. Application. L'analyse de séquen.ces génétiques. PhD thesis, Univ. Mons-Hainaut, Belgium, June 1997. [5] O. Delgrange, M. Dauchet, and É. Rivals. Location of Repetitive Regions in Se- quences By Optimizing A Compression Method. In R. Altman. editor, Proc. of the 4th PSB, Hawaii, 1999. [6] O. Delgrange and É. Rivals. STAR: an algorithm to search for tandem approximate repeats. Biolnformatics, 20(16):2812-2820, 2004. [7] Debra A. Lelewer and Daniel S. Hirschberg. Data Compression. ACM Computing Surveys, 19(3):261-296, 1987. [8] Ming Li and Paul M.B. Vitányi. Introduetion. to Kolmogorov Complexity and Its Applications. Springer-Verlag, 2nd edition, 1997. [9] J. Rissanen. Modeling by the shortest data description. Automatica, 14:465-471, 1978. [10] M. F. Sagot and E. W. Myers. Identifying satellites and periodic repetitions in biological sequences. J Camp Biol, 5(3):539-53, 1998. [11] C.S. Wallace and D.M. Boulton. An information measure for classi cation. Com- pul. 1.,11:185-195,1968. 2http://atgc.lirrnm.fr/star 112 TURBO-CODE BASED WYNER-ZIV VIDEO COMPRESSION R.P. Westerlaken", R. Klein Gunnewieé, R.(lnald) L. LagendijkG,b G Information and CommunicationTheory Group, Faculty of Electrical Engineering, Mathematics and Computer Science, Delft University of Technology, P.O. Box 5031, 2600 GA Delft, The Netherlands b Philips Research Piof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands In distributed video coding, the complexity of the video encoder is reduced al the cost of a more complex video decoder. In recent work on distributed video coding the applicaiion of turbo codes has been studied. Turbo codes perform well in typical (tele-icommunications settings. However, in distributed video coding the dependency channel between source and side-information is inher- ently non-stationary, for instance due to occluded regions in the video frames. In this paper, we study the modeling of the virtual dependency channel, as well as the consequences of incorrect model assumptions on the turbo decoding pro- cess. We observe a strong dependency of the performance of the distributed video decoder 0/1 the model of the dependency channel. INTRODUCTION In the past few years, it has become clear that the theories of Wyner-Ziv and Slepian- Wolf have practical potential [1, 2] fo carrying out video cornpression in a distributed way [3,4]. Distributed video compression allows for shifting a large share of the com- putational complexity of an encoder to the video decoder while (at least theoretically) maintaining the same rate-distortion performance. As a consequence, the video "encod- ing complexity paradigm can be reversed: the encoder can be made computationally less complex than the decoder. An alternative perspective is that the computational complexity trade-off becomes a design parameter in the implementation of an encoder- decoder pair. Send correspondence to R.P.Westerlaken@ewi.tudelh.nl. This work is funded by the Freeband/l- Share project. 113 At the basis of distributed video compression is the observation that temporal infor- mation the encoder and decoder have available, is essentially identical. From this tem- poral information, correlated side-information Y ('i, j, m) for the current video frame X(i,j, m) can be generated with information rate H(Y). The dependency between the source video frame X (i, i, m) availabe at the encoder and the side information Y(i, i, m) computed at the decoder is modeled as a virtual dependency channel, where the side-information Y(i, J, m) is viewed as a by-channel-errors corrupted version of the original video frame X(i,j,m). For that reason, distributed source coders rely heavily on efficient channel codes. Pradhan [4] and Puri [SJ have used Trellis Syn- drome Codes to construct their PRISM video coder, while Girod, Aarort el al. [3] have studied the use of turbo codes. The decoder has to make a prediction of the current video frame without actually know- ing this frame, which inherently reduces locally the effectiveness of motion estimation compared to motion estimation at the encoder. As a consequence, the dependencies be- tween the source and side information will be heavily spatially varying, creating a non- stationary virtual dependency channel between XCi, i. m) and Y(i,j, m), which makes this type of virtual dependency channels substantially more complicated to model than simple BSC or AWGN channels. In this paper we study the consequences of the spatially varying success of motion estimation on the processes of channel encoding and decoding in distributed video compression [6]. The channel encoder we use is a powerful turbo encoder. Thè turbo decoder, however, relies heavily on model information about the (non-stationary) de- pendency channel. The objective here is, however, not to get a system to perform close to the bit rate and quality of existing video compression standards, but to study the error correction capabilities in case the side information is non-stationary. PROBLEM FORMULATION In video compression, the side information Y (i, i. m) at the decoder is computed as the prediction of the video frame X(i,j, m) the encoder is cornpressing. The side information is estimated using previously decoded video frames Xcoded( Z, i, m), or: Y(i,j, m) g(Xcoded(i, i. m-I), ... ,Xcoded(i, i, m - N)) X(i,.i, m) + N(i,j, m). (1) Here, gO is a function describing the way in which the motion-compensated pre- diction is created using N previous video frames. In distributed video coding, no physics-inspired analytical models can be obtained for the virtual dependency channel 114 described by NU, i, m), which is in sharp contrast to telecommunication applications of channel coding which operate over true physical communication channels. An occluded area is defined as a region which was not visible in the previous video frame(s). In occluded regions, motion cannot be estimated properly, and motion- compensated prediction obviously fails. This creates a noise contribution N(i, i. m) that has statistical properties substantially different from the regions in which motion estimation and compensation can be carried out ideally. First, the noise is very location specific; occlusion noise always occurs at the edge of moving objects or the edge of a video frame in case of camera panning. Second, occlusion noise is hard to charac- terize. The dependencies P(XIY) in the occluded regions are impossible to estimate since we know that the revealed area is unseen. The assumption of stationarity [7] is clearly violated. A more proper model for describing the dependency channel between X (i, j, m) and Y(i,j, m) is based on the observation that the noise N(i, i, m) is a spatial mixture of two or more different noise processes. In this paper we restrict ourselves to a mix- ture of two processes. As an example, consider the original video frame X (i, j, m) and estimated side information Y(i, j, m) of a picture-in-picture sequence in Figures l(a) and I(b), respectively. We will use this data in our experiments. The sequence contains a picture-in-picture which moves to the left, while the background rotates in opposite direction. To make the distinction between pixels in the two different regions of interests, in Figure 1(c), blocks of 16x 16 pixels are categorized to belong to either the non-occluded region (accurate motion estimation) or the occluded region (inaccu- rn·m rate or poor motion estimation result). ln the region 0, the noise process No(i,j,m) : $ " ~ ,= ! ,.. ': :- i .~' \. ~-~~.-... ~~-- .... ~ ~-'-'-' . .:--'--~ (a) (b) (c) (d) (e) Figure 1: (a) Original frame X(i,j,m). (b) Estimated frame Y(i,j,m). (c) Cate- gorization into non-occluded oe (black) and occluded 0 (white) regions. (d) His- togram (zoomed) of noise processes NoU,j, m) with fitted Laplacian POF. (e) His- togram (zoomed) of Noc (i, i, m) with fitted Laplacian POF. models the effect of occlusions. This process will have a large variance and follows for instance an uniform POF model. In this region, motion estimation completely fails and the side information is (nearly) uncorrelated with the original data. In the non- occluded regions oe the noise process Noc(i,j,m) is assumed to well-behaved, and 115 follow for instance a Gaussian or Laplacian POF model with a small variance. In case we assume source and side information to be totally independent in the occluded regions, the model for the virtual side channel becomes: X(i,j,rn) + Noc(i,j,m.), (i,j) E O", Y(i,j, m.) = (2) { No(i, i, m), (i,j) EO. In the example we show, there is still some correlation between X (i, i, m.) and Y(i, j, m.) in occluded regions thanks to the spatial interpolation processes the motion compen- sator carries out in these regions ({! = 0.42). Hence, an alternative to Eq. (2) would tben be: X(i, i, m) + Noc (i, i. m), (i,j) E o-, Y(i,j, m) { X(i, (3) i. m) + No(i,j, m), (i,j) E O. where No(i,j, m) follow for instance a Laplacian distribution with a large variance. In Figures led) and lee), the histograms of the noise process Y(i,j, m) - XCi,j, m) are shown for the regions 0 and O", Two Laplacian POFs are fitted, with 2 = 1 for region O" and 2 = 510 for region O. In the following sections we will experimentally investigate the performance of a turbo code-based distributed source coding system. In partienlar we will consider performance differences when the single model Eqs. (1) is adopted for the virtual dependency channel, versus tbe case where the mixture models Eq. (2) and (3) are used. SYSTEM DESCRIPTION Video/Turbo Encoder The system setup that we use in this paper is an irnplernenta- tion of the system described by Aaron el al. [3] Figure 2 shows the block diagram of this distributed video compression system. Tbe Jó-level quantizer is designed with a Lloyd-algorithm to make the a priori probabilities of the input symbols Q fed to the turbo encoder equally likely. The Siepian-Wolf encoder is implemented as two identical l ó-state convolutional con- stituent codes with rate 4/5 (maximum chanel rate 0.5 bitlbit) and with parity poly- nomials (23,35,31,37,27). The complete encoder uses two interleavers, i.e., both convolutional coders are preceded by an interleaver, Interleaving is done on symbol level (quantized peM video frame samples) rather than on bit level. The reason both encoders are preceded by an interleaver is to break up the region 0 in which the oe- elusion noise occurs. Removing one of the two interleavers substantially degrades the overall performance. To obtain a specific bit rate Rx, the output of the convolutional coders is (randomly) punctured. 116 I+--- Wyner-Ziv Encoder ----<+--- Wyner-Ziv Decoder ------+l ............. Dependency Channel: P(,YIY) ... .. ···>Y Figure 2: Block diagram of the distributed video compression system. Video/Turbo Decoder At the decoder, side information is generated using an ad- vanced motion estimation and compensation procedure. A prediction of the current video frame is made, based on the temporal information in the past. The decoder consists of two Soft-Input Soft-Output (SISO) maximum likelihood decoders for the symbols/pixels Q. In our setup the decoders are serially concatenated and both are preceded by the corresponding inter1eaver. Extrinsic information is passed between the constituent STSO decoders and the number of bit errors is decreased after every iteration. These type of maximum likelihood decoders, which compute the maximum a posteriori (MAP) probability of Q, assumes that the underlying characteristics of the dependency channel and the a priori probabilities of the input symbols Q are given. The SISO decoding performance depends heavily on this information. EXPERIMENT BASED ON SYNTHETICALLY GENERATED DATA In this section we study the effect of the size of occluded areas 0 on the decoding performance for the different noise models introduced in a previous section, as well as different ways for estimating the required dependency channel model. The decoding performance is analyzed by calculating the bit error rate for different (turbo) encoding rates. The entropy region we are interested in is the region where the rate is higher than the actual conditional entropy H(QIY) that has to be transmitted to the decoder. For rates Rx > H(QIY) reliable results can be expected in the sense that the BER becomes sufficiently close to zero. The conditional entropy H(QIY) is given by H(QIY) =~ ~ P(q, y) Iog2 P(qly)· (4) YQ~~ In the equation we indicate that H(QIY) depends in part on the PMF P(Q, Y) or histogram of the available realization of the data, and in part on the model for the vir- tual dependency channel P(QIY) that the SISO decoder is based upon. If the PMF of the realization of Q and Y satisfy the model used in the decoder, the conditional entropy that needs to be sent to the decoder approximates the actual conditional en- tropy measured between Q and Y. If an inaccurate channel model is chosen, the 117 difference between the actual conditional entropy between Q and Y and the entropy that has to be sent to the decoder, computed by averaging - log , P( QIY) over all pairs(( Q(i, i, m), Y(i, j, m)) to get (4), can become consequential. We generate a synthetic picture-in-picture frame. The size of the occluded area is 1/16 or 1/32 of the total frame of size L Ró 40000. The non-occluded regions are corrupted with additive Laplacian noise with 2 = 1, while the occluded area is either modeled as noise uniformly distributed between 0 and 255, or is corrupted with additive Laplacian noise with 2 =- 510. The experiments are set up for SISO decoders with different assumptions on the chan- nel model. The PMF P(QIY) of the channel model can either be assumed known since we have synthetically generated the noise in regions 0 and O", or the PMF can be measuredfrom the real data. Clearly, the latter can only be done in controlled exper- iments, and never in reality. Although we know that the actual data is non-stationary, we consider the following channel models to characterized the noise N(i,j,m): (a) a Laplacian model, where the channel is assumed to be completel stationary and is modeled by a Laplacian PMF P(Q - Y) with 2 = 1 disregarding occluded regions; (b) a combined model, where the channel is assumed to be completely stationary and the PMFs of non-occluded and occluded regions are combined into a single channel model; (c) a mixed model, where the channel is assumed to be non-stationary, A dif- ferent PMF is used for occluded and non-occluded regions. Figures 3(a) and 3(b) show the BER in Q at the output of the turbo decoder for a number of rates for the case the size of the uniformly distributed region (according to Eq. (2)) is 1/32 and 1/16 of the total frame. At the turbo decoder, the channel is modeled using a synthetic model (Laplacian model, combined model, mixed model) and by measuring the PMF of the real data (combined model, mixed model). This experiment is also done on occluded areas described according to Eq. (3) using the Laplacian model for No(i,j,m). The results are shown in Figures 3(c) and 3(d). The results shows that the choice of the channel model is crucial for the performance of turbo decoding. A simple model, like the Laplacian model, degrades the performance dramatically and williead to an unacceptably high transmission rate Rx. For larger bit rates the BER slowly converges to zero. At some point the total number of bit errors becomes close to zero, which results in a somewhat jumpy behaviour on a log scale. The slow convergence is mainly due to the limited amount of data (L = 40000) and number of iterations (24). The solid lines represent the expected behaviour for L ---> 00 and large number of iterations. 118 "'r ~'-::;<'. ~ )"',..:., ""v, '~ ...... t",·,,', :'[::;,;f,.. \i;"" "·c-.:.--o;---C'~I~~'~'':::'~:;'-_'';~:---· .....:.---t. ,~.~c"-r (a) (b) (c) ~~1~ .......~..~ : °i • "'0" --..._ ... -- ._- "I'"-00Q'Yl--...-.. ,-, I ...Q!l .......,........, "'5 - ....-1- 0;> oz 0.3 .310 •• "CS .~ .,. .~ 0210 U ) .. ~ ... o,s o.S •• S __ ... 0-"" ....U tool o",s •• 0.<6 0$ (d) (e) (f) Figure 3: Results encoding/decoding subframe with synthetic generated data with Laplacian non-occluded noise ( 2 = 1) and uniformly occluded noise for 1/32 part (a) and 1/16 part (b) occluded area, or Laplacian occluded noise ( 2 = 510) for l/32 part (c) and 1/16 part (d) occluded area; and with real data by informing the decoder with an combined or mixture model based on real data (e) and on model assumption (f) EXPERIMENT BASED ON REAL DATA In this section, we carry out an experiment using the picture-in-picture video sequence. A frame of this sequence and its prediction were shown in Figures I (a) and 1(b), re- spectively. An example of the binary mask to separate the occluded areas from the non-occluded areas was shown in Figure I (c). We estimated the PMF P( QIY) for the total sequence and also for the occluded and non-occluded part of the sequence. Both SISO decoders are either informed by a combined channel model (based on all data) or by a mixture model (seperation of occluded and non-occluded data). Figure 3(e) shows the performance of the system for the two SISO decoders in terms of their bit error rate (BER) for a number of bit rates. The figure also shows the calculated conditional entropy H(QIY), according to Eq. (4). The same experiment is repeated, but now the channel is modeled as a single noise channel based on a combination of 2 Laplacian distributions ( 2 = 1) and ( 2 = 510) for the non-occluded and occluded regions of the subframe, or it is modeled as two separate Laplacian noise channels with ( 2 = 1) and ( 2 = 510) for the non- 119 occluded and occluded regions. The results are shown in Figure 3(f), together with the conditional entropy H(QIY) (Eg. (4». These results, together with the results from the previous section, shows that the per- formance of the SISO decoder, and therefore of the overall system, can be improved greatly by classifying the decoder-generated side-information into two (or more) relia- bility classes. It also shows that the channel model should be an accurate representation of the real behaviour of the channel, otherwise the decoding performance will heavily degrade. CONCLUSION This paper shows that the decoder process is substantially improved by modeling the virtual dependency channel between input and side-information as two seperate chan- nels. This success heavily depends on the choice of the channel models. A wrongly chosen model leads to convergence of the decoder only at an unacceptable high trans- mission rate. The results shows that the performance degradation is mainly due to incorrect channel modeling of the occluded areas. Practical distributed video coders should therefore concentrate on dealing with non-stationarity by using mixture models. REFERENCES [J] A. D. Wyner and J. Ziv, "The rate-distortion function for source coding with side informa- tion at the decoder," IEEE Transactions on Information Theory, vol. 22, no. 1, pp. 1-10, January 1976. [2] D. Siepian and J.K. Wolf, "Noiseless coding of correlated information sources," IEEE Transactions on Informaiion Theory, vol. 19, no. 4, pp. 471-480, .July 1973. [3] A. Aaron, S. Rane, R. Zhang, and B. Girod, "Wyner-ziv coding for video: applications to compression and error resilience," in Proc. of the Data Compression Conference (DCC 2003), March 2003, pp. 93-102. [4] S.S. Pradhan and K. Ramchandran, "Distributed source coding using syndromes (discus): design and construction," IEEE Transactions on Information Theory, vol. 49, no. 3, pp. 626-643, March 2003. r51 R. Puri and K. Ramchandran, "Prism: an uplink-friendly multimedia coding paradigm," in Proc. IEEE Inl. Cant on Acoustics, Speech, and Signa! Processing, 2003 (ICASSP '03), April 2003, vol. 4, pp. 856-859. [6] P.EA. Meyer, "Slepian-wolf turbo coding of video with non-stationary side-information," M.S. thesis, Delft University of Technology, October 2004. [7] P. Ishwar, Y. Prabhakaran, and K. Ramchandran, "Towards a theory for video coding using distributed compression principles," in Proc. lnternational Conference on Image Process- ing, September 2003, vol. 3, pp. 687-690. 120 CO DING OF DEPTH-MAPS USING PIECEWISE LINEAR FUNCTIONS Yannick Morvan", Dirk Farina and Peter H. N. de WithC£,b "Eindhoven University of Technology, 5600 MB Eindhoven, The Netherlands bLogicaCMG, TSE-2, 5605 JB Eindhoven, The Netherlands y.morvan@tue.nl, d.s.farin@tue.nl and p.h.n.de.with@tue.nl An efficient way to transmit multi-view images is to send a single. texture image toqether with a corresponding depth-map. The depth-map specifies the distance between each pixel and the camera. With this information, arbiiraru 3-D views can be generated at the decoder. In this paper, we propose a new algorithm for the coding of depth-maps that provides an ef- ficient represeniation of smooth regions as well as geometric features such as object contours. Our algorithm uses a segmentation procedure based on a quadtree decomposition and models the depth-map content with piecewise lineal' functions. We achieved a bit-rate as low as 0.33 bitjpi:r:el, without any entmpy coding. The attractivity of the coding algorithm is that, by ex- ploiting specific properties of depth-maps, no degradations are shown along discontinuities, which is important fOT depth perception. 1. INTRODUCTION The upcoming 3-D displays show several views of the same scene, viewed from different positions at the same time. An independent transmission of these views has several disadvantages. First, it is inefficient, since there is a strong correlation between the set of images covering the same scene. Second, different displays will support a varying number of views, which makes it impractical to prepare the displayed views at the encoder. Instead, the views should be synthesized at the decoder, where display geometry is known. The independent transmission of several views can be avoided by transmitting the texture data independent from the geometry data. One approach is to send the texture data for the central view and a depth-map that specifies the depth of each pixel in the texture image. This deptb-map can be represented by a gray-scale image where dark and bright pixels correspond to far and near pixels, respectively. Based on this depth-map, arbitrary views can be synthesized at the decoder. For efficient transmission, the coding of depth-maps needs to be addressed. 121 In previous work, one of the approaches is to use a wireframe modeling tech- nique [2] to code depth-maps. This technique divides the image into triangular patches, which are filled by linear functions. If the data cannot be represented with a single linear function, smaller patches are used for such that area. How- ever, the patch structure is not adapted to the image content, such that a large number of small patches is generated along edges. An alternative technique uses a transferm-based algorithm derived from MPEG-4 coders. Key advantage of using a standardized video coding algorithm to compress depth-maps is the backward compatibility with the existing Leclmology. However, Df:T transform coders gen- erate ringing artifacts along edges that yields a blurry cloud of pixels along the object borders in 3-D reconstruction. The characteristics of depth-maps differ from normal video signals. For ex- ample, it can be seen in Figure 1 that large parts of typical depth-maps usually contain smooth objects and other approximately planar surfaces. As a. result, the input depth-map contains various areas of linear depth changes, corresponding to surfaces of objects. Furthermore, at the objects boundarie, the depth-map shows step functions, i.e. sharp edges. Therefore, we are interested in a compression al- gorithm that can efficiently decompose a typical depth-map into regions of linear depth changes, which are bounded by sharp edges. Figure 1: Example image "Teddy" [1] (left) and the corresponding deptb-map (right). This has brought us to the concept of modeling the signal using piecewise linear functions f(x, y) = ax + by + c, where a, b, c are parameters which are adjusted to the image content. The image is subdivided with a quadtree de- composition and an independent linear function is used for each leaf of the tree. Additionally, we provide a mode that describes object contours, i.e. depth dis- continuities, with a straight line separating two linear functions. This la.st mode 122 enables to code depth discontinuities, without introducing many smallleafs along edges. Experimental results show that prior to entropy coding, the new proposal gives attractive low bit-rates for natural images, while simultaneously preserving the quality of the edges. The sequel of this paper is structured as follows. Section 2 describes the framework of our deptb-map coding algorithm, while Section 3 provides further details about the parameter estimation for each coding mode. In Section 4, we describe a rate-distortion optimization of the quadtree decomposition. Results are presented in Section 5 and the paper concludes with Section 6. 2. DEPTH-MAP CODING ALGORITHM In this section, we present a novel approach for depth coding using the above- mentioned piecewise linear functions. With a single linear function, we can repre- sent one planar surface of the scene, like the ground plane, walls, or small objects. Hence, a single function can cover areas of variable size in the image. To identify the location of these planar surfaces in the image, we employ a quadtree decom- position, which recursively divides the image into squares of different size. In some cases, the deptb-map within one square can be approximated with a single linear function. If no suitable approximation can be determined for the square, it is subdivided into four smaller squares. Additionally to this standard quadtree subdivision, we apply a special coding mode when there are discontinuities in the depth-map. To prevent that many small squares are required along a discontinu- ity, we separate the square along a straight edge into two regions. Each of these two regions is coded with a separate linear function. Consequently, the coding algorithm chooses between three possible modes for each node in the quadtree: • Mode 1: Approximate the square content with a single linear function; • Mode 2: Subdivide the square along a straight line into two regions and approximate each region with an independent linear function; • Mode 3: If the previous two modes fail, then subdivide the square into four smaller squares and recursively process these squares. The decision for each coding mode is based on a rate-distortion optimization described in Section 4. 123 3. PARAMETER ESTIMATION FOR CODING MODES 1 AND 2 This section explains the computation of the parameters that are used in the two coding modes. 3.1 Parameter estimation for Mode 1 For Mode 1, a single linear function is used for which the three parameters a, b, c should be calculated. In order to determine the three parameters a, b, c of the linear function f(x, y) = a.T + by + c, we employ a least-squares minimization. This algorithm minimizes the sum of squared differences between the depth-map I(x, y) and the proposed linear model. Accorclingly, parameters a, b, c are deter- mined such that the error 11. n E(a,b,c) = L2)ax+by+c-I(x,y))2 :>;=1y=1 is minimized, where n denotes the node size in terms of pixels. This error function E(a,b,c) is minimized when the gradient satisfies II'VEII = O. When taking the partial derivatives of this equation with respect to a, band c, we find a set of linear equations specified by L::=1 L:~=lxI(.T, y) L::=1 L:~=1 yI(x, y) L:~=1 L:~=lI(x, y) ) with n2(n+l}2 d : _ n2(n+l} t = n2(n+l}(2n+l} 6 ' u- _ 4 ,an v- 2 . Since the matrix on the left side of the previous equation system is constant, it is possible to pre-compute and store the inverse for each size of the square (quadtree node). This enables to compute the parameters a,b,c with a simple matrix multiplication. 3.2 Parameter estimation for Mode 2 For Mode 2, the location of the separation line and the two sets of parameters for the two regions should be computed. This cannot be solved with a least-squares minimization for the following reason. Without knowing the subdivision bound- 124 s: o s: ë_ ë_ Q) Q) "0 o "0 o o o 0 o 0 o o 0_0 Q.? ~ __ C:_ _ o 00 0 0 0 .- o 00 0 -0-0- o o (a) (bl Figure 2: Two samples are randomly selected to compute a candidate model indicated by the line and input data close to the hne candidate is considered as inliers (black dots). Fig. 2(a) and Fig. 2(b) show two candidate models with a small and a high number of inliers, respectively. The model with the larger number of inliers Fig. 2(b) is selected. ary between the two regions, it is not possible to determine uniquely their model parameters. Similarly, it is not possible to identify the subdivision line as long as the region parameters are unknown. Plane parameters estimation For this reason, we apply a robust estimation using the RANdom SAmple Con- sensus (RANSAC [3]) algorithm. This algorithm can estimate parameters even if the pixel data are corrupted by a large number of outliers. In our case, we assume that the data comprise pixels from two regions with different models. We consider the data corresponding to the larger region as the inlier data, while the data in the smaller region are considered as outliers. Our algorithm starts with estimating the parameters for the larger region in a first run of the RANSAC al- gorithm. To this end, the algorithm randomly selects three pixels, which are used to compute candidate parameters a, b, c. The algorithm then counts the number of pixels that fit to this model (inliers). This procedure is repeated several times (see the l-D example in Figure 2) and finally, the parameters with the largest support are selected as the parameters for region A (see Figure 3). Using the obtained parameters for region A, we remove all inlier pixels from the data. On this reduced data set, we carry out a second RANSAC parameter estimation. As a result, we obtain the parameters for the smaller region B from the second RANSAC estimation. 125 Subdivision line parameters estimation The next phase is the determination of the parameters of the subdivision line. To obtain a robust estimation of line parameters, we build a dictionary of all possible subdivision lines that divide the square into two areas. Subsequently, an exhaustive search through the dictionary is performed and the best fitting model is selected. To evaluate the model fit, we compute a quality metric of the proposed model, i.e, the L2 distance between the model and the image data. More formally, the best edge model minimizes the approximation error by min (A.B)ED ( L CfA(X,y)-I(x,y))2+ L (JB(.T,Y)-I(x,y))2), (x,y)EA (x,y)EB where the parameters for fA and [» are computed such that the previously com- puted parameters resulting from the RANSAC procedure are reused. region A Figure 3: Regions A and B are identified with a classification map of inliers and outliers; the boundary between both regions is approximated with a straight line. 4. RATE DISTORTION ANALYSIS This section describes the subdivision criterion of a node in the quadtree that we apply to optimize the rate-distortion behavior of the quadtree. We will only outline the algorithmic principle and omit detailed discussions about optimality. Furthermore, we have omitted the use of entropy coding, so that the bit-rate calculation is relatively simple. The guiding principle is the application of a Lagrangian cost function [4] D+ÀR, where D denotes the distortion resulting from the quadtree decomposition in the pixel domain, and R stands for the bit-rate required to code the sub-image with the corresponding parameters. For each coding mode, a corresponding cost (distortion and rate) can be defined. If the node is subdivided in smaller squares, the cost of this node includes the sum of the children node costs. To make an 126 optimal decision for one node, we select the coding mode that gives the lowest Lagrangian cost. Because the cost depends on the cost of children nodes, an optimal solution can be found by computing the coding modes by a bottom- up traversal of the tree. However, this optimal solution is too computationally expensive. Instead, we propose an approximation that can be computed by a top-down traversalof the tree. The algorithm can be summarized as follows. • Step 1: Compute the Lagrangian cost for coding Mode 1 and 2. • Step 2: Compute the Lagrangian costs for the children nodes and select temporarily the modes of Lhe children with the minimum cost. • Step 3: For the current node, choose the best coding mode based on the cost of Mode 1, Mode 2 and the sum of the children costs. This top-down traversalof the tree is more computationally efficient than a bottom-up traversal, since we can stop the subdivision in smaller nodes as soon as Mode 1 or Mode 2 is selected. 5. EXPERlMENTAL RESULTS For evaluating the performance of the algorithm, experiments were carried out using the deptb-map of the "Teddy" scene. Experiments have revealed that the proposed algorithm can code large areas of the image with a single node (examples are the top left nodes in Figure 4( c)). With respect to the obtained bit rate, the following can be concluded. We have made a conservative estimate of the bit rate, assuming that the coding of the quadtree and the choice of coding modes 1-3 requires two bits per node. Moreover, we assume that model and line parameters require 8 bits each. In total, we get 24 bits for Mode 1 and 64 bits for Mode 2. This conservative bit-rate estimation results in, prior to possible entropy coding, a bit-rate of 0.33 bit/pixel at a PSNR of 32.6 dB for the image "Teddy". 6. CONCLUSION We have presented an algorithm for coding depth-maps in 3D video that exploits the smoothness properties of such signals. Regions are approximated using piecewise linear functions and they are separated by straight lines along their boundaries. The length of aline segment (and thus the distortion) depends on the level of the quadtree decomposition in the actual area of the depth-map. 127 (a) (u) (c) Figure 4: Example image "Teddy" (left) and the correspouding reconstructed deptb-map (center) at a bit rate, prior to entropy coding, of 0.33 bit/pixel for a PSNR of 32.6 dB. The superimposed nodes of the quadtree are portrayed by Fig.4(c). The algorithm allows the coding of small details as well as large regions within a single node. The previous consideration results without any entropy coding in a bit-rate of 0.33 bit/pixel at a PSNR of 32.6 dB for the "Teddy" image. The performance of t.hf~ algorithm is controlled by a computationally efficient top- down approach in which Lagrangian cost functions for individual coding modes are evaluated and coding modes giving miuimum costs are selected at each step of the decomposition. REFERENCES [1] D. Scharstein and R. Szeliski., "High-accuracy stereo depth maps using struc- tured light.," in IEEE Computer Society Conference on Computer Vision and Pattern Recognition, vol. 1, pp. 195-202, June 2003. [2] D. Tzovaras, N. Grammalidis, and M. Strintzis, "Disparity field and depth map coding for multiview image sequence," in Proceedinqs on Int. Conf. Image Processing, vol. 2, pp. 887-~90, 1996. [3] M. A. Fischler and R. C. Bolles, "Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography," Commun. ACM, vol. 24, no. 6, pp. 381-395, 1981. [4] A. Ortego and K. Ramchandran, "Rate-distortion methods for image and video compression," IEEE Signal Processing Magazine, vol. 15, pp. 23-50, 1998. 128 SCALABLE MULTIPLE DESCRIPTION VIDEO FOR FAIR STREAMING TO MANY CLIENTS Jacco R. Taal and R. (Inald) L. Lagendijk Information & Communication Theory Group Faculty of Electrical Engineering, Mathematics and Computer Science Delft University of Technology, The Netherlands Peer-ta-peer networks (P2P) form a distributed communicaiion infrastructurc that is particularly well matched to video streaming using multiple description coding. Weform!VI descriptions using MDC-FEC building on a scalable version of the "Dirac" video coder. The!VI descriptions are streamed via 111 different application layer multicast (ALM) trees embedded in the P2P network. Client nodes (peers in the network) receive a number of descriptions rn < NI that is dependent on their bandwidth. In this paper we consider the optimization of the received video qualities, taking into account the distribution of the clients' bandwidth. We propose three "fairness" criteria to define the criterion to be optimized. Numerical results illustrate the effects of the differentfairness crite- ria and client bandwidth distributions on the rates allocated to the compressed video layers and multiple descriptions. INTRODUCTION Peer-ta-Peer (P2P) networks and their file swapping P2P applications have become pop- ularized in the past years because of their high download bandwidths and inherent server off-loading. This success has stimulated research into using peer-ta-peer net- works as infrastructures for streaming video over the Internet[l J. In addition to being clients, the peers in the network then also serve as application-level multicast (ALM) nodes. For ALM, no infrastructural changes are required, making fast and flexible de- ployment possible. The data forwarding model that we consider to be most suitable for video streaming over peer-ta-peer networks is known as "bartering". Chunks of data are exchanged between nodes in a "as fair as possible" manner. The main advan- tages of Bartering are: 1) leveraging the server load. 2) inherent fault-tolerance due to splitting up data streams. For P2P video streaming, we apply bartering on multiple descriptions (MD) of the (compressed) video source rather than straightforwardly chopping up a compressed bit stream. In this case, a video encoder generates several (multiple description) streams, Send correspondence to J . R. Taal@ewi . tudelft. nl. This work has been funded by the Freeband projects CACTUS (www. cactus. tudelft . n L) and I-SHARE (www. freeband. nl) 129 that are all independently decodable. The different descriptions are put into the differ- ent chunks. If more chunks, and hence more descriptions, are received, the decoded video quality improves. The advantages of the MD approach is that video streaming becomes robust against P2P bandwidth variations or failing P2P nodes, which in both cases cause random chunks of data to be unavailable to a video decoder. In this paper we use the multiple description coding approach MDC-FEC proposed by Puri and Ramchandran[2] (see Figure I). First, the video is encoded using an NI -layer video encoder. Each layer k is encoded at a rate Rk and is then protected by an (111, k) (Reed-Solomon) erasure code, The thus obtained protected data is evenly distributed over the Ivf descriptions. Finally, the individual descriptions form the chunks that are bartered by the P2P nodes. If any m out of NI descriptions are available, the first m layers can successfully be decoded, resulting in a quality Qm. Erasure Coding + video MOC Packetization Figure I: Block Diagram of the multiple description video distribution over a P2P network In the practical application of the above MDC-FEC approach, several (encoding) pa- rameters have to he chosen, namely the number of layers (and descriptions) and the bit rate at which the individual layers are encoded. In our earlier work [3] we have pro- posed to use a probabilistic client-bandwidth distribution model that describes clients bandwidth due to physical network limitations (e.g. the various ISDN, cabIc, AOSL, and LAN connections) and due to network congestion. In this way, the probability for a P2P peer receiving a certain number of descriptions can be calculated as a function of the above mentioned parameters. Using an overall criterion, such as the average compression distortion over all clients, the optimal number of layers/descriptions and the bit rate per layer can be found. For a discussion of related work we refer to our previous papers [3,4]. These papers also give an introduetion on Application Level Multicast and P2P video streaming. In the remainder of this paper we derive a model for the behavior of our MDC-FEC system. Also we derive an RD-model for the layered Dirac codec. Then we present three different criteria to find the optimal encoding parameters. We will introduce these criteria from the perspective of "fairness" to the clients. Finally we show results of optirnizing the fairness criteria with specific settings and assumptions on the client distribution. MDe VIDEO STREAMING IN PEER-TO-PEER NETWORKS We use the MOC-FEC structure proposed by Puri el al.[2]. Figure 2(a) shows how the layers are grouped and descriptions are generated using erasure codes. The base layer 130 is encoded at a rate RI. The total rate of the first n layers is denoted by Rn. Hence, each successive layer i has a rate R; - R;-l' The rate RD of each of the M descriptions is then given by: Af L Cr.1R1,where Ro = 0, and (I) 1=1 ai 1j(l(l + 1)), for l = 1,2, M-I, and Cr.M = 1jM A node or client in the P2P network with bandwidth R, receives m = l~J descrip- tions. After decoding these m descriptions, the client experiences a compression dis- tortion of D(Rl, R2 ... ,Rm.) for m = 1, ... ,lVI. In principle, the rate-distortion func- tion for layer m depends on all rates Rk of the individual layers k = 1, ... , m as layered compression induces losses relative to a single layer coder that are dependent on the rates of the (lower) layers. Hence, for each layer we may have a different rates- distortion function. By definition, D(O) = x2. In our work we used Dime, an open-source video coder developed by the BBC[5]. Dirac is wavelet-based and its performance is comparable to H.264. In Figure 2 the bit rate - distortion (RD) curve of Dirac is shown for the Foreman sequence. We also plotted several RD-curves for two-layer encoding. The branch-point in each curve is the rate RI for the first layer. The efficiency loss for the first enhancement layer is clearly visible. For higher layers (not shown) we have observed an insignificant loss of coding efficiency. Consequently, the rate distortion function becomes only dependent on the rate of the base layer RI and the rate of the layer m under consideration, i.e., D(Rl' R2 ... , Rm) = D(R1, Rn,,). ,-- Descuptiens 1 2 3 4 5 6 7 M L:1 IX IX X X X X X r-l-:2 X X X X X X L:3: X X X X X L:4 X X X X L:5 >< >< >< L;6 X X . : • L:7 X • : Layer A4 ~ 1 (bW) (a) (b) Figure 2: (a) MDC-FEC Packetization scheme. The parts marked with a cross are parity codes. Each column is one description (packet). (b) Rate-Distortion curves for the layered Dirac encoder with the 30Hz CIF-Format Foreman sequence. The dashed line is for the H.264 encoder In order to be able to find an optimal rate allocation, we need to have an analytic model 131 of the RD curves. Due to space limitations we will not present the derivation of our model for D(RI' R2 .. ·, RM). RATE ALLOCATION PROBLEM If we have to serve a large number of different clients, all with a different bandwidth Rc, we have to trade-off quality and redundancy of the descriptions. Making an op- timal trade-off is not trivial as clients having different bandwidths will receive a dif- ferent number of descriptions, and hence experience a different quality and effective bandwidth. On one hand, we wish to offer every client a quality that is as high as possible. On the other hand because of scalability of the system, we cannot offer each client individually an optimal stream. In order tu deal with this dilemma in a fair way, two ingredients are needed. In the first place we need to know (or model) the distribution IRe (Re)of the bandwidths Rc available to the clients. Secondly, we need to establish a criterion that expresses what we mean by "fair", and which also lends itself for optimization. The fairness criterion will generally be a function of the clients bandwidth R; and the bit rates Rh: allocated to the layers of the video encoder (FC(Re; RI, R2 ... , RM ). In the following sections we will introduce and discuss different examples of fairness criteria. In most cases the rate allocation problem (finding optimal values for RI, R2 ... ,RM given Rn and !VI) can only be solved numerically. The values of RD and M, however, can either be optimized numerically but often are chosen practically. The P2P network, for instance, may only support a limited number of descriptions. Or, if we observe that most of the client bandwidths are smaller than Bmax, we could choose to select RD = Bmax/(M + 1) so that the client-bandwidth spectrum is equally divided. In the remainder of this paper we only discuss optimizing the rates Rl, R2 ... , RM and we assume that we either have already selected values for Af and RD, or that these values are to be found in an outer optimization loop. When RD and !VI are fixed, the maximization function becomes: argmaxL M l b J+l IRc(r)FC(r;R),R2 ... ,Rj)dr, (2) j=O bj where bi i RD for i = 0,1, ... ,111, and bM+1 = 00. M1NIMAL MSE FAIRNESS CRITERION The first - and the most straightforward - criterion we consider is to average the dis- tortion D(R), R2· .. ,Rm) = D(R), Rm) over all clients: 132 where the number of clients receiving i + lout of M descriptions is ei, computed as: ei = Jb~i+1 IRe (1') dr for i = 0, 1, ... ,NI. Given a fixed number of description M and a fixed rate per description RD' this criterion can be solved numerically using the Lagrange multiplier method, as discussed in the work of Puri el aL. [2J Al L(R1, R2··., RM' À) = L c, D(R 1, Rj) +À (4) j=ü In [2J, a method is presented to solve these simultaneous equations such that after optimization R; < R;+l holds for all rates. Unfortunately, the required conditions can only be verified for a single layer coder that is described by a single RD-function. In our case, however, we have to deal with a layered coder that is described by multiple RD-functions. Consequently, the derivative of D(R), R2 ... , Rm) with respect to R; also depends on Rj, 1 ::; j < i. For that reason, we cannot use method in [2], and as a result we cannot guarantee that after optimization all R, < R;+l' Currently we deal with monotonicity of R; as a postprocessing step after optimization. MAXIMAL AVERAGE PSNR FAIRNESS CRITERION A drawback of the MSE metric described above is that the (inverse) magnitude of the MSE is not a good measure of quality. When the average MSE is minimized, most effort is put in minimizing the highest MSE values. Little effort is put in minimizing the lower MSE values, although these still can gain significant amounts of quality. An obvious alternative choice for the fairness criterion is to use the performance measure often used in video cornpression, namely peak-SNR. When we average the PSNR over all clients, the following criterion is obtained: __ M r: PSNR(Rl,R2 ... ,RM) = ~Jbj fRc(1') PSNR(R),Rj)d1' (5) where PSNR(R1, Rj) = 10 10glO D(71,~~j)' We can optimize the above criterion in a similar way as the minimum MSE criterion. WEIGHTED PSNR LOSS (WPL-P) FAIRNESS CRITERION From the client's point of view, the client is paying for a certain bandwidth R; and wishes to use this bandwidth as efficient as possible, inpartieular, the client wishes to obtain maximal quality of the received compressed video stream. Unfortunately, because of the multiple description coding, there is an inherent reduction in quality. As long as there is a balance between the MDC-induced quality reduction and the benefit for the entire P2P video distribution system (of which the client is an integral part), the client is willing to take part in the system. 133 The third proposed fairness criterion reflects the MOC-induced quality reduction for the individual clients. We consider the system to be fair when the (PSNR) quality of all clients is close to the performance obtained if a single description coding system (SOC) had been used. The following weighted PSNR loss (WPL) criterion measures the difference between MOC and SOC performance. The p-parameter controls the way in which differences are weighted: WPLp(R1, R2··., RM) = IpSNRSDcCRc) - PSNRMDcCR1, R2 ... , RLf4'} lP After substitution of this criterion in Eq. (2) and simplification of the resulting expres- sion, we obtain: _ WPLp(R ,R1 2 ... ,RM) = M ·'f;r)b r: fReer) I D(r·) 1010glOD(Rl,Rj) lP dr. (6) j With p = 1, this criterion becomes identical to the maximal average PSNR criterion Eq. (5). For p > 1 we put more emphasis on larger quality reductions. Minimizing the criterion then results in a solution where the difference between MOC case and the SOC case is more balanced over all clients. Note that for p -> 00, we effectively minimize the maximum quality reduction. The Lagrangian for the weighted PSNR loss with parameter p (WPL-p) criterion is !vI ) (7) '" Z:: o.R: .1 J - Rn 1 j=l RATE OPTIMIZATION RESULTS In this section we present the results of the optimization of above criteria given several different client-bandwidth distributions and different choices for RD and M, In these simulations we used the general RD model as derived in Section The first distribution we consider is shown in Figure 3(a). We expressed the clients bandwidths in bit-per-pixel, also note that fR)r > 1.5) = O. Furthermore we fix M = 4 and RD = 0.3. Using the MSE criterion, this resulted in rate assignment R = {Rl,R2,R3,R4} = {0.15,0.15,0.IS,0.74}. The resulting quality depending on the number of descriptions that is received (and therefore depending on the client bandwidth) is shown in Figure 3(b). This plot shows MOC quality depending on the number of received descriptions in the lower curve. For reference we also plotted the SOC quality D(r·) (upper curve). A first observation is that the first layer already ob- tains a fairly high quality. This has two reasons: a) the RD-function is very steep at lower rates, making it "cheap" to obtain low distortions at low rates; b) since the RO- model correctly models the penalty in coding efficiency in the enhancement layers, a 134 PSNR PSNA 50 la la 0.2 a.' 0.' 1.2 1.4 0.2 0.4 0.' 0.8 0.2 0.' 0.6 0.8 1.2 (a) pnFI (b) POFl - MSE (c) POFI - PSNR PSNR 50 '.. PSNR 2.5 1.5 la 10 0.5 0.2 0.4 .6 0.8 1.2 IA 0.2 a.' a.s 0.8 1.2 I.' 0.2 OA 0.6 0.8 1.2 IA (d) POFl - WPL-4 (e) POF2 (f) POF2 - MSE PSNR f" PSNA 1.5 0.5 la 10 0.2 a.' 0.6 0.8 1.2 1.4 0.2 0.4 0.6 a .s 1 1.2 IA 0.2 OA 0.6 0.8 1.2 1.4 (g) POF2 - WPL-4 (h) POF3 (i) POF3 - PSNR PSNA PSNR PSNR 50 50 40 .0 la la (i) POF3 - WPL-4 (k) POF3 - WPL-8 (I) POF3 - WPL-16 Figure 3: Results for the optimization of the MSE, PSNR and WPL-p criteria for several client distributions (POF1 ,2, ... ) small base layer implies lower qualities for the higher layers as well. Another obser- vation is that only for clients with bandwidth R; > 1.2, the system really increases the base quality. When we use the PSNR criterion, the optimal assignment is R = {0.14, 0.14, 0.14, 0.78} 135 (Fig. 3(c)). Although barely noticeable, this criterion favors the higher bandwidths with a little bit higher quality. When we apply the WPL-4 criterion however, R = {0.15, 0.15, 0.32, 0.69}, this results in a more "fair" distribution of the quality over all clients. Clients receiving three descriptions do obtain a little higher quality than when receiving only two descriptions, making it worthwhile to participate in de P2P network. Now we consider the distribution in Figure 3(e). This distribution puts emphasis on clients having bandwidths between 0.3 and 0.6. Since RD = 0.3, all clients with R; < 0.3 receive no descriptions at all. For the MSE criterion (R = {0.3, 0.3, 0.3, 0.3}) gives a high quality to all clients, but effectively results in a single-layer, single-description solution. With the WPL-4 criterion on the other hand, R = {0.20,0.31, 0.45,0.45} and even clients with a Rc > 0.6 still gain quality at a small expense of quality for the lower bandwidth clients (Fig. 3(g). For the distribution shown in Figure 3(h), we fixed M = 6 and RD = 0.2. To gain insight in in the effect of the p-parameter, we varied p from 1 (effectively the PSNR criterion) to p = 16. Figures 3(i)-3(1) display the results. Remember that a higher p-value puts more emphasis on minimizing larger offsets between the SDC an MDC quality. Using a large p, the criterion goes to a greater extent to prevent large offsets, which results in a system that really offers different qualities for different bandwidths. CONCLUSIONS We have introduced three fairness criteria, which in combination with the distributions of the P2P clients' bandwidth distribution, define the criterion to be optimized. The rate-distortion functions on which the results are based are taken from a layered version of the Dirac video coder. The results we have obtained show that by choosing an appropriate fairness criterion we can obtain a fair mapping between the bandwidth of a client and the quality it will receive. This is very important in a P2P network, where clients will decide on the basis of this mapping, whether they will participate in the P2P streaming network, and how many descriptions they want to receive. REFERENCES [1] M. Castro, P. Druschel, A.-M. Kermarrec, A. Nandi, A. Rowstron, and A. Singh, "Split- stream: high-bandwidth multicast in cooperative environments," in Proc. of the 19th ACM symposium on Operating systems principles, pp. 298-313,2003. [2] R. Puri and K. Rarnchandran, "Multiple description source coding through forward er- ror correction codes," in Proc. Asilomar Conference on Signals, Systems and Computers, (Asilomar, CA), Oct. 1999. [3] J. R. Taal, J. A. Pouwelse, and R. L. Lagendijk, "Scalable multiple description coding for video distribution in p2p networks," in Proc. Picture Coding Symposium, (San Francisco, CA),2004. [4] J. A. Pouwelse, J. R. Taal, R. L. Lagendijk, D. H. J. Epema, and H. J. Sips, "Real-time video delivery using peer-to-peer bartering networks and multiple description coding," in Proceedings International Conference 011 Systems, Man and Cybernetics, (The Hague, The Netherlands), pp. 4599-4605, 2004. [5] ·'The DIRAC project." http://www.bbc.co.uk/rd/projects/dirac/. 136 ADAPTIVE DECODING OF MPEG-4 SPRITES FOR MEMORY-CONSTRAINED EMBEDDED SYSTEMS Milan Pastrnak+", Dirk Farinb, Peter H. N. de Witha,b aLogicaCMG Nederland B.V., PO Box 7089, 5605JB Eindhoven, The Netherlands bUniversity Technol. Eindhoven, PO Box 513, 5600MB Eindhoven, The Netherlands Email: M.Pastrnak@tue.nl Abstract Background sprite decoding is an essential part of object-based video cod- ing. The composition and Tendering of a final scene involves the placing of individual video objects in a predefined way superimposed on the decoded background image. The MPEG-4 standard includes the decoding algorithm fOT background image decoding, but this algorithm is not suitable fOT im- plementation on a memoru-constrained platfor-m. In this paper we present a modification of the decoding alqorithm that decodes MPEG-4 sequences while fulfilling the requirements of a memoru-constrained multiprocessor system with only 17% extra ouerhead of computation. OUT algorithm Te- duces the memory cost of such decoding with a [actor of foul'. Additionally, our' algorithm offers the possibility of high level data parallelism. and conse- quently contributes to an increase of throughput rate. 1. INTRODUCTION Object-oriented video coding enables new features for portable multimedia devices. This type of video processing requires a considerable amount of memory to render the final scene. The memory requirement contrasts with the mini- mization of resource usage in portable devices. Recent studies revealed that a multiprocessor system-on-chip (MP-SoC) [1] or a cell-processor system [2] provide high computational resources with low power consumption. The proposed CELL processor implementation poses a limitation on other types of resources such as memories and communication resources. Multiprocessor architectmes are described as a set of processing tiles con- nected together via a bus or a network. The efficient implementation of streaming applications on such platforms intrinsically ask for partitioning of complex algo- rithms into smaller subtasks, which can fit to the resources of a processing tile. 137 Pipeliried execution of individual subtasks results in complete functionality of the original algorithm. The CELL processor meets computational requirements of complex state-of-the-art applications such a, MPEG-4 coding [3]. However, the limited size of local memory requires a modification of the MPEG-4 sprite- decoding algorithm. The implementation of a first-generation CELL processor consists of a 64-bit power processor element (PPE) and its L2 cache, multiple syn- ergistic processor elements (SPE). Each SPE has its own local memory (LS) [4]. Synergistic aspects in processing are that iudividual processing tiles are directly connected and perform pipelined execution of distributed algorithms. As shown in Figure I, an SPE unit contains four 64 kByte memory blocks. SPE mem64k _- ~1-+--+~--1 Tu nib) riJ' nlb1, tuen 10 ILB.-'D:U.-\ ,.db2f(!Jsumt(2J D"t'1(3ii"al~(4~....,. (~5k (6~" Mn. Dt"l"od Decode Access & Dj ..t. & Disl. Data Flow J'db41 ~ f·db·U to D:tlaFl()\\" L:ueb/ "dbl/2 to Di\l.-l : n.a Figure 1: Local memory organization in SPE (taken from [4]). A major cost problem of the MPEG-4 decoding algorithm is the buffering of the decoded scene background. The Main Visual Profile Level 2 (MP@L2) of the MPEG-4 standard bounds the maximum size of reference image for the sprite reconstruction to 1584 MacroBlocks (MBs) at CIF resolution (a smgle video picture is 396 MBs) [5]. The target processing-tile memory limitation of 256 kByte can handle decoding of rectangular video pictures or arbitrary-shaped video object decoding, but it cannot internally buffer the complete reference sprite image. In this paper we present a new algorithm that decodes MPEG-4 compliant sequences which satisfies the target platform constraints on memory (MP@L2). 138 Furthermore, it introduces the data-level parallelism. The paper is organized as follows. Section 2 presents the sprite reconstruction principle anel addresses MPEG-4 standard decoding. Section 3 gives our new decoding algorithm while Section 4 provides details on the corresponding data structures. Section 5 describes the experirnents and Section 6 concludes the paper. 2. SPRITE RECONSTRUCTION AND MPEG-4 DECODING Object-oriented coding in the MPEG-4 standard enables individual process- ing of foreground objects and the scene background (also called sprite). The background sprite image is used for the reconstruction of the scene background for a set of succeeding frames. The reference sprite is constructed by merging several views into one large image that is further encoded and transmitted. I-VOP Bitstream Shape I Texture Sprite Buffer Decoding &. I s-vo= , Bitstream Shape I Texture Update Decoding Warping Vector Reconstructed Warping Decoding Samples Figure 2: MPEG-4 decoding of background sprite. The sprite warping (see Figure 2) generates the actual camera view that is used in the renderer for the scene composition. The warping transformation is modeled as a mapping between the decoded reference sprite plane and the actual view plane. This mapping is described by the following MPEG-4 GMC formulas: mOO·x+mOl·y+m02 I mlO . x + mI] . Y + m12 X'= ,y (1) Px . X + Py . Y + 1 m20 . x + m21 . y + 1 ' where x', y' are the transformed display coordinates and x, y denote the orig- inal coordinates for the video texture in the sprite buffer. The global motion parameters mij in the above equations are calculated during encoding. The MPEG-4 statie sprite coding provides the reconstructed scene back- ground for the actual video scene and may require substantial memory. In the 139 MPEG-4 standard, the sprite decoding consists of four major steps: shape/texture decoding, buffering of the complete sprite, decoding of the warping vector and geometrical warping (Fig. 2). The I-VOP (Intra-coded Video Object Plane) con- tains coded data for shape and texture of the referenced sprite. An S-VOP (Sprite Video Object Plane) contains coded warping vectors. The luminance, chrominance and grayscale alpha data of a sprite are stored in two-dimensional arrays. The width and height of the luminance array are spec- ified by the syntax parameters sprite_width and spri te.lleight, respectively. These planes are stored in the so-called Sprite Bl/ffi'!T" and are used as references for the actual camera view reconstruction. The decoding of the current view background applies to the previously described warping process. 3. NEW SPRITE DECODING ALGORITHM In the new algorithm, we focus on the partitioning and optimal buffering of sprite data, because it is intrinsically a costly function due to the high amount of involved MBs. The large latency of accessing data in a processor network system, specifically for an off-tile memory location, requires a complete modification of the original MPEC-4. standard decoding process. The primary difference is in the way how MB data are stored. The original approach keeps the whole reference image in an uncornpressed form. \""Te propose to keep the reference sprite image in compressed form and decode only the part that is required for the reconstruction. As a consequence, the decoding process is decomposed into four steps: (1) the Reconstructed Samples Figure 3: New decoding of background sprites and corresponding task-to- processor assignment. 140 construction of an information matrix for random access of MB data, (2) decoding of warping vectors, (3) decoding of the required MB texture data, and (4) warping of the actual sprite. Figure 3 gives the block scheme of the new approach. Let us simplify the decoding problem to the situation when the bitstream contains only one fully encoded sprite image and it is followed by a number of S-VOPs without updates of texture/shape information. The decoding of the actual background involves the following steps: l. Parsing of the 1-VOP bitstroani and construction of the Random Access Data Matrix (details are given in the next section). 2. Decoding of warping vectors. 3. Calculating of the bounding box that defines the actual referenced sprite view. 4. Fetching and decoding of MB data that was not available in the previous referenced image for the actual bounding box. 5. Recalculating of the image origin. 6. Warping of the background image. In Figure 3, we indicate by a vertical dotted line, that the algorithm has to be split at least into two parts and mapped onto two processing elements. This split fulfills the SPE constraints on the memory size (256 kBytes). More analysis and proof that the split ensures the decoding without problems is given in Section 5. 4. CONSTRUCTION OF MB DATA MATRIX FOR RANDOM ACCESS The MPEG-4 compressed bitstream does not contain markers for accessing image data at a macrobleek granularity level. At the first stage, we construct the MB access matrix for access to the bitstream of MB compressed data. The texture processing is performed in three steps: DC/ AC prediction based on the previous neighboring blocks, decoding of DCT coefficients and Inverse DCT transforma- tion. To provide random access to the MB data, two approaches are available. First, storing data in matrices of 8 x 8 DCT coefficients. Second, buffering for each MB DC/ AC predietors and postponing the decoding of DCT coefficients un- til the moment that the MB is required for the warping process. Since the target matrix for storing DCT coefficients has the same size as the complete sprite, we have to adopt the second approach to save memory. 141 original coded bitstres Figure 4: Data organization for the new sprite decoding algorithm. Figure 4 portrays the data organization for the new sprite decoding algo- rithm. Note that memory blocks E, L are dotted, because these blocks require the decompression of encoded e, I MB data. The calculation of the active area (Step 5 in the algorithmic description) indicates thc needs for these MBs in the further warping process. The algorithm looks to the matrix of pointers to identify the positions in the original coded bitstream buffer. A major gain in the use of pointers for the decoding process is achieved during the reconstruction of the first frame(I- VOP). The MPEG-4 standard al- gorithm performs DC/ AC prediction, DCT coefficients decoding and IDCT on the complete reference image. Instead, we perform first two simple processing stages (without buffering of DCT coefficients) on the whole image and only the last step performs actual full decoding but on a restricted image size. This last step introduces an extra overhead caused by the redundant decoding of DCT co- efficients for the first image. However, this overhead can be removed if we obtain the warping vectors for the first image a P1-i01'i to texture parsing. Whcn using this modification, the reduction of the number of MBs for the first image IDCT transformation is 76%. Additionally, we can speedup the texture processing by instantiating subsequent DCT coefficients decoding and IDCT transformation with parallel MB decoding. 142 5. EXPERlMENTS We have implemented the new version of the MPEG-4 sprite decoder. Fig- ure 5 shows the results of decoding the well-known MPEG "tennis player" se- quence. The amount of required MBs for decoding processing is illustrated at the left of Figure 5 by the (noisy) bold line at the bottom. The decoding of the background reference sprite requested for the first image processing of the complete reference image (in our case 225 MBs) is shown at the top of the same figure. For this test sequence, the maximum number of uploaded MBs for the decorl ing of the active sprite area was 41 MBs. Referenced Sprite Image - Corroete image size in MBs Number of processed blocks El ~ilied algorithm - Decoded MBs I VOP 2000 per VOP I 11 Original processing rv1PEG·4 tvI3 -f! 1500 .Q ~ 1000 E 500 0 1 2 3 4 5 6 7 8 9 10 " 12 13 14 VOPindex VOPjndex Figure 5: Left: Processing of "tennis player" sequence by the new algorithm. Right: Comparison of the original and modified size of the buffer. At the right of Figure 5, we show the required buffer sizes in terms of MBs, and compare the original and the new algorithm. The original decocl.ing requires 1701 MBs stored in an uncompressed way (1584 is the maximum, but multiple 16- pixel MB grid alignments increases this number to 1701). The maximum size of the reference sprite was never higher than 400 MBs. It was found that the original algorithm requires 4.25 times more memory than our new algorithm. The figure also shows that our algorithm requires small bursts of blocks for decoding during the scene, but these bursts do not accumulate to a significant number, so that the total remains much smaller than the big burst required for the original algorithm. However, compared to the original algorithm, we found that om proposal has the disadvantage of occasional extra decoding of MBs for special background movements. For example, this occurs when the active window leads to the release of decoded MBs and after some frames requires the same picture data leading to repetitive decoding of already released MBs. This disadvantage depends on the camera motion in the background. During our experiment, we observed that the repetitive decocl.ing involved 17% of extra MBs decoding. The amount of memory 143 to store the original bitstream was 37.440 kBytes and the resulting random-access data matrix needed 7 kBytes of memory (fixed small memory space). 6. CONCLUSIONS We have proposed and implemented a new MPEG-4 background sprite de- coding algorithm. The new algorithm features minimum use of local memory in the processing elements of the target processor network. A second feature is that it. is based on constructing a special information matrix fur random access to MBs data, which enables independent MB processing. This potentially increases the level of parallelism to perform the decoding on more processing elements at a higher speed (for a VOP). It was shown that the required memory reduces with the factor of 4.25, with only 17% computation overhead due to repetitive MB decoding for the complete sequence. REFERENCES [1] M. Berekovic, H.-J. Stollberg, and P. Pirsch, "Multicore System-On-Chip Ar- chitecture for MPEG-4 Streaming Video," in IEEE Transactions on Circuits and Systems for' Video Technology, August 2002, vol. 12 of 8, pp 6SS-u!:)!:). [2] B. Flaehs et al., "A Streaming Processing Unit for a CELL Processor," in Proceeduiqs of IEEE International Solid-State Circuits Conference, February 2005, pp. 134-135. [3] M. Pastrnak, P. Poplavko, P.H.N. de With, and J. van Meerbergen, "On Resource Estimation of MPEG-4 Video Decoding for a Multiprocessor Archi- tecture," in Proceedinqs of PROGRESS 2003, October 2003, pp. 185-193. [4] S.H. Dhong et al., "A 4.8GHz Fully Pipelined Embedded SRAM in the Streaming Processor of a CELL processor," in Proceedinqs of IEEE Inter- national Solid-State Circuits Conference, February 2005, pp. 134-135. [5] Dirk Farin, Peter H. N. de With, and Wolfgang Effelsberg, "Minimizing MPEG-4 Sprite Coding-Cost Using Multi-Sprites," in SPIE Visual Commu- nications and Image Processinq, Vol. 5308/1, January 2004, pp. 234-245. 144 CODING FOR RELIABILITY AND SECURITY OVER WIRE TAP CHANNEL SYSTEMS A. Thangaraj, S. Dihidar, R. Calderbank and S. McLaughlin* In this paper, we study coding methods for some wire tap channel systems. We consider unretap channel systems composed of one 07' more binary erasure channels and propose specific practical code constructions. The consiructions are based on threshold properties of linear graph-based codes such as LDPC codes. In some cases OU7' designs achieve the secrecy capacity and in others the codes provide complete securitu at rates below secrecy capa.city. INTRODUCTION An information-theoretic model for communication with perfect security was intro- duced by Wyner through the wire tap channel [1], which later evolved into a broadcast channel system with secure messages as depicted in Fig. 1. In a wire tap channel system, Alice and Bob are separated by a channel Cl called the main channel. The important modification when compared to Shannon's study of security is that any eavesdropper Eve observes information transrnitted by Alice through another channel C2 called the wire- tapper's channel. Cl and C2 are typically assumed to be discrete memoryless channels (DMCs). Figure 1: Wire tap channel system. Suppose Alice needs to (securely) communicate a k-bit message M across Cl to Bob. Alice encodes M into an n-bit transmitted word X. The legitimate receiver Bob and an eavesdropper Eve receive X through two different channels Cl and C2, respectively. Bob's and Eve's observations are denoted Y and Z, respectively. Alice's encoding should achieve two objectives: (1) [Security] Z provides no information about M, or the mutual information I(M; Z) = 0 (2) [Reliability] Y can be decoded into M with negligibly small probability of error. Wyner showed that both objectives can be attained by forward coding without any shared key bits if the channels Cl and C2 satisfy some conditions. The rate kin is called the secrecy rate. Secrecy capacity of a wire tap channel system is the largest kin for which the objectives of secure and reliable communication are 145 achievable. Secrecy capacity has been studied in detail by Wynerj l], Csiszár and Körner [2], and recently by Maurer [3] and Van Dijk [4]- The problem of developing forward coding schemes (with no parallel channel) for secure communication over wire tap channel systems has not received much attention. Some examples of coding schemes have been provided in the works by Wyner [1] and Maurer [3]. However, code construction methods and their connection to security have not been extensively explored so far. In this paper, we focus on the problem of developing coding schemes for secure communication across wire tap channel system". For a wire tap channel system with a noiseless main channel and a binary erasure channel (BEC) as the wire tapper's channel, we provide codes that achieve secrecy capacity using the threshold properties of codes on graphs under message passing decoding. We extend the constructions to wire tap systems that have BECs as both the main and wiretapper's channel. The connections between the threshold of codes on graphs under message-passing decoding and security are important new contributions of this paper. SECRECY CAPACITY OF THE WIRE TAP CHANNEL SYSTEM In a general wire tap channel system (Fig. I), Cl and C2 are discrete memoryless channels (DMCs) with a common input alphabet. In this paper, we consider special cases where both Cl and C2 are symmetric DMCs with Cl less noisy than C2. In this caSe [4], the secrecy capacity is given by Cs = Capacity(X -+ Y) - Capacity(X -+ Z), (1) where Capacity(.) refers to the usual channel capacity. In the following sections, we look at some design approaches for some simple wire tap channel systems. The encoding method and notation will remain the same for all cases. NOISELESS MAIN CHANNEL AND ERASURE WIRETAPPER'S CHANNEL We begin with the simplest possible wire tap channel system with a binary erasure channel (BEC) as the wiretapper's channel and a noiseless main channel. This scenario along with the coding method is shown in Fig. 2. In Fig. 2, the wiretapper's channel has been denoted BEC(l - E) i.e. the probability of erasure in the wiretapper's channel is 1 - E. The probability that a bit is leaked to the wiretapper is E. This notation has been chosen for future convenience. We will denote the wire tap channel system of Fig. 2 as EWT(E). Using (1), we see that the secrecy capacity of an EWT(E) is Cs = 1 - Capacity(BEC(l - E)) = 1- (1 - (1 - E)) = 1 - E. (2) In Fig. 2, S is the random variable denoting the k-bit message to be transmitted. The code C is chosen to be an (n, n - k) code. The transmitted n-tuple is denoted by the 146 S X X S = lHIXT S Encoder Alice Bob X: Randomly lHI:parity-check matrix of C seclected from BEC(l - E) coset of a code C with syndrome S Z Eavesdropper Figure 2: Coding method. random variable X = [Xl X2··· Xn]. The transmitted word X is randomly chosen [TOm the coset of e with syndrome S according to a k x n parity-check matrix lHI. Since the channel between Alice and Bob is error-free, Bob finds the message as follows: S = lHIXT (mod 2). The secret information rate is R = k/n. From (2), we see that for secure transrnission, R = k/n < 1 - E. (3) Assuming that all messages are equally likely, we have X, = 0 or Xi. = 1 with probability 1/2 each. The eavesdropper learns Xi with probability E. That is, the random variable Z = [Zl Z2'" Zn] is such that Z, = X, with probability E, and Z, =7 (unknown or erasure) with probability 1- E. Security Criterion To develop a security criterion for the choice of e, we calculate the eavesdropper's un- certainty H(SIZ) by first evaluating H(SIZ = z). Note that the eavesdropper is given complete knowledge of the code e and infinite computational power. The main source of uncertainty is the uniformly random selection of the transmitted word X from the coset of e corresponding to the message S. If a coset of e contains at least one vector that agrees with z E {O, 1, 7}11.in the unerased positions, we say that the coset is consistent with z. Each consistent coset corresponds to a possible message for the eavesdropper. Let N (e, z) denote the total number of cosets of e consistent with z. Since each message is equally likely a priori, we get H(SIZ = z) = log2 NlC, z). (4) For an (n, n - k) code e, the maximurn possible value for N( e, z) is the total number of cosets 2k If Nt C, z) = 2k, we say that z is secured by e since the eavesdropper's Prob{S = slZ = z} = 1/2k for every possible message s. The following theorem (adapted from [5, Lemma 3]) states a condition for a vector z to be secured by a code e. 147 Theorem 1 (Ozarow, Wyner '84) Let an (n,n - k) code e have a generator matr-ix C = [al'" a".J, where a, is the i-tli column of C. Consider an instance of the eaves- dropper's obser-vation z E {a, 1, ?}n with f-l unerased positions given by {i : Zi #?} = {il' i2, ... ,il'}' Z is secur-ed by e iff the matrix Cl' = [ail a.;2 ... a.;J has rank u, Proo]: If Cl' has rank u, the code C has all 21' possible p.-tuples in the ~t unerased positions. So each coset of C also has all 21' possible f-l-tuples in the p. revealed positions. So N(e,z) = 2k .• If Cl' has rank less than u, the code e does not have all f-l-Luples in the /1 unerased positions. So there exists at least one coset that does not contain a given p,-tuple in the /1 unerased positions, and N(e, z) < 2k. If all possible random vectors z obtained over a BEC(l - €) are secured with probability close to one by an (n, n - k) coele C, rate kin is achievable with perfect secrecy over an EWT(€). Using duals of codes on graphs Consider a bipartite graph ensemble e''-(.\, (2) with n left nodes and left and right edge degree distribution polynomials À(x) and (2(x), respectively [6]. The adjacency matrix of a graph from the ensemble provides the parity-check matrix of a low-density parity-check (LDPC) code. Let the threshold for en(À, (2) over the binary erasure channel be (X-(.\, (2). The threshold property has the following straight-forward interpretation: Theorem 2 Lel M be a parity-check matrix of an LDPC codefrom the ensemble en(À, (2). A submatrix formed by selecting columns ofM independenUy with probability (X will have full column rank [or (X < (X'(.\, (2) for' large k with high pmbability. Theorem 2 enables the use of duals of LDPC codes as the code e over an EWT(E) as shown in Fig. 2. We let a matrix M from the ensemble enC\, (2) to be the generator matrix for e. By Theorem 2, the columns of the matrix M corresponding to the leaked bits over a BEC(l - E) will have full rank with high probability whenever E < (x' À, (2). Note that the probability that a bit is leaked across a BEC(l - E) is equal to E. In combination with Theorem I, we see that the code e with generator matrix M provides complete security with probability tending to one for large block-length over an EWT(€) with e < a-(À, (2). Example 1 The en(x2, X5) ensemble of(3, 6)-1'egular- LDPC codes has threshold (X*(X2, X5) ~ 0.42. Let M be an adjacency matrix from the ensemble with lar-ge n (say, n > 105). M 'is an n/2 x n binary matrix with row weight 3 and column weight 6. The (n, n/2) code e with generator matrix M can be used ove1' an EWT(€) for e < 0.42 with perfect secrecy. The information rate between the honest parties in this case is R = 0.5 compared to the upper bound of 1 - e = 0.58 (from (3)). (In practice, the value of e could be reasonably lesser than 0.42 for added security.) 148 The above argument can be extended to other ensembles of codes on graphs that have capacity-achieving thresholds over the binary erasure channel. We illustrate the method with the following example. Example 2 (Tornado codes) A rate-2/3 tornado code ensemble with threshold {) = 0.33257 has been reported in tn A parity-check matrix NI for a code from the ensemble unll have dimensions n/3 x n. The (n, n - 2/3n) code C with generator matrix NI can be used over an EWT(E) [or E < 0.33257 with perfect secrecy. The informatum rate between the honest parties in this case is R = 2/3 = 0.66666 ... compared to the upper bound of 1- E = 0.66743. Similar examples using the other classes of capacity-approaching ensembles can be con- structed. Hence over an erasure wire-tap channel with wire-tap probability E, secure information transmission rates tending to the upper bound of 1 - E are achievable using duals of codes on graphs that approach capacity over the binary erasure channel. ERASURE MAIN CHANNEL AND ERASURE WIRETAPPER'S CHANNEL In this section, we consider wire tap systems where both the wire tap channel and the main charmel are binary erasure channels (BEC). Though our results apply with a small modification to systems with DMCs other than the BEC as the main channel, we restrict ourselves to the BEC case for ease of explanation. The wiretapper's channel is a BEC with erasure probability Ew, and the main channel is another BEC with erasure probability Em. According to (I), the secrecy capacity of tills system is Cs = Ew - Em, which is positive whenever Ew > Em. We now consider a coding method that will eventually depend on capacity-approaching codes for complete security. We first pick an LDPC code Cl of length n from an ensemble of codes having asymptotic erasure threshold Ew. That means, as n _, 00, Cl recovers all the erasures on an erasure channel with erasure probability up to at least Ew, using the standard iterative erasure decoding algorithm. Let Cl have rate rI, and let HI be the parity check matrix of the code Cl. Next we pick n(l- r2) independent vectors from the dual space of Cl, where rl < r2. Let H2 be the matrix formed by these vectors as rows. H2 has dimensions n( 1 - r2) x n. Let H 2 be the rest of the independent vectors in the dual space of Cl. As we will see shortly, we must have Ew > (1 - r2) in order to guarantee some equivocation for Eve. Let H2 be the parity check matrix of a code C2· We want C2 to have asymptotic erasure threshold Em. We then have, (5) and (6) Let (À, Q) denote the degree distribution of an LDPC code. Let À(X) = I: i l ÀiX - , (7) i2'1 149 and a(x) = L aiXi-1 (8) i;:>: I For all i, Ài and ai are non-negative. À;.(ai) denotes the probability that a randomly chosen edge in the Tanner graph of the code is incident on a variable(check) node of degree i. In our examples, we will construct H2 by picking n(l - 7'2) rows of Hl> and the rest of the rows will be in H2. It is then easy to see that, if H2 corresponds to a Tanner graph with degree distribution pair (À2, a2), and H2 corresponds to a Tanner graph with degree distribution pair (>:2, Q2), then Eh corresponds to a Tanner graph with degree distribution pair (À1, al), where and (10) We have to choose (Àl, al) and (À2, a2) in such a way so that for all i, >:2i and Q2i are non-negative. o x s Figure 3: The Rncoding procedure We now discuss the encoding procedure. The encoding procedure in this case is a little different than the encoding procedure when we had a noiseless main channel. Hen\ Alice first takes a n(T2 - 7'l)-bit long message vector S, and forms a. n(l - 7'l)-bit long vector by adding n(l - 7'2) O's on top of S. She now chooses an X at random from the solution set of the equation shown in Figure 3 and transmits it. We illustrate this encoding procedure in Figure 4. Note that, the number of solutions to the equation, H2X = 0, is 2n-n(1-"2) = 2nr2, However, for some particular choice of S, say SI, the number of solutions to the equation shown in Figure 3 is 2n-n(1-,'!) = 2"r1• Obviously, the same X cannot be a solution for two different values of S. This explains the splitting of the solution set space of the equation H2X = 0 into ~:::~ = 2nh-n) disjoint subsets, each corresponding to a different value of S. Hence the rate of our code is (7'2 - 7'd. 150 solution set of H2X = 0 solution set. of Figure 3 for S = S2 solution set of ll2X = S1 Figure 4: The encoding space The interesting point to observe in Figure 4 is that we are not using the whole space of {O, l}", unlike in the previous sections. Equivocation across the wire tap channel In this section, we calculate the equivocation for Eve. Since Eve's channel is a BEC with erasure probability Ew, with probability tencling to 1, Eve will have ne.; erasures as n -+ 00. If we have Ew > (1 - r2), using H2X = 0, Eve must have at least 2n(£.,-(l-'·2» solutions for X, all of which are equally likely. All these solutions will differ from each other in the erased positions. Since Ew is the erasure threshold of the code having HI as the parity-check matrix, any submatrix formed using nEw columns of HI will have full column rank [6]. Thus every solution of H2X = 0 will give a different value of S, all of which are equally likely. The equivocation for Eve is then zx = n(E:w - (1 - r2)). If HI is the parity-check matrix of a capacity-achieving code on an erasure channel with erasure probability Ew, ,:::. = n(r2 - rl), and the message will be completely secure from Eve. Clearly, if the erasure probability of Eve's channel goes up, Eve will still have at least this much equivocation. Probability of error on the main channel When Bob receives a vector Y, he first decodes it by using the standard iterative erasure decoding technique for LDPC codes on the Tanner graph of the code C2. Let the erasure probability of the main channel be at most Em. Then, as n -+ 00, with probability tending to 1 he will be able to recover the transmitted word X. Bob then can find out the product H 2X, which is his estimate of the message S. Example 3 Let C2 be a (3,6)-regular LDPC code with block-length n. Hence, À2(:r) = x2 and iJ2(X) = x5. C2 has rate r·2 = 1/2. The code Cl is chosen to be another LDPC code 151 with all variable nodes having deqree 5 and all check nodes having deqree 6. Hence, Àl(X) = X4 and gl(X) = x5. Cl has rate Tl = 1/6. It can be seen [rom (9) and (10) that, X2(x) = x and Q2(X) = x5. The LDPC code C2 has an erasure threshold a* ~ 0.42. The code Cl has an erasure threshold (3* ~ 0.55. Thus, the secreest rate is 7'2 - Tl = 1/3, and an equivocation ofn((3* - (1 - T2)) = 0.05n is quaramteed across the unreiap channel having erasure pmbability qreater than (3* = 0.55. Bob can decode the 'message with asymptotically zero pTObability of elTOT on the main channel having erasure probabiliisj at most a* = 0.42. CONCLUSION In this paper, we have shown that if a code exhibits a threshold behavior across a BEC (codes such as regular LDPC codes), its dual can be used effectively over a wire tap channel system with a BEC as the wiretapper's channel. Using this result, codes that achieve both reliability and security can be easily constructed across such erasure wire tap channel systems. When the wiretapper's channel is a BEC and the main channel is noiseless, we have presented codes that approach secrecy capacity. To our knowledge these are the first and only such codes. For the case where both the main channel and the wiretapper's channel are BECs, we have provided a novel code construction using codes on graphs. REFERENCES [1] AD Wyner. The Wire-Tap Channel. B.S. T.J., 54(8):1355-1387, October 1975. [2] I Csiszár and J. Körner. Broadcast channels with confidentia.l messages. IEEE Trans. on Info. Tlieorç, 24(3):339-348, 1978. [3] U Maurer. Secret key agreement by public discussion from common information. IEEE Trans. on Info Theoru, 39(3):733-742, 1993. [4] Marten van Dijk. On a special class of broadcast channels with confidential messages. IEEE Traris. on Info. Tlieorç, 43(2):712-714, March 1997. [5] L H Ozarow and A D Wyner. Wire-Tap Channel n. B.S. T.J., 63(10):2135-2157, December 1984. [6] Thomas J. Richardson and Rudiger Urbanke. Efficient encoding of low-density parity- check codes. IEEE Trasis. on Info. Theoru, 47(2):638-656, February 2001. [7] Peter Oswald and Amin Shokrollahi. Capacity achieving sequences for the erasure channel. IEEE Trans. on Info. The017}, 48(12):3017-3028, December 2002. [8] A. R. Calderbank and Peter W. Shor. Good quantum error-correcting codes exist. Phys. Rev. A, 54(2):1098-1105, August 1996. [9] P W Shor and J Preskill. Simple proof of security of the BB84 quantum key distri- bution protocol. Phys. Rev. Leii., 85(2):441-444, July 2000. 152 INTERLEAVED SERIAL CONCATENATION OF QUANTUM CONVOLUTIONAL CODES: GATE IMPLEMENTATION AND ITERATIVE ERROR ESTIMATION ALGORITHM Harold Ollivier1 and Jean-Pierre Tillich2 1 Perimeter Institute, 31 Caroline St. N, Waterloo, ON N2L 2Y5, Canada. 2INRIA - Codes, BP 105, F-78153 Le Chesnay, France. INTRODUCTION Since the discovery in 1995 of the first quantum error correction scheme, many strategies have been devised in order to stabilize quantum computation. Among them, quantum error correcting codes play a prominent role. Their success is due to their versatility which makes them useful in virtually any situation. The largest class of quantum codes known today is referred to as stabilizer codes. Within this context, and in an effort achieve better proteetion of quantum in- formation, this article describes the construction of new stabilizer codes obtained by interleaved serial concatenation of two quantum convolutional codes. The re- sults presented here show that they are the quanturn analog of serial turbo-codes. The paper is organized as follows: (i) a review of well known results con- cerning stabilizer codes; (ii) a short introduetion to quantum convolutional codes and description of their trellis representation; (iii) a sketch of an iterative error estimation algorithm based on the usual Sum-Product running on the trellis of constituent codes; and (iv) an example of such code together with an evaluation of its performance over the depolarizing channel. In the rest of this paper, some familiarity with quantum computation is assumed. STABILIZER CODES For detailed and more complete introductions to quantum error correction the reader is redirected to [KL97a, Pre99b, NCOOa, KLA+02a], and to [Got97a, CRSS9Sa] (and references therein) for aspects concerning stabilizer codes. Stabilizer codes rely heavily on properties of the N-qubit Pauli group. It is defined in terms of the single qubit Pauli matrices: 1=(10) 01' x=(O 1) 10' y = (0 -i) i 0 ' 153 These matrices generate the multiplicative Pauli group for a single qubit, Cl' The N-qubit Pauli group, C N is the N-fold tensor product of the single qubit Pauli group. The crucial fact about CN is that any pair of elements (P, Q) either commute, i.e. PQ =.QP, or anti-commute, i.e. PQ = -QP. The error model for which stabilizer codes have been designed is the depo- larizing channel.It is a memoryless channel for which the probability of error is p and such that X, Y and Z errors occur with equal frequency. If g represents a single qubit density operator, the channel acts as: g -> (1 - p)g + ~(X gX + Y gY + ZgZ). (2) The interest of this error model is that any channel with low error rate and small range correlations can be converted into a depolarizing one through qubit interleaving and twirling. A stabilizer code with parameters (N, K) is defined in terms of an Abelian subgroup 5 of C N, such that 151 = 2N-K and that - I ~ 5. The code subspace C is the largest subspace of 7-f.~N stabilized by the action of 5, where 7-f.2 is the state space of a single qubit. Because 5 is generated by N - K independent elements Ali' the above condition can hp. written: l'if) E C Ç=> Vi E ~1, N - K], Md'if) = l'if)· (3) Using properties of Abelian groups, it can be proved that the dimension of C is 2](, so that the code subspace is isomorphic to 7-f.~J<, the state space of K qubits. The rate of such code is K] N. Error estimation for quantum stabilizer codes over the depolarizing channel is restrained to process the syndrome of the error EEC N. The syndrome of the error E is the binary vector: (s(E))l'I__-J< ~ , ,-1 fl 01 for [Mi, El 0 otherwise. = (4) In practice, the syndrome is obtained through successive quantum measurements of the generators M, of the stabilizer group 5. These measurements reveal for any I1/!) E C the value of (1/!IEMiEI'if) which equals +1 when [Mi, El = 0 and -1 otherwise. Maximum likelihood error estimation then consists in finding the most likely Ê compatible with the observed syndrome s(E). 154 Operators which belong to N(S)-S, where N(S) denotes the normalizer of S, have a non-trivial action on the code subspace but yield the "all-zero" syndrome. Indeed, it can be shown that N(S)jS ~ GJ(. Representatives of N(S)jS in N(S) thus correspond to encoded operations, i.e. operations that modify the protected quantum information while letting the code subspace globally invariant. An encoding for a quantum stabilizer code (N, K) is equivalent to identify a set of operators X, and Z, in N(S) for i E [I, K] such that: [Xi,Xjj =0 Vi, j E [I, K] [Z;, Zjj = 0 Vi,j E [1,K] (5) [Xi,Zjj = 0 i i= j. Finally, it has been shown that quantum stabilizer codes can be seen as some additive self-orthogonal codes over GF(4). The mapping between one and the other is based on the uniqueness of the decomposition of PEG N as P ~ ). N co ro i 0i=1XPw 0 Z1 where À E Z4 and Pw,Pw are binary vectors of length N. J ", The correspondence between elements of G N and vectors of G F( 4) is: : PE G; -> Pww+Pww, (6) where w2 - wand 1 +w+w = o. The code over GF( 4) associated to the stabilizer code generated by the operators Mi is the additive code with generating matrix: 5= (7) The trace inner product 1/.*V ~ Tr uv echoes the commutation j anti-commutation relations of corresponding operators of GN. That is, (P)*(Q) = 0 iff lP, Qj = 0 and is equal to 1 otherwise. Thus,S defines a self-orthogonal additive code over GF(4) for the trace inner product "*". Note that in the perspective of quantum error correction,S is viewed as a parity-check matrix since it allows to calculate the syndrome associated to any operator E E GN. In the rest of this paper, we will thus refer to 5 as the parity-check matrix of the quantum code stabilized by S. 155 QUANTUM CONVOLUTIONAL CODES The most natural class of stabilizer codes that one can use to define quantum turbo-codes is that of convolutional codes. These codes have been defined and studied in [OT03a, OT04a]. A (n, k, m) quantum convolutional code is a stabilizer code whose parity- check matrix is semi-infinite and has the following block band structure: ). SI Sm 0 P c: JO SI Sm 0 S= (8) 0 So SI Sm 0 where Si's are n x n - k matrices over GF(4)1 Due to the structure of the parity-check matrix S, the encoding circuit corre- sponding to protecting K qubits can be realized with linear gate complexity. In addition, one can devise a trellis representation of cosets of N(S) in GN which leads to efficient implementation of the Sum-Product algorithm over memoryless channels. Gate implementation. The generic stabilizer formalism offers the possibility to derive encoding and decoding circuits associated to any given quanturn code. In general, the gate complexity of such circuits is quadratic in the number' of protected qubits K for fixed rate K / N. In the case of convolutional codes, this complexity can be reduced to linear by introducing a polynomial formalism taking into account the block-band structure of S. The parity-check matrix S of the code is now represented by a n x (n - k) matrix over GF(4)[D]: SeD) = So + DS1 + ... + DmSm (9) The advantage of this representation is to allowan easy calculation of com- mutation / anti-commutation relations between elements of G N of finite support and the first n - k generators of S; as well as with their n-qubit shifted versions. lNote that t.he definition of m slightly differs from the one employed in [OT04a]. This choice is made for notational clarity only. 156 In this new formalism, the trace inner product between two elements u(D) and v(D) of (GF(4) [D])" corresponding to U and V of GN is given by: u(D) *v(D) = Tru(D)v(l/D). (10) The coefficient of Dl in the above Laurent series is zero iff U commutes with the operator V shifted by l blocks of n qubits to the right. It equals 1 otherwise. Therefore, U and V commute as well as all their possible n-qubit shifted versions iff u(D) * v(D) = o. The procedure for deriving the encoding circuit of stabilizer codes from the parity-check matrix can now be applied. It consists in a Gaussian elimination to transform 5(D) in polynomial standard form. There, it is easy, by exploiting the structure of 5(D) and the polynomial trace inner product, to derive 2J{ represen- tatives of N(S)/ S. With all these elements at hand, one can apply the Gottesman and Cleve method to find a quantum circuit implementation of the isometry em- bedding the to-be-protected information qubits into the physical qubits of the code. When applied to convolutional codes, this gate complexity is found lin- ear in K, as it would be the case if one was willing to consider classical binary convolutional codes within the quantum circuit model. Trellis for quantum convolutional codes. In the perspective of error esti- mation, it is useful to represent the different cosets of N(S) in GN. This can be done in full generality using trellises for quanturn codes [OT05b]. Definition 1 (N-section trellis for cosets of N(S» An N-section trellis for the cosets of N(S) of a stabilizer code with parity-check matrix 5 is a directed graph such that: 1. it has Nil sets of vertices V; = {v;(j)}j with Vo = {vo(O)}, VN = {VN(O)}; 2. edges bear a color c E GF(4) and a label l which is either 0 or a vector with entries in GF(2); 3. there is an edge with color c from v;(j) to vd]') iff: (a) i' = i + 1, (b) f;(j,j',c) = 0 for some linear function I, depending on 5, (c) 1= 0, except for some i depending on 5 for which I = 9;(j, c) with 9 a linear function depending on 5; 157 4. for each P = (Pk)';=l E GF( 4)N, there is a directed path from vo(O) to VN(O) whose edges bear the colors Pb P2, ... ]J N, and whose non-0 labels give the syndrome of P with respect to the parity-check matrix 5 .• In order to give a generic construction of a trellis for quantum convolutional codes the following definition is useful: Definition 2 (Past, future and active parity-check equations) A line of 5 corresponding to a parity-check equation is said to be in the past of qubit i if it has zeroes for all qubits j 2: i; it is in the future of qubit i if it has zeroes for all qubits j ::::;i; and it is active if it is non-zero and is neither in past nor in the future of qubit i.• Fact 1 The following graph is a N-section trellis for the cosets of N(S) of the quantum convolutional code defined by the parity-check matrix 5: l. Vi has 2r; elements, where Ti is equal to the number of parity-check equations that are active for qubits i and i + 1 (TO = TN = 0); 2. A directed edge with color c and label l starts in Vi(j) and ends in Vi+! (j') iff there exists p - (p/')';=J E G P( 4)N such that: (a) j ~ ((p!, _.. .ïu- 0, ... 0) * ak)%~l where the aio's are row vectors repre- senting active parity-check equations for qubits i-I and i. They are numbered in the order they appear in 5, (b) i' = ((PI, ... , PH!' 0, . - . 0) * a~X:-{ where the a~:s are row vectors representing active parity-check equations for qubits i and i + l. They are numbered in the order they appear in 5, (c) c = Pi+!, (d) l = (P*Odk where the Ok'S are row vectors representing parity-check equations that are active for qubit i but belong to the past of qubit i+ l. They are numbered in the way they appear in 5. If all parity-check equations active for qubit i are also active for qubit i + I, l = 0 .• It can be checked readily that the overall complexity of this trellis in terms of edges and vertices is linear with the number of protected qubits. The usual Sum- Product algorithm running on this trellis is able to calculate the probability, given the observed syndrome, that the error E commutes / anti-commutes at position 158 i with the operators X and Z. Indeed, a slight modification of the algorithm allows to calculate the probability, given the syndrome, that E commutes / anti- commutes with any encoded operator X, or Zi' When the channel is memoryless, these two tasks can be performed with linear complexity. SERIAL CONCATENATION Classical turbo-codes are usually based on the concatenation of two convo- lutional codes with an interleaver to enforce approximate independenee of infor- mation passed during the iterative decoding process. They can be casted in two classes: paral.lcl concateuated and serial concatenated. The proposed quantum construction is the interleaved serial concatenation of two quantum convolutional encoders (see [BDMP98a] for serial concatenation and iterative decoding of classical codes). The reason for this choice lies in the fact that the stabilizer group for the concatenated code can be easily obtained and has a simple structure which al.lows iterative error estimation. Definition 3 (Interleaved serial concatenation) Let sin and s= be the sta- bilizer groups for two quantum codes (resp. the inner and outer code) with pa- rameters (Ni,n, Kin) and (Nout, Kout.) with Kin = »=. Denote by {X)", Z:"}i and {Xiut, Ziut}i the sets of encoded Pauli operations for the inner and outer codes. This fixes the encoding isometries u» : H?I H?N,n and u= : H?I H?NOUI,. Let I, the interleaver, be a unitary operation that corresponds to a per- mutation 7r of the qubit factors of H?N"ul. The interleaved serial concatenated encoding isometry is: u ~ o» I 0 0 o=, (11) where the equality of the tensor-product decompositions H?I<'n been imposed .• Fact 2 The above encoding isometry corresponds to a code with stabilizer group S generated by {Mfn} ;::;_I<,n U{ JlÎftut};:O;"·_WUI. Here, the Mfn,s generate sin and the JlÎftut's are the generators of sout where operators X, and Zj at position j have been replaced by X;(j) and Z;(j)' and where the tensor product has been replaced by the usual matrix product. The encoded Pa.uli operations corresponding to the encoding isometry are the {Xiut, Ziut}, where the "tilde" denotes the previously explained substitution .• 159 Gate implementation. From the decomposition of the encoding isometry, Eq. 11, it is straightforward to derive the gate implementation of serial inter- leaved codes by simply running the circuits corresponding to uout, I, and u= one after the other. In the case of convolutional codes, because the gate complexity of the isometries Uin and uo'ut is linear in the number of encoded qubits, the overall gate complexity is again linear. Iterative error estimation. Due to the structure imposed by serial concatena- tion, we see that the logical qubit i of the inner code corresponds to the physical qubit 7r-1(i) of the outer code (7r denotes the perrnutation defining the inter- leaving operation). Therefore, in what follows, each time a Sum-Product step is performed, it will be designed to calculate the extrinsic probability that the error commutes / anti-commutes with the operators X]" and Zin, given some appropriate prior information. Initialization: The Sum-Product algorithm for the inner code is applied. It takes as prior information the description of the physical channel and the value of the syndrome associated to the ur-« The extrinsic probability that has been calculated is passed to the outer code. The Sum-Product algorithm for the outer code is performed, and uses the previously passed probal.ility as a prior together with the value of the syndrome associated to the M?ut's. It calculates a new extrinsic probability for this prior. This posterror probability is passed to the inner code. Iteration: The Sum-Product algorithm for the inner code is performed.f It uses the channel description, the extrinsic probability passed to the inner code and the syndrome associated to the M;:"'s. The newly calculated extrinsic probability is passed to the outer code. The Sum-Product algorithm for the outer code is performed using as a prior the extrinsic probability calculated for the inner code. The extrinsic probability obtained for the outer code is passed to the inner code. Decision: After each iteration, the qubit-by-qubit Maximum A Posteriori probability element Ê of G N is chosen. If it satisfies the observed syndrome of the concatenated code, Ê is the estimated error. If it does not satisfy the observed syndrome and the number of iterations done is under a threshold value, one more iteration is performed. If the maximum number of iterations is reached, a block error is output. 2To perform error estimation with this new prior efficiently it is useful to use the trellis of cosets of S instead of the trellis of cosets of N(S). 160 For memoryless channels, this iterative process can be accomplished with a complexity of about the sum of the complexity of the error estimation for each code taken separately. In particular for concatenated quantum convolutional codes, this complexity is linear with the number of protected qubits. EXAMPLE Some simulations of the performance of one such interleaved serial concate- nated scheme have been performed. In this study, the inner code and the outer code are identical and defined through the polynomial parity-check matrix: (12) It is a rate 1/3 CSS convolutional code with minimwn distance 3. The encoding for both inner and outer codes is identical and non-recursive. It is defined by the encoded Pauli operators X, = Di-l(W,W,W) and Z, = Di-l(W,W,W). In the simulations, the uniform interleaver has been chosen. That is, for each block the interleaver permutation has been chosen uniformly at random over all possible permutations of the physical qubits of the outer encoder. The qubit and block error probability after decoding over the depolarizing channel are shown on Fig. I. Performance of iterative decoding. Maximum likelihood Viterbi error es- timation for the constituent code gives a logical qubit error probability of about PQ(p) = 18p2 where P is the error probability over the physical channel. It is then expected that optimal error estimation for the non-interleaved structure achieves a logical qubit error probability of about PQ 0 PQ(p) = 5832p4 This curve is shown against numerical simulations of the iterative process in Fig. 1 (left). For P > 10-2, the iterative process performs significantly better than the optimal algorithm for non-interleaved serial concatenation. It indicates that in- terleaving is sufficient to make information passed between the two codes approx- imately independent, although quantum codes have, by construction, many small loops in their Tanner graph. However, the numerical simulations exhibit an error floor characterized by a probability of error for the logical qubits proportional to p3. This can be related to the encoding for the inner code that has been chosen non-recursive. 161 That is, the single-qubit Pauli operators for the inner code have only a fixed number of non-identity entries. While it allows to better observe the robustness of iterative error estimation with respect to short loops in the Tanner graph, it is known in the classical framework that it cannot lead to significant interleaver gain [BDMP98a]. The same arguments hold for the quantum case. Specific issues related to recursive encodings are beyond the scope of the present study but will be addressed in a subsequent paper. Detected block errors. Note that all the block errors that are reported on Fig. 1 are detected. That is the algorithm failed to converge after 10 iterations and output an estimated error that does not satisfy the observed syndrome. Qubit error rate (log-log scale) Bloek error rate (log-log scale) g 0 :0 -1 1; -2 - 2~~ ~~~:~~:::~-~7--i 2185 qubits (-~ 1.D ......-,::-.--:: ./, .»,;'/ -2 ~ -3 PQ 0 PQ(p) Ri;:;':;" j it -3 0 g -5 -4 " -6 :Ei -7 6 -8 -4 /~;~~:_~____,Jj: -3.0 -3 -2.5 -2 -1.5 -1 -0.5 0 t; " -3.5 ~ -3 , -2.5 _.__ -2 , -1.5 -1 -' -0.5 Depolariaing channel error probability Depolarlving channel €rror probability Figure 1: Qubit (left) and block (right) error probability after error correction for the interleaved serial concatenation of two rate 1/3 distance 3 convolutional codes. The different curves are relative to different numbers of protected logical qubits. CONCLUSION A new construction of quantum codes has been proposed. It is based on interleaved serial concatenation of quantum convolutional codes. To describe the iterative error estimation algorithm, a trellis based representation of quantum codes has been introduced. With this tool at hand, it is possible to perform the Sum-Product algorithm for calculating efficiently the extrinsic probability of commutation / anti-commutation of the error with ally element of the norrnalizer group N(S) using some prior on physical and logical errors. Derivation of the iterative algorithm naturally follows from the fact that physical qubits of the outer code are logical qubits of the inner code. This theoretical construction has been illustrated with all example for which performance has been evaluated over 162 the depolarizing channel. While this example is too basic to have performances equivalent to that of good classical turbo-codes, it opens the way to new designs of quantum codes relying on the existence of efficient iterative algorithms for error estimation Fully grown examples are under investigation. This work has been funded in part by "ACI sécurité informatique - projet réseaux quantiques", and received computing support from Institute for Quan- turn Computing and SHARCNET. H.O. would like to thank C. Negrevergne and D. Poulin for many enjoyable discussions, and R Laflamme for constant encour- agement. REFERENCES [BDMP98a] Benedetto, S., Divsalar, D., Montorsi, G., and Pollara, F. Serial concatenation of interleaved codes: performance analysis, design, and iterative decoding. IEEE Trans. In]. Theory, 44(3), 1998. [CRSS98a] Calderbank, A. R., Rains, KM., Shor, P. W., and Sloane, N. J. A. Quantum error correction IEEE Trans. Inf. via codes over GF(4). Theory, 44:1369, 1998. arXiv, quant-phj9608006. [Got97a] Gottesman, D. Stabilizer codes and quantum error correction. PhD thesis, California Institute of Technology, Pasadena, CA, 1997. arXiv, quarlt-phj9705052. [KL97a] Knill, K, and Laflamme, R Theory of quantum error-correcting codes. Phys. Rev. A, 55:900, 1997. arXiv, quant-phj9604034. [KLA+02a] Knill, K, Laflarrune, R., Ashikhrnin, A., Barnum, H., Viola, L., and Zurek, W. H. Introduetion to quantum Los Alamos error correction. Science, 2002. arXiv, quant-phj0207170. [NCOOa] Nielsen, M. A., and Chuang, I. L. Quantum Computation and Quan- tum Information. Cambridge University Press, Cambridge, UK, 2000. [OT03a] Olli vier , H., and Tillich, J.-P. Description of a quantum convolu- tional code. Phys. Rev. Lett., 91 (17): 177902, 2003. arXiv, quant- phj0304189 [OT04a] Ollivier, H., and Tillich, J.-P. Quantum convolutional codes: funda- mentals, 2004. arXiv, quant-phj040l134. [OT05b] Ollivier, H., and Tillich, J.-P. Trellises for quantum codes. In prepa- ration, 2005. [Pre99b] Preskill, J. Lecture notes for physics 229: Quantum information and computation (ch. 7). 163 Stopping and Dead-End Set Enumerators for Binary Hamming Codes Jos H. Weber Khaled A.S. Abdel-Ghaffar Delft University of Technology University of California Mekelweg 4, 2628 CD Delft Davis, CA 95616 The Netherlands USA E-mail: j.h.weber@ewi.tudelft.nl E-mail: ghaffar@ece.ucdavis.edu The performance of iterative decoding techniques for correcting erasures depends veTy much on the sizes of the stopping sets associated with the underlying Tan- tier gmph. In this paper, we introduce the concept of dead-end sets that demon- straies clearlu this dependency. In pariicular, we study stopping and dead-end set enumerators for binaTy Hamming codes. We present a parity-check matrix of relatively small size for which the number of stopping sets of size three equals the number of codewords of weight thr·ee in the Hamming code. INTRODUCTION Let C be a linear binary [n, k, dj block code, where n, k, and d denote the code's length, dimension, and Hamming distance, respectively. Such a code is a.k-dimensional subspace of the space of binary vectors of length n, in which any two different elements differ in at least d positions. The set of codewords of C can be defined as the null space of the row space of an r X n binary parity-check matrix H = (hi,j) of rank n - k. Assuming all rows in H are different, n - k :s: r :s: 2n-k. The row space of H is the [n,n-k,dj_j dua.l codeCj_ ofC. For a binary word x = (Xl, X2, ... , xn), the support is the set {j : Xj # O} and the weight is the size of the support. For the zero word 0 = (0,0, ... ,0), the support is the empty set 0 and the weight is zero. Since a binary word x is a codeword of C if and only if xHT = 0, the parity-check matrix H gives rise to r parity-check equations, denoted by PCEi(x): PCEi(x) : Lj~lhi,jXj = 0 for i = 1,2, ... , T. (1) An equation PCEi(x) is said to check x on position i if and only if hi,j = 1. On the binary erasure channel, each transmitted bit Cj of the codeword c = (Cl, C2, ... , c11.) is erased with probability E:, while it is received correctly with prob- ability 1 - E:, where 0 < E: < 1. For a received word r = (1'1,1'2, ... , rot), the erasure set is £r = {j : Tj # 0, I}. A received word can be decoded unambiguously if and only if it matches exactly one codeword of C on all its non-erased positions. Since C is a linear code, this is equivalent to the condition that the erasure set Er does not contain the support of a non-zero codeword. If £r does contain the support of a non-zero codeword, 165 then it is said to be incorrigible. A decoder for C which achieves unambiguous decoding whenever the erased set is not incorrigible is said to be optimal for the binary erasure channel. However, such a decoder usually has a (prohibitively) high complexity. Iterative decoding procedures may form a good alternative, achieving close to op- timal performance at much lower complexity, in partienlar for low-density parity-check (LDPC) codes. Here, we consider a well-known algorithm, often expressed in terms of a Tanner graph, which exploits the r parity-check equations in order to deterrnine the transmitted codeword c. Initially, we set c = rand Ec = Er. If PCEi(c) checks c in exactly one erased position j*, then we set Cj' = L)~11 hi,jcj + L'J~j'+l hi,jCi and .i* is removed from the erasure set Ec. Applying this procedure iteratively, the algorithm terminates if there is no parity-check equation left which checks exactly one erased symbol. Erasure sets for which this is the case have been named stopping sets [1]. In case the final erasure set Ec is empty, the iterative algorithm has retrieved all erased symbols, and thus the codeword c. In case the final erasure set Ec is a non-empty stopping set, the iterative decoding process is unsuccessful. The final erasure set Ec is the union of the stopping sets contained in Er, and thus Ec is empty if and only if Er contains no non-empty stopping set. Therefore, we introduce the name dead-end set for an erasure set which contains at least one non-empty stopping set. In summary, on the binary erasure channel, an optimal decoder is unsuccessful if and only if Er is an incorrigible set, and an iterative decoder is unsuccessful if and only if Er is a dead-end set. Following the preceding motivation, we now formally define the most important. notions studied in this paper. Let 5 be a subset of {I, 2, ... ,n}_ For any Hand 5, let Hs denote the r x 151submatrix of H consisting of the columns indexed hy 5. A set 5 is the support of a codeword if and only if all rows in Hs have even weight, i.e., if and only if IV E 5: hi,.i = 1}1== 0(2) 'Vi = 1, 2, _.. , r. (2) A set S is an incorrigible set if and only if it contains the support of a non-zero codeword. A set S is a stopping set if and only if Hs does not contain a row of weight one, i.e., if and only if IVE5:hi,j=1}1-f1 'Vi = 1,2, ... , r. (3) Hence, the support of any codeword is a stopping set. A set 5 is a dead-end set if and only if it contains a non-empty stopping set. The polynomial A(x) = L~~oAiX\ where Ai is the number of codewords of weight i, is called the weight enumerator of code C. Similarly, I(x) = L~~oIiXi, where Ii is the number of incorrigible sets of size i, is called the incorrigible set enumerator of C. It holds that d = minl{i 2: 1 : Ai> O}I = minl{i 2: 0 • I, > O}I- (4) The polynomials S(x) = L;~o Sixi, where Si is the number of stopping sets of size i, and D(x) = L;~o DiXi, where Di is the number of dead-end sets of size i, are called the 166 stopping set enumerator' and the dead-end set enumerator', respectively, of parity-check matrix H. Let s denote the smallest size of a non-empty stopping set (and thus the smallest size of a dead-end set), i.e., s = min I{i 2: 1 : Si > O}I = min I{i 2: 0 : Di > O}l. (5) Contrary to the weight enumerator and the incorrigible set enumerator, which are fixed for a code C, the stopping and dead-end set enwnerators depend on the choice of the parity-check matrix H. Let H* denote the 2n-k x n parity-check matrix containing all codewords of the dual code Cj_ as its rows. This matrix H* is called the complete paritu-clieck matrix of code C. lts stopping set enumerator is denoted by S*(x) = L;~o SiXi, its dead-end set enumerator by D*(x) = L;,~oDixi, and its minimum dead-end set size by s", It holds that Si 2: Si 2: Ai and Di 2: Di 2: t, Vi = 0, 1, ... ,n, (6) for any parity-check matrix Hof' C, since its row set is a subset of the row set of H*, and since the support of any codeword is a stopping set for any parity-check matrix. Consequently, s ::; s* ::; d. (7) For code C on the binary erasure channel, the probability of unsuccesful decoding (UD) for an optimal (OPT) decoder is n p8öT(C) = L Iici(1 - é)n-i ~ Idéd = A.déd (8) i=d Similarly, the probability of unsuccesful decoding for an iterative (IT) decoder based on parity-check matrix H is n P0b(H) = L D (l- ié i c)n-i ~ DscB = SBC" (9) i=s Hence, these two probabilities are completely determined by the incorrigible and dead- end set enumerators. At small erasure probabilities, p8ö T(C) and P0b(H) are domi- nated by the terms Adcd and Ssc" respectively. Although we will assume the binary erasure channel model throughout this paper when discussing decoder performance, it should be mentioned that stopping and dead-end set enumerators may be important performance indicators for iterative decoders on other channels as well. From a decoder performance point of view, H* is the preferred parity-check matrix of code C, since it minimizes the number of stopping and dead-end sets of any size i, and thus P0b(H). However, from a decoder complexity point of view, it would be preferable to reduce the number of rows in the parity-check matrix. Therefore, the 167 choice of the parity-check matrix to be used in an iterative decoder is based on a trade- off between performance (represented by the stopping and dead-end set enumerators) and complexity (represented by the number of rows of the parity-check matrix). In tills paper, we investigate the influence of the size of the parity-check matrix on the stopping and dead-end set enumerators in case of binary Hamming codes. The binary [2m. - 1, 2m. - 1 - rn, 3] Hamming code 'tt,«. with rn 2: 2, is defined as the null space of the row space of the rn x (2m. -1) matrix Pm., which consists of all the non-zero rn-tuples as its columns. lts dual is the [2m. - 1, rn, 2111.-1] simplex code. STOPPING SET RESULTS FOR HAMMING CODES Since (2) and (3) are equivalent for sets S with 151 < 3, it follows that any stopping set of size smaller than 3 is the support of a codeword. Since each row in a parity-check matrix of the Hamming code Hm is a codeword of the [2m - 1, rn, 2m.-1] simplex code, it contains either zero ones or at least dj_ = 2m.-1 ones. Hence, for any of the C) sets 5 ç {I, 2, ... ,n} of size i 2: 2m.-1 + 1, where n = 2m. - 1 is the codelength, the weight of each row in Hs is either ° or at least equal to dj_ - (n - (2m.-1 + 1)) = 2, and thus it follows from (3) that 5 is a stopping set. In conclusion, for i = 0, for i = 1,2, (10) for i = 2m-1 + 1, 2m-1 + 2, ... , 2m. - 1, anel thw; s = d = 3, (H) for any parity-check matrix of the Hamming code. For the complete parity-check matrix, any stopping set of size 3 or 4 is the support of a codeword, and thus (2m. - 1)(2m - 2) 1 1 53" = A3 = = - (4m - 3 x 2'" + 2) ~ _n2 (12) 3' 6 6 and, for m. 2: 3, (2111. - 1).(2m - 2)(2m - 4) 1 1 84* = A4 = 4! = - (Rm. - 7 x 4m + 14 x 2m. - 8) ~ _n3. 24 24 (13) The proofs of these statements are based on the observation that any set 5 of size 3 or 4 contains at most one support of a. non-zero codeword in a code of Hamming distance 3. In particular, the rank of H equals s 151 if 5 does not contain the support of a non-zero codeword and equals 151- 1 if it does. If 5 itself is not the support of a codeword, then s H has rank 3 at least (since any support of a non-zero codeword is of size at least 3) s and not all rows of H are of even weight. As the rows of H form a vector space, at s least one of the rows has weight one. Therefore, 5 is not a stopping set. Hence, for 168 i = 3 and i = 4, Si :<:; Ai winch together with (6) proves that Si = Ai. The formulas for A3 and A4 follow easily from the structure of Pm. In his magnificent 2004 Shannon Lecture [4],McEliece presented the following expression for the number of stopping sets of size 3 in a Hamming code: (14) He did not mention explicitly which parity-check matrix he had in mind, but from the very nice iterative 11.3 erasure decoding animation he showed preceding this theorem, it was clear that it was the (default) m x (2'" -1) parity-check matrix Pm. Hence, for this matrix, S3 is eubstantially larger than A3, and thus an iterative decoder based on Pm performs considerably worse than an optimal decoder. Since S3 = A3, we know that S3 can be lowered by adding more rows to Pm. While the number of rows in the complete parity-check matrix is 2m., we will show that the minimum number of rows which is required to achieve S3 = A3 is substantially lower. We start by considering the case m = 3. Example 1 The complete parity-check matrix of the [7,4,3] Hamming code 11.3 reads o 1 0 1 1 01 1011 o 0 101 1 0 1 J II* - 1 0 0 1 0 1 1 (15) - 1100101' 1 1 100 1 0 ( o 1 1 100 1 o 0 0 0 000 uihere the first three rows form the matrix P3. Let the ith row of II* be denoted by hi, for i = 1,2,...,8. In Table 1 we provide the weight enurneraior for the [7,4,3] Hamming code as well as stopping set enumerators for several sub matrices of II*. The ten stopping sets of size 3 for parity-check matrix P3 are {I, 2, 4}, {2, 3, 5}, {3, 4, 6}, {4, 5, 7}, {I, 5, 6}, {2, 6, 7}, {I, 3, 7}, {3, 4, 5}, {3, 5, 6}, and {4, 5, 6}. The last three of these stopping sets, which are the only ones not representing the support of a codeuiord, can be removed by adding one properly chosen row (i.e., h5) to P3, resulting in the parity-check matrix o1 011 1 0 1 110 1 00) (16) Q3 = 0 0 1 0 1 1 1 . ( 1 100 1 0 1 Adding more rows to this matrix results in lowering S4 from 19 to A4 = 7, as expected from (13) and observed from Table 1. In general, for m 2: 2, we define Qm to be the matrix consisting of (i) the m rows hl, h2,··., hm of Pm and (ii) all possible sums of the first row of Pm and any two of 169 Table 1: Weight and stopping set enumerators for the [7,4,3] Hamming code 7-{3· I I ~o I I ~21 ~31 ~41 ~51 ~ I ~71 ~l S* S* S:; S* S* S* S* S*7 0 1 3 4 5 6 1 0 0 7 7 21 7 1 rows of parity-check matrix r So S1 S2 S3 S4 85 S6 S7 f--- hl, h2, h h h5, h h- 3, 4, 6, 7 1 0 0 7 7 21 7 1 2, h3, h hs, h6 h1, h 4, 6 1 0 0 7 11 21 7 1 hl, h2, h3, h4, h5 5 1 0 0 7 15 21 7 1 h1, h2, h3, h5 4 1 0 0 7 19 21 7 1 2, h1, h h3, h4 4 1 0 0 8 19 21 7 1 hl, h2, h3 3 1 0 0 10 23 21 7 1 the other m-I rows of Pm, i.e., hl + h2 + h3, hl + h2 +~, ... , h] + hm-] + hm- Hence, the number of rows in Qm is (17) The number of stopping sets of size 3 for the parity-check matrix Qm is (18) This can be shown as follows. Let S be a stopping set of size 3 for Qm- Without loss of generality we may assume that the first m rows in Qm form Pm,- From (3) it follows that (P m)S does not contain any row of weight 1. Since all columns in (Pm)S are different, (P m)S contains at least two different rows rl and r2 of weight 2. Without loss of generality, r] = no and r2 = 101. Now let's assume that (Pm)S contains a row ! r3 of weight 3. Let r denote the first row of (Pm)S- ft follows from the definition of Qm that r + r] + r3 = 001 if r = 000, 100 if r = Ll.D, n<,+<, ~ s= r + r] + r3 = 100 if r = 101, (19) r + r] + r3 = 010 if r = Oll, r + r] + r2 = 100 if r = lll, 170 is a row in (Qm)S. The fact that the weight of s is 1 contradiets S being a stopping set. Hence, (P m)S does not contain a row of weight 3, and thus all rows in (P 171.)S are of even weight. Consequently, all rows in (Qm)S are of even weight, and it follows from (2) that S is the support of a codeword. Since this holds for any stopping set of size 3, :s we have 53 A3· Hence, (18) follows with (6) and (12). Q.E.D. In conclusion, for any Hamming code Hm, the number of stopping sets of size 3 can be lowered from (5m - 3",+1 + 2m+1)/6, which is the 53-value for the classical parity-check matrix Pm, to A3 = (4'" - 3 X 2'" + 2)/6, by adding ("';-1) properly chosen rows to Pm. DEAD-END SET RESULTS FOR H A.MMING CODES For any code C of length n and dimension k it holds that any set S ç {I, 2, ... , n} with ISI > n - k contains the support of a non-zero codeword. This can be shown as follows. Suppose that there exists a set 5 with ISI > n - k which does not contain the support of a non-zero codeword. Then the rank of Hs is ISI > n - k, which contradiets that the parity-check matrix H is of rank n - k. Hence, any set S with ISI > ri - k is an incorrigible set, and thus a dead-end set. From this result and some trivialother observations, it follows that for i = 0,1,2, for i = 3, (20) for i = 111 + 1, m + 2, ... ,2m. - 1, for any parity-check matrix of the Hamming code Hm. For example, in case m = 3, we obtain (21) where 53 depends on the parity-check matrix (see Table 1), and thus (22) Hence, for any parity-check matrix H of 71.3 for which 53 = 7, e.g., Q3, we have that D(x) = [(x) and thus from (8) and (9) that P0'b(H) = P(j{;T(H3). In general, for any parity-check matrix H of Hm, we have from (8) and (9) that (23) Hence, it follows from (23), (14), and (12) that (24) 171 while it follows from (23), (18), and (12) that · PÛ1(Qm) (4m - 3 x 2m + 2)/6 1im OPT( ""---------'-'- =1 (25) E~O PUD 1tm ) (4 -3x2m+2)/6 1n . DISCUSSION The results presented in this paper clearly show the impact of the choice of the parity-check matrix on the stopping and dead-end set enumerators, and thus on the decoder performance. Developing a theory on stopping and dead-end set enumerators will help in understanding and designing iterative decoders. The Hamming code anal- ysis under consideration should he regarded as a motivating example ill this respect. The methods applied here surely have potentlal for many classes of (low-density parity- check) codes, such as the ones based on designs [2] or finite geometries [3]. It is an interesting challenge to find parity-check matrices with a minimum number of rows (i.e., low complex'ity) such that s = d and Sd = Ad (i.e., good perjormancei. REFERENCES 11] C. Di, D. Proietti, LE. Telatar, T.J. Richardson, and R.L. Urbanke "Finite-Length Analysis of Low-Density Parity-Check Codes on the Binary Erasure Channel," IEEE Trans. Inform. Theory, vol. 48, no. 6, pp. 1570-1579, June 2002. [2] N. Kashyap and A. Vardy, "Stopping Sets in Codes from Designs," Proceedings of the IEEE International Symposium on Information Theory, Yokohama, Japan, p. 122, June 29 - July 4, 2003. [3] Y. Kou, S. Lin, and M.P.C. Fossorier, "Low-Density Parity-Check Codes Based on Finite Geometries: A Rediscovery and New Results," IEEE Trans. Inform. Theory, vol. 47, no. 7, pp. 2711-2736, November 2001. [4] R.J. MeElieee, "Are there turbo-codes on Mars?," Shannon Lecture, IEEE Interna- tional Symposium on Inforrnation Theory, Chicago, IL, USA, June 27 - July 2, 2004. The slides are available at http://www.systems.caltech.edu/EE/Faculty /rjm/. 17-2 ONE-DIMENSIONAL AND MULTI-DIMENSIONAL RECONCILIATION USING TURBO CODES FOR QUANTUM KEY DISTRIBUTION Kim-Chi NGUYEN, Gilles VAN ASSCHE, Nicolas J. CERF QuIC, Université Libre de Bruxelles, CP 165, 1050 Brussels, Belgium. E-mail: kimclmg@ulb.ac.be.gvanassc@ulb.ac.be.ncerf@ulb.ac.be We investigate the use of turbo codes [or the reconciliaiioti phase o] a continuous-variable quantum key distribution protocol and introduce the idea of using lattice coding to improve the efficiency of the reconciliation. These two methods eventually result in lowering the information leaked to the eavesdropper, ther·eby augmenting the secret key rate. INTRODUCTION Quantum Key Distribution Quantum key distribution (QKD), also called quantum cryptography, allows two parties, AJice and Bob, to share a secret key that can be used for encrypting messages using a classical cipher, e.g., the one-time pad. The main interest of such a key distribut.ion scheme is that any eavesdropping is, in principle, detectable as the laws of quantum mechanics imply that measuring a quantum state generally disturbs it. To share a secret key, a few steps must be performed. First, quanturn states are sent from Alice to Bob, or vice-versa, on the so-called quantum channel. This process gives the two parties correlated random variables, XA and XE. Then, using a classical public authenticated channel, Alice and Bob compare a sample of the transmitted data, from which they can determine an upper bound on the amount of information a possible eavesdropper may have acquired. Finally, they distil! a common secret key K, which is conventionally a function of XA. Secret key distillation [1] usually involves two steps. In the first step, called reconciiiation, Alice and Bob exchange information over the public authenticated channel in such a way that Bob can recover XA knowing XE. The exchanged information is considered known to an eavesdropper. The second step consists in applying a privacy amplification protocol [2] to wipe out the enemy's information on both quantum and classical transmissions, at the cost of a reduction in the 173 key length. This reduction is roughly equal to the number of bits known to an eavesdropper [2). Continuous- Variable Reconciliation Gaussian-modulated QKD protocols using coherent states have shown to deliver higher secret bit rates than those based on single photons while using standard components [31. Since they produce continuous variables (i.e., telecom optical XA and XE are correlated Gaussians), a reconciliation procedure adapted to this situation must be used. Each instance of XA is transformed into m bits, making m Z-bits strings {Si}i.E{l...m}, each called a slice, when a run of the QKD protocol produces I instances of Gaussian variables [4). These ml bits will serve as input to the privacy amplification protocol. Before that Bob needs to calculate his best estimate of Si given the I values of XE, thus producing the I-bit string Si for each i. Using a binary reconciliation protocol, Bob then recovers Si given his knowledge of Si' Alice and Bob need to reconcile the binary string Si, given that Bob knows the correlated binary string Si' The two strings are related by the error rate ei, that is the probability that a bit of Si is not equal to the corresponding bit in Si. Overall, the reconciliation produces H(Sl...rn) uniform bits by disclosing 'L-i.=l...m f(ei) bits, with f(e) being the number of bits needed to encode a I-bit string given that the decoder knows a correlated string with bit error rate e. The net result is thus H(Sl...m) - 'L-i.=l...rnf(ei). The use of an interactive binary error correction protocol such as Cascade [5) implies an additional cost in the information leaked to Eve and an assumption on the eavesdropping strategy. To avoid these, we chose to develop a one-way protocol, where only AJice sends reconciliation bits to Bob, e.g., using turbo codes. Side-Information Source Coding Given a source of two correlated random variables X and Y, the minimal achiev- able rate of encoding of X is H(XIY) when Y is given losslessly to the decoder. Surprisingly, this rate is also achievable when Y is known only to the decoder, but not to the encoder [6). In this setting, Y is called the side information and the encoding of X is known as side-information source coding. 174 The construction of efficient side-information source coding schemes is a dif- ficult problem [7]. Recently, turbo codes have shown to be good candidates for this coding application [8]. Problems with Interactive Reconciliation An additional motivation for using turbo codes in the scope of QKD lies in that reconciliation is traditionally performed using interactive protocols, such as Cas- cade [5]. While they are perfectly suited to discrete QKD protocols, such as BBR4 [9], they suffer from both practical and fundamental problems when used for continuous-variable QKD protocols [3]. For a given number of reconciliation bits transmitted from Alice to Bob, interactive protocols impose an additional penalty on the key length over one-way protocols, due to the information leaked from the reconciliation bits originating from Bob. Furthermore, the evaluation of this leaked information depends on the particular eavesdropping strategy, which rules out the use of this method when no assumption on the enemy's side may be made. Replacing interactive reconciliation protocols by efficient side-information coding is thus another strong motivation for studying this application of turbo coding. TURBO CODING Turbo coding was first introduced in 1993 by Ben-ou et al. [10]. Since then it has been intensively studied and has proved to approach the Shannon limit closer than any other known forward error correcting code. The efficiency of the turbo codes is due to the use of an iterative process at the decoder side and the presence of an interleaver at the encoder side, which adds randomness-like effects to the code. Turbo Encoder and Turbo Decoder A turbo encoder is a parallel concatenation of two, or more, constituent codes separated by one, or more, interleavers. The constituent codes are usually two identical recursive systematic convolutional codes. The input sequence to be encoded is divided into blocks of length N. Each block is encoded by the first encoder and interleaved before passing through the second encoder. In channel coding, the systematic output of tbe first encoder, along with the parity check 175 bits of both encoders are transmitted through the channel. Such a scheme usually uses rate half constituent encoders, so the overall rate is one third. This rate can be increased by puncturing a fraction of the parity bits. The turbo decoder consists of two, or more, Soft-In Soft-Out (SISO) maxi- mum likelihood decoders. Those decoders operate in parallel, passing extrinsic information to one another in an iterative way. The error rate is lowered after each iteration but the gain in bit error rate decreases as the number of iterations increases, so for complexity reasons the decoder typically performs between 6 and 20 iterations. Application to Side-Information Source Coding In the turbo coding principle, the systematic output of the first component en- coder is sent through the channel together with the parity bits from the two encoders. Turbo coding can be used for side-information source coding if we con- sider the input bit sequence as the random variable X, the systematic output of the channel as the side information Y, and the parity bits from the two encoders as the information provided to recover X from Y. Thus, in practice, Y is a noisy version of X that is known by the receiver, X is encoded with a turbo encoder by the emitter but only the parity bits are transmitted, and the receiver uses those parity bits and Y to recover X by turbo decoding. To achieve a transmission rate close to the Slepian-Wolf limit, an appropriate puncturing pattern must be used to transmit only a fraction of the produced parity bits. Settings We used a turbo code as a binary reconciliation protocol in the continuous- variable QKD protocol described in [3] The component encoders are two l G-state duo-binary recursive systematic convolutional encoders with generator polynomials (23, 35) [11]. The interleaver is a variation of the odd/even interleaver presented by Barbulescu [12]. The puncturing pattern depends on the estimated error rate and is chosen to minimize the number of bits sent to Bob to achieve a. final BER < 10-6 The decoding algorithm is the Log-MAP algorithm, which is similar to the MAP algorithm [13] but operates in the log-domain. We applied a scheme pro- posed by Fujii et al. [14], which consists of weighting the e).rtrinsic information 176 exchanged by the two decoders by a factor depending on whether or not the cor- responding parity bit has been received for this bit. We performed 18 iterations with block size N = 10000. Results Figure 1 shows the number of bits disclosed as a function of the bit error rate. According to these results, we chose the best strategy among three possible op- tions, depending on the bit error rate, so as to minimize the number of disclosed bits. Each binary string S, was reconciliated using one of these three options, depending on the estimated error rate ei: if ei > 15%, the string was completely revealed, disclosing l bits of infor- mation; - if ei < 0.8%, an interactive error correction protocol (Cascade) was preferred and the number of disclosed bits was counted independently for Alice and for Bob; - otherwise, the turbo coding scheme described above was used. In Table 1, our results are compared with those of [3] based on the use of reverse reconciliation with estimate of the interactivity cost under assumptions. An example of the processing of each slice is given in Table 2: each slice is reconciliated using full disclosure, Cascade, or a turbo code. For higher losses, the gain on the interactivity cost more than compensates for the higher number of parity bits revealed by a turbo code. Modulation Losses Results Cascade and Variance (dB) from [3J Turbo Code rate (kbs-1) rate (kbs-1) 41.7 0 1690 1605 38.6 1.0 470 450 32.3 1.7 185 209 27 3.1 75 81 Table 1: Net secret key rate with modulation frequency of 800 kHz. 177 Estimated Binary Disclosed Shannon Slice BER. Correction Bits Limit ei (%) Protocol h(ei) 1 49.68 Full Disclosure I 0.99 2 34.89 Full Disclosure I 0.93 3 6.38 Turbo Code O.4Gl 0.34 4 0.02 Cascade 2 x 0.0051 0.0027 5 6 x 10-12 Cascade 2 x 0.0041 3 x 10-10 Table 2: Disclosed bits for each slice, correspondinq to the 2nd row of Table 1. ...... I: /~ --- -.: 20~ oL_ ~ __ ~ __ ~ ~ __ ~ __ o 10 12 16 Bil error rate (0/0) Figure 1: Number of disclosed bits as a function of the bit error rate. MULTI-DIMENSIONAL RECONCILIATION In the above algorithm, each Gaussian value is taken individually to produce one bit of each slice. We envisage to make the reconciliation multi-dimensional by taking n Caussian values together and assigning to this point in an-dimensional space a binary value for each slice corresponding to the closest point of a lattice [15, 16]. This may help to get a better distribution of the information shared by Alice and Bob among the slices and improve the reconciliation. In the current setting, the first two slices are very noisy and are fully disclosed; the last two slices are strongly correlated and contain only a few errors; and the middle slice, with an error rate between 5% and 10% must be corrected using either a. turbo code or Cascade. We hope the use of multi-dimensional reconciliation could help lowering the error ra.te of the middle slice while increasing the error rate of the first two slices, so that Alice and Bob will have to disclose less bits for the reconciliation. 178 Multi-dimensional Slice Reconciliation using Lattices Let A be a lattice in the Euclidian space IR", deterrnined by n generating vectors Ài. Alice encodes n Gaussian values as X = 2:=~=1ÀiCi + r, where rEv, the fundamental Voronoi region of the lattice, and X E IRn Bob's corresponding estimated value is Y = X + e, with e some error vector. Alice sends r through the public channel, then Bob subtracts r from ills value to obtain Y - r = 2:=7=rÀiCi + e. The input bit values for the privacy amplification are obtained by consid- ering a finite binary representation of the coefficients Ci' The first slice is then constructed using the least significant bit from.cj , the second slice with the least significant bit from C2 and so on until the last slice with the most significant bit from c". CONCLUSIONS The decouplmg of reconciliation and eavesdropping analysis in continuo us- variable QKD protocols by using turbo codes allows close, if not better, results than by using Cascade and an evaluation of interactivity costs under some as- sumptions. These results can still be enhanced by the use of lattice coding for multi-dimensional reconciliation. REFERENCES [1] U. M. Maurer, "Secret key agreement by public discussion from common inforrnation," IEEE Trans. Inform. Theory, vol. 39, no. 3, pp. 733-742, May 1993. [2] C. H. Bennett, G. Brassard, C. Crépeau, and U. M. Maurer, "Generalized privacy amplification," IEEE Trans. Inform. Theory, vol. 41, no. 6, pp. 1915- 1923, November 1995. [3] F. Grosshans, G. Van Assche, J. Wenger, R. Brouri, N. J. Cerf, and P. Grang- ier, "Quantum key distribution using gaussian-modulated coherent states," Nature, vol. 421, pp. 238-241, 2003. [4] G. Van Assche, J. Cardinal, and N. J. Cerf, "Reconciliation of a quantum- distributed gaussian key," IEEE Trans. Inform. Theory, vol. 50, p. 394, 2004. [5] G. Brassard and L. Salvail, "Secret-key reconciliation by public discussion," in Advances in Cryptology - Eurocrypt'93, ser. Lecture Notes in Computer Science, T. Helleseth, Ed. New York: Springer-Verlag, 1993, pp. 411-423. 179 [6] D. Slepian and J. K. Wolf, "Noiseless coding of correlated information sources," IEEE Trans. Inform. Theory, vol. 19, no. 4, pp. 471-480, July 1973 [7] Q. Zhao and M. Effros, "Low complexity code design for lossless and near- lossless side information source codes," in Proc. IEEE Data Compiession Conference, 2003. [8] A. Aaron and B. Girod, "Compression with side information using turbo codes," in Proc. IEEE Data Campression Conference. 2002. [9] C. H. Bennett and G. Brassard, "Public-key distribution and coin tossing," in Proceedinqs of the IEEE International Conjerence on Computers, Systems, and Signal Processinq, Banqalore, India. New York: IEEE, 1984, pp. 175- 179. [10] C. Berrou, A. Glavieux, and P. Thitirnajshima, "Near Shannon limit error- correction coding and decoding: Turbo-codes," PTOC.Int. Con]. Communi- cations, pp. 1064-1070, May 1993. [ll] C. Berrou, "The ten-year-old turbo codes are entering into service," IEEE Communications magazine, vol. 41, pp. 110-116,2003. [12] A. Barbulescu, "Iterative decoding of turbo codes and other concatenated codes," Ph.D. dissertation, Uni. of South Australia, 1996. [13] L. R. Bahl, J. Cocke, F. Jelinek, and J. Raviv, "Optimal decoding of lin- ear codes for minimizing symbol error rate," IEEE Trans. Inform. Theorç, voL 20, pp. 284-287, Mar. 1974. [14] H. Fujii, T. Saba, and L Sasase, "Novel decoding algorithm with weighting of extrinsic information for punctured turbo-codes," in 4th European Personal Mobile Communications Conference (EPMCC 2001), 200l. [15] U. Erez and R. Zamir, "Achieving 1/2 10g(1+SNR) on the AWGN channel with lattice encoding and decoding," IEEE Trans. Inform. Theoru, voL 50, pp. 2293-2314, Oct. 2004. [16] S. S. Pradhan and K. Ramchandran, "Group-theoretic construction and analysis of generalized coset codes for symmetric/asymmetric distributed source coding." Proc. Con]. In]. Sciences and Systems, Mar. 2000. 180 QUANTUM INFORMATION THEORETICAL ANALYSIS OF VARIOUS CONSTRUCTIONS FOR QUANTUM SECRET SHARING Karin Riet jens • Berry Schoenmakers' Pim Tuyls t Recently, an information theoretical model [or Quantum Secret Sharing (QSS) schemes was introduced. By using this model, we prove that pure state Quantum Thr-eshold Schemes (QTS) can be constructed from quan- tum MDS codes and vice versa. In particular, we consider stabilizer codes and give a constructroe proof of their relation with QTS. Furthermore, the recoverability and secrecy requirement are checked [or the Monotone Span Program (MSP) construction. INTRODUCTION QSS schemes are used to share a quantum secret among a set of players such that only authorized su bgroups of players are able to reconstruct the secret, while all other subgroups (unauthorized sets) have no information about the secret at all. The collection of unauthorized sets is called the aduersarij struciure. We use the following notations. The unknown quantum secret S is an el- ement of a q-dimensional Hilbert space Hs, where q usually is a prime power. The elements {10), 11), ... , Iq - I)} form an orthonormal basis for Hs and we usually describe the state of the secret by its orthonormal decomposition (JS = I:iElFq O!ili)(il. The reference system that purifies the state of S is denoted by R with corresponding Hilbert space HR. Finally, the secret is shared among a set of players P = {PI, ... , P ll.} and the Hilbert spa.ce corresponding to a subset B ç P is denoted by HB. The density matrix (JB then describes the state of system B. The information theoretic model of [9] is defined as follows. Let 5(A) de- note the Von Neumarm entropy of state (JA of system A, defined as 5(A) = - tr((JA log (JA) = - I:i Ài log Ài where Ài are the eigenvalues of (JA, and recall that the mutual information between systems R and A is defined as I(R : A) = 5(R) + 5(A) - 5(RA) . • Technical University Eindhoven, Dept. of Mathernaties and Computer Science, P.O. Box 513, 5600 MB Eindhoven, The Netherlands. k.p.t.rietjens@tue.nl, berry@yin.tue.nl t Philips Research Labs, Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands. pim.tuyls@philips.com 181 Definition 1 A QSS scheme realizinq an advel'sary struciure A is described by a quantum operator which generates quantum shares from a quantum secret Sand disiribuies these among the player's such that 'V Aj'A I(R: A) I(R : S) (recoverability requirement); 'V BEA I(R: B) o (secrecy requirement]. PURE AND MIXED STATE QSS SCHEMES In a pure state scheme, the encoding of a pure state of the secret is a pure state, while with a mixed slate scheme the encoding of a pure state is sometimes a mixed state. In general, a QSS scheme is mixed, but it can be described as a pure scheme with one share discarded [6]. Therefore, it actually suffices to only consider pure state schemes, which have the following useful property. Theorem 2 In a pure state QSS scheme, the recovembility requirement and the secrecy requirement are equivalent. Proof: Suppose P is the set of all players and let A, B ç P such that B = P \ A. Using the Araki-Lieb inequality and the fact that systems RS and RAB are in a pure state, we have I(H : S) - I(R : A) = I(R : B) and the theorem follows. • QSS WITH QUANTUM MDS CODES Here, we show that a [[2t - 1,1, t]]q quantum MDS code can be used to construct a ((t,2t -1)) QTS and vice versa. A quantum code can correct for erasures if the operator that induces the erasures is perfectly reversible. The quantum data processing inequality [2] gives a necessary and sufficient condition for perfect reversibility. A different condition for erasure correcting is given by Theorem 4. We use the following lennna. Lemma 3 Let A and B be two quantum systems. If A or B is in a pure state, then the composite system AB is in a product state. Theorem 4 Let Q be a quantum system and let R be its reference system, such that RQ is in a pure state. Erasures can be corrected on some subsustem Qe of Q if and only if I(R : Qe) = O. 182 Proof: We only give the proof for the second part, as the first part was already proven in [3]. Suppose I(R: Qe) = 0 for some subsystem o, of Q = QeQ". Let e be a quantum operator acting on Qe. Then [; has a representation as a unitary evolution on a larger system, say QeE, where E is initially in a pure state. Let R'Q'E' be the system RQE after this unitary evolution on QeE andleaving RQ" invariant. Then because of the conservation rule for mutual information (see for example [8J) we have that I(R' : Q~E') = I(R : QeE). Since E was initially in a pure state, we have (using Lemma 3) I(R: QeE) = S(R) + S(QeE) - S(RQeE) = I(R: Qe). Furthermore, the strong subadditivity property for system R'Q~E' proves that I(R' : Q:E') - I(R' : E') 2': 0, which implies that 0:::; I(R' : E') :::; I(R' : Q:E') = I(R: Qe). Thus if I(R : Qe) = 0 then also I(R' : E') = 0, which is equivalent to S(Q) = S(Q') - S(R'Q') and therefore because of the quantum data processing inequality erasures can be corrected on Qe. • Theorem 5 A ((t, 2t-1)) QTS, where the secret is an element of a q-dimensional Hilbert space, can be translated into a [[2t - 1,1, t]]q quantum MDS code and vice versa. Proof: Consider a ((t,2t - 1)) QTS. Then the secrecy requirement states that for every set of at most t - 1 players E, we have I(R : E) = O. According to Theorem 4, we have that erasures can be corrected on the shares of any set of t - 1 players. Hence, all sets of shares in P together form a [[2t - 1, 1, t]]q QECC. On the other hand, consider a [[2t - 1,1, t]]q quanturn MDS code. We claim that each codeword can be the shares for a (( t, 2t - 1)) QTS. Indeed, if Q is the composite system of the codewords and R the reference system, then for every set Qe of at most t - 1 of the 2t - 1 subsystems of Q we have I(R : Qe) = 0 (Theorem 4). Hence, the secrecy requirement is satisfied. Moreover, because of Theorem 2 and the fact that a (( t, 2t - 1)) QTS is a pure state scheme, we also have that the recoverability requirement is satisfied. • 183 Stabilizer Codes We consider a [[2t - I, I, tlh quantum stabilizer code with stabilizer T and show that this code leads to a ((t,2t -1)) QTS. Lemma 6 Let W E Ç}n, where Ç}n denotes the Pauli group on n qubits, act on a composite quantum system Q = Ql ® Q2 and say W = Wl ® W2, where Wi acts on system Qi, i = 1,2. Suppose I1/» is a state of system Q that is siabilized by W. If (h = trl(I1/»(~pl), then W2 and (!2 commute with each other. Proof: The proof follows from a symmetry argument. _ Next, let T be generated by {Cl, ... , C2t-2} and let X and Z be the logical Pauli X and Z operators on the logical basis {lOL), lId} for the stabilizer code (see [8]). Then {Cl, ... ,C2t-2, X, Z} forms a basis for the commutator C(T) of T. Since an MDS code is pure [4], we have that T has minimum distance t + 1 and C(T) minimum distance t. This results in the following property Lemma 7 If we restrict the generators of C(T) to at most t - 1 qubit positions, then the restricted generators of C(T) remain independent. We claim that the construction for the QTS is given by the following isometry. Definition 8 The mapping vt,2t-l : (:2 __, (:2)<8>2t-l is defined by '/'0,'/'1 E C So if the secret is in state os = tXoIO)(OI + tXlll)(II, the state of P is given by Lemma 9 Let B c P with IBI = ti::; t - 1. Then S(B) =- t'log2. Proof: Suppose B is a set of t - 1 qubits. Let Gj be the operator Gj restricted to the qubit positions of B for every 1 ::; j ::; 2t - 2. Because of Lemma 6, these operators C', all commute with (!B. Moreover, the operators Gj are still independent (Lemma 7). Since (!B is a 21.-1 x 2t-l density matrix that commutes with 2t - 2 independent elements in Ç}t-l we have that (!B = 1/2t-l I. In general, for any set B of at most t - 1 shares, say ti, we have that (!B = 1/2t' I. _ 184 Lemma 10 Let A cP with lAl = i. Then 5(A) = 5(S) + (i - 1) log2. Proof: Consider a set A of i shares. Let Gj, X' and Z' be the operators Gj, X and Z restricted to the qubit positions in A respectively for every 1 ::; j ::; 2i - 2. Then these 2i operators are independent because of Lemma 7. Since lOL)(aLl and 11L)(lLI commute with Gj for every j and also with Z, we can write 1 trAc(IOL) (aLl) = 2JIP;I, + /3oR; trN(lld(ILI) = ~J®t + /31R, where R E {I, X, Y, Z}®t, R of. t= and 0 < 1/301,1/311< 1/2t. The operator R cannot commute with X', since then it would commute with 2t independent operators, which would imply that R = J®t. Therefore, since Rand X' are tensor products of Pauli matrices, R anti-commutes with )('. Hence, because - -It X'trAc(IOd(OLI)X = trAc(11L)(lLI), we have that /30 = -/31' Furthermore, Q~ has 2t-1 eigenvalues equal to 1/2t, + /30 and 2t,-1 equal to 1/2t - /30, because R has 2t-1 eigenvalues equal to + 1 and 2t-1 equal to -1. We also know that 5(Q~) = 5(Q~c) = (i - 1)log2, since 10Ll(OLI has zero entropy. Therefore, we have that /30 = ± 1 /2t,. Similarly, for /31. Finally, using that 0'0 + 0'1 = 1, it follows that. indeed 5(A) = 5(S) + (i - 1) log 2, since QA has 2t-1 eigenvalues equal to 1/21'(1 + 0'0 - 0'1) and 2t-1 equal to 1/2t(1 - 0'0 + 0'1)' _ Lemma 11 Lei A ç P wiih lAl 2: i. Then 5(A) = 5(S) + (2t - 1 - lAl) log 2. Proof: Let B = P\A and A = AtUA', with IAtl = t, IA'I = IAI-t::; i-I. Then, 5(A) 2: 15(At) - 5(A')1 = 5(S) + (2i - 1 - lAl) log 2 = 5(R) + 5(B) 2: 5(RB) = 5(A), using Lemmas 9, 10 and the Araki-Lieb and subadditivity inequalities. _ Theorem 12 A [[2i - 1,1, ill bina1'y stabilizer code can be used to share a secret accordinq to a ((i, 2i - 1» QTS. Proo]: Let. A, B c P, with B = P \ A and lAl 2: t. Then I(R : A) = 5(S) + 5(A) - 5(B) = I(R : SJ. Since the scheme is pure, this completes the proof. _ 185 MONOTONE SPAN PROGRAM CONSTRUCTION We reformulate the MSP scheme of [7) and verify the recoverability anel secrecy requirement. Let A be a self-dual adversary structure with corresponding MSP (IFq, M, g) (see [1)), where q is a prime power, AI a d x e matrix over IF" with indepen- dent columns and 9 a function that labels each row of M with an element of {I, 2, ... ,n}. Furthermore, by 'H. we denote a q-dimensional Hilbert space anel Sil.y the vectors that are labeleel {I a) } aEIF;; form an orthonormal basis for ï{®n. Definition 13 The mapping VM : ï{®e -+ ï{®d is defined by VM(:Llil1jJi1jJ; ... 1jJ~)) = :L'YiIM(1jJi1jJ~ ... 1jJ!)T), iElF(/ iE1Fq where I 'lf!t v;t ... 1jJ~)E ï{®e and li E a = (al,"" ae_I)T E F~-l and xE im(MB). Then the vector l 0, then the squeezed state is "squeezed" in p. After a measurement of position value x or momentum value p, the squeezed state collapses to respectively a position eigenstate Ix) or a momentum eigenstate lp). BIT ENCODING AND DECODING SCHEME FOR GPOO Fix r > 0. All squeezed states are squeezed £.0 -2in -.jii ft 2ft with squeezing parameter r = -r (squeezing in £.1 x) or r = r (squeezing in p). We divide the C -~fii -tfiT real numbers into two sets of intervals Lo and ° ~ft Figure 1: Encoding and Decod- ~J1T L1 as in Fig. l. Alice samples a E IR from the Gaussian PA(a) with mean ° and variance ~e2f: ing intervals (1) If a E Lo, Alice extracts bit 0, otherwise she extracts bit l. She prepares a squeezed state squeezed in x or p at random. If she squeezes in x, she sends to Bob (x) = a' = aV1 - e-4f I- i .0:) with { (p) = ° 190 If she squeezes in p, she sends to Bob the squeezed state Ir', a) with A {(X) = 0 (p) = al = a.J1 - e 4f For every squeezed state Alice computes cp = a mod fo where and announces 0::; cp < ft. Note that there exists an na. E Z such that a = nafo + cp. Every value for ip should be equally likely because then P(a E Lolcp) = P(a E Lo) = 0.5 such that ip leaks no information to Eve (we further discuss this in the final section). For every squeezed state Bob decides at random to measure the position or the momentum. Suppose that the outcome of his measurement is b where b = a + Ó for some Ó E R Note that b - cp = nafo + Ó. Bob extracts bit value o if b - cp = nafo + Ó rounded to the nearest integer multiple of fo is an even multiple of fo and bit value 1 otherwise. If we define the decoding interval C as in Fig. 1, then Alice and Bob find the same bit if Ó = b - a E C. This is because if Ó E C, then na fo + Ó rounded to the nearest integer multiple of fo is equal to na fo· They find clifferent bits if Ó = b - a ~ C. BIT EXTRACTION PROBABILITIES FOR GPOO If Alice and Bob use different bases, then the value measured by Bob has a Gaussian distribution centered at O. This distribution is shown as the graph on the left in Fig. 2 for a = !fo. The marked area represents the probability that Alice and Bob find the same bit and equals 0.5 if a = !fo. In fact, this probability is maximal if a = 2nfo, is equal to 0.5 if a = (2n + !)fo and is minimal if a = (2n + 1) ft. This means that if all values for ip are equally likely, then the bit extracted by Bob is random. The corresponding cases in the protocol can therefore be discarded. If Alice and Bob use the same basis, then the probability that they find the same bit is dependent on the distance between a and a', the mean value of Bob's squeezed state. This is illustrated in the graph on the right in Fig. 2 for al - a = t fo. For illustration, this probability is 0.89 if f = 0.289 and if f -> 00 it will approach 1. Note that if Alice and Bob use the same basis then, in contrast to BB84, they find the same bit with probability smaller than 1. This means that because of the squeezed states, additional quantum noise is introduced (Es). 191 Figure 2: Bit correct probability if a) different basis are used and a = ~.JiF and b) the same basis is used and af - a = ~y7f . - THE PROTOCOL GPOO We give the description of the protocol. At the end of the protocol, just before information reconciliation and privacy amplification, Alice and Bob each have an ri-bit string respectively X and Y. After inforrnation reconciliation and privacy amplification they have a shared secure key K of length k < 71,. 1. Alice prepares approximately 471, squeezed states. For every squeezed state she decides to squeeze it in x or in p at random. She prepares the squeezed states according to the encoding scheme described in the previous sections. For every squeezed state she extracts a bit value. She sends the squeezed states to Bob. 2. For each squeezed state, Bob decides to measure the position or the mo- mentum at random. 3. Bob confirms having received the squeezed states. Alice and Bob announce which bases they used. 4. Alice and Bob discard the cases where they did not use the same basis. From the remaining approximately 471,/2 = 271, bits Alice chooses 71, to serve as check bits and 71, to serve as key bits. For the squeezed states corresponding to these check and key bits, Alice computes ip, Alice sends all r.p's to Bob with which Bob extracts check bits and key bits from his measured values. Alice and Bob's resulting key bit strings are X and Y. 5. Alice and Bob announce their check bits to estimate the bit error rate E. 6. If E ::; 11%, then information reconciliation and privacy amplification follow such that Alice and Bob end with a shared secret key K. The main difference between GPOO and BB84 is that Bob needs additional in- formation 'P about the squeezed states to extract bit values from his measured 192 values. Noise (E) is not only caused by the channel or by Eve, but also by the natural noise of squeezed states (Es). If f ---t 00, then Es ---t 0 and GPOO becomes the continuous version of BB84. THE GENERIC SECURITY PROOF The generic security proof [1] can be applied to a generic QKE protocol equivalent to an entanglement based protocol. Let the measurements that Alice and Bob randomly apply to their received quantum states be the POVM's F and ç and the bit error rate of the bits extracted horn the measurements be E. Let R be the set of all density operators Q (describing the quantum state of two systems) for which i t holds that if Q is measured with respect to F 0 F or ç 0 ç, then the two bits extracted from the measurement have bit error probability E. Thus R is the set of ail possible density operators describing the mutual state of Alice and Bob, given that the bit error rate is equal to E. Let Z be a projective measurement on the density operator Q E R with outcome described by the random variable Z. Let X and Y be random variables such that Alice's and Bob's bit strings consist of n realizations of these variables. The secret key rate R is now given by ([1]) R = H(X) - H(XIY) - argëERmaxH(Z) (2) The rate might be improved by conditioning on additional information W gained during privacy amplification. The rate then becomes R = H(XIW) - H(XIY) - argllER maxH(ZIW). (3) The generic security proof consists in finding the maximum error rate E such that R is still positive and hence the extracted secret key K is secure. ENTANGLEMENT BASED VERSION OF GPOO To be able to apply the generic proof to GPOO, we regard it as an entangle- ment based protocol. The entangled states prepared by the dealer (given in both position eigenstates and momentum eigenstates) are as follows ([4]) 11/)) = ~ JJ exp [- ~2 X~] exp [- 21 2 (Xb - ';1- A4Xaf] IXa,xb)dxbdxa ~ JJ exp [- ~2 p~] eÀ'J)[- 212 (Pb +';1 - A4Pb) 2] IPa,Pb)dPbdPa 193 where 0 < iS.2 ::::; 1. For iS.2 < 1, Iv;) is an entangled state. Alice and Bob both get a part of this entangled state. If Alice measures the position of her part, she measures position value x" with probability Px(x,J !fir exp [-is. 2X~] . By this measurement, she prepares for Bob the state which is a squeezed state squeezed in X with mean position value VI - iS. xa and 4 mean momentum value O. If Alice measures the momentum of her part, she measures Pa with probability Pp(Pa) = Px(p,,). By this measurement, she prepares for Bob a squeezed state squeezed in P with mean momentum value -VI- iS.4Pa and mean position O. If we choose is. 2 = «:", then the entanglement based protocol is equivalent to GPOO; from Eq. 1 we see that Fx(xa) = Pp(x,.) = FA (xa) and the squeezed states produced by Alice's measurements in the entanglement based version are equal to the squeezed states sent by Alice in GPOO. Note that in the entanglement based version, the mean momentum value is -VI - iS. 4Pa rather than Vl - iS. 4pa. This means that Alice extracts a bit value and calculates 'P from -Pa rather than from Pa if she measured the momentum and from Xa if she measured the position. Alice and Bob find the same bit if Xb - Xa E C or Pb - (-Pa) = Pb + Pa E C. GENERIC SECURITY PROOF OF GPOO Let E be the bit error probability of the check bits. Let the density operator g E R; if of both parts of g the position is measured or the momentum, then the probability that the extracted bits differ is equal to E. This can be formulated by 1- E (4) (5) l-E (6) (7) where e.g. (xa, Xa +xlglxa., Xa + x) is the probability that Alice measures position value x" and Bob measures position value Xa + x. 194 As projective measurement Z we choose the continuous Bell measurement which is given by the projectors {1"p(x,p))("p(x,p)llx,p E lE} with If we define Pxp = ("p(x,p)lèl"p(x,p)), then Pxp is the probability that if Alice and Bob both measure the position, then the difference of their outcomes is x and if they both measure the momentum, then the sum of their outcomes equals p. If x or pE C, then Alice and Bob extract the same bit and if x or p ti: C theyextract different bits. We therefore group the probabilities Pxp in the following way Àl = 1l pEC JXEC Pxpdxdp À2 = l 1 Pxpdxdp À4 = l l Pxpdxdp. JPECC xEC JpECC JXECC For illustration, À2 is the probability that if Alice and Bob both measure the position, they find the same bit and if they both measure the momentum, they find different bits. We rewrite Eqs. (4,5,6,7) as With these relations, À1, À2 and À3 can be expressed in terms of À4. The entropy H(Z) = - 2:;=1 Ài log2 Ài is maximized for À4 = E2 and then H(Z) = 2h(E). The secret key bit rate becomes (Eq. 2) R = 1 - h(E) - 2h(E) = 1 - 3h(E). This rate is positive for E ::: 6.1 %. We improve the rate by using the additional information W = X + Y gained during privacy amplification. It holds that H(ZIW) 2:iE{O,I}P(W = i)H(ZIW = i) (1 - E)h (~) + Eh (~) = H(Z) - hie]. The entropy H(ZIW) is maximized for À4 = E2 and then H(ZIW) = h(E). The rate R becomes (Eq. 3) R = 1 - h(E) - h(E) = 1 - 2h(E) which is positive for E ::: 11%. This means that GPOO is secure if E ::: li%. Because the noise generated by squeezed states (Es) is a part of E, we have Es ::: E. Calculations show that Es ::: 11% if f ;:::0.289. This means that GPOO can only be secure if squeezed states are squeezed with squeezing parameter f ;:::0.289. 195 RANDOMIZATION ISSUE OF ip, In GPOO, Alice announces 'P = a modfi· For unconditional security it has to hold that P(a E .col'P) = P(a E .co) = 0.5. The probability P(a E .col'P) is maximal at 'P = 0, equal to 0.5 if 'P = !fi and minimal at 'P = fi· For f = 0.289 we find e.g. that P(a E .col'P = 0) = 0.745 which is rather high; it means that 'P leaks a significant amount of information to Eve about the bit extracted by Alice. One way to solve this poblem, is to enlarge the lower bound for i. For example, if f 2': l.5, then J->(a E .col'P = 0) = 0.5 and no inforrnation leaks to Eve. Another solution could be to make a discrete --L(~ approximation of Alice's sampling distribution /i ~ : :: i~ : +--'--~ J: , , I , " , PA(a) as in Fig. 3. It then holds that every value _../:: ..--, : ' ~ ' ~ for 'P is equally likely, the value 'P does not leak information to Eve and if Bob or Eve measures Figure 3: Discrete approxima- the squeezed state in the incorrect basis, the ex- tion of PA(a). tracted bit is random. The catch, however, is that the resulting protocol has no entanglement based equivalent anymore such that the generic security proof [1] cannot be applied to it. It seems that for unconditional security, the bit encoding and/or decoding strategy should be changed such that every value of 'P becomes equally likely while the sampling distribution PA(a) and the squeezed states sent to Bob remain the same. In this way, the resulting protocol has an entanglement based equivalent. An idea to do this is to choose 'P = lal mod ft instead of 'P = a mod ft· At the moment, we are still studying this randornization issue of 'P, REFERENCES [1] M, Christiandl, R, Renner & A. Ekert, "A Generic Security Proof for Quan- tum Key Distribution," 2004, quant-ph/0402131. [2] R., König, U. Maurer & R.. Renner; "On the power of quantum memörY,"2003, quant-ph/0305154, [3] C,H. Bennett & G. Brassard; "Quantum Cryptography; Public key distribu- tion and coin tossing," 1984, Proceedings of IEEE International Conference on Computers, Systems and Signal Processing, 175-179, IEEE, New York. [4] D. Gottesman & J. Preskill, "Secure quantum key exchange using squeezed states," 2000, quant-ph/0008046. 196 AN INTUITIVE APPROACH FOR THE SIMULATION OF QUANTUM CORRELATIONS Julien Degorre"! and lérémie Roland' We study the problem of simulating quantum correlations with the help of shared randomness, supplemented with additional resources. More speci cally, we fo- cus on the case of local projective measurements on a qubit pair in a maximally entangled state for which different protocols using differen.t resources have been proposed. We introduce a generic method to derive these protocols, which clar- i es the link between them and sheds new light on the problem. INTRODUCTION The main goal of quantum information theory is to quantify the power of quantum resources. One of the basic resources useful in quantum information processes is en- tanglement, which was rst presented as a paradox in the gedanken. experiment of Ein- stein, Podolsky and Rosen [7]. ln this experiment, two distant parties, Alice and Bob, share a quantum entangled system and perform an arbitrary quantum measurement on their part of the system. The special case of projective measurements on a qubit pair in the singlet state will be the focus of our work. Bell showed that the correlations exhib- ited by such a quantum system could not be reproduced by any model based on local variables only, even with the help of an unlimited amount of shared randomness. This establishes the non-locality of quantum mechanics. Nonetheless, Alice and Bob could simulate the quantum correlations if, in addition to shared random variables, they are given other resources. In order to gauge non-locality, it is interesting to identify and quantify these resources. Several protocols have previously been proposed to simulate these correlations, using different additional resources: classical communication be- tween Alice and Bob [9, 2, 3, 6, 12], post-selection [8], and, nally, a resource called a non-local box [4]. The purpose of this paper is to show that three of the main protocols can all be derived from a basic local protocol, which in turn arises naturally from a protocol which requires an in nite amount of communication [11]. Our method gives a coherent * Laboratoire de Recherche en Inforrnatique, Université Paris-Sud, France t Laboratoire d'!nformatique Théorique et Quantique, Départernent d'Informatique et de Recherche Opérationnelle, Université de Montréal, Canada 197 view of these different protocols and thus a better understanding of the relationship between them. QUANTUM CORRELATIONS We consider the following EPR experiment (see Fig. I): Alice and Bob share a qubit pair in the singlet state I'l/J) = (101) - 110) )/V2; that is a maximally entangled state of two qubits. Alice and Bob then each receive the classical description of a projective measurement they have to perform on their respective qubit. These can be -> represented by unit vectors a: and b pointing in some direction on the Bloch sphere. The result of Alice's and Bob's measurements, A E {I, -I} and B E {I, -I}, are then distributed according to the following probabilities A B) = I - ABa: . /! p( , 4' (1) so that their joint expectation value (AB) is given by (AB) = - a: ./!. (2) If the marginal expectation values (A) and (B) are 0, which will always be the case in this manuscript, Eq. (1) is equivalent to Eq. (2). a:yl'l/J)Ä/! ~ ~ A B Figure 1: EPR experiment. Alice and Bob share a pair of qubits in the singlet state I'l/J) = (101) - IIO))/V2. Both perform a measurement on their qubit, speci ed by vectors ({ or b , and obtain results A = ±1 or B = ±l. SIMULATION OF QUANTUM CORRELATIONS The problem is the following: Alice and Bob do not share an entangled state, but -; want nevertheless to simulate the above experiment, that is, on inputs a: and b , Alice must output a value A E {l, -I} and Bob a value B E {I, -I} distributed according to (I). It is well known that for appropriate measurement choices, the correlations may violate the CHSH Bell inequality [5] and therefore are not reproducible by a local 198 classical model, even with an unlimited source of shared randomness. In the following sections, we show how to solve this problem with additional resources. In uite amount of communication A B Figure 2: Schatten's protocol. Alice and Bob may simulate the quantum correlations with the help of one shared random vector À E 52 if Alice sends her input ä to Bob. It is clearly possible to solve this problem with protocols where Alice sends her input 0: to Bob. Even though such protocols would not be ef cient, as Alice needs to send an in nite amount of information to comrnunicate 0: to Bob, it is useful to consider one of them here, proposed by Schatten [ll J. -> This protocol makes use of one shared random variable À uniformly distributed on the unit sphere 52 (see Fig. 2): • Alice sends 0: to Bob; • Alice outputs A = sgn(O: . 1'); • Bob outputs B = -sgn(b' . cr + 0:)) sgn(O: . 1'); where sgn(.z:) = 1 for x 2': 0 and sgn(x) = -1 for x < 0 (x E IR). The expectation value (AB) then readily follows from the spherical integral r JS2 dÀ sgn(if· (1' + w)) = if . w, (3) where l' = (sin B cos ip, sin B sin ip, cos B) and d.); = sin B dB dcp/( 41f). Four equivalent local protocols We will now show that the most ef cient known protocols can all be derived from four equivalent local protocols. The initial idea is to start from a protocol that achieves the quantum correlations up to a multiplicative constant, without using any cornmunica- tion (local protocol). Finding inspiration in Schatten's protocol, we may de ne the 199 following protocol where, intuitively, Bob replaces 0: by a new random variable ~ (Bob "guesses" 0:): . ~ • Allee outputs A = sgn(o: . .À1); • Bob outputs B = -sgn(t.(~ + ~)). Using the following spherical integral · 11 . W 1 --> --> d)" (11 . .À) sgn(w· )..) = --, (4) ~ 2 together with (3), it is straightforward to check that this protocol induces (AD} - 0: . T! /2, that is, half of the quantity we need. Let us now de ne the following notation: Xo = sgn(o: . :t) and Yo=sgn(b --> ·)..0) ~ foro=I,2,+,-, (5) ~ -:--+ -:---7 ~ -:---7 -:---7 where .À+ = .Àl + )..2 and .À_ = .À1 - .À2. In this protocol, A = Xl and B = -y+. Applying symmetries S : (~,~) f--> (~, ~), S' : (>::, t) f--> (t,>::) and SoS' to tbis protocol, we obtain four equivalent protocols Pk which all achieve V k = 1 ... ,4, (6) where the four output pairs (Ak' Bk) are given in the following table. Protocol Pi, H P2 P3 P4 Alice's output Ak Xl ;r;l X2 X2 Bob's output Bk -y+ -y_ -y+ y_ Non-local boxes We now show how to obtain, from the four local protocols above, a protocol [4] that achieves the full quantum correlations, (AH} = -a' . -->b, if we allow Alice and Bob to share a new resource usually called non-local box. A PR non-local box [10] is a device shared by Alice and Bob, that has two inputs x, y E {I, -I} for Alice and Bob, respectively, and outputs a, b E {I, -I} for Alice and Bob, respectively, according to the distribution 1. if a . b = f(x, y), p(a,blx,y) = { 02 (7) otherwise, 200 where f(x, y) = (1 + x + Y - xy)/2. This resource has been studied because of its interesting properties. Firstly it is maximally non-local, in the sense that it maxirnally violates the CHSH Bell inequality. Secondly it is causal, in the sense that Alice's output a is independent of Bob's input y, p(alx, y) = p(alx) (and vice-versa). Finally, it is a strictly weaker resource than one bit of communication: due to the causality property, it may not be used to communicate but, on the other hand, it may be shown that one use of a non-local box may be simulated by one bit of communication [4]. First, let us note that summing Eq. (6) over the four protocoIs, Jn this expression, x,,'s are known by Alice and y,,'s by Bob. If we could factor the integrand, which takes values ±1, into a product AB where A = ±1 depends only on xo's and B = ±1 only on Yo's, we would have a protocol that achieves the quantum correlations. Of course, by Bell inequalities, this is not possible as is, so what can we do? Trying to factor the expression, we could write for instance -71·7: = (9) (l0) If Alice and Bob could use a special resource that on input x outputs a to Alice, and on input y outputs b to Bob, such that a . b = f(x, y), this would nish the job of factoring expression (8). Surprinsingly, this is exactly what a PR non-local box [10] does. Therefore. if Alice and Bob share a non-local box, they may use it to simulate the quantum correlations with the following protocol, as was proven by Cerf el al [4]: • Alice inputs x = XIX2 into the box and gets back a; • Bob inputs y = y+y_ into the box and gets back b; • Alice outputs A = aXl; • Bob outputs B = -by+. By invariance under symmetries S, S' and SoS' in Eq. (8), and choosing to include the (-1) sign into the function f or not, we nally have 8 equivalent protocols that make use of the 8 possible maximally non-local boxes [1], corresponding to functions faf3-y(x,y) = ,f(ax,f3y) with a,f3" = ±l. 201 One bit of communication Toner and Bacon [12] were the rst to give a protocol that simulates quantum correla- tions with one bit of communication. Since a non-local box may always be simulated by one bit of communication, another protocol can be derived from the protocol in the previous section. Here, we show speci cally how to derive Toner and Bacon's protocol in our setting. Starting from expression (8), we may write (11 ) We see that the integrand takes value -XIY+ when y+y_ = 1, and -X2Y+ when Y+Y_ = -1. Therefore, we can obtain a new protocol, where Bob always outputs y+, whiJe Alice outputs -Xl or -X2 depending on the value of y = y+y_. As ini- tially only Bob knows y, he must send its value to Alice, which requires one bit of communication. Hence, we nd Toner and Bacon's protocol [12]: • Bob computes y = y+y_ and sends its value to Alice, • Bob outputs -y+, • Alice outputs Xl if Y = 1 or .7:2 if Y = -1. Let us note that reorganizing the terms of Eq. (11), we may nd 8 different but equiv- alent protocols, 4 where Bob sends a bit to Alice and 4 the other way around. Detector inef ciency In a real experiment, Alke's and Bob's detectors could be partially inef cient. Their ef cienc y, parameterized by 'TI ::; 1, is the probability of producing an output. By exploiting this inef cienc y (sometimes called detection loophole), we will derive a protocol which reproduces the quantum correlations with post-selection, where Alice or Bob are allowed to occasionally not produce an output [8]. Starting back from Eq. (6), we have - a .& = 1fs2 dÀld>-z( -xly+)(l + y+y-) (12) lfs2 dÀldÀ2( -XlY+)P(~, ~), (13) 202 ->~ ->~ (X"' X"')= 2 ifsgn(b 'À+)=sgn(b 'À_:), (14) P 1> 2 { 0 otherwise. It is easy to check that p(~, ~) ~ 0 ('v~, ~) and J]~? dÀldÀ2P(~,~) = 1, and thus -> -> - that p(ÀI, À2) may be considered as a density function. Therefore, Eq. (13) means that Alice and Bob could reproduce the quantum correlations by outputting A = Xl and B = -y+ provided that they share random variables ~ and ~ distributed according to p(~, ~). One way of generating this distribution follows directly from (14): start ~ ~ --:-? ----4 ~ ----4 from uniformly distributed ÀI and À2, check whether sgn( b . À+) = sgn( b . À_), and discard the pair if it is not the case. However, only Bob can perform the test, so a workaround is to allow him sometimes not to produce any output: • Alice outputs A = Xl, • Bob checks whether y+ = y_. If so, he outputs B = -y+. Otherwise, he does not produce any output' . . -> Let us note that when Bob outputs, y+ = y_, so we may rewnte B = -sgn( b . :c) = -sgn(b . :c + If .:c) = -> -sgn(1f . ~). Therefore, -> B depends on a single random variable À1, just as Alice's output A = sgn(a' . Àd does. So our protocol is -> equivalent to that of Gisin and Gisin [8] since the marginal distribution of ÀI is given by p(~) = 211f . ~I. One advantage of our approach, in addition to clarifying the relation of this protocol with the previous ones, is to give a nice method to generate ~. . ~ ~ . p(À1) by starting from two uniform random vectors À1 and À2 and performing a test. CONCLUSION In the particular problem of simulating a projective measurement on the bipartite singlet state, we have shown that the most ef cient protocols known using different resources [8, 12, 4] can all be derived from a local protocol. This gives a new and coherent approach for the problem, which could be helpful to solve generalized prob- lems, such as the simulation of multiparty quantum correlations, or to improve the known results for simulating general measurements. J Jn this protocol, Bob's detector ef cienc y is only 'TJB = 50%. while Alice has a perfect detector, 'TJA = 1. With a slight modi cation, we can gel 'TJA = 'IB = 67% (see [8] for details). 203 ACKNOWLEDGEMENTS The authors thank Sophie Laplante for stimulating discussions and useful com- ments. The research was supported by the EU 5th framework program RESQ IST- 2001-37559, and by the ACl CR 2002-40 and ACl SJ 2003-24 grants of the French Research Ministry. REFERENCES [1] J. Barrett, N. Linden, S. Massar, S. Pironio, S. Popescu, and D. Roberts. Nonlocal correlations as an information-theorëtic resource. Phys. Rev. A, 71 :0221 01,2005. [2] G. Brassard, R. Cleve, and A. Tapp. Cost of exactly simulating quantum entan- glement with classical communication. Phys. Rev. Leti .. 83: 1874-1877, 1999. [3] N. J. Cerf, N. Gisin, and S. Massar. Classical teleportation of a quantum bit. Phys. Rev. Leti., 84:2521-2524, 2000. [4] N. J. Cerf, N. Gisin, S. Massar, and S. Popescu. Quantum entanglement can be simulated without cornmunication. 2004. [5] J. F. Clauser, M. A. Home, A. Shirnony, and R. A. Holt. Proposed experiment to test local hidden-variable theories. Phys. Rev. Lett., 23:880-884,1969. [6] J. A. Csirik. Cost of exactly simulating a bell pair using classical cornrnunication. Phys. Rev. A, 66:014302, 2002. [7] A. Einstein, B. Podolsky, and N. Rosen. Can quantum-mechanical description of physical reality be considered complete? Phys. Rev .. 47:777-780, 1935. [8] N. Gisin and B. Gisin. A local hidden variable model of quantum correlation exploiting the detection loophole. Phys. Lett. A, 260(5):323-327, 1999. [9] T. Maudlin. Bell's inequality, information transmission. and prism models. In Bienn.al Meeting of the Philosophy of Science Association, pages 404-417, 1992. [10] S. Popescu and D. Rohrlich. Action and passion at a distance. In M. H. R. S. Co- hen and J. Stachel, editors, Quantum Potentiality, Entanglement, and Passion-at- a-Distance, pages 197-206, Boston, 1997. Kluwer Academic. [11] K. H. Schatten. Hidden-variable model for the Bohm Einstein-Podolsky-Rosen experiment. Phys. Rev. A, 48(1):103-104,1993. [12] B. F. Toner and D. Bacon. Cornrnunication cost of simulating Bell correlations. Phys. Rev. Lett., 91:187904, 2003. 204 DIRECT MESSAGE CODING FOR MULTIPLE-ACCESS CHANNELS P. Vanroose ABIS Training and Consulting Diestsevest 32 B-3000 Leuven, Belgium P.Vanroose@ieee.org This paper considers the 2-input multiple-access channel with direct source symbol encoding. The two source data streams may be arbitrarily correlated. For each of the four possible deterministic channel models with binary inputs, coding schemes are designed which minimise the decoding error probability. CHANNEL MODEL AND PROBLEM FORMULATION The multiple-access channel (MAC) is a communication channel with two inputs and one output. The MAC is a so-called multi-user channel. There are two information streams which are encoded independently by the two encoders. The output is observed by a single decoder whose task it is to decode both source messages. Multi-user information theory was initiated by Shannon in his landmark 1961 pa- per [1]. The overall communication situation is sketched in this simplified diagram: RECEIVER I SOURCE DECODER sP RECErvER 2 In this contribution, the situation is considered where the two message streams can be arbitrarily correlated, i.e., they come out of a common "source". This is a simplified model for a very natural situation: think of e.g. two remote weather stations, or of two differents algorithms for predicting stock market changes. But of course, as a special case, the two streams may be uncorrelated. The model is further simplified by requiring every message pair to be sent over the channel at once, so no sequence of messages can be combined into a (possibly long) codeword. This "real-time" requirement is the only difference of the channel model 205 considered here with the traditionally used Shannon channel coding model for both single-user and multi-user channels l l l- Within the sketched setup, there are still a few parameters which are either fixed by the environment (channel, source) or can be chosen by the users (viz. the coding). In this contribution, the channel will be restricted to be memoryless, binary-input, and deterministic, i.e., the channel output is unambiguously determined by the two channelinputs. In contrast to one-way channels, deterministic MACs are not necessar- ily trivial. Up to equivalences, there are only four nontrivial deterrninistic binary-input mem- oryless MACs [2], which are given by their channel operation function &'(XI ,X2): binary adder channel (BAC): &'(XI,X2) XI +X2, binary switching channel (BS-MAC): &'(XI,X2) (XI + 1) 'X2, XOR-MAC: &'(XI,X2) .- XI EElx2 (modulo-2 sum). and AND-MAC: &'(XI,X2) XI 'X2 (product). The first two channels have a ternary output while the last two have a binary output. The two source streams produce messages out of a fixed finite set, say {I, 2, ... , MI} for stream 1 and {I,2, ... ,M2} for stream 2. The joint source statistics are given by the probabilities p(SI, S2) which add up to 1, with I :S SI :S MI and I :S S2 :S M2. These MI x M2 numbers can be placed in an MI x M2 matrix :7. To simplify notation later on, denote by {ql ,q2,· .. ,QM,M2} the same set of probabilities {p(SI,S2)}, but in de- scending order, i.e., Ql ;:: q2 ;:: ... ;:: qM,Mz- A final parameter which is assumed to be fixed is the number n of channel uses that are available to transmit messages SI and S2. Thus every message pair (SI ,S2) is to be mapped by the encoders -operating independently of each other- to a binary codeword pair of length n. In summary, the communication situation can be described by the triple (:7, &', n). The aim is to minimise the probability of decoding errors. To this end, the users have the freedom to choose the two encoding mappings 11: {1,2, ... ,MJ}-->{O,IY: SI>->(Xl1"",Xln) and 206 The optimal decoding mapping, g : {O, 1,2}" --> {I ,2, ... ,MI} x {I ,2, ... ,MÛ (YI, ... ,YIJ) ........(SI ,S2) for the BAC and the BS-MAC, and g : {O, l}n --> {1,2, ... ,MJ} x {1,2, ... ,Mz} : (YI, ... ,Y,,) ........(SI,S2) for the XOR-MAC and the AND-MAC, is then implicitly fixed: it should minimise the overalljoint error probability where the probability distribution on (51,52) is given by the matrix Y. THR CODJNG PRORLEM THROUGH THREE EXAMPLES Example 1: MI = Mz = 2, 11 = I. In this case there are four possible pairs of messages: (1,1), (1,2), (2,1) and (2,2), each of which is encoded by a single pair of binary channel inputs. This most simple example already introduces an important aspect of the coding problem, viz. that the choice of the mappings 11 and I: is important: Pe is minimised by giving the most likely source output combinations the best channel response. Suppose that p(l, I) is the smallest of the four joint probabilities, i.e., p( 1,1) = qs. For the BS-MAC, channel input pairs (0,0) and (1,0) are ambiguous since they produce the same channel output O. Hence X2 = 0 is the worst channel input for the messages of stream 1, so an optimaJ encoder choice is 12(1) = 0, h(2) = 1, and the decoder should map the ambiguous channel output value 0 onto the most likely of (1,1) and (1,2), i.e., (1,2). Hence in this case Pe = qs, which is clearly optimal: a ternary output can at most distinguish 3 values. For the BAC, a similar reasoning leads to taking 11 (I) = 1,11 (2) = 0, h (l) = 0 and 12(2) = 1, and decoding the ambiguous channel output 1 as (2,2) and not (1,1), again giving Pe = qs, For the XOR-MAC, inputs (0,0) and (1,1) are ambiguous, with identical output 0, as are (0,1) and (1,0), with output 1. The choice of 11 and 12 seems arbitrary; e.g., take the one for the BAC. The optimaJ g will tben decode I as (2,2), not (1,1), and decode 0 as the most likely of (1,2) and (2,1). Then, Pe = q4 + q3 (which is optimal), unless p(2, 2) = q3, in which case Pe = q4 + qi. But in that case, a better choice for the 207 first encoder is fl (1) = fl (2) = 0, i.e., encoder 1 does not transmit any information! Indeed, the optimal decoding is then g(O) = (2,1) and g(l) = (1,2), giving optimal Pe = q4 + q3 also in this case. For the AND-MAC, channel input (XI ,X2) = (1,1) is received as y = 1, while the three other channel input pairs are mapped to y = O. In order to have Pe = q4 + q3, the two least likely source output pairs should both be mapped to channel output O. This is always possible. In summary, for both ternary-output channels, map the least likely source output pair to the channel input pair (1 ,0), which gives an optimal Pe = q4 = I - ql - q: - q3. Also for the binary-output channels, the optimal Pe = q4 + q3 = I - q, - q2 is always achievable. Example 2: General MI and M2, ti = 1. In order to minimise the error probability, the three most likely message pairs (or two, in the case of a binary-output channel) should get through correctly. This situation (and generalisations thereof) will be called ideal. Thus, when n. = I, clearly is an absolute lower bound on Pe for the ternary-output MACs, and p~deal := I - ql - q2 is an absolute lower bound on Pe for the binary-output MACs. Theorem 1. When n. = 1, and for both the BAC and the BS-MAC, only when the largest three joint source probabilities correspond to a single source stream. symbol, eitherfrom stream l orfrom stream 2, Pe > p;deal; in all other cases, Pe = p~deaJ . Proof If the three message pairs with highest probabilities must be mapped to the same channel input at either encoder I or encoder 2, the other encoder can never code the identity of these three messages in a single bit. Conversely, when at must twu haw the same source symbol, encoders (JI,h) can be chosen such that those three most likely message pairs are mapped to (XI,X2) = (0, 0), (0,]) and (l, I), respectively, which gives the situation of Example I .• Theorem 2. When n = IJ or both the XOR-MAC and the AND-MAC, Pe = p~deal. Proof The two message pairs with highest probabilities have a different source output value for at least one of the streams. One of the encoders which sees two different values maps these on different channel input values (0 and I), while the other 208 encoder maps everything onto channel input 1. The decoder only generates one of the two most likely message pairs, which is correct when these were indeed produced by the source, hence P; = I - ql - q2· • When 11. is large enough, it is straightforward to avoid any channel distortion: Theorem 3. When ,IOg2 MI1 + ,IOg2 M21 ::::11., Pe = O. Proof Reserve the first mi := ,log2Ml1 bits of channel use for encoder I and reserve the last m] := POg2 M21bits for encoder 2. Since 2 1111 2: MI, il can be chosen such that all MI messages are mapped to different codewords, all having their last m2 values equal to 1, while similarly h can be chosen to have X21 = ... = X2ml = 1, and all M2 messages mapped to different codewords. For all four channels, the first mi channel output symbols will identify the message from source stream 1, and the last m2 symbols will identify the message from stream 2.• Of course, possibly, smaller values of 11. also give Pe = O. This is the subject of the next section. ZERO·ERROR CODING Asyrnptotically (for large enough 11.), zero-error coding (i.e., Pe = U) should be possible whenever the rate point (RI ,R2) := (* log2 MI, * log2 M2) lies within the zero- error capacity region 'llfoof the channel. Coding schemes for which Pe = 0 for every possibly assignment of Y are called uniquely decodable. Unfortunately, the zero-error capacity region of MACs is hard to determine, this in contrast to the classical s-error capacity region 'llf which is easily calculated for any particular MAC. But since 'llf ç 'llfo, zero-error codes cannot exist when the rate point lies outside 'llf, unless some of the joint source probabilities are zero. For the XOR-MAC and the AND-MAC, the capacity region is given by MI .M2 :::: 2". For the BAC, MI . M2 ::::23"/2. And for the BS-MAC, a slightly more complex condition holds (see below). Obviously, in all four cases, the conditions MI ::::2" and MI ::::21/ should be satisfied as well. Assuming none of the p(ml, m2) are zero, the interesting question is to find "ex- treme" zeror-error codes, i.e., for given MI and M2, those with smallest possible n. To this end, a distinction has to be made between the four channels, bul the results apply to any possible assignment of the source statistics Y, provided all q, are nonzero. 209 TheXOR-MAC The absolute lower bound to 11. is log2(MIM2), which is achieved with the coding scheme of Theorem 3. Hence the zeror-error capacity region 'ifo equals 'if. There exist other coding schemes than the ones from Theorem 3: Example: Choose an integer 1 and select a set of binary n-tuples with minimal Hamming distance 21 + 1 as codewords for encoder 1, while encoder 2 may use all n-tuples of Hamming weight at most I. For example [6], for n = 8, encoder 2 uses the 9 words of weight 0 or 1, while en- coder 1 uses the 20 words of the optimal (n = 8,d = 3) code. The rate point is then (k log2 (20), k log2 (9) = (0.54024,0.39624). The AND-MAC Also in this case, the lower bound 11. ~ log2(M1M2) is achieved with the coding scheme of Theorem 3, so also here the zeror-error capacity region 'ifo equals 'if. TheBAC Remarkably, the zeror-error capacity region 'ifo of the BAC is strictly smaller than the classical s-error region RI + R2 ::; 1.5; the highest achieved rate sum so far with a uniquely decodable code is 1.3317 [5]. A lot of research effort has been put in designing uniquely decodable codes for the BAC. TheBS-MAC The zeror-error capacity region of the BS-MAC equals the classical s-error region R2 ::; h(max(RJ,!)), as was shown in [4]. Of course, for given block length 11., slightly less optimal rate pairs are achievable, although the bound of the capacity region is approached fairly quickly with growing n. Examples of uniquely decodable codes can be found in [3]. TIMESHARING CODES Definition: A timesharing code is an encoding scheme (IJ ,h) such that ij is re- stricted to {I, 2, ... ,Md _, {O, 1 f x 1n-k while 12 is restricted to {I, 2, ... ,MJ} _, Ok X {O, I }n-k for some integer k. Hence, encoder 2 is "silent" during the first k trans- missions, while encoder I is "silent" during the rest of the IJ. transmissions. It could be expected that timesharing codes are optimal for the XOR-MAC and the AND-MAC, but this is only true for zero-error codes. In [6] the following example is given, where Pe = 0.05: 210 0.2 0.05 0.2] M, = M2 = n = 3, Y = 0.2 0.1 0.05 . [ 0.1 0.1 0 Since only 8 = 2n probabilities are nonzero, p~deal = O. The best timesharing code has Pe = 0.1: take k = 2 and use i, (1) = 001, ,fJ(2) = all, i, (3) = 101, hU) = 000,12(2) = 12(3) = OOI, and the decoder map is: g(OOO) = (1,3), g(OOl) = (1,1), g(OIO) = (2,2), g(OII) = (2,1), g(1 00) = (3,2), g(IOI) = (3, I). The decoder will never see 110 nor 111; it errs when (s, ,S2) = (1,2) or (2,3). Both (s, ,S2) = (1,2) and (SJ,2) = (1,3), yield the same channel outputOOO after encoding, Minimal error probability is obtained by decoding 000 to the more likely (1,3). The same argument holds for decoding ala to (2,2) and not (2,3). The optimal coding scheme turns out to have Pe = 0.05: this is achieved when the encoders are e.g. ij(1) = 000, i, (2) = 001, i, (3) = OIO, 12(1) = 000, 12(2) = 100, 12(3) = all, and the decoder is g(OOO) = (1,1), g(OOI) = (2, I), g(OIO) = (3,1), g(OII) = (1,3), g(lOO) = (1,2), g( 101) = (2,2), g(llO) = (3,2). The decoder never sees Y = Ill, and it only errs when (s, ,S2) = (2,3). Theorem 4. For the XOR-MAC and the AND-MAC with n. = 2, timesharing codes are optimal, i.e., no codes exist with smaller Pe. Proof Nine cases can be distinguished for the location of the source pairs (sJ ,S2) corresponding to q, ,Q2,q3,q4. ln eight of these cases, timesharing codes exist with Pe=p~dea':=I-Q,-Q2-Q3-Q4. AI I I ln case A, take k = 0, i, (*) = 11,12(1) = 00, 12(2) = 01,12(3) = 10,12(4) = 11. ln case B, take k = 1, I, (I) = 01,/, (2) = 11,12(1) = 10,12(2) = 11. Cases C, E, G and J reduce to case A. Cases F and H reduce to case B. In case D, Pe < p~deal, but still the timesharing codes of either case A or case Bare optimal (depending on which one of the four source pairs corresponds to Q4).• Corollary. ln almost all n = 2 cases, Pe = p~deaJ, the only exception being when three of the four most probably source pairs have the same source output value for one stream, and the fourth one has the same source output value for the other stream as one of those three. 211 NON-TRIVIAL CODES FOR THE BINARY SWITCIDNG CHANNEL WITH N = 2 Potentially 9 channel output pairs can be distinguished when n = 2. For M, = M2 = 3, there is no ideal code, unless 2 out of the 9 probabilities are zero: with 57 = [0~2 ~:~ 0.1 0.1 0.2 O~l l, the following code is uniquely decodabIe: I, (1) = 00, I, (2) = 01, I, (3) = 10,12(1) = 01, 12(2) = 11,12(3) = 10. The channel never outputs 00 nor 22. The following source probability assignments for M, = M2 = 4 result in a uniquely decodable code with fl (1) = 00, 11 (2) = 01,11 (3) = 10, fl (4) = 11, and 12(1) = 11, 12(2) = 10,12(3) = 01,12(4) = 00: 0.1 0.2 0.1 57= 0.1 o 0.1 [ 0.1 0.1 0.1 o 0 0 IJ or of course also any other assignment of probabilities to the nonzero vaJues herein. REFERENCES [I] CE. Shannon, "Two-way cornmunication channels", in: Proc. 4th IJerkeley Symp. Math. Slat. & Prob. 1, pp. 611-644, 1961. [2] P. Vanroose and E.C van der Meulen, "Coding for the Binary Switching Multi- ple Access Channel", in Proceedings of the Seventh Symposium on Information Theory in the Benelux (Noordwijkerhout), pp. 183-189, May 1986. [3] P. Vanroose and E.C. van der Meulen, "Zero-error capacity and quasi-synchronized codes for the binary switching channel", in Proceedings of the Ninth Symposium on Information Theory in the Benelux (Mierlo) pp. 175-181, May 1988. [4] P. Vanroose, "Code construction for the noiseless binary switching multiple-access channel", IEEE Transactions on Information Theory 34(5), pp. 1100-1106, 1988. [5] Patric Östergärd, "New Bound for the Zero-ErrorCapacity Region of the Two-User Binary Adder Channel", in Kolloquium iiber Kombinatorik (Magdeburg), p. 26, November 2004. [6] X. Gao and L.J. Schulman, "Real-time coding for multiple access channels", submitted to IEEE International Symposium. on Information Theory (ISIT2005), (Adelaide) September 2005. 212 PARALLEL CHANNELS WITH CRIBBING ENCODERS Edward C. van der Meulen Ariahit R. Ghazaryan Department of Mathematics Institute for Informaties and Katholieke Universiteit Leuven Automation Problems Celestijnenlaan 200B Armenian National Academy of Sciences 3001 Heverlee (Leuven), Belgium Yerevan, Armenia Abstract - We consider the model of two parallel channels with cribbing encoders. We determine the capacity region for five different cribbing situations. We also consider two situations of parallel channels with asymmetrie encoders and determine the capacity region for these two cases. INTRODUCTION E. van der Meulen [4] and later F. Willems and E. van der Meulen [5] investi- gated the discrete memoryless multiple access channel where two somces deliver independent messages to two separate encoders of a multiple access channel and one or both encoders crib from the other encoder and learn its output. We con- sider this problem for the system of two discrete memoryless parallel channels (DMPC) where two somces deliver independent messages 'Wl and 'W2 to two sep- arate encoders 1 and 2 (for the separate discrete memoryless channels 1 and 2, respectively) which are N-Iength block encoders. First we consider the case where only encoder 2 cribs and encoder 1 ma.ps his corresponding message 'Wl into the codeword xi" = (Xl1, ... , XIN ): (1) Thus, encoder 2 is cribbing from encoder 1 and in transmission n constructs the n-th element of its codeword on the basis of the corresponding message a.nd This work was supported by Project GOA/98/06 of Research Fund K.U.Leuven, INTAS Project. 00-738, and by a NATO Research Fellowship to the second author for a stay at. K. U.Leuven. E.C. van der Meulen is with the Department of Mathematics, Katholieke Univer- siteit Leuven, Celestijnenlaan 200B, B-3001 Heverlee (Leuven), Belgium (e-mail: ed- ward. vandermeulen@wis.kuleuven.ac.be). A. Chazarvan was with the Department of Computation Methods and Digital Image Pro- cessing Systems, Institute for Informaties and Automation Problems of Armenian National Academy of Sciences and of Yerevan St.ate University, P. Sevak Street 1, 375014 Yerevan, Ar- menia, and visited K.U.Leuven December 3, 2003 - December 19,2004. 213 what was learned up to the beginning of this transmission from encoder 1 by crib- bing. Here we consider the following situations in transmission 11.,11. = 1,2, ... , N, which are similar to those considered in [5]: 1. Encoder 2 learned nothing from encoder 1, i.e. encoder 2 is constructed in a similar way as encoder 1: (2) 2. Encoder 2 learned the sequence of outputs of encoder 1 in all previous trans- missions, i.e., encoder 2 is constructed as follows: (3) 3. Encoder 2 learned from encoder 1 the sequence of outputs in all previous transmissions, and the one that will be sent in transmission 11., i.e., encoder 2 is constructed as follows: (4) 4. Encoder 2 learned from encoder 1 the entire codeword xi" that will be sent in the present block, i.e., encoder 2 is constructed as follows: (5) Next we consider the case when both encoders are cribbing from the other one and learn the sequence of outputs of this encoder. Here we consider the following cases: 5. Both encoders learned from the other encoder the sequence of outputs in all previous transmissions, i.e., encoder 1 is constructed in the following way: fln (l.!)l, .r.~.-l) = Xln, 11. = 1, ... , N, (6) and encoder 2 is constructed as in (3). 6. Both encoders learned from the other encoder the sequence of outputs in all previous transmissions, and encoder 2 also the one that will be sent in transmis- sion 11., i.e., encoder 1 is constructed in the following way: (7) 214 and encoder 2 is constructed as in (4). Note that the situations when the roles of encoders 1 and 2 are interchanged from the point of view of cribbing are essentially the same due to symmetry, and therefore will not be investigated separately. In this paper we establish the capacity region of a pair of parallel channels for each of the above communication situations. PROBLEM STATEMENT AND DEFINITIONS Let Xl,X2,YI, and Y2 be finite sets. Let P(Xi) be the set of all probability distributions (PD) on Xi, i = 1,2, P(Xl, X2) be the set of all joint PD's on (Xl, X2), and P(XI, X2, YI, Y2) be the set of all joint PD's on (Xl, X2, Yl, Y2)' Denote by P(y;jXi) the set of all conditional PD's from Xi to Yi, i = 1,2, and by P(Yl,Y2IXI,X2) the set of all conditional PD's from (Xl,X2) to (Yl,Y2). A discrete memoryless channel i (DMC i), denoted by {Xi, Qi(Y,;!Xi), Y;}, is defined by input alphabet Xi, output alphabet Yi, and by a transmission probability matrix Qi E P(YiIXi), i = 1,2. Then the probability of receiving yf when xf was transmitted is given by N Qi(yflxt') = IT Qi(Yil1lxin), i = 1,2. (8) n=l For the description of the basic model of two independent parallel channels we refer to Gallager [3, p. 149]. More precisely, a DMPC, denoted by is presented by the DMC's 1 and 2: {X1,Ql(Yllxl),Yd and {X2,Q2(Y2Ix2),Yd, with transmission probability matrices Ql E P(YlIX1) and Q2 E P(Y2IX2), re- spectively. It means that (i) each unit of time a symbol Xl is transmitted over DMC 1 and a symbol X2 over DMC 2; (ii) DMC 1 and DMC 2 are assumed to be independent, i.e., we have the following Markov chains: (9) (10) 215 We call Xi the input, and Yi the output of DMC i, i = 1,2. Hence using (9) and (10), the joint probability of (Xl, X2, Yl, Y2), where x, is the input and Yi is the output of DMC i, i = 1,2, can be presented as follows: P(Xl,:Z:2,Yl,Y2) = P(Xl,X2)' P(Yl,Y2IxJ,X2) = = P(Xl,X2)' P(YJIXJ,X2)' P(Y2IxI,X2,YJ) = (ll) = P(XI,X2)' QJ(Yllxl)' Q2(Y2Ix2). We investigate the following cornrnuuication situations. The message sources 1 and 2, which are independent of each other, produce random integers WJ E {1,"', Md and W2 E {1,"', M2}, respectively. The random variables (RV) W1 and W2 are independent and uniformly distributed, i.e., each message Wl of source 1 OCClli'S with probability ~l' each message W2 of source 2 with probability ~2' Encoders 11 and hare N-Iength block encoders, i.e., are completely described by a set of N encoding functions, which map the message and what was learned from the other encoder by cribbing into the next channel input: For situation 1 we have (12) For situations 2,3, and 4 we have, respectively, for Tl, = 1,'" ,N, (13) (14) (1.5) For situations 5 and 6 we have, respectively, The codewords x~ and x!J are sent over the DMPC. The decoders 91 and 92 216 produce estimates of the transmitted messages Wl and W2, respectively, on the basis of the vectors of corresponding channel outputs as follows: (i) for situation 1: 9l(Vn = 'lih,92(Vf) = W2; (18) (ii) for situations 2,3, and 4: (19) (iii) for situations 5 and 6: (20) Denote Q ~ {1,2,3,4,5,6}, Pr{(H/l =I Wl) U (W2 =I W2)}, for q = 1, Pr{(Wl =I Wl) U «w., W2) =I (Wl, W2))}, for q = 2,3,4, Pr'{((Wl, W2) =I (Wl, W2)) U ((Wl, W2) =I (Wl, W2))}, for q = 5,6. Definition 1: An (N, MI, M2' E) code for a DMPC in situation q, q E Q, is a system {CfI,12,9l,92)}, where hand 12 are N-Iength block encoders, corre- sponding to situation q, and 91 and 92 are decoders, such that (21 ) Definition 2: A rate pair (RI, R2) is said to be achievable for a DMPC in situation q E Q if for any E > 0, 'Y > 0, and sufficiently large N there exists an (N, J\!h, M2, E) code for the DMPC in situation q such that (22) Definition 3: The closure of the set of all achievable rate pairs (RI, R2) for a. DMPC in situation q E Q is called the capacity region Cq for a DMPC in situation q. 217 MAIN RESULTS FOR CRIBBING ENCODERS Define the following regions: (23) where ei is the capacity of DMC i, i = 1,2, R2 ~ {(RI,R2): 0::; Rl::; min{l(XI;l1),H(XIIU)}, o < R2 < l(X2; Y2IXI, U), n. + H2 ::; l(X2; }'z) (24) for P( u, Xl, X2, YI, Y2) = P( u)P(xllu)P(X2Iu)QI (Yllxl)Q2(Y2Ix2) and lUI::; min{IXII . IX21 + 1, IYII + 1, IY21+ I}}, R34 ~ {(RI, R2) :0 < n, < l(XI; Yd, 0::; R2 ::; l(X2; Y2IXI), n, + R < l(X 2 2; Y2) (25) for P(XI,X2,YI,Y2) = P(XI,X2)QI(YII.XI)Q2(Y2Ix2)}, R5 ~ {(Rl, Rz) : 0::; s, < H(XIIU), 0::; Rz ::; H(XzIU), u, + R < min{I(X ;YI),I(X 2 I 2; Y2)} (26) for P( u, Xl, X2, YI, Y2) = P( u)P(xllu)P(X2Iu)Q] (Yllxl)Q2(Y2Ix2) and lUI::; min{IXII·IXzl + I, IYII + 1, IY21+ I}}, R6 ~ {(RI, R2) : 0::; u. ::;H(XI), 0::; R2 < H(X2IXI), ti, + R2 ::; mÎn{l(XI; Yd, l(X2; Yz)} (27) for P(XI,X2,Yl>Y2) = P(XI,X2)QI(Yllxl)Q2(Y2Ix2)' Our main results are the following theorems. Theorem 1 : For the DMPC {Xl x X2,QI(Yllxl) . Q2(Y2Ix2),YI X Y2} in situation 1, the capacity region Cl equals RI. 218 Theorem 2 : For the DMPC {Xl x X2, QI(Yllxd . Q2(Y2Ix2), YI x Y2} in situation 2, the capacity region C2 equals R2. Theorem 3: For the DMPC {Xl x X2,QI(Yllxl)· Q2(Y2Ix2),YI X Y2} in situation 3, the capacity region C3 equals R34. Theorem 4 : For the DMPC {Xl x X2,QI(Yllxd· Q2(Y2Ix2),YI X Y2} in situation 4, the capacity region C4 equals R34. Theorem 5 : For the DMPC {Xl x X2, QI(Yllxl) . Q2(Y2Ix2), YI x Y2} in situation 5, the capacity region C5 equals R5. Theorem 6: For the DMPC {Xl x X2,QI(Yllxl) . Q2(Y2Ix2),YI X Y2} in situation 6, the capacity region C6 equals ~. PARALLEL CHANNELS WITH ASYMMETRIC ENCODERS In addition to the five cribbing situations above, we consider two other, re- lated situations, which resemble the asymmetrie multiple access channel ([1],[2]). (i) Encoder 2 receives both messages WI and W2, i.e., the DMPC is asymmetrie. It means that encoder 1 is constructed as in (1); encoder 2 constructs codeword xli = (X21, ... , X2N) on the basis of message WI and the corresponding messa.ge W2 : (28) We call this case situation 7. (ii) Both encoders receive messages Wl and W2, i.e., the DMPC is symmetric. It means that the encoders are constructed as follows : (29) We ca.ll this case situation 8. For situation 7 we have (30) and the decoding rule as in (19). For situation 8 we have and the decoding rule as in (20). 219 We define the following additional rate region: Rs ~ {(Rl,Rz): 0::; Rl::; I(Xl;Yl!X2), 0::; Rz::; I(Xz;Y2!Xd,Rl +Rz::; min{I(Xl;Yl),I(X2;Yz)} (32) for P(Xl,Xz,YbYZ) = P(.Tl,XZ)Ql(Yl!Xl)QZ(YZ!xz)}. We then have the following additional results: Theo-rem 7: For the DMPC {Xl x X2, QI(YI!XI) . Q2(Y2!X2), YI x Y2} in situation 7, the capacity region Ci equals R34. Theor-em 8 : For the DMPC {Xl x X2, Ql(Yl!Xl) . Q2(Y2!X2), Yl x Yz} in situation 8, the capacity region Cs equals Rs. REFERENCES [1] L.A. Bassalygo, M.S. Pinsker, and V.V. Prelov, "Zero-error capacity for deter- ministic multiple-access channels with common information", Probl. Peredachi Informatsii, vol. 18, pp. 3-ll, Jan. - Mar. 1982. [2] K. De Bruyn, V.V. Prelov, and E.C. van der Meulen, "Reliable transmission of two correlated sources over an asymmetrie multiple-access channel" , IEEE Trans. Inform .. Theory, Vol. IT-33, No. 5, pp. 716-718, 1987. [3] R.G. Gallager, Injormatioti Theory and Reliable Communication, Wiley, New York,1968. [4] E.C. van der Meulen, "A survey of multi-way channels in information theory 1961-1976", IEEE Trans. Inform: Theor-y, Vol. IT-23, No. 1, pp. 1-37, Jan. 1977. [5] F.M.J. Willems and E.C. van der Meulen, "The discrete memoryless multiple- access channel with cribbing encoders, IEEE Trans. Inform. Theory, Vol. IT-3l, No. 3, pp. 313-327, May 1985. 220 NUMERICAL COMPUTATION OF THE CAPACITY OF CONTINUOUS MEMORYLESS CHANNELS Justin Dauwels Dept. of Information Technology and Electrical Engineering ETH, CH-8092 Zürich, Switzerland dauwels©isi.ee.ethz.ch WP.extend the Blahut-Arimoto algorithm to continuous memoruless chan- nels by means of sequential Monte Carlo inieqration in conjunction with gradient methods. We apply the algorithm to a Gaussian channel with an average- and/or' peck-pouier constraint. INTRODUCTION We consider the problem of computing the capacity C(X; 1") = 6 sup p(x) l.j' • 'l; Y p(x)p(ylx) log p(YI·x) -( -) dxdy P Y = supI(X; 6 p(x) 1") (1) between the input X and the output 1" of a memoryless channel p(ylx)with p(y) ~ J~p(x)p(ylx)d.x. Both X and 1" may be discrete or continuous. If x is discrete, Ix g(x)dx stands for the summation of g(x) over its support. For memoryless channels with .finite input and output alphabets X and Y respec- tively, the capacity (1) can be computed by the Blahut-Arimoto algorithm [1] [2]. Recently, Matz et al. proposed two Blahut-Arimoto-type algorithms that often converge significantly faster than the standard Blahut-Arimoto algorithm [3]. Moreover, the Blahut-Arimoto algorithm was recently extended to channels with memory and finite input alphabets and state spaces [4]. For memoryless channels with continuous input and/or output alphabets, the Blabut-Arimoto algorithm is not directly applicable. In this paper, we propose an algorithm for computing the capacity of such channels. It is similar in spirit as the algorithm we proposed in [5] for computing infonnation rates of continuous channels with memory; the key idea is again the use of sequential Monte-Carlo in- tegration methods (a.k.a "particle filters") [6]. In those methods, probability dis- tributions are represented as lists of samples ("particles"). In the proposed algo- rithm, the lists of samples are recursively updated in two steps: first, the weights 221 of the particles are computed by the Blahut-Arimoto algorithm; then, one deter- mines the corresponding p(y), and moves the particles x in the output distribution input space with the aim of increasing the relative entropy D(p(ylx)llp(y)) (which is a function of x) between p(ylx) and p(y); this can be done by several iterations of some gradient method such as steepest descent or the Newton method [9]. The proposed algorithm is related to the algorithm proposed in 1988 by Chang et a!. [7], where, after the weight updates, one determines all local maxima xmax of the relative entropy D(p(ylx)llp(y)); those maxima are then appended to the list of samples. That algorithm is rather impractical: finding all local maxima of a function is often infeasible, especially in high dimensions. In addition, there may be an infinite number of local maxima. Lafferty et al. [8] proposed an alternative algorithm based on Markov-chain-Monte-Carlo methods. lts complexity grows quadmtica.lly in the number of iterations, whereas the complexity of our algorithm depends lineaTly on the number of iterations. This paper is structured as follows. First, we briefly review the Blahut-Arimoto algorithm [1] [2] and two recently proposed extensions [3]. We then outline our particle-based algorithm and shortly discuss a few numerical examples. REVIEW OF BLAHUT-ARIMOTO-TYPJ<; ALGORITHMS The Blahut-Arimoto algorithm [1] [2] is an alternating-maximization algorithm for computing the capacity (1). One starts with an arbitrary probability func- tion pO(x). At each iteration k, the probability function p(k) (x) is obtained as (2) where the expression p(k)(y) is defined as p(k)(y) ~ r p(k)(x)p(yl.x)dx, JXEX (3) and Z(k) is a scaling factor Z(k) ~ r p("-l)(x)exp(D(p(Ylx)llp(h:-l)(y)))dx. .JXEX (4) If after n iterations (5) 222 with J(n) ~ /' p(n)(:J:)D (p(Ylx)llp(n)(y)) dx, (6) }XE.-Y and e a "small" positive real number (e.g., e = 10-5), then one concludes with the estimate ê = r». In 2004, Matz et al. [3] proposed two related algorithms for computing the ca- pacity of memoryless channels, i.e., the so-called "natural-gradient-based algo- rithm" and the "accelerated Blahut-Arimoto algorithm"; they often converge significantly faster than the standard Blahut-Arimoto algorithm In the natural-gradient-based algorithm, the density pU')(x) is recursively updated by the rule where M(k) is a step-size parameter. Note that p(k)(x) in (7) is guaranteed to be normalized. In the accelerated Blahut-Arimoto algorithm, the update rule is given by: where Z(k) is a normalization constant. Many channels have an associated expense of using each of the input symbols. A common example is the power associated with each input symboL A constrained channel is a channel with the requirement that the average expense be less than or equal to some specified number E. The capacity at expense E is defined as [2] C(X; Y) ~ sup P(X)EPs l1p(X)p(y,X) x y log J p~(~I~) x P Y X I ) ~ X sup P(X)EPs J(X; V), (9) where PE ~ {p : IKm.__, IR: 1 p(x)dx = 1,p(x) :0:: 0,1 p(x)e(x)dx < E}, (10) and IK = IR or A] = O. In the simulations, we used 100 particles .:î; and between 100 and 1000 main it- erations (Step 5), depending on the SNR; each such iteration consisted of 1000 Blahut-Arimoto iterations (Step 2) and 20 steepest descent updates (Step 4). Other settings of the parameters could be chosen, we spent only little effort in optimizing the algorithm. Since the problem is one-dimensional, we used nurner- ical integration (w.r.t. Y) to compute the integrals involved in Step 2 and in the evaluation of the capacity (cf. (12)). In the future, we plan to tackle higher- dimensional problems by combining Monte-Carlo integration with density trees, as explained in the previous section. The capacity C (in bits) of the Gaussian channel with average-power constraint is well-known: c = ~ log2 2 (1 + Uö~) . (16) 225 Fig. l(a) shows the expression (16) together with the capacity values computed by our algorithm. We defined the signal-to-noise ratio (SNR) as SNR[dB] ~ 1010gio (:z) . (17) The capacity-achieving input distribution is a zero-mean Gaussian distribution NIR(O, P) with variance P. In Fig. l(b), this distribution is shown together with the particle- bBAP.d approximation. Notice that in Fig. l(a) and Fig. 1(1.», the exact and the numerical results are practically coinciding. The deviation between the numerical and the exact values of the capacity is about 10-5 bits/channel use. The accuracy could in fact be improved by increasing the number of particles and iterations. Fig. 2 and Fig. 3 show the results for the peak-power constrained Gaussian chan- nel (A = 1). Fig. 2(a) shows the capacity of the channel for several SNR-values, where the SNR is now defined as SNR[dB] ~ 1010gI0 (~). The capacity- achieving input distribution for this channel is discrete (see e.g., [U] and ref- erences therein). Note that in our algorithm, we did not (need to) exploit the fact that the input distribution is discrete. Fig. 2(b) shows the input probability mass function for several SNR levels: the dots are the constellation points, their probability mass is encoded in the grayscale (white: p = 0; black: p = 0.5) As an illustration, the capacity-achieving cumulative input distribution F(x) is depicted in Fig. 3(a) for SNR = 13dB. Fig. 3(b) shows how the particles explore the input space during the iterations: initially, the particles are uniformly dis- tributed in the interval [-1, 1]; they gradually move towards the signal points of the capacity achieving input distribution. Fig. 4 shows the results for the average- and peak-power constrained Gaussian channel (A = 1 and P = 0.5). Fig. 4(a) shows the channel capacity for several SNR-values, where the SNR is given by (17) In Fig. 4(b), the capacity-achieving input constellations are depicted. We also have numerical result" for some optical channel models (e.g., Poisson channel). ACKNOWLEDGMENTS The author wishes to thank Frank Kschischang, Sascha Korl, and Hans-Andrea Loeliger for inspiring discussions. This project was supported in part by the Swiss National Science Foundation grant 200021-101955. 226 REFERENCES [1] S. Arimoto, "An algorithm for computing the capacity of arbitrary discrete memoryless channels," IEEE Trans. Information Theory, vol. 18, pp. 14-20, 1972. [2] R. Blahut, "Computation of channel capacity and rate-distortion functions," IEEE Trans. Injormation Theory, vol. 18, pp. 460-473, 1972. [3] C. Matz and P. Duhamel, "Information geometric formulation and inter- pretation of accelerated Blahut-Arimoto-type algorithms," Proc. 2004 IEEE Injormation Theory Workshop, San Antonio, TX, USA, Oct. 24-29,2004. [4] P. O. Vontobel, A. Kavéió, D. Arnold, and H.-A. Loeliger, "Capacity of Finite-State Machine Channels," submitted to IEEE Trans. Inform. Theory, Nov.2004. [5] J. Dauwels and H.-A. Loeliger, "Computation ofinformation rates by particle methods," Proc. 2004 IEEE Int. Symp. Information Theory, Chicago, IL, USA, .June 27 - July 2, 2004, p. 178. [6] A. Doucet, J. F. C. de Freitas, and N. J. Cordon, eds., Sequential Monte Carlo methods in practice. New York: Springer-Verlag, 2001. [7] C. Chang and L. D. Davisson, "On calculating the capacity of an infinite- input finite (infinite)-output channel," IEEE Trans. Information Theory, vol. 34, Sept. 1998, pp. 1004-1010. [8] J. D. Lafferty and L. A. Wasserman, "Iterative Markov chain Monte Carlo computation of reference priors and minimax risk," Proceedinçs of the 17th Conference in Uncertainty in Artificial Intelligence, August 02-05, 2001, pp. 293-300. [9] D. P. Bertsekas, Nonlinear programming, Athena Scientific, Bel- mont, MA, 1995. [10] J. H. Friedman, .J. L. Bentley, and R. A. Finkel, "An algorithm for finding best matches in logarithmic expected time," ACM Transactions on Mathe- matical Software, vol. 3, Sept. 1977, pp. 209-226. [l l] T. Chan, S. Hranilovic and F. Kschischang, "Capacity-achieving probability measure for conditionally Caussian channels with bounded inputs," sub- mited to IEEE Trans. Information Theory, Dec. 2004. 227 ~R~ x (a) Capacity (b) Input distribution Figure 1: Gaussian channel with average-power constraint, 1.5r··············,··································· . 1 •.. ······t·..·,·,..·····_···,....•··..·.._··,··.. _ ....._ ... 0,5 1 _ •..•..•..•. _ .•...• _ •• _, 1,5 '-----;;----;5,-------:1;';;0,----:';15 SNR [dB] SNR [dB] (a) Capacity (b) Input distribution Figure 2: Gaussian channel with peak-power constraint. x £~') (a) Cumulative input distribution (b) Particles Figure 3: Gaussian channel with peak-power constraint (SNR = 13dB). 1.5 1······-···----· 1·· .. ·-·.. ·• ..·- .. ,,·----· 1.5 '-----;:----;5,----1"'0---C0 15 SNR [dB] SNR [dB] (a) Capacity (b) Input distribution Figure 4: Gaussian channel with average- and peak-power constraint. 228 This paper presents a novel appr-oachthat describes the entr-opy and capacity of a multi-element army (MEA) electromagnetic (EM) radiation source in terms of the far-field characteristics of its radiation pattern. The presented appr-oach shows that the entropy of a MEA EM source at the far field is equal to the sum of the entropy of a reference signal driven into one of the antenna elements and the entr-opy introduced by the uncertaititsj created by varying the radiation pattern characteristics of the army on each symbol period. The latter is defined as the aerial entropy of the information source as it is encoded by varying the way in which the EM signal is tmnsmitted into the air, and it helps identify problems related to the distinction between digital beamforming (DEF), transmit diversity and multiple-input multiple- output (MIMO) systems, while paving the way [or the implementation of MIMO systems using only one RF front end. AERIAL ENTROPY AND CAPACITY OF A MEA EM SOURCE A. Kalis, Member IEEE and M. J. Carras, Member IEEE, {akal,mjc}@ait.edu.gr INTRODUCTION In recent years much effort and literature has been devoted to ways in which the performance of wireless communications systems can be enhanced by tak- ing advantage of the properties of the wireless channel. These efforts have built upon the ground-breaking work of [1] and [2] in defining the limits and capacity of communication and wireless communication channels respectively. Various di- versity techniques have been employed at both transmitter and receiver as well as multiple-input, multiple-output (MIMO) architectures to achieve greater capacity or more robust BER performance in different channel scenarios. Conventionally, when analysing MIMO or diversity systems it is considered that the transmitter elements are uncoupled and that there exists a particular channel response between each transmitter element and each receiving element. Each element is thus driven by a separate signal and the total entropy of the source is equal to the sum of the entropy of each individual digital signal. The trans- mitter elements and the signals they transmit are again considered separately when evaluating the channel capacity and correlation between received signals is assumed to be due to correlated fading characteristics of the channel and is 229 evaluated statistically. However, when considering the far-field characteristics of MIMO systems, each input vector creates a different far-field radiation pattern, due to the fact that inter-element spacing is small compared to the dimensions of the array's Fresnel zone. In this work a multiple element antenna (MEA) is considered as a single electromagnetic (EM) source. Thus it is possible to describe the entropy of the information it transmits in terms of the entropy associated with the particular digital modulation scheme used plus the entropy associated with the far-field radiation patterns produced by the MEA. The latter is defined as the "aerial entropy" of the EM source and it helps resolve issues regarding the distinction between the performance of digital beamforming (DBF), MIMO and transmit- diversity systems. Following that, analysis is presented for how this concept of aerial entropy also affects capacity since the correlation between far-field radiation patterns directly impacts the system performance. The paper is concluded giving brief insight into how this novel analysis may impact on the application of MEA systems. AERIAL ENTROPY Consider a MEA where each element is identical. It can be shown that Lhe total field of the array in the far-field is given by the relationship [3J: E(total) = [E(single element at reference point)J x larrayfactorJ (1) where the array factor (AF) depends on the geometry of the array as well as the relative amplitudes and phases of the current at the feeds of each element. To illustrate this with an example, consider a linear array of N uniformly spaced elements with separation distance d, and the reference point taken to be at ele- ment 1 (as shown in figure 1 where the elements are represented by points). In this instance the AF, considering only the azimuthal plane (ip=O) without loss of generality, is given by: AF(e) = h + I2exp(jkcose) + ... + IN exp(j(N - l)kcose) (2) where k describes the separation of the elements in terms of wavelengths and is given by: d k = 27r- (3) À 230 AF(rp,O) y f _· ... x ...... /<1;.-1 __ 2_ • • • N •...•.•..•. d (N-l)d Figure 1: N element uniform linear array of point sources where À is the wavelength of the carrier signal. Let the vector of complex input currents be given by, (4) Since the array factor depends purelyon the relative currents, define 11 as the reference current, such that, (5) The notation Zn is used to represent the ratio of the complex currents In/h, in other words it describes the amplitude and phase difference of the nth current to the reference current. In the case that only the reference element is driven, the ratios Z1l. correspond directly to the mutual coupling between the elements. Furthermore, define the vector describing the contribution of each element to the far-field radiation (dependant only on the array geometry) to be, a (B) = [1 exp(j k cos B) exp(jNkcosB) ]T (6) Thus (2) can be written as (7) 231 From this it is possible to extract only the component of the array factor attribut- able to the relative complex currents and the geometry of the array as defined by: (8) Let the reference current be denoted by the random variable 11 E IJ. The set Il represents all possible modulation symbols for a given modulation scheme. In a similar manner define a vector z E Z to be a random variable with the set Z representing all possible relative currents. In the case that DD elements are driven this set depends entirely in the modulation scheme used. A further random variable can be defined R E R to represent the unique radiation patterns produced by the MEA. Given the sets Il and R it is possible to compute the set AF of all the array factors (taken to be the radiated EM signals) employed by this antenna/modulation scheme combination. It is then possible to define a random variable AF E AF to represent the array factor at each symbol instance. Taking ((7)) and given that 11 and R are considered to be independent, the entropy of the transmitted EM signal is given by the expression: H(AF) = H(h) + H(R 111) (9) In the case that the array geometry is fixed (i.e. the elements are not mechanically adjusted to assume a. finite number of different geometries) (Y) becomes: (10) The latter term in (9), H(RIIj), is defined as the "aerial entropy" since the in- formation is encoded by varying the radiation pattern of the MEA, or in other words the way in which the EM signal is transmitted into the air. The aerial en- tropy describes the uncertainty in the EM signal created by varying the radiation pattern in contrast to the uncertainty introduced by the particular modulation scheme which is described by the H(h) term. Therefore (9) shows that the total entropy of a MEA EM source can be de- scribed as the sum of the entropy introduced by the modulation scheme adopted for the reference signal plus the entropy introduced by the variation of the ra- diation pattern in each symbol period. This outcome can be considered to be of primary importance, since it can help answer several questions related to the performance of diverse next generation communication systems. For example, it 232 is often stated in the literature that the spectral efficiency of digital beamform- ing arrays (DBF) or transmit MRC diversity systems cannot exceed the spectral efficiency of a simple SISO case. However, the hardware implementation of such arrays can be identical to that of MIMO arrays, which multiply the performance of wireless communications. The answer to that observation lies in the fact that although DBF systems optimize the radiation patterns used in a communica- tion link to achieve maximum communication gains, they do not change these radiation patterns on each symbol period. In other words, the aerial entropy component in (9) is equal to zero, and the spectral efficiency limit for these sys- tems equals that of any SISO case. On the other hand, in MIMO systems, where a different input vector is fed to the transmit array on each symbol period, diverse . radiation patterns are produced at the same rate. Therefore, the aerial entropy component of (9) is greater than zero, leading to extended capacity limits. In the next section we consider the wireless channel as a simple AWGN fading channel in order to further explain the correlation between increased aerial entropy and the capacity limits of a MEA information source. CAPACITY The previous section presented a novel analysis of the entropy of the EM signal transmitted by a MEA, introducing the concept of aerial entropy as a distinct value to that of the entropy of a modulation scheme and considering the MEA as a single information source. In a similar manner the capacity of a system using a MEA transmitter and either a simple or MEA receiver (MISO or MIMO) architecture can be considered in terms of being equivalent to a SISO or SIMO architecture where the input signal has dimensions not only in time but also in space (or to be more accurate, angle). In order to develop an expression for the capacity of MISO or MIMO archi- tectures where the input signal is considered to be the EM signal in the far-field of the MEA transmitter, it is necessary to first consider the nature ofthe physical channel and the effect of varying the radiation pattern and also the correlation between the radiation patterns employed. Considering a physical channel model based on scattering [4], each radiation pattern will lead to a different channel co-efficient (assume fiat fading). This can be explained as follows. Each scatterer corresponds to one multipath compo- nent (single bounce is assumed) and is represented by a complex vector denoting the amplitude and phase change affected on the signal. Adding the coefficients 233 vectorrally gives the overall flat-fading channel response. Varying the radiation pattern at the transmitter to a significant degree, varies the relative strength of each multipath component and may also vary the phase of the original signal. Thus summing the multipath coefficients will give a different channel response which is i.i.d. with respect to the former channel response. The correlation of the radiation patterns employed needs to be considered since the entropy of each pattern depends on how much it varies with respect to the other patterns employed. It is intuitive that when radiation patterns are correlated the ability to discern which symbol vector I (as described in (5)) was transmitted is impaired for any given SNR since the radialion patterns arc sim- ilar. This is equivalent to saying that the information conveyed by a particular radiation pattern is reduced since the probability of receiving this pattern or one which is very similar is higher than that of receiving one of the other radiation pat- terns. In particular considering the conditional entropy H(RIZ), of the radiation pattern given a particular vector (Zx) of relative input currents for a fixed array geometry, if there exists a vector Zy which produces a highly correlated radiation pattern, then the value for the conditional entropy will be less compared to the case that there is no vector Zy which generates a correlated radiation pattern. As given in [IJ the capacity of a SISO noisy channel in bps/Llz is: C = max[H(y) - Hx(y)J (11) maximising over all possible sources where x is the input to the channel, y is the output of the channel and Hx(Y) represents the equivocation or otherwise the entropy of the noise. Equation (ll) can also be written in terms of the mutual information between input and output [5J: C = max[I(x; y)J (12) Taking the information source to be the far-field EM signal, the channel response is likely to be different depending on the radiation pattern used, as was discussed above. The entropy of each symbol also depends on which radiation pattern was used given possible correlation to other radiation patterns. As a consequence, in order to evaluate the capacity it is useful to consider a die- tossing paradigm where there are N equally likely outcomes corresponding to the N radiation patterns used. By conditioning both of the entropy terms in (Ll ) 234 and forming an average over all possible outcomes the expression for the MISO channel capacity becomes: 1 N C = N 'L:lH(vWhpattern) - H(noiselithpattern)J (13) i=1 Asswning that the channel output is equal to the channel input plus additive white gaussian noise it is possible to substitute (9) into the above expression to get: 1 N C = N ~[H(AFlithpattern) - H(noiseW"pattern)J (14) 1 N = N 'L:lH(JIW"pattern) + H(RI(Il, ithpattern)) - H(noiselithpattern)J (15) i=l 1 N = H(JI) + N ~[H(RI(Ir,ithpattern)) - H(noiselithpattern)J (16) Since the entropy of the reference current signal is unchanged over all conditions (i.e. radiation patterns) it is possible to exclude it from the averaging operation, as given in (16). CONCLUSION This paper has presented a novel analysis of the entropy and capacity of a multiple input communications system. It has considered multiple element antennas as a single information source, and has shown that it is possible to characterise the entropy and capacity of a given MEA by the far-field radiation patterns it produces. More specifically, the entropy of a MEA EM source at the far field is equal to the sum of the entropy of the reference signal and the aer- ial entropy of the array. This approach helps to answer questions regarding the implementation of DBF, MIMO and transmit diversity systems. Moreover, the presented analysis is expected to help increase the spectral efficiency of wireless cornmunications using only one RF front end and signal chain. Since the imple- mentation of DBF systems using only one RF front end has already been achieved with the introduetion of ESPAR antennas [6][7J, such a system could be used to alter its radiation pattern on each symbol period, thus adding an aerial entropy component to the total entropy of its inforrnation source. By carefully choosing 235 the radiation patterns that are produced, the presented analysis proves that the total entropy of the MEA ESPAR antenna source could be maximized and the capacity limits of the SISO communication system can be surpassed. However, much work can still be done to further hone the analysis that has been presented, and further experiments need to be performed to validate the results proposed. REFERENCES [IJ C. K Shannon. "A Mathemaiical Theory of Commuriicatioii", The Bell Sys- tem Technical .Journal, Vol. 27, pp. 379~423, G23~656, .July, October, 1948 & M . .J. Gans, "On Limits of Wireless Communication in [2] G . .J. Foschini a Fading Environment when Using Multiple Antennas", Wireless Personal Communications, Vol. 6, pp. 311~335, 1998 [3] C. A. Balanis, "Antenna Theory: Analysis and Design", Wiley, 2nd Edition, 1997 [4] J. Fuhl, A. F. Molisch and E. Bonek, "Unified channel model for mobile mdio systems with mart antennas", Proc. Ins. Elect. Eng. - Radar Sonar Navigation, vol. 145, pp. 32-4, Feb. 1998 [5] T. M. Cover and J. A. Thomas, "Elements of Information Theory", Wiley, 1991 [6] T. Ohira and K. Gyoda, "Electronicollsj Sieerable Passive A'I'Iuy Radiator An- tennas for Low-Cost Analog Adaptive Beomforminq", IEEE Int. Conf. Phased Array Syst. & Tech., pp. 101-104, Dana Point, May 2000 [7] M. J. Carras, A. Kalis and A. G. Constantinides, "Improving the Frequency Characteristics of the Electronically Steerable Passiue Array Radiator An- . ienna", 1st Intl. Symp. on Wireless Communication Systems, ISWCS'04, Mauritius, Sept. 2004 236 SIGNAL CONSTELLATIONS FOR MULTILEVEL CODED MODULATION WITH SPARSE GRAPH CODES Harm S. Cronie Signals and Systems Group Department of Electrical Engineering Mathernaties and Computer Science (EEMCS) University of Twente, Enschede, The Netherlands e-mail: h.s.cronie@utwente.nl A method to combine error-correction coding and spectral efficient modula- tion for transmission over channels with Gaussian noise is presented. The method of modulation leads to a signal constellatiori in which the constella- tion symbols have a nonuniform distribution. This gives a so-called shape gain which can be as high as -t (1.5 dB). A sparse graph code is constructed which is based on a LDPC code and includes the method of modulation. An efficient decoding algorithm can be derived for this sparse graph code. Sim- ulation results show that the performance of the code 'is quite good compared to other coded modulation schemes proposed in liieraiure. INTRODUCTION In this paper we consider the transmission of information over Gaussian noise channels. Conventional modulation methods use signal constellations in which each constellation point is selected with equal probability. This approach max- imizes the supported bitrate of the constellation, but does not take the energy cost of constellation points into account. If constellation points with small en- ergy are chosen more often than constellation points with large energy, the loss in supported bitrate can be compensated and even gains can be realized. This gain is called a shape gain which can be as high as 1.5 dB [1]. Modulation can be combined with forward error-control coding to achieve a near capacity performance. Several coded modulation schemes are proposed in literature, of which examples are trellis-coded modulation [2], bit-interleaved coded modulation (BICM) [3], BICM with iterative detection [4] and multi-level coding [5]. There are methods to obtain shaping gains with some of these meth- ods, but the required computational complexity for decoding is often high. 237 We investigate the use of signal constellations in which the constellation points have a nonuniform distribution. These constellations are easily generated and can be incorporated into a powerfull sparse graph code for which e cient decoding algorithms can be derived. The outline of the paper is as follows. First we de ne the constellation pa- rameters which are required throughout the paper. Second we describe a method for nonuniform signaling and show how to combine it with an error-correcting code. Simulation results are presented and the paper ends with conclusions. DEFINITIONS In this section we describe several parameters related to general signal con- stellations. Most of these parameters are de ned precisely in [1] and [6]. Let n be a signal constellation and let 1nl denote its size. Tbe probability that the transmitter selects a constellation point rEn is denoted by f(r). We limit our- selves to one dimensional (ID) and two dimensional (2D) signal constellations. Furthermore, the 2D signal constellations we describe, can be generated by a Cartesian product of ID signal constellations. Bit Rate and Transmitter Power The transmitter can be viewed as a discrete mernoryless source whose output symbols are drawn from n according to f(r). The bitrate supported by a con- stellation is given by the entropy of the transmitter output symbols: (3 = - L f(r) log2 [f(r)] bitjsyrnbol (1) rE The average amount of energy expended per channel use is de ned as: E= L f(r)llrW (2) rE Reliability and Gain To illustrate the potential advantage of non uniform signal constellations, we in- vestigate the asymptotic advantage in signal to noise ratio for low symbol error 238 rates. In 16] it is shown that for a certain 2D signal constellation the asymptotic gain with respect to a 2D QAM constellation is given by: (3) where d;"in is the minimum squared Euclidian distance between constellation points. NONUNIFORM SIGNAL CONSTELLATIONS A nonuniform signal coustellation can be generated as follows. Let X; denote a discrete uniform distributed random variable with values -1 and 1. A second random variable Zd is de neel as follows: d Zd=LXi. (4) i=l The set of possible outcomes of Zd is denoted by Xd and Zd has a binomial distribution which is given by: (5) To generate a 2D signal constellation for use on a 2D Gaussian channel, a symbol for each dimension can be generated independently. Figure 1 shows two 2D constellations for d = 2 and d = 4. Each constellation point is labeleel with its probability of occurrence. I -I 3 -I 8 - I - 256 I 64 - 256 1 ï6 64 128 -..!.. -1. 3 -I 64 ï6 - 1 32 ï6 64 1 1 I 3 8 4" 8 128 32 64 32 128 -..!.. 3 -..!.. 64 - ï6 1 32 - ï6 1 64 1 -I 3 -I - 256 I - 1 8 64 128 64 256 Figure 1: The signal constellations for d = 2 and d = 4. With equation 5 the supported bitrate of the constellations can be expressed 239 as: d d ,Bd=-:LTd ~ 10gdTd ~ 1 =d-Td:L ~ log, ~, (6) ;=0 i=O where the right handside of this equation corresponds to the loss in supported bitrate compared to an uniform distribution on the constellation symbols. The average amount of energy expended per channel can be computed as: d s, =:L ~ Td(2i - d)2 = d (7) ;.=0 Figure 2 gives a table with numerical values for the parameters described in this section for several values of d. Note that ,Bd and Ed are given for ID constellations and Gd for the corresponding 2D constellations. Figure 2: Numerical values of the constellation parameters for several d. d ,Bd Ed Gd [dB] d ,Bd Ed Gd [dB] 1 1.00 1.00 0.00 5 2.20 5.00 1.26 2 1.50 2.00 0.67 6 2.33 6.00 1.32 3 1.81 3.00 0.99 7 2.45 7.00 1.36 4 2.03.. 4.00 1.17 8 2.54 8.00 1.39 Next we show that the proposed constellations can achieve the ultimate shape gain of -t- With an approximation of the entropy of the binomial distribution [7], equation 6 can be written as: (8) and the gain is given by: from which follows that: (10) Finally, we illustrate the potential advantage of these constellations when used on the additive white gaussian noise (AWGN) channel. Let X and Y denote the input and output of the lD-AWGN channel, respectively. We can compute 240 3.5 &.5 . j ~ .s 2 1.5 Figure 3: The capacity of several signal constellations. the capacity of the channel with an input distribution that is given by equation 5. The mutual information between the channel input X and channel output Y is: (CO f(ylx = 7) Lt X; Y) = L [: f(ylx = Z)P(Zd = z) log t() - dy, (ll) zEX,,' -r oo • Y where 1 _(y-o/ f(ylx = z)= --e 2~., (12) j21 and fey) = L f(ylx = Z)P(Zd = z). (13) zE..1:'rI. We have evaluated this integral numerically for several values of d. The results are shown in gure 3 together with capacity curves for conventional signal con- stellations. From the gure it is clear that the capacity curves of the proposed signal constellations follow the AWGN curve much longer. SPARSE GRAPH CODES The signal constellations described in the previous section are generated by a summation of d uniform LLd. distributed random variables. To construct an error-correcting code, we take a low-density parity-check (LDPC) code as a starting point. Let H denote the parity-check matrix of a LDPC code C and x E C one of its codewords. A symbol Zi from the proposed signal constellations 241 is generated as follows. d bits of a codeword x are selected at random and mapped to the real numbers by a BPSK mapping (0 __. 1,1 __.-1). Next, the result is summed: d Zi = L 0, if 111/;-'l/)Xsll :::: EII1/;II· The effect of the constraints is modelled [1] by the operator PTQWPT; the dimension of the Hilbert space in which PTQw PT1/; lie is reduced to a finite value, n.m· Denoting the elements of a basis of that subspace by 1/;i we have 1/; = L Ci1/;i, Ci = (1/;1'1/);1, (2) i=l 2X = (x,y,z,jct),r = (x,y,z) are the spatial components, c is the speed of light, and j = ;=T. Furthermore, 'Ij; is a two-dimensional vector, as corresponds to the two different polarization states of the photon. 3Momentnm p and energy E are related to the wavevector k and the frequency v as p = ~k and IJ as E = hu respectively. ç = h-1(Px,Py,Pz,jE/c), h Planok's constant. 4We thus recover the expected Fonrier relationship ,j;(k, IJ) = I 'Ij;(r, t)e-.i(27fvl.-k'rl drdt. 254 where c; are the coefficients in the expansion, calculated from the inner product in the Hilbert space. By definition, the functions 'l/Ji are orthonormal in space and in time, and thus generalize the concept of bandwidth to encompass the spatial dimensions. We indistinctly refer to nm as the number of degrees of freedom, or as tbe dimension of the signal space. THE UNCERTAINTY PRINCIPLE A heuristic counting rule used by physicists is to give the number of degrees of freedom as the volume in phase space (x,ç). It can be traced back at least to Bose's derivation in 1925 of the blackbody radiation formula in terms of particles. A similar heuristic application can be found in Cabor [3], who was the first to apply Heisenberg's uncertainty principle to problems in signal theory. Efforts to set the results in a more formal framework fructified in the 1980's, when Donoho and Stark [7], and Folland and Sitaram [8], proved Theorem 1 Let AT and nw have finite measure. If there is a nonzero f E L 2 such that f is e-concentraied on T and i is o-concenirated on W, then (1 - E - 6) ::; 1FT Qw I, (3) where IPT Qwl is the norm, of PT Qw as an operator on L2 Furthermore, (1 - E - 6)2::; ITIIWI. (4) We now apply this theorem to wave packets 'l/Ji, concentrated (E = 6 = 0) in small intervals dx, dÇ around a central point (xo, ço); the wave packet is best understood as an essentially different position that a photon can occupy. Then Idxlldçl ~ (1 - E - 0)2 = 1, (5) a formula which supports the heuristic rule of giving the number of dimensions by the number of boxes in the joint space (x, ç) of volume 1, i. e., B = {(x,ç) Ildxl = [x - xol <,6., Idçl = lç - çol < ,6.-1}. (6) The boxes B tile the phase space (x, ç), each of them contributing with one orthogonal basis function 'l/Ji., and simultaneously with a small element dxdç, nm:::: LBi = ii t XATXOW dxdÇ, (7) where we have identified the sum of boxes Bi as the total volume in phase space. 255 Remark 1 There are 4 variables at dx and dE;., but they are coupled: special relativityconsiderations fix dx2 + dy2 + dz2 = e2dt2, and similarly for the energy- momentum, dE2 = e2 dp 2 = c2 (dp; + dp~ + dp;). We assume that radiation prop- 1 1 agates along direction z, and we choose the 3 remaining uariables to be (x, y, t) and (Px,py,pz); we also use that E = elp]. The element dxdy is then an in- finitesimal element of surface do orthogonal to the main direction of propagation. Remark 2 A possible variation of the set of allowed directions/frequencies along the position/time can be neatly accounted for by making 'use o] [he dependence of dx and dE, on Xo = (ro, to)· Remark 3 In case any of the 3 availables dimensions, say i, is not used for communication, the corresponding pair of uariables Xi and Ç,i is set to dXidÇi = 1. APPLICATION: I-DIMENSIONAL LINKS For one-dimensional, or point-to-point, links the last remark suggests that integration over rand k is not required (that is, it gives one cell), and (8) as it should. The extra factor 2 in the 211fT-theorem comes from the two real components implicit in the complex vector. APPLICATION: 3-DIMENSIONAL LINKS For 3-dimensional transmissions, we use Remark 1 to consider only a fiat surface orthogonal to the direction of propagation and write dx = do di, We also assume no time variations. The use of spherical coordinates for E;. yields c(ro)dE;. = (C(~o)) 2 dIJ dO = O(ro) (C(~o)) 2 du, (9) where ro runs through the transmitter surface, in which case the local solid angle Q(ro) and speed of light e(ro) are function of the position. Eq. (7) becomes (10) (11) (12) 256 In the last equality we have assumed that the bandwidth W is relatively small compared to the frequencies Vmax and Vmin. We also denote the central frequency by Vo and the corresponding wavelength by Ào = fa. Note that the spatial and temporal modes are neatly separated, and that the "total" bandwidth thus consists of a temporal and a spatial component. If there are no variations in the surface we recover Poon's formulas [5] (13) APPLICATIONS: OPTICAL FIBRE An optical fibre has circular symmetry, which allows us to write the integral Eq. (12) in polar coordinates. Assuming narrowband communications, nfibre m = 27rWT1/2 0 Jo ra o,(p) (_1_) C(p) p dp,2 (14) where Q, is the radius of the fibre core. The solid angle is o,(p) = 27r(1 - cos e(p)), where e(p) is the half-angle of the cone defined by the numerical aperture of the fibre. The largest angle e for which rays propagate is given by Snell's law [2] cos e = n:rp), where nel is the index at the fibre cladding. c(p) = nc(p)' where c is the speed of light in vacuum and nc(p) is the refractive index. Therefore nfibre m = 27rWTI/2 0 Jo r o,(p) (_1_) c(p) elp, 2P (15) 2 = 47r WT Vö? C2 la 0 2 nc(p) p ( nel 1 - nc(p) ) elp. (16) Let us now assume a power-law index profile with parameter Ct, that is, nc(p) = no VI - 2.6.(;;)'" ~ no (1 - .6.(;;)"'); we use bere the weakly guiding approxima- tion, that is .6. « 1, and keep only tbe terms of order.6.. Replacing this in Eq. (16), and after some algebra we obtain 2 2 nfibre = 47r T¥T n2.6. a _Ct_ (17) m 0 À6 2 Ct + 2' SNote that photon polarization doubles the number of degrees of freedom and the caveat that their analysis gives the number of real numbers required to represent the signal, giving an extra factor of 2. 257 The number of spatial modes coincides with the value of the electromagnetic analysis [2], providing an alternative derivation and interpretation of the formula. Note also that the condition for single-mode guiding [2], applied to Eq. (17) gives just 1.4 modes, a very good approximation. APPLICATIONS: OPTICAL STORAGE In this case information is purely stored in and retrieved from space, and using Remark 3 we consider only the spatial modes, i. e., dud: = 1. As an example, let us take Blue Disk/TwoDOS. The wavelength in vacuum is Ào = 405 urn, the numerical aperture is 0.85, and the disk diameter is 12 cm. Denoting by ne the refractive index in the region above the disk, we have (18) Here the numerical aperture is related to the half-angle () of the acceptance cone by NA = sin 2(), and !1 = 27f(1- cos ()) ~ 0.8 sterad. Table 1 compares the results for some existing systems with their theoreticallimits. The discrepancies between the reported values and the predictions of the formula are likely to be related to the exact value of the refractive index. It should be noted that the analysis points at the tuning of the refractive index as a possible way of increasing the capacity of such a storage medium. Storage (GB) System À (nm) NA !1 (sterad) Real Zmax CD 780 0.45 0.17 0.7 O.4n~ DVD 650 0.60 0.32 4.7 1.1n~ Blue Disk 405 0.85 0.79 25.0 6.8n~ Table 1: Number of Degrees of Freedom for Optical Storage APPLICATIONS: SATELLITE LINKS (BEAMFORMING) Let us study a single satellite on geostationary orbit, at about dsat = 36000 km from Earth. The illuminated land surface S subtends a solid angle from the satellite very closely given by 'YSd;"~, where "ï is a correction factor taking into 258 account the latitude 6 ip: ,= cos(IP + e), e = arctan 7'E(l - TEcossinlP)lP + d,;at , (19) here r'E is the radius of the Earth, about 6400 km. For simplicity, and with no real loss of precision, we ignore the variations of latitude and satellite distance along the land surface, as well as the precise shape of the landmass. This is a consequence of the large distance between the satellite and the Earth surface. For relatively narrowband systems of central wavelength Ào and, in absence of spatial variations along the surface of the satellite, the total number of inde- pendent degrees of freedom is nsatellite = Asat nWT = A,. ,S ____:i_ TV T (20) m À6 sat c2d'~t . Here c is the light speed in air. For Vo = 12 GHz, a usual frequency for satellite TV, and measuring S in millions of square kilometers km2 and Asat in square me- ters, the number of spatial channels is given by nspat = n:'!tellite /WT = 1.25Asat/S, Table 2 gives the number of spatial channels per polarization for several regions in the world and for several satellite dimensions. It can be seen that the satellite must be rather large in order to accomodate many users per region; in this line it should be remembered that areas of 3-4 m? are the largest feasible today at this frequency. For the Benelux, it is therefore impossible to simultaneously point at two positions using the same polarization and frequency. Number of Channels Region (latitude) Land Area (km") ,(lP) Asat = 1 m2 10m2 100m2 Benelux (lP = 52 ) 60,000 0.51 < 0.1 0.4 4 Europe (lP = 48 ) 2,500,000 0.57 1.8 17.9 179 USA/China (lP = 30) 10,000,000 0.82 10.2 102 1025 Table 2: Number of Simultaneous Channels per Polarization per Satellite CONCLUSIONS In this work we have estimated the dimension of the signal space, taking into account the spatial and temporal aspects in a unified manner. Removing 6If the latitude is larger than 'Pm ax = rE (rE + dsat)-l, there is no visibility of the satellite from the Earth, and 'Y = O. 259 electromagnetic considerations to a minimum allows us to cast the problem in terms of how the number of essentially different positions and directions a photon can take along the transmitting surface. This problem has been tackled with methods based on the uncertainty principle, and shows that the total bandwidth consist of both a temporal and a spatial component. We have estimated the total bandwidth of several cases, including optical transmission and storage anel satellite links. Tbese examples show that the di- mension of the signal space provides a good figure of merit for the analysis and design of communication systems. REFERENCES [1] H. J. Landau and H. O. Pollak, "Prolate spheroidal wave functions, Fourier analysis and uncertainty - Ill: The dimension of the space of essentially time- and band-limited signals," Bell Sys. Tech. J., vol. 41, pp. 1295-1336, July 1962. [2] J. Gowar, Optical Com.munication Systems, 2nd ed. Prentice Hall, June 1993. [3] D. GabOI, "Theory of communication," Jour. lEE - Part IfI, vol. 93, pp. 429~457, 1946. [4] D. S. Lebedev and L. B. Levitin, "Inforrnation transmission by electromag- netic field," ltijormaiion and Control, vol. 9, pp. 1-22, 1966. [5] A. S. Y. Poon, R. W. Brodersen, and D. N. C. Tse, "Degrees of freedom in multiple-antenna channels: A signal space approach," IEEE Trans. Inform. TheoT'y, vol. 51, 110. 2, pp. 523-536, February 2005. [6] R. P. Feynman, R. B. Leighton, and M. Sands, The Feynman Lectures on Physics. Addison- Wesley, 1965, vol. IlI: Quantum Mechanics. [7] D. D. Donoho and P. B. Stark, "Uncertainty principles and signa.! recovery," SIAM J. Appl. Math., vol. 49, no. 3, pp. 906-931, June 1989. [8] G. B. Folland and A. Sitaram, "The uncertainty principle: A mathernatical survey," J. Fourier Anal. Appl., vol. 3, no. 3, pp. 207-238, 1997. 260 EFFICIENT IMPLEMENTATION OF RECENT STREAM CIPHERS ON RECONFIGURABLE HARDWARE DEVICES Philippe Léglise, François-Xavier Standaert, Gaël Rouvroy, Jean-Jacques Quisquater UCL Crypto Group, Microelectronics laboratory, Université catholique de Louvain, Place du Levant, 3 - 1348 Louvain-Ia-Neuve, Belgium e-mails:{leglise.fstandae.rotivroy.jjq}©diee.tiel.ae.be Stream ciphers have the reputation to be very efficient when implemented in hardware, much more efficient than any block cipher. However, although plenty of papers and books claim it, few results of harduxire implementations of str·eam ciphers are available. In this paper, we provide FPGA implementation results of recent stream cipher-s in order to evaluate their actual hardsuare efficiency. In addition, we compare these results with those of standard block cipher-s (A ES, 3DES, Rijndael, Mistyl, .. .). The selected str-eam cipher-s are LILI-lI, Helix and SNOW 2.0 and the implementation platform is a Virtex-Il FPGA from Xilinx. On the basis of these results, it may be ar-gued that while present stream ciphers allow us to obtain efficient implementations, they ar-e not overwhelm- ingly more efficient than block ciphers. In qeneral, their efficiency is compara- ble. Houieuer, stream ciphers are made of aryuably low cost primitives which could provide r-eally compact designs ~f correctly combined together. INTRODUCTION Stream ciphers are an important class of symmetric encryption algorithms. They contain internal states that vary with time and generate pseudo-random key bits, the keystream. The keystream is then bitwise XORed with the message to en- crypt/decrypt. By contrast, block ciphers tend to simultaneously encrypt/decrypt blocks of bits of a message using a fixed encryption transformation. Stream ciphers are also more appropriate, and in some cases mandatory (e.g. in some telecom- munications applications), when buffering is limited or when characters must be individually processed as they are received. Because they have limited or no error propagation, stream ciphers may finally be advantageous in situations where trans- mission errors are highly probable. 261 Since 1999 and the creation of the European NESSIE project [10], stream ciphers have known a growing interest but they remain fewer and less investigated (at least from the hardware implementation point of view) than block ciphers. With regards to their usual efficiency claim: "Stream ciphers can be conceived in order- to be very efficient, more efficient than the block ciphers and this, more particularu] in hard- war-e" [9] and in spite of the possible commercial applications resulting from this efficiency, this situation seems astonishing. The goal of tills contribution is to quantify tills claim ("Is it true?"). As until now, few results of hardware implementations are available [1, 8], various types of stream ciphers will be implemented. The selected stream ciphers are LILI-II [3], Helix [6] and SNOW 2.0 [4] and the implementation platform is a Virtex-II FPGA. These designs are based on different principles and have been recently proposed (after 2002). Then, these implementation results will be compared with those of standard block ciphers. To this end, we have defined the hardware efficiency as the ratio throughput/area (the area corresponding to the number of slices used on an FPGA). HARDWARE DESCRIPTION All our implementations were carried out on a Xilinx Virtex XC2v6000ff1l52-6 FPGA [l3] which contains 33792 slices and 144 RAM blocks, which means 67584 LUTs and 67584 flip-flops. In the next sections, we compare the number of slices and RAM blocks of the different implementations. We also evaluated the delays and frequencies after place and route thanks to our implementation tool (Xilinx ISE-6). LILI-II Most of the time, modern stream ciphers are built with only one LFSR as basic element. LILI-II [3] is based on two bitwise LFSRs. The way in which non-linearity is introduced into LILI-II follows two principles. First, a completely irregular syn- chronization of the second LFSR (127-bit long) is used. It is at least synchronized once and maximum 4 times between the consecutive production of two keystream bits. This LFSR is controlled by the first LFSR (128-bit long) (see Figure 1). Sec- ond, a non-linear filter is used, which is reduced to a 12: 1 truth table. The presence of these two LFSRs combined with a relatively simple introduetion of non-linearity 262 makes of LILI-II an "intuitive" stream cipher. For these reasons, it was logically retained for an hardware implementation. LILI-II uses a 128-bit key and a 128-bit IV (Initialization Vector). For further details about the algorithm, see [3]. . L ~ • . : L ; Figure 1: Overall view of LILT-I! HELIX Helix [6] was retained for a hardware implementation because it is basically different from the traditional stream ciphers: no LFSR was used. All operations in Helix are on 32-bit words. These operations are addition modulo 232, XOR and left rotation by fixed numbers of bits. These operations are efficient in hardware. Helix combines the stream cipher and MAC (Message Authentication Code) functionalities and its design philosophy can be summarized as "many simple rounds". The Helix state is composed of 5 words (Zo to Z4) of 32 bits each. In figure 2, half a block of Helix is Figure 2: Half block of Helix illustrated. Helix uses a 256-bit key and a 128-bit IV. Its key scheduling is complex and cannot be explained wi thin this paper. For further details, see [6]. 263 SNOW 2.0 SNOW 2.0 [4] is the evolution of SNOW 1.0 [5] and has been designed to improve performances and security. SNOW 2.0 (see Figure 3) is based on only one LFSR (contrary to LILI-II which uses two of them). It has the characteristic to work on 32-bit words rather than on a single bit one. It is thus interesting to verify whether that leads to an efficient implementation in hardware. This LFSR is 512 bits long. The non-linearity is provided by an FSM (Finite State Machine) based on the Rijndael S-Box. SNOW 2.0 uses a 128-bit or a 256-bit key and a 128-bit IV. For further details about the LFSR, the FSM and the key scheduling, see [4]. Figure 3: Design of SNOW 2.0 DESIGN ISSUES Of the two styles of LFSRs, the usual style is called a Fibonacci LFSR. To shift a Fibonacci LFSR, you simply copy each bit to its neighbor on the right. The original rightmost bit is considered as the output. The bit that is shifted in at the left is the parity of some specific subset of the bits (the taps) of the register. The other style of LFSR is called a Calcis LFSR, and has the same properties as the Fibonacci LFSR, but is shifted differently. To shift a Calois LFSR, each bit is copied to its neighbor on the right, except for the taps, for which the rightmost bit of the register is XORed in before the copy is done. The bit that is shifted in at the left is the orig- inal rightmost bit, which is also considered the output [7]. We now briefly describe our implementations of 1111, Helix and SNOW 2.0. 264 For LILI-II, both styles of LSFRs have been implernented. For the regularly clocked LFSR, the Galais LFSR needs 59 slices for a throughput of 384.6 Mbita/sec com- pared to 44 slices and a throughput of 273.6 Mbita/sec for the Fibonacci LFSR. Their efficiency ratios are 6.52 and 6.22 respectively. So, the Galais is the more efficient. The advantage of a Galais LFSR over a Fibonacci LFSR when being im- plemented in hardware is that a Galais LFSR usually has an even lower gate delay than a Fibonacci LFSR, resulting in a potentially lower clock cycle time. For the second LFSR of LILI-II, during the production of two consecutive keystream bits, 1 to 4 shifts have to hp, performed. To this end, in only one clock cycle, each one of its 127 registers has 4 possible different inputs. They correspond to the value that this same register should have if this LFSR was clocked 1, 2, 3, or 4 times. This value is selected by the output of the first LFSR. The resulting implementation uses 127 flip-flops and 127 multiplexers (4:1). In this case, the Galais LFSR needs 385 slices for a throughput of 238.1 Mbits/sec compared to 245 slices and a throughput of 203.5 Mbita/sec for the Fibonacci LFSR. Their efficiency ratios are 0.6 and 0.83 respectively. The Fibonacci LFSR is now more efficient due to the fact that for the generation of this style of LFSRs, only four equations have to be stored for the left- most taps whereas the Galais LFSR needs to store 4 equations per tap. The truth table has been achieved in a Virtex RAM block. The key scheduling requires 963 cycles of latency and uses a large memory for storing its intermediate states. The hardware implementation of one Helix block is straightforward. It requires 329 slices for 2009 Mbita/sec which gives a ratio of 6.1. On the other hand, although efficient in software, the generation of the key words is cumbersome to deal with in hardware. For this reason, they are sometimes assumed to be precomputed, as in [8]. As a consequence, we provide the results of both a single block of Helix and the complete cipher with embedded generation of the key words. Helix then requires a latency of 26 cycles for encrypting/decrypting the first 32 bits of the message. Finally, two versions of SNOW 2.0 have been implemented: one using the Virtex RAM blocks, the other not. The multiplication of a tap of the LFSR by a or a-I can be done with the help of one dual-port RAM block and this is performed as explained in the original paper [4]. The only difference is that RAM blocks of the 265 Virtex are synchronous. So we have to take the taps one state before in order to get the good values at the appropriate moment (see Figure 4). The implementation of the whole LFSR requires 488 slices to reach 7,990 Mbitsjsec. For the FSM, the synchronization problem is resolved as shown in Figure 4 where EBis a XOR, EBan addition modulo 232, RI and R2 two 32-bit registers. The FSM requires 90 slices mld two RAM blocks for a throughput of 5,970 Mbitsjsec. s .. ,s Figure 4: Multiplication by a or a-I and FSM implemenation The version of SNOW 2.0 implemented without RAM blocks stores the tables in the Virtex look-up tables which are used as ROMs. This version of the LFSR needs 795 slices for a throughput of 13,781 Mbitsjsec. The FSM has been implernented as shown on the Figure 3. It requires 2,420 slices for a throughput of 5,351 Mbitsjsec. CONCLUSIONS In this paper, four representative stream ciphers have been implemented. Table 1 summarizes our results and compares them with certain recent block ciphers on Xil- inx FPGAs. Remark that strict comparisons are made difficult since these designs relate to different contexts (e.g. encryptionjdecryption designs, loop architectures or unrolled architectures for block ciphers). Looking at these results, the most efficient of all the ciphers is A5jl which is also one of the weakest. With regard to other stream ciphers, Helix appears to be efficient as well, but requires some software precompu- tations, which may not be a practical solution for any context where the complete cipher has to be embedded on a single platform, LILI-II is not competitive with modern block ciphers and its efficiency is mainly lim.ited by its expensive synchro- nization process, Finally, SNOW 2,0 allows the best implementation opportunities 266 Algorithm Nbr. of Nbr. of Throughput Efficiency slices RAMs (Mbitsysec) Mbits/ (sec.slices) STREAM CIPHERS - Virtex-Il A5/1 18J 32 0 188.3 5.88 EO 18J 895 0 189 0.21 LILI-II 866 1 243 0.28 Helix (pree. key words) 18J 418 0 1,024 2.45 Helix block 329 0 2,009 6.1 Helix complete 3,367 0 1,707 0.51 RC4 18J 140 3 120.8 0.86 SNOW 1.0 lIJ 752 3 2,128 2.83 SNOW 2.0 1,015 3 5,659 5.57 SNOW 2.0 2,420 0 5,351 2.21 BLOCK CIPHERS - Virtex Twnfish 112J 21,000 0 15,200 0.72 Serpent. 112J 19,700 0 16,800 0.85 BLOCK CIPHERS - Virtex-E Camelia [12J 9,692 0 6,750 0.7 Khazad [12J 7,175 0 7,872 LlD Misty1 112J fi,322 0 10,176 1.61 Rijndael 112J 2,524 0 2,085 Ll7 BLOCK CIPHERS - Virtex-II RC(j [12J 7,456 0 4,800 0.64 IDEA 112J 9,793 0 6,800 0.69 SHACAL-1 [12J 13,729 0 17,021 1.24 3DES 112J 604 0 917 1.51 ICEBERG [12J 4,946 0 17,:344 3.51 BLOCK CIPHER.S - Virtex-Il + RAMBs Rijnduel [12J 14(j 3 ~~58 2·45 ICEBERG [12J 3,132 64 13.440 4·29 AES [llJ 146 3 358 2·45 Table 1: Performances of block and stream ciphers on Xilinx FPGAs 267 and offers better efficiency than most recent block ciphers (excepte ICEBERG [12] that was specifically designed for FPGA implementations) As SNOW was originally software-oriented, we may expect the future design of an even better stream cipher dedicated to hardware. Remark that most stream ciphers have limited area. require- ments compared to block ciphers. Therefore, the main difference between block and stream ciphers may not be in their respective effectiveness, but rather in their ability to provide compact solutions for constraint contexts. REFERENCES [IJ K. Alexander, R.. Karri, 1. Minkin , K. wo, P. Mishra, X. Li, Tourards 10-100 Glrp« Cr'yptogra,phic Archiiectures, in CATT/WICAT Annual Research Review, available from ht.tp: I /wtcat.polv.edu/tech.reportztr 102-00S. pdf, 200:1. [2J L. Batina, J. Lano, N. Mentens, B. Preneelv I. Verbauwhede, S. B. Órs, Enerqi). Perjornuiuce. Area uersus Securiu) Trade-offs fOT Stream Ciphers, in ECRYPT Workshop, SASC - TIl(' St,ü,<, of the Art. of Stream Ciphers, pp. 302-310, 2004. [3J A. Clark, E. Dawson. J.Fuller. ,J.Golie, H-.J. Lee, W. MiIlan, S-.J.Mool1, L. Simpson, The LILI-II J( eustreom. Generator, ACISP'2002, 2002. [4J P. Ekdahl, T. Johansson. A 'new version. at the stream, cipher SNOW, available from http://www.it.lth.se/eryptology Isnow I, 2002. [5J P. Ekdahl, T. Johansson, SNOW - 0. new streani cipher, available from htt.p) Iwww.it.lt.h.se/cryptology Isnow I, 2000. [GJ N. F",rgllson, D. Whiting, B. Schneier, J. Kelsey, S. Lueks .. T. Kohno, Helix: Fast, EncTyption and Authenticoiion in 0. Sinqle Cruptoqroplii« Primitiue, in FSE'2003, 200:3. [7J 1. Goldberg, D. Wagner. Architeciural Considerciions for CT7jpt.o,nalytic Harduiore; CS2S2 tech- nical report. Berkeley, May 199G. [8J M. D. Galanis. P. Kitsos, G. Kostopoulos, O. Koufopavlou, Comparison of the Performance of Stream Cipiiers for Wirele", Communicaiions, proceedings of CCCT'04, Austin. Texas, USA, August 14-17,2004. 19J A. Menezes, P. van Oorschot. S. Vanstone, Harulbook of Applied Cryptogra.phy, CR.C Press, 199G. llOJ NESSIE: New Europeun. Schemes .fOT' Siqnatures. Integrity, and EncTyption, available from ht,tp:llwww.crypt.onessie.org, 2004. [l l] G. Rouvroy, Secure osul Heconfiçurable Hardumre Decoder for' Diqit.al Cinema Imuqes, PhD Thesis, UCL, June 2004. [12J F.-X. Standaert , Secure and efficient, use of reconfiqurable hordinare devices in symmetric crsjp- tog1'l1phy, PhD Thesis, UCL, .Iune 2004. 113J Xilinx , Viriex-Ll Data. sheets, available from ht.tp:1 I www.xilinx.com. 2003. 268 CONDENSED WHITE-BOX IMPLEMENTATIONS Brecht Wyseur", Bart Preneel ESAT, Katholieke Universiteit Leuven Kasteelpark Arenberg 10 B-3001 Heverlee brecht.wyseur©esat.kuleuven.ac.be, bart.preneel©esat.kuleuven.ac.be Due to the success of new communication techniques like the Internet, we are mpidly moving towards a more distributed world. While these new tech- niques, which made it possible to create a broad range of new applications such as e-bankinq and streaming video, give more junctionalities to users, malicious users have more abilities as well. Recently, a new threat model, called the White-Box Attack Context, has been proposed by Chow et al., describing these abilities and goals of the malicious user. In this paper we describe the techniques by Chow et al., called White-Box Cryptography, which intends to counter these types of attacks, and some improvements which we have implemented for a White-Box DES implementation. INTRODUCTION During the past 15 years, there has been an enormous evolution in commu- nication and information technology. The Internet is the best known example in a whole range of new applications in a more open and distributed digital world. The distribution of software leads to a new threat, where software containing crucial information such as secret keys, digital signature capabilities, banking inforrnation, etc., is executed on untrusted machines. As a consequence, several new types of attacks are possible because an attacker may have full privileges on the execution environment. Control mecha.nisms are not always adequate because an attacker can be the owner of an untrusted machine. It will therefore be required to hide the internals of a function executed on such an untrusted machine [5] * Research funded by the Institutefor the Promotion of Innovation through Science and Tech- nology in Flanders (IWT-Vlaanderen) 269 The white-box attack context, first introduced by Chow et al. [2], describes this new threat model, where an adversary has full control of the software exe- cution environment. This means that a software provider has to assume that an adversary is able to run, stop and restart the software at any point, and reverse engineer, monitor, and manipulate all components of the software. In this con- text, the attacker's goal is to extract embedded key infonnation in order to use it in an equivalent standard implementation, e.g., to circumvent an authentication mechanism embedded into the original software. Conventional cryptographic algorithms are not protected against white-box attacks; they are thus not appropriate for ul:;eon malicious hosts. The security of even the best cryptographic algorithms such as AES, collapses when subject to this type of attacks. In a white-box attack context, malicious software or users can easily search through memory in order to allocate keys during execution; by measuring randomness characteristics (entropy) one can distinguish keys from other data [6]. The problem we seek to address is to find a software-only solution. There has already been quite some research for hardware solutions, for example with cryptographic (co-)processors, which can provide adequate security. But the dis- advantage of hardware solutions is their high installation cost. Moreover, the advantages of a software-only solution is the easy upgrades and the inexpensive (re- )production. The organisation of this paper is as follows: in Section 2 we describe the main idea of white-box cryptography and the proposed techniques, in order to formu- late some improvements in Section 3. We have implemented a white-box DES implementation and give some comments and results in Section 4. A conclusion is formulated in Section 5. WHITE-BOX CRYPTOGRAPHY White-box cryptography is a collection of techniques to counter extraction of secret key information by an attacker in a white-box attack context. As mentioned above, one of the main reasons is to prevent the use of extracted key information in a standard implementation, in order to circumvent for example an authentication code embedded into the software. Therefore, a first white-box techniques is the addition of external input and output encodings. This extends the cryptographic border out of the cryptographic algorithm itself, making it harder for an attacker to reverse engineer the code and to isolate any embedded critical code. 270 Consider, for example, an encryption function Ek with secret key k. By adding an extra input and output encoding (f and 9, respectively) we obtain a function El. = 90 Ek 0 f that is much stronger than the original function Ek. An attacker will always need to analyse Ek) then identify the input and output encoding before he can attempt to break Ek. Our goal will be to make it hard to isolate those encodings f and 9, and hide the internals by transforming the function. Ideally, the internal transformations would be so difficult to analyse that an adversary would have to fal! back to plaintext-ciphertext attacks, as if the white-box implementation was a black box. The approach as proposed by Chow et al. [2,3] consists of reducing the cryp- tographic software to smal! key instantiated lookup tables and then delinearizing and re-indexing these tables by injecting random data. Keys are embedded in the implementation by the use of partial evaluation. The injection of random data occurs through adding extra random input and output encodings to each lookup table, in such a way that for two consecutive lookup tables, the corresponding output and input encoding are each other's inverse (implying that these encodings are bijective). These techniques are applicable to al! cryptographic primitives constructed with permutations, S-boxes and XOR functions, e.g., DES, AES, Blowfish, etc. This limitation is acceptable for the time being, because this group represents the most important cryptographic primitives. The encapsulation of a small lookup table with internal bijections results in provable local security (considering the lookup tables it selves are bijective as well). With local security, we indicate that no information can be retrieved from the encoded lookup table when an adversary observes a single lookup table, because given an encoded lookup table, every look up table of equal dimensions is a possible candidate because there will always exist a pair of external encodings which results in the given encoded lookup table. Whether partialor global white- box security is provable is subject of ongoing research. In the next section we focus on the DES cipher, for which we made an im- proved white-box DES implementation. The methods and results can be applied easy to other similar block ciphers. 271 IMPROVEMENTS As a basis for our white-box DES implementation, we started with the irn- plementation of Link et al. [4]. Their process of implementing DES results in a 2.3 Mb implementation, which consists of a series of 8 x 4 lockup tables. As outlined by Chow al. [3], keys are embedded into 8 x 8 T-boxes, while the lin- ear permutations and XOR functions are represented as affine transformations (ATs). In a process of matrix decomposition, these ATs are transformed into a network of 8 x 4 lookup tables and merged together while prepending the 8 x R T-boxes, resulting in a network of 8 x 4 lookup tables. By injecting randomness with internal encodings, the network is transformed into an equivalent network from which it should not be easy to recover the original ATs and T-boxes. It is clear that the network of decomposed affine transformations consumes the most space in the implementation. For DES, the whole implementation even consists of this network, due to the merging of the non-linear T-boxes. Thus, for further improvements and security notions, we will focus on this matrix decorn- position step. As mentioned in [3, 4], the matrix representing the affine transformations is a sparse matrix. The matrix, which is of dimension 96 x 96, contains only 156 non-zero bits, which represents 1.7 procent of the total number of bits. After decomposition into 8 x 4 matrices, this will result in 188 zero rank matrices, and only 5 full rank matrices. The remaining 95 matrices are not of full rank; they are called lossy. Figure 1 shows that the lookup tables of rank zero cause a reduction in the implementation. Consider A an 8 x 4 lookup table, with input encoding gl1192, and output encoding .h. The construction states that I, and gi are bijective and each other's inverse. In the construction, the 4-bit output of i5 is forwarded as input of the encoding g5' Assume that in this small example A is a matrix of rank zero. Then, the input bits of 95 will always have the value ii1(0). It is obvious that the presence of the lockup tabl€ i\ is not required any more; it can thus be excluded from the implementation. Moreover, all look up tables that have A as its only child, i.e., the output bits of which are forwarded only to A, can be excluded from the implementation as well. The state of the output bits of C will thus depend on the 4-bit input. to 96 and the fixed value i5-l(0), which will be zero because g5 is its inverse. Thus we can define a new 4 x 4100kup table C'(x) = C(O, x) or C'(:1:) = C(x, 0), dependent on 272 C' Figure 1: Sketch of a part of the decomposed affine transformation representation. Each of the four blocks represents an 8 x 4 encoded look up table, where A is of rank zero. Because the hashed part will not influence final output, the representation can be reduced to the left part of the sketch. the side of fixed input bits. At the end, we can condense this further by merging Cf into E, resulting in a significant reduction of the implementation size. While this improvement solves the problem of the zero ranked matrices, and the matrices of full rank are believed to provide enough security, we have to pay attention to the matrices that do not have full rank. Link et al. [4] speculates it should be possible to give individual values in the table many obscuring names instead of only one, and compensate for this when computing the contents of the following tables. We believe that this would rather be difficult to accomplish, because one can create an automated tool which will be capable to reduce these lookup tables to their original rank. Instead, we propose to reduce the number of matrices that do not have fuil rank as much as possible, in order to counter possible attacks on these matrices. We can accomplish this by altering the matrix representing the affine transforma- tions. For DES, we can shift rows and columns by changing the bit-stream in the white-box implementation. In the original proposition of white-box DES, the first 8 T-boxes are constructed as follows: T(x) = S(X1..6 EBk) II(XI EBkl, X6 EBk6, X7, xs), where Xl EBkJ and X6 EBk6 are bits from the split path encoding, and X7 and Xs are by pass bits. The 4 remaining T-boxes are constructed with only by pass bits. 273 Because the output of the T-boxes is delinearized, it is only possible to change the matrix of affine transformation by redefining those T-boxes. We have not further implemented this, but we are convinced that is is possible to further reduce the implementation by redefining the way bits are passed through the T-boxes. RESULTS We have implemented our improvements, resulting in a 728 Kb white-box DES implementation. The original white-box DES implementation of Chow et al. [3] has size 4.5 MB, while the improved implementation by Link et al. [4] takes about 2.3 MB of space. Our implementation consists of 11. network of all 8 x 4 lookup tables, similar to the implementation as proposed by Link et al., but the main difference is that there are about 3 times less lookup tables in our implementations, which results in a third of tbe execution time. It should be quite easy to make an automated tool, that is able to apply this improvements to white-box implementations that. already exist. It can be applied after the injection of random encodings into the code, because it is easy to observe which encoded look up tables represent a constant. function, or for which lookup tables, the output is not used any more in further table lookups. Minor improvements can be found by changing the definition of the T-boxes in the white-box DES construction in order to change the bit-flow in the imple- mentation and reducing t.he sub matrices that do not luwe full rank. Chow et al. acknowledged there can be a problem with sub matrices that do not have full rank. Therefore, in their proposed white-box AES implementation, which has recently been cryptanalysed by Billet et al. [1], an extra mixing bijeetion is generated, chosen as a non-singular matrix with 4 x 4 sub matrices of full rank, which is pre-multiplied to the matrix of affine transformations. At the time being, it is not clear which techniques can be adjusted to apply to the white- box AES implementation, in order to improve the efficiency, and counter the recent cryptanalysis. As AES becomes more and more a standard for use in new applications, this will be focus for further research. CONCLUSION The greatest drawbacks in white-box implementations is their size and execu- tion time, and a lack of security proof. Several improvements have been proposed to further reduce the size and execution time of white-box DES implementations, 274 but still it is not clear how secure white-box cryptography can be. New tech- niques have to be found and further cryptanalysis has to be performed in order to improve white-box security and performance to a level which is acceptable for use in practical applications. REFERENCES [1] O. Billet, H. Gilbert, and C. Ech-Chatbi. Cryptanalysis of a white box aes implementation. In H. Handschuh and M. A. Hasan, editors, Selected Areas in Cryptography, volume 3357 of Lecture Notes in Computer Science, pages 227-240. Springer, 2004. [2] S. Chow, P. A. Eisen, H. Johnson, and P. C. van Oorschot. White-box cryp- tography and an AES implementation. In K. Nyberg and H. M. Heys, editors, Selected Areas in Cryptography, volume 2595 of Lecture Notes in Computer Science, pages 250-270. Springer, 2002. [3] S. Chow, P. A. Eisen, H. Johnson, and P. C. van Oorschot. A white-box DES implementation for DRM applications. In J. Feigenbaum, editor, Digital Rights Management Workshop, volume 2696 of Lecture Notes in Computer Science, pages 1-15. Springer, 2002. [4] H. E. Link and W. D. Neumann. Clarifying obfuscation: Improving the security of white-box encoding. Cryptology ePrint Archive, Report 2004/025, 2004. http://eprint . iacr. org/. [5] T. Sander and C. F. Tschudin. On software proteetion via function hiding. In Proceedings of the Second International Workshop on Informaiion Hiding, pages 111-123, London, UK, 1998. Springer-Verlag. [6] A. Shamir and N. van Someren. Playing "hide and seek" with stored keys. Lecture Notes in Computer Science, 1648:118-124, 1999. 275 Partitions of Polynomials: Stream Ciphers based on Jumping Shift Registers Cees J.A. Jansen" Banksys NV-SAt Abstract In [3] and [4] cascade jump control of linear finite state machines (LFSM) is introd uced , for use in stream ciphers. This construction is based on the controlled modification of the LFSM's transition matrix, such that the LFSM makes a large number of steps through its state space at. one clock pulse. The mathematical description of this construction gives rise to new notions and properties of irreducible polynomials over finite fields, such as the jump index and dual polynomials. For the binary case it was shown by the author that all irreducible polynomials can be partitioned into sets of six, three, two or one polynomials. This paper aims at generalising these results to arbitrary finite fields. In particular, it is shown that the set structure of the partition is completely determined by the solution of a second degeree polynomial. Key words: stream ciphers, irreducible polynomials, jump index, duality. 1 Introduction In binary Cascade Jump Controlled stream ciphers, introduced in [3J and [4], the key stream generator is an autonomous linear finite state machine (LFSM), which is stepped through its state space with many steps on a single clock pulse. This is achieved by conditionally modifying the LFSM such that the entries on the main diagonal of its transition matrix are additively inverted. It has been shown that the effect of this modification on the characteristic polynomial C (x) is that it changes into C(x + 1). The number of steps of the LFSM is equal to the Jump Index of C(x), which is defined as the integer J such that xJ == x + 1 mod C(x). The characteristic polynomial C(x + 1) of the modified LFSM is defined as the dual Cj_(x) of C(x). The reciprocal of C(x), which is the polynomial whose roots are the reciprocals of the roots of C(x), is given by C*(x) = XnC(X-l). It was also "Haachtsesteenweg 1442, Brussels, Belgium, cjaCà.iae.l.ll tThis paper is based on private research of the author 1 277 shown that by repeatedly applying the two operators .L and * to a polynomial, one obtains a set of at most six polynomials. These sets of polynomials have interesting and useful properties for stream cipher design. In this paper we generalise the notion of duality from CF(2) to CF(q). In Section 2 a duality operator _la, with a E CF(q) is defined and properties of this involution trausforrnation, similar to the binary case are derived. In Section 3 a practical application of the theory presented is given by means of a sequence generator example over CF (p). The final section answers the question of the set structure of irreducible polynomials, induced by alternate application of the two operators _la and * to irreducible polynomials over CF (q). It is shown that this set structure is deter mined by the order of a quadratic equation over CF(q). 2 .Iurnp ing LFSMs over GF(q) Let A denote the transition matrix of an autonomous Linear Finite State Machine over CF (q), not necessarily a Linear Feed back Shift Register or a Galais Counter. Let C(l;) denote its characteristic polynomial, i.e. C(x) = det(xI - A). As with the binary case we ask ourselves if it is possible in general to find a power of the transition matrix, which is equal to a linear combination of the matrix raised to two smaller powers: At = a]Atl + a2At2, with tl,tz < t. The simplest useful case is the one where there exists a J, such that A.] = al - A. If indeed such a power of the transition matrix exists, we clearly achieve the same effect if we multiply the state vector either by A.] or by al - A. Moreover, changing A into al - A is generally much sim pler than changing A into A.] for an arbitrary transition matrix A. Also, this modification of the transition matrix is an involution, which makes it easier to assess the relevant properties for a practical implementation, in which the transformation and its inverse are needed. As is well known, if C(:I;) is irreducible A can be written as the companion matrix of C(x) by applying a suitable matrix multiplication, A' = MAM-l. This similarity transformation is always possible; see e.g. [7, 1]. The matrices A and A' are called similar matrices. Note that powers of the companion matrix can be seen to represent all el- ements of the finite field. Hence, an equivalent statement of the problem is to find an element o:J in the finite field GF(qn), with C as defining polynomial and ti = deg C, such that o:J = 0.-0:, where 0: is an element of GF(qn), and a E GF(q). So, in fact we look for the logarithm of a - 0: in CF(qn), a special case of Jacobi's logarithms, [5, pp. 79,542]. One can conclude from the foregoing that by changing the transition matrix of the Autonomous LFSM from A into al - A, effectively J steps through the state space of the original LFSM are made, regardless of the starting state. The parameter a E CF (q) can be chosen arbitrarily. As for all a E CF (q), a - 0: are distinct elements of GF(qn), .J will depend on the value of a. Consequently, we 278 will denote the jump index for a given value of a by Ja' The jump of Ja states of the LFSM gives rise to the following definition. Definition 1 Let f(x) be a polsmomiel over GF(q). If xJ• == a - x mod f(x), for some 'integer Ja and a E GF (q), then Ja 'is called the Jump Indea: to the base aoff· Analagous to the binary case a Jump Index to some base does not exist for every polynomial. Polynomials of degeree 1 form a special case with a jump index of 1 if it exists. However, for practical reasons only polynomials of degree 2 or higher are considered in the remainder of this paper. The jump index does not even exist for every irreducible polynomial. In other words: (.}'J. = a - a, where a is a root of f(x) and, hence, an element of the splitting field GF(q") of f(x). Therefore, if a is a primitive element of GF(q") the jump index exists for all values of a E GF(q). In this case f(x) is a primitive polynomial with maximal period qn - 1. For irreducible trinomials of the form x" + x - a the jump index is equal to the degree of the trinomial. Let C_lo (x) denote the characteristic polynomial of the modified transition matrix, it follows that C_la(x) = det(xI - (aI - A)) = det((x - a)I + A) = (-l)"C(a - x) (1) As can be seen from the above equation the eperation preserves the sign of the coefficient of x", hence preserving monicity. The following definition is given for polynomials, modified by ..la as shown above. Definition 2 Lei f(x) be a polynomial ouer GF(q) and a E GF(q). The a-dual of f(x), denoted by f_la(x) is defined as (-l)"f(a - x). We call t+: (:I:) the a-dual of f(:r) because U_la)_la = (-1)271f(a - (a. - x)) = f(x), which is an involution transformation on polynomials. Moreover, if f (x) has jump index Ja then the sums of a and aJa for all roots lie in the base field and are equal to a.. The duality operator clearly preserves the degree of the polynomial. However, the period (or order) of f is not necessarily preserved. A simple counter example shows this change of period: f(x) = x3 + 3x2 + 4x + 3 over GF(5) has period 124, but f_l2(X) = -f(2 - x) = x3 + x2 + x2 + 3x + 4 has period 31. Irreducibility is also preserved as stated in the following theorem: Theorem 1 Let f (x) be an irreducible polynomial of degr-ee n over- GF(q) and let a E GF(q), then the a-duol of f(x), f_la(x) = (-l)"f(a - x) is also irreducible. Proof. Suppose f_la(x) = g(x)h(x), with deg(g) = 119, deg(h) = nh and n = ng+nh' Then U_la(x))_la = (-l)"g(a.-x)h(a-x) = (-l)"gg(a-x)(-l)"hh(a- x) = g_la(x)h_la(x) = f(x), which contradiets the fact that f(x) is irreducible. 0 The jump indices of an irreducible polynomial and its a-duals are related in a simple way, as shown by the next theorem. 279 Theorem 2 Let f(:c) be an irreducible polynomial of degree n over GF(q) and jump index Ja, for a E GF(q), then the a-dual of f(x), has a jump index Jt· = i:' mod per(f). Proof. Let a, aq, ... ,aq"-l be the roots of I, then aJ·, aqJ·, ... ,aqn-1J• are the roots of t+: Hence (akJa.)J.l.a= 0.- akJ• = (a- aJ·)k = a"', for k: = 1, g, ... .«:'. Consequently Ja' .lt· == 1 mod peren. 0 A consequence of Theorem 2 is that the jump index of the dual polynomial only exists if Ja is relatively prime with the period of ['. Conversely, if .f has a jump index, but t+: has not, then gcd(Ja,per(.f)) :> l. In the case that gcd(Ja, perU)) = d > 1, (tJ" has order per(f)jd and so the period of t+:will also be perU) j d. Let rex) denote the reciprocal of f(x), i.e. the roots of rCx) are the recipro- cals of the roots of .f(x) anel so = rex) = c;;.lx f(x-1), Tl where n is the degree of f and Cn denotes its constant term. Taking the reciprocal of a polynomial is also an involution, provided the polynomial does not contain x as one of its factors. Therefore, one usually considers polynomials with irreducible factors of degree 2 and higher. A natural question to ask is how the jump indices of a polynomial, and its reciprocal are related. The answer is given by the next theorem. Theorem 3 Let f be an irreducible polspiomiul of deqree t: ::: 2 over CF(q) untli a jump index Ja for some a E GF (q) and let a be a root of f. Also, let the jump index of the reciprocal r of f be denoted by J~. Then the [ollounnq relations hold. al-J~ (2) al-J~ (3) Proof. Let a be a root of i, then a.!· = a-a. The reciprocal [" has a-I as a root, and so a-J~ = a - a-I. Multiplying both sides of the latter equation with a yields al-J~ = aa - l. Substituting a = a - aJ• in the right hand side of this equation results in (3). We also have aa, - 1 = -0.(0.-1 - a) = _aaJ.-" accounting for (2). 0 Equations (2) and (3) become identical for a = ±l and for a = -1, Theorem 3 gives the same result as obtained in [3] for the binary case. This theorem also shows that, unlike in the binary case, in general the reciprocal f* of an irreducible polynomial f mayor may not have a jump index, regardless whether f has a jump index. Also, from equations (2) and (3) it follows that aJa-1 = aju + (a-I - a), implying that if Ja exists, Ja-l need not exist. As an example of these phenomena, consider the irreducible polynomial f(x) = x3 + X + lover GF(7) of period 114 and its reciprocal r(x) = .T3 + :c2 + l. Both polynomials have a jump index for 280 a = -1 = 6 mod 7, i.e. J6 = 3 and Jfi = 112. However, for a = 4, f has jump index J4 = 27, but f* does not have a jump index. Also, for a = 2, f has no jump index, but f* has jump index h = 61. These are the only jump indices of f and its reciprocal. We conclude this section by giving the range of the jump index in the next theorem. Theorem 4 Let f be an irreducible polynomial of degree n 2: 2 over GF(q) with period p and a jump index Ja. for some a E GF(q) and let a be a root of f. The range of Ja is given by: Proof. As noted before, the jump index of f satisfies Ja. 2: deg f with equality for trinomials of the form xJa + X - a. Now let (3 = a-1, then (3Ja = a-Ja = (o.-a)-l = ,8(0.,8_1)-1 So(31-J. = 0.,8-1, andconsequently, I-Ja 2: degf* = n. The upperbound is attained with equality for the reciprocal of a trinomial with a = -1. 0 3 Cascade Jump Controlled LFSR's The theory presented in the prvious section can effectively be employed to con- struct sequence generators over GF(q) by cascading LFSM's in such a way that the output of each LFSM is used to control the jump made on each clock pulse by the next LFSM in the cascade. This jumping behaviour is achieved by chang- ing the transition matrix of the LFSM as shown in the previous section. The effective number of steps made for a jump depends on the jump index Ja. of the characteristic polynomial C(.x) of the LFSM. In this way sequences with period (qn _ l )?' are obtained, where n is the degree of C(x) and m is the number of LFSM's in the cascade. As an example of a jump controlled sequence generator over GF(q) consider a. construction with two LFSRs. The first LFSR generates a sequence 2.1 of period P1, which is a divisor of qLJ - 1 in the case of irreducible feedback, where Ll is the length of the LFSR. Assuming a primitive feedback, P1 = qLJ - 1, the sequence comprises all non-zero elements of GF(q) equally often, viz. Nq = PJ:l = qLJ-1 times. The number of zeroes in the sequence is one less, because of the absence of the all-zero state in the LFSR.. One possible construction which is used in the example is that the second register's transition matrix is modified for each non- zero output symbol of the first LFSR. In other words, it makes a jump of Ja steps if the output symbol is equal to a E GF(q), and makes just one step if the output symbol is a zero. The total number N', of steps made by the second LFSR. in one period of the first LFSR. is given by the following equation, n, = Nq - 1 + Nq L Ja = PI + L (Ja - 1), (5) aEGF"(q) aEGF*(q) 281 where GF*(q) = GF(q) \ {a}. Assume that the second LFSR has irreducible feedback. In order for the output sequence 2.2 of the second LFSR to have a maximal period of P1P2 a necessary condition is that gcd(N., P2) = 1. This condition is not sufficient, see [2, Thm 3, pg. 19]. In the special case of interest all sections are identical and have primitive characteristic polynomials with period P = qL-I. We see that the maximal period condition now becomes: gcd( L (Ja ~ l),p) = 1 (6) aEGF*(q) For instance, consider the cascade of LFSR'3 over GF(3) with C(x) = x3 + 2x2 + 1 of period 26. The jump indices of C are oh = 24 and J2 = 5. Hence, applying equation (6) gives gcd(JI + Jz - 2,p) = gcd(27,26) = 1, showing that the maximum period condition is satisfied. Consequently, the second LFSR bas a period of 262. One of the main advantages of cascade jump controlled sequence generators over cascade clock controlled contructions is their superior behavier with respect to side channel analysis. As can be seen the jump controlled cascade always generates an output sym bol for each clock pulse, but the clock controlled cascade needs a variable number of clock pulses. 4 Partitions of Irreducible Polynomials Determining of the jump index of a given irreducible polynomial, if it exists, comes down to finding the discrete logarithm in a large finite extension field. However, in the binary case it was shown that for certain polynomials it can be easiliy checked whether a jump index exists and what it's value is. These results followed from studying sets of irreducible polynomials that are obtained by alternately applying the two operators .L and *. In this section we consider how the irreducible polynomials of given degeree over GF(q) are partitioned into sets by applying the-generally non-commuting-operators _la and * repeatedly one after the other. Let f(x) be an irreducible polynomial over GF(q) of degree n 2: 2, with period P and Ja its jump index to the base a. As defined before, r(x) and fj_a(x) denote the reciprocal and the a-dual of .r(x) respectively. Consider ö. root a of f(x), which is an element of the splitting field GF(qn). As before, a-I is a root of f* (x) and a - a is a root of f .i., (x). If we denote by Pi a root of the polynomial obtained after i applications of the combined eperation (* _la), we find that Po = a, P1 = a - a-I, P2 = a. - a(a.a ~ 1)-1, etc. Clearly, the Pi satisfy the recurrence relation Pi+l = a - t. It can easily be verified that the resulting p-sequence has a maximum period of 3 if a. = ±1. This implies that for the binary and ternary cases, all irreducible polynomials of a given degree are partitioned into sets of at most six polynomials. Due to the fact that self- 282 reciprocal polynomials exist for even degrees (see e.g. [6]), self-a-dual polynomials exist, hence resulting in sets of three polynomials. The general solution of the recurrence relation for P follows by substitution of Pi = ~, whence obtaining a linear recursion of the Fibonacci type for the numerator sequence of roots with a second order characteristic polynomial Cv(x) over CF(qn). Cv(x)=x2-ax+l (7) The order of CAx) depends entirely on the value of a E CF(q). The following cases can be distinguished. a = oOrd Cv equals 4 for fields of odd characteristic and 2 for fields of charac- teristic 2. This case is listed for completeness. a = ±1 Using (x2'f x + l)(x ± 1) = x3 ± 1, we obtain ord Cv = 3 for a = -1 or a = 1 for characteristic 2. For odd characteristics and a = 1, ord C," = 6. a = ±2 In this case CA.T) = (x 'f 1)2, which is only meaningful for odd charac- teristics. For a = 2, ord (x - 1) = 1, and so ord (.T - 1)2 = q. If a = -2, then ord (x + 1) = 2, and so ord (x + 1)2 = 2q. reducible Other values of a, resulting in CAx) = (x-c)(x-c-1), with cE GF(q) and 0.= C + c-1. Now, ord C," equals ord c, which divides q - 1. irreducible For certain values of a, C," can be irreducible over CF(q). For the order of Cv it is important to note that Cv is a self-reciprocal, degree two, irreducible polynomial with coefficients from CF (q). Hence, generalising Theorem 4 of [3], we obtain (ord Cv)l(q + 1) To detennine the period of P it is important to note that Pi = ~, wh..ich implies that for even periods of v the period of P is halved. This can be seen by considering that V~+i = -1/i for fields of odd characteristic. As a consequence, for the reducible and irreducible cases mentioned above the maximum periods for pare q - 1 and q + 1 resp. for even characteristic, but are ¥ and ~ resp. for odd characteristics. The period of P is listed below for the various cases. 2 if a = 0 3 ifo.=±l q if 0.= ±2 per P = (8) ord c a = c + c-1 ord c odd ord c a. = c + c-1 ord c even --Z a divisor of q + 1 for irreducible C," It should be noted that period reductions other than period halving can occur, depending on the particular values of the roots of the polynomials. 283 The number of polynomials in a set is at most twice the period of p. The sets are not always maximal in size, because of the existence of self-reciprocal, self- a-dual and a-dual-reciprocal polynomials. The latter facts are left here without proof, but examples of such polynomials can easily be found, e.g. x2 - ax + b, which is self-c-d ual. 5 Conclusions This paper generalises the notion of duality of polynomials from GF(2) to GF(q). Several properties of the duality operator have been extended from the binary case to general finite field irreducible polynomials. The application of the theory to cascade jump controlled sequence generators over finite fields of odd charac- teristic illustrates the practical use of the theory presented. Finally, it was shown how the two operations of computing the reciprocal and the a-dual of an irre- ducible polynomial give rise to different partitionings of the set of all irreducible polynomials of given degree. This method can be used to construct many different irreducible polynomials from a given one. References [IJ E. Berlekamp, Alqebraic Coding Theory, McGraw-Hill, New York, 1968. [2J W.G. Chambers, Clock-controlled Shift Registers in Binary Sequence Gen- erators, JEE Procecduiqs, vol. 135, Part E, no. 1(1988). [3J C.J.A. .Iansen, Modern Stream Cipher Design: A new view on multiple clocking and irreducible polynomials, Aetas de la VII Reunión Espaiiola sobre Criptologia y Seguridad de la Información, S. Gonztilez, C. Martinez, Eds. Tomo I, pp. 11-29, Oviedo (2002). [4] C.J.A. Jansen, Stream Cipher Design: Make your LFSRs jump!, Workshop Record ECRYPT-State of the Art of Stream Ciphers, pp. 94-108, Brugge (2004). [5J R. LidI and H. Niederreiter , Pinde Fields, Encyclopedia of Mathematics and its Aplications 20, Cambridge University Press, Cambridge, 1997 [6J H. Meyn and W. Götz, Self-reciprocal Polynomials over Finite Fields, Séminaire Lotluirinqieti de Combinatoire, B21d, Schloss Thurnau, Ober- franken, Germany, May 1989. (http://w-w-w-.mat.univie.ac.at/slc/) [7J W. Peterson, Error Correcting Codes, M.LT. Press and Wiley & Sons, New york, 1961. 284 1 CLASSIFICATION OF CUBIC BOOLEAN FUNCTIONS IN 7 VARIABLES An Braeken, Svetla Nikova Department Electrical Engineering, ESAT jCOSIC, Katholieke Universiteit Leuven, Kasteelpark Arenberg 10, B-3001 Heverlee-Leuven, Belgium an.braeken,svetla.nikova@kuleuven.ac.be Yuri Borissov Institute of Mathematics and Informaties, Bulgarian Academy of Sciences, 8 G.Bonchev, 1113 Sofia, Bulgaria yborisov©moi.math.bas.bg Based on a classification of inoariants, we show how to efficiently classify Boolean functions in 6 and 7 variables of deqree 3. The sizes of the orbits fOT'eueri) class is determined in the same time. INTRODUCTION A well-known and widely used approach in the study of algebraic objects is the investigation of their sub-objects and quotient objects. Consider the set of Boolean functions on JEi'~ of degree less than or equal to T for 0 ::; r ::; n, which can also be seen as the Reed-Muller code RAf(r, n) of order T. The automorphism group of RJ\!I(r, n) is equal to the general affine group AGL(n, 2) for all I::; r ::; n [MS91, Theorem 24]. For -1 ::; 5 < r ::; n, the quotient space of RM(r',n) by the sub-code RM(s, n) is denoted by RM(r, n)j RM(s, n). Consequently, two Boolean functions h,12 of RM(T, n)j RM(s, n) are said to be equivalent over RM(s, n) if h(x) = h(xA EB b) mod RM(s, n). If 5 = I, this means that h(x) = h(xA EB a) EBx' B EB b, 'ix E JEi'~', (1) where A is a nonsingular binary n x n-matrix, b is a binary constant, and a, E are n-dimensional binary vectors. If 5 = 0, then B is zero and the functions h and 12 are said to be equivalent over RAI(O, n). If E, bare 0, the functions are equivalent over RM(-I,n). A property is called RM(s,n) invariant property if it is invariant over RNJ(s, n). For 5 = I, it is called affine equivalence. Note that 285 2 on RM(r,n)jRM(r -l,n) for O:S; r:S; n, the action of AGL(n,2) is reduced to the action of the generallinear group GL(n, 2). An overview of known and new invariant properties over RNf(s, n) for s = 1,0, -1 is presented. Based on these invariants, we show how efficiently to classify the Boolean functions of 6 variables and 7 variables of degree 3. The advantage of this classification is that in the same time the sizes of the orbits for each class are computed. This number determines the density of that class and can be used in order to compute thR number of Boolean functions which are correlation-immune, resilient, or satisfy a certain order of propagation characteristics following the method presented in [BBNP04]. Invariant Properties Equivalence classes provide a powerful tool in both the construction and analysis of Boolean functions for cryptography, In particular, rather than considering the entire space of 22" functions a reduced view can be found in the consideration of only one function from each class. We start by giving an overview of the invariant properties over RiM (s, n) for s = 1,0, -1. The computational complexity of detennining if the Boolean function satisfies the property is an important measure for the efficiency of the property. Invariant Properties over RA1(1, n) A well-known invariant property is the distribution of the absolute Walsh and autocorrelation values which is denoted as a set of tuples in which the first ele- ment represents the absolute value in the spectrum and the second element the number of occurrence. Consequently, also other properties which are derived from the Walsh and autocorrelation spectrum like nonlinearity, dimension of the linear space, GAC indicators, distance to functions with non-zero linear struc- tures [MSR9], etc., are invariant properties. Relations between the Walsh and autocorrelation values for two equivalent functions are derived in [Pre93]. The Walsh and autocorrelation spectrum can be determined with complexity O(n21J.) using Fast Fourier Transferm [CT93]. In [LZ96, LVi98], the invariants stabilisator, index and height are introduced. The stabilisator is defined as the order of the group of linear (affine) transforma- tions that keeps the function invariant. The dimension of the largest fiat on which f is affine is called the index. The height of a function is defined as the smallest 286 3 dimension of a flat V for which Dv f = O. The properties height and index can be generalized by the nwnber of flats for which the corresponding property is satisfied. Related to the index of a function is the property of weakly normality which was proven to be affine invariant property in [Dubûl]. These invariants have very high computational complexity (almost equal to the order ofthe group of linear (affine) transformations for the stabilisator and the number of flats of certain dimension for the height and index). Consequently, they cannot be used efficiently for determining inequivalence for higher dimensions (i.e. n 2> 13..15). DilJon proved in [Dil74] the invariance of the set of derivatives, i.e., the sets of all k-dimensional derivatives are invariant for any 1 ::; k ::; n. Consequently, this explains why the height of a Boolean function is an invariant. In [BL03], the relation between restrietion and derivation was noticed. More- over, it was shown that the set of restrictions with respect to hyperplanes is an invariant. More generally, the set of restrictions with respect to subspaces of dimension k with 1 ::; k ::; n is invariant. Fuller and MilJan introduced in [FM03] the concept of connection functions, which are functions that differ from the original function with distance one. The set of 211. connection functions are invariant. Moreover, this concept can be gen- eralized to connection functions of any distance 1 ::; d::; 211. - 1 (see [MFD04]). The weight distribution of the minimal words of f EB9 for all 9 E RM(l, n) was noticed to be an invariant property in [BM04]. Here a minimal word is a codeword whose support does not contain the support of another codeword. Properties on minimal codewords are derived in [AB98]. The complexity of this invariant can be approximated by 0(2311.). However, this can only be used as distinguisher for Boolean functions of low degree with respect to the number of variables, since the weight of a codeword should be less than 211. - I:~=let) + 1 in order to be a minimal word. The number of bases in the set of vectors with the same absolute value in the Walsh and in the autocorrelation spectrum is shown to be an affine invariant property in [BBNP04]. The proof follows immediately from the fact that between the sets of bases there exists a bijective correspondence. The complexity of the invariant mainly depends on the spectra and is different for each Boolean function. 287 4 Invariant Properties over RM(O, n) The number of flats of dimension k for 1 ::; k ::; n on which a Boolean function is constant, related to the property of k-nonnality, is an RM(O, n) invariant. It was noted in [Lea04] that the approach using connection functions, intro- duced by Fuller and Millan, does not work for bent functions since the Walsb. and autocorrelation spectrum of the connection functions are too similar. Therefore Leander presented in [Lea04] a further generalization which can only be used for checking equivalence over RNJ(O, nl. Instead of adding a function of low weight a quadratic function of the form XiXj for 1 ::; i < j ::; n was added. TI1.isrequires (:,1T1 -1 )(21' -2) 2 " functions to be tested. We now present a new invariant property, which can be used for testing equivalence over RM(O, n) of bent functions and which is more efficient then the approach of Leander. This set consists of the 2"+1 product functions, which are the functions obtained by the product with an affine function. It is easy to prove that if we have two equivalent functions h, fz with il(x) = h(xA EBa) ffi b then their product functions are invariant over RM(l, nl. This follows from the fact that h(x)(c . x ffi Co) = h(x)(Cl . x ffi do) ffi Ex ffi b' if and only if d = CA-I, do - cA-lat ffi co, Ei = h(7:A-I), and b' = b(cA-Iäl. ffi co) where C, d E ][?2 and co, do E ][?2· The tuple consisting of the size of the annihilators of a function [MPC04] and its complement is an invariant over RM(O, nl· Let I,(x) = h(xA ffi a) ffi b, then if 9 is annihilator of il, g(xA-I ffi aA-I) is annihilator of .fz(x) ffi b. This is an efficient invariant for functions with small number of variables. But, the complexity of the invariant. increases very fast with the dimension. Invariant of RM( -1, n) The most efficient invariant is the weight of the function. Balanced functions are invariant, while non-balanced functions split into two classes under RNJ(O, n) invariance. Equivalence Classes and Sizes of Boolean Functions in 6 variables Equivalence Classes We first show how to derive the classification of RM(3, 6)/ RM(l, 6). These classes can be obtained from the 6 representatives ii ffi RM(2,6) for 1 ::; i ::;6 of RM(3,6)/RM(2,6) as given in IHou96b]. For each representative, we run through all functions consisting only of degree equal 288 5 to 2 and distinguish the affine inequivalent cosets of RN/(l, 6) by using as invari- ants the distribution of the absolute Walsh and autocorrelation values. These indicators suffice to distinguish all 34 affine equivalence classes. In order to determine the equivalence classes of RM(4, 6)/ RM(l, 6), we start from the representatives of RM(4,6)/RM(2,6). These representatives turn out to be the dual of the equivalence classes of RM(3,6)/RM(1,6). Since the num- ber of representatives is equal for both sets as shown in [Hou96a], we only had to check if the dual representatives are also inequivalent under RM(2, 6), which can be done by computing the frequency distribution of the derivatives which belong to RM(3,6)/RM(1,6). Then, for each representative of RM(4,6)/RM(2,6), we run through all functions consisting only of terms of degree equal to 2 and distinguish the affine inequivalent cosets of RM(1,6). Here, the invariants of the clistribution of theabsolute Walsh and autocorrelation values are not suf- ficient for finding all 2499 different classes. In combination with the invariant of the restrictions with respect to a hyperplane, the problem is solved. Here, for each representative the set of restrictions with respect to all 126 hyperplanes C]X) EEl... EElc6xe EElC7 where (Cl, ... ,C7) E lF'~ \ {O,I} and check to which of the 29 affine equivalence classes of RM( 4,5)/ RM(l, 5) it belongs. Therefore, it suf- fices to use the invariants of Walsh and autocorrelation spectrum. The classes of RM(5, 6)/ RM(l, 6) and RM(6, 6)/ RM(l, 6) are found III a similar way (with the same invariants but now the restrictions belong to one of the 48 equiva- lence classes of RM(5, 5)/ RM(l, 5)). We start again from the representatives of RM(5, 6)/ RM(2, 6) and RM(6, 6)/ RM(2, 6). In order to obtain the classes of RM(5, 6)/ RM(2, 6) and RM(6, 6)/ RM(2, 6), we dualize the equivalence classes of RM(3,6)/RM(0,6) and RM(3,6)/RM(-1,6). Again, after checking the inequivalence over RlY/(2,6) by frequency distribution of the derivatives, they turned out to define the complete set of representatives. The equivalence classes of RM(3, 6)/ RM(O, 6) are found by rurming through all linear functions. The 120 different classes could then be distinguished by using as invariants the size of the annihilator set together with the number of flats on which a Boolean function is constant. Once the 120 equivalence classes of RM(3, 6)/ RM(O, 6) are obtained, the weight of the function determines if the representative of RM(3, 6)/ RM(O, 6) leads to one or two classes in RM(3,6)/RM(-1,6). Sizes of the Orbits In order to employ the approach for counting the number of Boolean functions with certain properties as described in [BBNP04], we also 289 6 need to know the sizes of these orbits. Let us first describe how to find the sizes of the representatives of RM(3,6)IRM(1,6). The sizes were computed during the classification phase multiplying the final results by the sizes of the corresponding orbits in RM(3,6)IRM(2,6) given in [Hou96b]. To check these results in the cases of 12, f4 and f6 we obtained linear systems for unknown sizes by taking into account the weight distributions of the cosets of RM(1, 6) and the weight distribution of the corresponding representative of RM(3, 6)1 RM(2, 6) to which these cosets belong. Of course if tI = 0 one can use also [MS91, Theorem 1 and Theorem 2, p.436]. The results obtained in these two ways coincide. Also the sizes of RM(3, 6)1 RM(O, 6) and RM(3, 6)1 RM( -1,6) were obtained during the classification phase, where we only run through all linear functions and constant functions respectively. Remark 1 Note that Maiomna has already proven in 1991 the existence of 150 357 equiuolance classes under RlI/l(l, n) for Boolean functions with 6 variables by us- ing a computer search based on group theory [Moiû l]. Equivalence Classes and Sizes of Boolean Functions in 7 variables We start from the 12 equivalence classes of RM(3, 7)1 RM(2, 7) as given in [Hou96b] and run through all functions containing only terms of degree equal to 2. The fastest invariant in the previous list which leads to the complete classification is the invariant of the restrictions with respect to a hyperplane. For every such function of RM(3, 7)1 RM(1, 7), we compute all 254 restrictions f(x) with respect to the hyperplane Cl Xl E& ... E& C7X7 E& C8 where (Cl, ... ,C8) E lF~\ {O,I} and check to which of the 34 affine equivalence classes of RM(3,6)/RM(1,6) they belong. Therefore, it suffices to use the invariants of Walsh and autocorrelation spec- trum, together with the determination of the class of RM(3,6)IRM(2,6). This class can be distinguished by the invariant 6(f) = (6o(f),6l(f), 62(f)), where 6i(f) = I{a E lF2' : Daf is a plateaued function with an amplitude 2n-i}1 for 0:::; i :::; 2. The sizes of the orbits were computed in a similar way as for TL = 6. They were computed during the classification phase and multiplied by the sizes of the orbits of RM(3, 7)IRM(2, 7), which were derived in [BM04]. A list of all 179 equivalence classes together with the sizes of the orbits of RM(3, 7)1 RM(I, 7) can be found in [BBNP04]. Recently, independently Meng Qing-shu et. al. has also derived the equivalence classes of RM(3, 7)1 RM(1, 7) [QsmHgYz05]. 290 REFERENCES 7 REFERENCES [AB98] A. Ashikmin and A. Barg. Minimal vectors in linear codes. IEEE Transactions on Information Theory, IT-44(5):20l0-2017, 1998. [BBNP04] A. Braeken, Y. Borissov, S. Nikova, and B. Preneel. Classification of Boolean functions of 6 variables or less with respect to crypto- graphic properties. Cryptology ePrint Archive, Report 2004/248, 2004. [BL03] E. Brier and P. Langevin. Classification of Boolean cubic forms of nine variables. IEEE Information Theory Workshop 2003, pages 179-182, 2003. [BM04] Y. Borissov and N. Manev. On minimal codewords in the 3rd order binary Reed-Muller codes. Serdica, 30(2-3) :303-324, 2004. [CT93] James W. Cooley and John W. Tukey. On the origin and publi- cation of the FFT paper. Current Contents, (51-52):8-9, 1993. [Dil74] J. Dillon. Elementary Hadamard Difference Sets. PhD thesis, University of Maryland, 1974. [Dubül] Sylvie Dubuc. Etude des propriétés de dégénérescene et de nor- malité des fonctions booléennes et construction des fonctions q- aires parfaitement non-linéaires. PhD thesis, Université de Caen, 2001. [FM03] J. Fuller and W. Millan.Linear redundancy in S-boxes. In Fast Software Encryption - FSE 2003, volume 2887 of Lecture Notes in Computer Science, pages 74-86. Thomas Johansson, editor, Springer, 2003. [Hou96a] X.D. Hou. Covering radius of the Reed-Muller code 1'(1,7) - a simpler proof. Journalof Theoretical Theory, 74:337-341, 1996. [Hou96b] X.D. Hou. gl(m,2) acting on r(r,m)/r(r - I,m). Discrete Math- ematics, 149:99-122, 1996. [Lea04] N.G. Leander. Normality of Bent Functions, Monomial-and Bimonomial-Beni Functions. PhD thesis, Ruhr Universität Bochum, 2004. [LVi98] P. Langevin, P. Veron, and J.P. Zanotti (ii). Fonction booléennes équilibrés. Technical report, 1998. [LZ96] P. Langevin and J.P. Zanotti. Fonction booléennes équilibrés (i). Technical report, 1996. 291 REFEREN CES 8 [Mai9l] J.A. Maiorana. A classification of the cosets of the Reed-Muller coder(1,6). Mailtematics ofComputation, 57(195):403-414,1991. [MFD04] W. Millan, J. Fuller, and E. Dawson. New concepts in evolution- ary search for Boolean functions in cryptology. Computational Intelligence, 20(3):463-474,2004. lMPC04] W. Meier, E. Pasalic, and C. Carlet. Algebraic attacks and de- composition of Boolean functions. In Advances in Cryptology - EUROCRYPT 2004, volume 3027 of Lecture Notes in Computer Science, pages 474-491. Christian Cachin and Jan Camenisch, ed- itors, Springer, 2004. [MS89] W. Meier and O. Staffelbach. Nonlinearity criteria for cryp- tographic functions. In Advances in Cryptology - EURO- CRYPT 1989, volume 434 of Lecture Notes in Computer Science, pages 549-562. Jean-Jacques Quisquater and Joos Vandewalle, ed- itors, Springer, 1989. [MS91] F.J. MacWilliams and N.J.A. Sloane. The Theory of Error- Correcting Codes. Elsevier Science Publisher, 1991. ISBN 0-444- 85193-3. [Pre93] B. Preneel. A nalysis and design of crupioqraphic hash .functions. PhD thesis, Katholieke Universiteit Leuven, 1YY;). [QsmHgYz05] Meng Qing-shu, Yang min, Zha.ng Huan-guo, and Liu Yu-zhen. Analysis of affinely equivalent boolean functions, 2005. 292 MAXIMUM LIKELIHOOD AMPLITUDE SCALE ESTIMATION IN SECURE QUANTIZATION-BASED WATERMARKING Ivo D. Shterev and Reginald L. Lagendijk Delft University of Technology Mekelweg 4, 2628 CD Delft, Netherlands {i.shterev, r.Llagendijk }@ewi.tudelft.nl We propose a secure Maximum Likelihood (ML) estimation technique of amplitude scaling attacks [or Quantization-Based Watermarking, using sub- tractive dither. The dither has mainly security purposes and is assumed to be known to the watermark encoder and decoder. We derive the probability density function (PDF) models of the watermarked and attacked data in the presence of subtractive dither, and give approximations to these mod- els for use in the ML estimation procedure. We derive conditions for the dither sequence statistics such that a given security level is achieved using the error' probability of the watermarking system as objective function. Fi- nally, experiments are performed with real audio and speech signals showing the good performance of the proposed estimation technique under realistic conditions. INTRODUCTION Watermarking schemes based on quantization theory have recently emerged as a result of information theoretic analysis [1, 2]. In terms of additive noise attacks, these schemes have proven to perform better than traditional spread spectrum watermarking because the used lattice codes achieve capacity for the AWGN channel. The existence of good lattices in high dimensions [3] that can be directly and efficiently implemented have made quantization-based schemes of practical interest. Another important feature of quantization-based watermarking schemes is that they can completely cancel the host signal interference, which makes them invariant to the host signal. Since lattices have a particular structure, watermarking schemes making use of them are vulnerable to non-additive attacks like amplitude scaling. Further- more, operations like amplitude scaling, linear and non-linear filtering induce °This research is supported by the Technology Foundation STW, applied science division of NWO, and the technology program of the ministry of Economic Affairs. 293 a large amount of distortion with respect to the mean-squared error, but do not cause significant perceptual degradations. Non-additive operations on water- marked signals are quite common in many applications, One example is audio play-out and capturing, where the watermarked signal is passed through an D-A converter, transmitted through an analog noisy channel, captured by a micro- phone, and converted back to a digital representation. Clearly the microphone will capture a less powerful and degraded watermarked signal, which has led us to model the noisy channel as an amplitude scaling operation followed by additive noise. Several techniques are known in the literature for combating non-additive operations. One of the approaches is based on designing watermarking codes that are resilient to non-additive operations, such as modified trellis codes [4, 5]. Another approach is based on estimating the non-additive operations and inverting them prior to watermark decoding [6]. In this paper we propose an ML procedure for estimating amplitude scaling factors, based on probabilistic models in the presence of subtractive dither. Under mild assumptions, we make approximation to these models for use in the MI estimation procedure. We give conditions for the dither sequence statistics, such that a given level of security is achieved, using the probability of error of the watermarking system as an objective function. MATHEMATICAL FORMULATION In this paper we focus on the most popular quantization-based watermarking scheme, namely Quantization Index Modulation with Distortion Compensation (QIM with DC). Throughout the paper, random variables are denoted by capital letters and their realizations by the respective small letters. The notation X ~ f(x) indicates that the random variable X has a PDF f(x). Fig. 1 shows the watermark encoder, where W E {O, I} denotes the message bits that are embedded in the host data, X is the host signal itself with a variance oJ, X is the watermarked signal, D is the dither sequence with a variance i7b, and U is the output of the quantizer. Q(.) denotes uniform quantization with step size ,6.. The quantization noise is denoted by NI and has a variance i77vI. The attack channel is shown in Fig. 2. It consists of the amplitude scale factor (3 and the noise N2 ~ N(O, i77v2). The coefficient 0: = (J"C (J":(J"c is known from [7]. NI N2 The total noise introduced by the watermark encoder is equal to Nb which is shown as follows: NI = o:X - (X - (1 - o:)X) = X - X. (1) 294 x 1-(> Figure 1: Watermark encoder. The attacked (received) signal Y, which is the input to the watermark decoder, X y 1 "I (3 N2 ~N(O,aj_,,) Figure 2: Attack Channel can be written in the following way: Y = {3X + N2 = {3(U - D + (1 - Q)X) + N2. (2) Using the relation QX = U - D + NI, we obtain the received data Y in terms of NI, N2, and the watermark-bearing signal U: y = f!_(U - D + (1 - Q)NI) + N2. (3) Q From (3), we observe that the optimal countermeasure against the attacker's scale {3 is just scaling by ~, which of course assumes that the decoder knows the value of {3. The watermark decoding process is based on U and is depicted in Fig. 3. To get an estimate that is as close to U as possible, the decoder first scales the received data by ~ and adds the dither D, thus obtaining: A Q Q U = (3Y + D = U + (1 - Q)NI + (3N2. (4) The decoder then computes the absolute value of the quantization noise IIÛ - Q(Û)II and makes an estimate of the embedded watermark in the following way: Mi = {o if IIÛ - Q(Û)II :::: ~ (5) 1 if IIÛ - Q(Û)II >~ 295 Figure 3: Watermark decoder PDF MODELS Since in the presence of subtractive dither the PDF of X will be perturbed by D, it is difficult to derive a useful mathematical expression for it. That is why we choose to manipulate X in a convenient way, having knowledge of D, so that we are able to mathematically describe the structure of the PDF of the resulting random variable. For simplicity, we will assume that only message 1;11 = 0 is embedded. Ex- tension to the more general case of embedding zeros and ones is straightforward. Referring to Fig. 1, let us assume that aX + D belongs to the k-th quantization cell, i.o.: II (k - ~) < aX + D < II (k + ~). (6) Multiplying by 1;:;0' and adding kll, we obtain: II ( 1 - a) ~ 1- a II ( 1 - a) - < (1 - a)X + kll + --D < - k + -- . (7) a k - -- 2 a a 2 Recognizing that (1 - a)X + kll + 1;:;0' D = X + ~D (see Fig. I), we can write the PDF of X + ~D for a particular k as (8) where IA"lw~o(x) denotes the indicator function of the set Aklw=o defined as: I x = { 1 if x E Ak1w=O (9) A'IW~O( ) O'f,-t A 1 X"F kIW=O and 1- a 1 Ak1w=O = [ -ek ll a - --), -ek 1- a II 2 a + --) . 2 (10) 296 Generalizing for all k, we have +00 !X+-!;D(X) = L !(1_<»X+kiH,:aD(x)IAkw=o(X)l (11) k=-oo Eq. (11) is the key expression for the estimation procedure in the presence of subtractive dither. We can see that although X is perturbed by the dither, if we add the term ~D to the watermarked signal, we are able to obtain a signal that has a PDF with a structure. Assuming that a} » O''i!> we can approximate !X+-!;D(X) in the following way: +~ +~ rH-!;D(X) = L J(1_o.)X+kC>+':OD(X)JA"lw~O(X) ~ L !(1_Ct)X+kc>(x)IAI'lw~o(x) ~-= ~-= (12) DESIGN OF THE DITHER SEQUENCE Since the dither has a security role in the watermarking system, we give conditions for the dither sequence statistics such that an attacker is not able to decode the watermark with an error probability different than 0.5. To derive the dither conditions, we first need an expression for the error probability of the watermarking system. This expression has been derived in [8J and is given as where m takes on integer values. We would like to design the dither sequence statistics such that Fe = 0.5 for all choices of N2. For this we will need the independenee between N), N2, and D. Using the same techniques as in [9J we can show that a necessary and sufficient condition for !N,ID(nlld) = !N,(nl) is that aX ~ U(O,O'Jv,), which is satisfied if we assume that O'} » O'7v" 0'7v 2. By assumption the noise N2 is independent of N) and D. If we assume that the attacker applies small amount of noise with comparison to the wa.termark distortion, i.e. 0'7v « O'7v" then independently 2 of !N2(n2), we have 3b. b. PI euN22 «uN, 2 L.., Pr[mb. - - 4 < = '""" - -D < - mb. - 4 -J (14) It is easy to see that Felu2 «u":; = 0.5 as D ~ U(O, N2 NI 0'7v). I This situation is illus- trated in Fig. 4. Therefore, for security purposes, it is sufficient but not necessary to choose a dither that is uniformly distributed over the interval [-%, +%J. If we 297 fD(d) Figure 4: An illustration of fD(d) (solid line) and fN,-n(nl - d) (dashedline). assume that the attacker applies a large amount of noise with comparison to the watermark distortion, i.e. (T~2 » (T~, = (Tb, then independently of .fN"(n2), we have 3L\ L\ PeluÄ< »uÄ< = LPr[mL\ - -4 ~ NI - D::; mL\ - -4] (15) 2 I 171 From the independenee between NI and D, we can write fN,-D(nl-d) = .fN, (nl)* fD(d). This situation is illustrated in Fig.4. We can see that integration of .fN,-D(nl - d) over the black intervals will give PelIT2 »u2 = 0.5. Therefore we N2 Nl choose D ~ U(O, (T~,) throughout the paper. MAXIMUM LIKELIHOOD ESTIMATION The ML estimation of (3 is done based on the relation fY+~D = fj3X+~D'" .fN2· By definition, the estimate iJ is given as: (3 (3 iJ = arg max f3 fl, +!!. D J Q l' +!2.D I ,.... Tl 0 TI. (YI + -dl, a .. ,Yn + -dn) Ct (3 arg max f3 L log i-.'0'+t!.D (Yi + -di), i Q (16) where the second line follows from the assumption that the received data consists of i.i.d. samples and from the fact that the logarithm is a monotonic function. We note though that such an assumption may result in a source of substantial loss in the case of real data (audio, video), exhibiting high correlation between the samples. Experimental curves of the Maximum Likelihood Functional (MLF), which is the expression Li log fl~+~D, (Yi + ~di), are shown in Fig. 5, for different u2 values of (3 and -!?-. UN, EXPERIMENTS In this section we describe experiments with real signals (audio and speech with sampling frequency 48kHz) carried out to test the estimation accuracy of the 2 proposed technique in terms of the ratio ~, the parameter (3, and the number UN, 298 (a) (b) 2 a Figure 5: Graph of MLF for different values of (3 (a) and different values of ..;:p- N, (b). Chosen settings are X cv N(O, 1), D cv U(O,O.OI), N2 cv N(O,O.OI), and 17J., = 0.01. of available signal samples s. Results are shown in Fig. 6. Since fy+lD(Y + ~d) is not differentiable (due to the indicator function) it is difficult to find an analytical expression of iJ Therefore, we do a brute force search for the optimal value of (3 based on (16). The assumed PDF model of the host signal at the estimator side is a zero-mean Laplacian £(0, 17~ + 17J., + 17J.J PDF. TIlls is a realistic assumption, because the decoder has access to the received data and can estimate its variance. Furthermore, in practice most audio signals have a PDF that resembles the Laplacian PDF . • • • • f f j f I . jIj If f I (b) .10' (a) Figure 6: Graphs of mean (crosses) and variance (lines) of /J for real audio signals ,,2 as a function of T (a) and number of signal samples s (b). Chosen settings are N, ,,'!.. 10 log + aNI 2 = 172 (b). = 30db ' and 17N2 NI 299 CONCLUSIONS We have presented an ML estimation procedure for estimating amplitude scaling factors using subtractive dither in a quantization-based watermarking context. We gave sufficient conditions for the dither sequence such that a given level of security is achieved. The estimation approach performs weil in terms of additive noise attacks, under realistic assumptions. The disadvantage is the need for a relatively large amount of signal samples for estimating reliably (3, which is mainly due to the approximations in incorporating the subtractrve ruther and the i.i.d. assumption. REFERENCES [1] P. Moulin and J. A. O'Suilivan. Inforrnation- Theoretic Analysis of Infor- mation Hiding. IEEE Transactions on lnjormation. Theory, 49(3) :563-593, March 2003. [2] B. Chen and G. Worneil. Quantization Index Modulation: A Class of Prov- ably Good Methods for Digital Watermarking and Information Embedding. IEEE Transactions on Informaiion Theory, 47:1423-1443, May 200l. [3] J. H. Conway and N. J. A. Sloane. Sphere Packings, Lattices and Groups. Springer-Verlag, 3 edition, 1999. [4] M. L. Miller, G. J. Doerr, and J. Cox. Dirty-Paper Trellis Codes For Water- marking. IEEE International Conference On Image Processing, 2:129-132, September 2002. Rochester, NY. [5] B. Bradley. Improvement to CDF Grounded Lattice Codes. SPIE Securitsj, Steganogmphy, and Watermarking of Multimedia Contents VI, 5306, January 2004. CA, USA. [6] J. J. Eggers, R. Bauml, and B. Girod. Estimation of Amplitude Modifica- tions before SCS Watermark Detection. SPIE Security and Watermarking of Multimedia Contents IV, 4675:387-398, January 2002. San Jose, CA, USA. [7] M. H. Costa. Writing on Dirty Paper. IEEE Transactioris on Injormation Theory, 29(3):439-441, May 1983. [8] I. D. Shterev and R. L. Lagendijk. Maximum Likelihood Amplitude Scale Estimation for Quantization-Based Watermarking in the Presence of Dither. SPIE Security, Steganogmphy, and Watermarking of Multimedia Contents VII, January 2005. CA, USA. [9] 1. Schuckman. Dither Signals and Their Effect on Quantization Noise. IEEE Transactions on Communication Technology, 12(4):162-165, December 1964. 300 RECONSTRUCTING VIRTUAL ROOMS FROM PANORAMIC IMAGES Dirk Farina, Peter H. N. de Witha,b "Eindhoven University of Technology, 5600 MB Eindhoven, The Netherlands bLogicaCMG, TSE-2, 5605 JB Eindhoven, The Netherlands d. s. farin@tue.nl and p. h.n. de. with@tue.nl The capturing of panoramic 360 images has become a popular photographic 0 technique. While a complete 360 view gives an impressive view of the en- 0 vironment, many people have difficulties to under-stand the spatial scene arrangement from this fiat image. For-this reason, we pr-esent and discuss various visualizations of panoramic images. Furthermore, we propose an alternative visualization for panoramic images, using a simple 3-D recon- struction of the recording emnronmeni. Specifically, we reconstruct the 3-D layout of rectangular- rooms from a panoramic image. By projectinq the panoramic image onto the walls of this virtual TOom, the scene can be uisu- alized as a 3-D model. The model can be shown either as a scene oueroieui, or it can be displayed with the uiriual camera at the position of the original camera, providing realistic views from within the room. 1. INTRODUCTION The capturing and display of panoramic 360 images has become a standard 0 technique which is used in a variety of applications like the presentation of hotel rooms in the internet for advertisement. The most frequently-used model for storing panoramic images is to project the surrounding environment of a fixed camera location onto a cylindrical surface. The are two commonly used ways to display panoramic images. The first approach shows the unrolled surface of the cylinder in a very wide image. Since this image shows all directions around the camera at the same time, the panoramic image itself can be very confusing to the viewer. Another popular form of presentation is through an interactive viewer. These panoramic image browsers (PIB) show a rectified sub-view of the scene in which the user actively controls the view of a virtual camera. The disadvantage of this representation is that it is not possible to get a fast overview of the scene, and it is not possible to see the complete environment on a static medium like a paper copy. In this paper, we propose a new visualization technique for panoramic images. We concentrate on panoramic images that were recorded inside rectangular rooms, 301 which is an important special case that covers many application areas like hotel room advertising, or recording of group-meetings. Our visualization is based on an algorithm to reconstruct the 3-D layout of the rectangular rooms from a panoramic image. Once the geometry of the room is known, a 3-D model of the room walls can be synthesized and the wall textures can be added using the image data from the panoramic image. The proposed representation provides a flexible way to visualize the scene. On one band, tbe virtual camera can be placed outside of the room, such that the viewer gets an overview of the whole scene appearance and room layout. On the otber band, the virtual camera can also be placed at the position of the original camera. Interactively rotating this virtual camera provides views that equal the output of the PIB technique. The room reconstruction requires a minimum of user assistance. The user only has to indicate the position of the four room corners in the panoramic image. The reconstruction algorithm converts the positions of the corners into the angle between these corners as observed from the camera position. Subsequently, the room shape and the camera position are determined from these angles, and the textured 3-D model is constructed automatically. The following two sections introduce the cylindrical model for panoramic images and give an overview of visualization techniques. Section 4 discusses the reconstruction algorithm for the room geometry, enabling a new visualization technique that is described in Section 5. 2. PANORAMIC IMAGES The most commonly used type of panoramic images are cylindrical panoramic images. The idea is to project the environment onto a vertically aligned cylinder surface with the camera at the cylinder center [4]. If we denote the image coor- clinates as (x, y) and the cylinder coordinates as ( Wb, the camera. position must be further to the top, while for ui; < Wb, the camera position must be lower. 306 For some camera position, the ray direction of p or q becomes horizontal. For these positions (and the more extreme positions), there is no intersection of the rays with the top or bottom wall. These critical camera positions can be used to determine an initial interval of camera positions for the binary search. Starting the search with this interval not only reduces the number of iterations needed for the binary search, but it also removes the requirement to handle the special case in which the rays p, q do not interseet the top or bottom walls. 5. VISUALIZATION Once we have obtained the sizes of the room walls and the camera position in the room, we can create a virtual 3-D model of the room and generate textures for the room walls from the panoramic image by using the inverse of Eq. (1). This room model is then rendered using an OpenGL based viewer application. The user can control the rotation of the scene around the x and y axes, as well as control the distance between the virtual camera and the original camera position. If this distance is zero, the generated views are similar to PIB. For large distances, a scene overview is shown (Fig 4(b». 6. CONCLUSIONS This paper presented an algorithm to reconstruct the geometry of rectangular rooms from panoramic images. The reconstruction is based on the position of the four room corners, that are marked by the user. Once the room geometry is known, a virtual model of the room is generated and the panoramic image is used to obtain texture maps for the walls. This 3-D model of the captured environment provides an intuitive visualization that gives a scene overview as well as virtual views from the original camera position. ACKNOWLEDGEMENTS Part of this research was carried out during a visit at the Stanford Center for Innovations in Learning (SCIL) in the context of the Diver project [2). The authors want to thank W. Effelsberg from the University Mannheim, Germany, and Ray Pea from Stanford, USA for providing the possibility of this cooperation. The friendly collaboration with the Diver team (M. Mills, J. Rosen, and others) was a valuable experience, originated many new ideas, and was a lot of fun. 307 360 degrees (a) panoramic input. image with marked room corners (b) view from above Figure 4: Sample reconstruction of a rectangular room. REFERENCES [1] Euclid. ELements, Book lIl: Theory of Circles. 400 b.c. [2] R. Pea, M. Mills, J. Rosen, K. Dauber, W. Effelsberg, and E. Hoffert. The diver project: Interactive digital video repurposing. IEEE Multimedia, 11(11):54-61,2004. [3] H.-Y. Shum, M. Han, and R. Szeliski. Interactive construction of 3D mod- els from panoramic In IEEE Conference on Computer mosaics. Vision and Pattern Recoqniiion (CVPR '98), pages 427-433, June 1998. [4] R. Szeliski and H.- Y. Shum. Creating full view panoramic image mosaics and environment maps. In SIGGRAPH, pages 251-258. ACM Press/ Addison- Wesley Publishing Co., 1997. 308 AUTOMATIC TRACKING METHOD FOR SPORTS VIDEO ANALYSIS Jungong Han", Dirk Farina, Peter H.N. de Withab, Weilun Lao" aEindhoven University of Technology P.O.Box 513, 5600MB Eindhoven blogicaCMG, TSE-2, P.O.Box 7089, 5605JB Eindhoven, The Netherlands jg. han