Recollection of censored faces using modern Hopfield networks
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesisAlternative title
Återkallande av censurerade ansikten med hjälp av moderna Hopfield-nätverk (Swedish)
Abstract [en]
Hopfield networks are a long-standing machine-learning architecture, first presented in 1982 in the paper "Neural networks and physical systems with emergent collective computational abilities" by John J. Hopfield. Underpinning this specific architecture is the idea of associative memory, the ability of a system or model to recall patterns based upon the content or data in the item, as opposed to indexed memory, as one would be accustomed to seeing in computers. The practical upshot of associative memory is that models that leverage it can receive data that are noisy, corrupted, obfuscated, or otherwise incomplete and recall the pattern that is closest in memory. In Hopfield networks, this ability has been utilized in a variety of different circumstances. This paper explores leveraging this ability to reconstruct incomplete data to essentially match censored faces with their uncensored counterparts, effectively identifying them. However, due to the fundamental limitations of classical Hopfield networks, we elected to use modern Hopfield networks (MHN) that allow for continuous input patterns and exponential storage capacity. We found that MHNs are capable of matching censored faces to the correct corresponding uncensored face in the network, although the dataset in question, as well as the number of images in the network, vastly affect the accuracy of the model. We then compared this to classical Hopfield networks and found that the modern equivalent had a significantly better recall rate. We also found that censoring the images had little effect on the recall rate of the MHN.
Abstract [sv]
Hopfield-nätverk är en sedan länge etablerad arkitektur för maskininlärning, som först presenterades 1982 i artikeln “Neural networks and physical systems with emergent collective computational abilities” av John J. Hopfield. Grunden för denna specifika arkitektur är idén om associativt minne, det vill säga ett systems eller en modells förmåga att återkalla mönster baserat på innehållet eller data i objektet, till skillnad från indexerad minne, som man är van vid att se i datorer. Det praktiska resultatet av associativt minne är att modeller som utnyttjar det kan ta emot data som är brusiga, korrupta, förvrängda eller på annat sätt ofullständiga och återkalla det mönster som ligger närmast i minnet. I Hopfield-nätverk har denna förmåga utnyttjats i en rad olika sammanhang. Denna artikel undersöker hur man kan utnyttja denna förmåga att rekonstruera ofullständiga data för att i huvudsak matcha censurerade ansikten med deras ocensurerade motsvarigheter och därmed effektivt identifiera dem. På grund av de grundläggande begränsningarna hos klassiska Hopfield-nätverk valde vi dock att använda moderna Hopfield-nätverk (MHN) som möjliggör kontinuerliga inmatningsmönster och exponentiell lagringskapacitet. Vi fann att MHN kan matcha censurerade ansikten med rätt motsvarande ocensurerade ansikten i nätverket, även om datamängden och antalet bilder i nätverket påverkar modellens noggrannhet avsevärt. Vi jämförde sedan detta med klassiska Hopfield-nätverk och fann att den moderna motsvarigheten hade en betydligt bättre återhämtningsgrad. Vi fann även att censurering av bilderna hade lite en mycket liten effekt på återhämtningsgraden för MHN.
Place, publisher, year, edition, pages
2025. , p. 23
Series
TRITA-EECS-EX ; 2025:301
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-367637OAI: oai:DiVA.org:kth-367637DiVA, id: diva2:1985706
Supervisors
Examiners
2025-08-052025-07-272025-08-05Bibliographically approved