Showing posts with label open source. Show all posts
Showing posts with label open source. Show all posts

Sunday, December 15, 2019

Hack the LIME - the story about open-source AI

Leave it to a lawyer to spoil the fun!  Andrew Burt, a lawyer, and writer, recently wrote an article for the Harvard Business Review, which discusses the risks of open-source Artifical Intelligence (AI) models   The HBR post, "The AI Transparency Paradox," explains the dangers of making artificial intelligence models transparent.  On the one hand, businesses want to know how companies engineered their AI algorithms.  Is the AI algorithm too sexist, racist, and just not good?  For instance, in James Vincent's article, Google ‘fixed’ its racist algorithm by removing gorillas from its image-labeling tech, Google "fixed" its 2015 deep learning algorithm, which labeled humans as monkeys. I am sure the appropriate stakeholders at Google wanted to know how the algorithm was written and how can the developer fixed the inappropriate bias in the algorithm.

On the one hand, if Google opened its AI code to the open-source community, then the AI algorithms could be significantly improved.   On the other hand, as (our no-fun lawyer friend), Andrew Burt cautions businesses that they would be vulnerable if they opened their AI algorithms to the world, which includes bad actors like hostile governments.  Andrew uses the research paper titled, “Why Should I Trust You?” Explaining the Predictions of Any Classifier.  The paper is about the Local Interpretable Model-Agnostic Explanations (LIME) algorithm.  Andrew then talks about a research paper. How can we fool LIME and SHAP? Adversarial Attacks on Post hoc Explanation Methods,  which was published in November 2019.  The document discusses a "novel scaffolding technique," which can be used to hack the LIME algorithm.  Is there a return on investment if companies made their algorithms more transparent?

Folks may argue that Google successfully made its TensorFlow machine learning (ML) platform open source without much impact.  Before the TensorFlow platform question can be answered,  the following terms need to be defined:
  • Machine Learning;
  • Deep Learning; and 
  • Artificial Intelligence.
According to Geeks for Geeks portal, "Machine Learning is a technique of parsing data, learn from that data, and then apply what they have learned to make an informed decision." Machine Learning includes supervised training where the machine builds the model on most of the data (70% to 90% of the complete dataset) and then test the data for accuracy with the remaining portion of the data.  Unsupervised training involves machine learning from the full dataset.  There is no testing of the data.

Deep Learning algorithms are a specific subset of Machine Learning algorithms, which are primarily composed of neural networks. A common use of deep learning algorithms is for image recognization.

Gartner defines Artificial intelligence (AI) is the application of "...advanced analysis and logic-based techniques, including machine learning, to interpret events, support and automate decisions, and take actions."

Gartner recommends several open-source Data Science and ML platforms, including TensorFlow, to develop ML-based solutions.    Does this mean Mr. Burt is incorrect?

Andrew Burt is correct because comprised algorithms, which are the core of all AI solutions, will cause businesses to make poor decisions and ultimately discredit the AI solution. The underlying technology, which enables to invoke the algorithm, pull the data, process the data, and reports the outcomes, can be open source.  The other critical piece of any AI solution is the data itself.   Sensitive data is never unless asked by law enforcement or regulatory agency.

In conclusion,  Andrew Burt is correct by bringing up valid points, but at the same time, the AI field is still pretty young.  I am a strong believer in open-source software, and I believe we will have open-source AI models available.  We will also have AI models that will validate other models using technologies like blockchain technologies.

NOTE: The video below is about the LIME algorithm, and please keep in mind researchers recently hacked this algorithm.

Friday, June 17, 2011

Marketing and Technical refresh

What happens when a services oriented company tries to get into a product business? It's not a great model. When I was employed by Northrop Grumman, I worked on the Grants.gov project.
This eGov program enabled grant seekers to fill out an XML based form and then submit it via the grants.gov website. The XML form in-turn was transformed to an XML instance and then processed through a propitiatory Northrop Grumman XML transformation engine.

Have you ever heard of this product? I don't even remember the product's name! This was in 2004. The product was a suite of open source java packages which were cobbled together to be a backend engine for a major eGov program.



I left Northrop Grumman to work as a J2EE programmer for a company called Conquest Systems. I worked on a great team with sharp engineers and a great a project manager. We built a resource management web application using Struts and Hibernate with an Oracle database in the backend. This application for was the US military with a small development and support team. Meanwhile the company spent a lot of time developing a visual analytics tool for another US Government agency. The agency allowed Conquest Systems to take the rights of the products. Unfortunately, the company is still struggling to make it big with this product. The product uses EJBs. I also heard rumors that the app server ran on vacuum tubes.



Now at my current employer, I see every small and big company trying to sell COTS product. Half of them are useless since it doesn't meet our requirements while the others are not enterprise enough.



What seems to be the underlying problem? The problem is that service companies, especially public sector centric companies, tend to spend more time creating the product for a client and are not geared to market the product or give it enhancements to keep it technically fresh. This was recognized by my esteemed colleague Gene Gotimer a few years ago.



The other major problem I see is that companies that want to build cool products rely on open source products. The initial cost is minimal, however a great price is paid to have smaller iterations of technology upgrade. How many products that you know of, which are built on Microsoft, IBM, SAP or a major vendor's infrastructure, have disappeared from the face of the earth? Not many, but you have to upgrade your product technology stack, otherwise you may end up with a robust Microsoft Visual FoxPro application. How many of you have worked on FoxPro? If you did then you must have had a mullet in the 80's.



The beauty of the cloud technology is that it will force companies to keep up with the technology upgrade otherwise the cloud provider may not support that old FoxPro app. Does Amazon EC2 support FoxPro? I didn't think so. Back to the mullet issue, just kidding. The cloud computing technology model may actually assist the services centric vendor to build boutique products. If it becomes a popular product then the cloud vendor may buy it from you. If that happens then you can be proud that you are now trading your keyboard for some car keys. Car keys to your brand new Ferrari. At least that is what every caffeinated developer dreams about. ;-)

Sunday, June 12, 2011

Need to have an exit strategy

I believe it is time for me to get out of the business of IT. Here are the reasons:





  • Deer in headlights: I talk to some of my senior managers and they look at me as a deer in the headlights when I tell them about the innovations of Ruby on Rails or noSQL databases. On the other hand, if I was tell them about client server technologies of the late 1990s then we have a conversation. I see myself going down the same path in the next twenty years unless technology is outsourced.


  • Outsource IT: This brings me to the second point. IT is so commoditized. Within a couple of years, I won't need to worry about the operations part since most of this will be outsourced. I heard of government agencies outsourcing the whole Blackberry program to a third party vendor. WHAT?!!! All those jobs! I know this is a big part of the whole world we live in. Do I want my job outsourced in the next five years? I don't think so.



  • Open Source - innovating out of existence: As open source technologies rapidly evolve, more businesses are relying on market analysis and large vendors to recommend what their IT strategy should be. Should a CIO look at open source technologies to enable their IT strategy or look to proven technologies which could be legacy in the next five years? I would guess the latter. As Oracle, IBM, Microsoft and Google start putting cloud services, they are going to bring down costs and at the same time bring down the IT salaries. I believe the days of an Oracle DBA making a decent living are history. An Oracle DBA will make a similar salary as a typical engineer, which is 20% - 25% less then a typical IT staffer. These companies will also start filtering the Open Source technologies and the open source world will become an R&D lab. This is the best bet for any business since businesses don't have the time to update infrastructure every quarter.



What should I do then? I need to refine my customer relationship skills well enough to say, "Would you like fries with that?" ;-)

Saturday, February 19, 2011

I sound like a left wing donkey (aka Democrat)

I asked myself, "Will open source technologies ever fly?" after reading this article "Google asks US Patent Office Oracle Java patents". As businesses try to make a dollar or two from innovative minds who donated their "code" to better of man kind, I wonder if my children will enjoy the benefits of open source technologies. I don't know the answer but one of way of safe guarding these open source technologies is let government agencies take over the maintenance of open source software. I realize that I sound like a left wing "donkey" (aka. Democrat) but the open source community needs to address the bigger problem. How can brilliant works of engineering like Java, Ruby on Rails, Linux, Hadoop can be safe guarded from the hoards of entrepreneurs? I don't have a problem if a company like Cloudera and RedHat who make a living on supporting open source software. I however question when businesses fight the over basic fabric of open source software. Here is one idea we can look at:
  • Apache and other open source organizations should be care takers of open source. These organization should be funded by government agencies and they should be regulated by a UN organization.
My right wing friends may ask the question, "why should the government get involved in managing open source technologies. I answer by saying do you want human safety compromised over a business indicator flashing red. Since IT is being used to track and guide flights, manage energy grids, and control access to vital information, I say the government should be responsible for managing open source technologies. Government has so much red tape that it reduces efficiencies but the red tape also safeguards the things under its control from the economic and political moods.

Frankly if things don't change then I will start working Objective C, C#, and reduce my investment as a developer on open source technologies.

Saturday, May 17, 2008

Is Open Source bad?

Don't get me wrong. I love working with open source software. I love working Java, Php, Spring framework, Struts framework, Eclipse Integrated Development Environment (IDE), Spring WS, Junit, Hibernate, FileZilla, Mozilla's Firefox, log4j, Axis, JBoss middleware, etc., and etc. I am currently looking at Grails, JRuby, Seam, and on and on. The journey never seems to stop. As soon I am familiar with some software, it is either outdated or obliterated with a new software which runs on new principles but it is faster and addresses the issues with the software I just became familiar with. From a developer or an application architect's perspective, open source software is the way to go; however as a decision maker for a company, I would be leery to use open source source. Okay, Okay, let me explain. In my current position, I see resistance from my managers to adopt to open source software. Their reasons, which I think are quite valid, are that there is no support for the software, there is no evidence that it is widely used in the IT community, they haven't been tested well, and our company doesn't have enough people, who know how to use certain pieces of software.

As I said earlier, these are valid reasons however I believe companies should allocate some resources who track and evaluate open source projects. The committed resources should be composed of software engineers, software architects, business architects and analysts. Each open source product should be scored on:
  • Maturity of the software
  • Adoption in the software in the IT community
  • Is support being offered by companies and what is the level of support
  • Stability of the open source software
  • and determine the software's competition in the IT community and how the software's competition is doing in the IT community


Once again let me reiterate that I enjoy working with open source software since I have time to read the source code and make modifications if the software doesn't meet my requirement. This is a lot better than spending thousands and millions of dollars to buy COTS products and then realize the software doesn't work or the company needs to spend another chunk of money in hiring high priced vendors for the product. I have seen this happen with products from Microsoft, Oracle, Convera, Autonomy, IBM, etc., and etc.

In closing, I conclude that open source software isn't the panacea but it can be close to panacea if the company has the right set of resources, a culture for innovation and a willingness to take a risk. I look at companies like Google which thrive on individual and group innovation. I however don't recommend open source software for companies where policies quite frequently, they cannot allocate resources in researching open source products and as a company at large, they are financially loaded. If your company is in between the two examples I gave then I say please do your research and hire the appropriate personnel and then PICK YOUR POISON!